/* ==========================================================================
   DOSLED - Main Stylesheet (Modern Tech / Light Theme)
   ========================================================================== */

/* --- RESET & VARIABLES --- */
:root {
  --primary-color: #e53935;
  --primary-hover: #c62828;
  --accent-color: #ff6f00;
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --text-main: #c62828;
  --text-muted: #64748b;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(229, 57, 53, 0.3);
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;
  --container-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- LAYOUT & CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 90px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  color: var(--text-main);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 15px auto 0;
  border-radius: 2px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(229, 57, 53, 0.5);
  color: #fff;
}

.btn--secondary {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn--small {
  padding: 8px 18px;
  font-size: 0.85rem;
  background: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn--small:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn--large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo__img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 5px 0;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary-color);
}

.nav__link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.dropdown__list {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 200px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav__dropdown:hover .dropdown__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__list a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dropdown__list a:hover {
  background-color: var(--bg-card-hover);
  color: var(--primary-color);
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__phone {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.header__phone:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  position: relative;
  transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding-top: 100px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.45) 0%,
    rgba(248, 250, 252, 0.75) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 650px;
}

.hero__btns {
  display: flex;
  gap: 20px;
}

/* --- WHY US (BENEFITS) --- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.why__item {
  background-color: var(--bg-card);
  padding: 35px 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.why__item:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(229, 57, 53, 0.08);
}

.why__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 57, 53, 0.08);
  border-radius: 50%;
  color: var(--primary-color);
}

.why__label {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.why__text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- PRODUCTS CATALOG --- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.product__item {
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.product__item:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.product__img-wp {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.product__img-wp video{
  height: 100%;
  overflow: hidden;
  position: relative;
}

.product__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product__item:hover .product__img {
  transform: scale(1.05);
}

.product__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 20px 25px 10px;
  color: var(--text-main);
}

.product__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0 25px 20px;
  flex-grow: 1;
}

.product__link {
  display: inline-block;
  padding: 15px 25px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.01);
}

.product__link:hover {
  background: rgba(229, 57, 53, 0.06);
  padding-left: 30px;
}

/* --- PORTFOLIO --- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.portfolio__item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  display: block;
  border: 1px solid var(--border-color);
}

.portfolio__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio__hover {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio__view {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 8px 20px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.portfolio__item:hover .portfolio__hover {
  opacity: 1;
}

.portfolio__item:hover .portfolio__img {
  transform: scale(1.08);
}

.section-btn-wp {
  text-align: center;
}

/* --- CTA SECTION --- */
.cta {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.75) 0%,
    rgba(241, 245, 249, 0.60) 100%
  );
  z-index: 1;
}

.cta .container {
  position: relative;
  z-index: 2;
}

.cta__inner {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-main);
}

.cta__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 35px;
}

/* Form Styles */
.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cta__form {
  max-width: 450px;
  margin: 0 auto;
}

.form__input {
  width: 100%;
  padding: 15px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.form__input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(229, 57, 53, 0.15);
  background: #ffffff;
}

/* --- FOOTER --- */
.footer {
  background-color: #f1f5f9;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 25px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 15px;
  max-width: 300px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer__list li,
.footer__contacts-list li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__list a:hover,
.footer__contacts-list a:hover {
  color: var(--primary-color);
}

.footer__contacts-list span {
  color: var(--text-main);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 25px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- MODAL --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal__dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal__close:hover {
  color: var(--text-main);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-main);
  text-align: center;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-card);
    padding: 100px 30px 30px;
    transition: var(--transition);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .dropdown__list {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 15px;
    width: auto;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .header__contacts .btn {
    display: none;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__btns {
    flex-direction: column;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Блокировка скролла при открытом меню/модалке */
body.no-scroll {
  overflow: hidden;
}

/* Изменение шапки при скролле */
.header--scrolled {
  background-color: rgba(248, 250, 252, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

/* --- INTERNAL PAGES HERO --- */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.page-hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* --- ABOUT SECTION --- */
.about-info__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-info__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 25px;
}

.about-info__p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.7;
}

.about-info__img {
  border-radius: 12px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- STATS SECTION --- */
.stats {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stats__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
  text-shadow: 0 0 15px rgba(229, 57, 53, 0.15);
}

.stats__label {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 992px) {
  .about-info__inner {
    grid-template-columns: 1fr;
  }
  .page-hero__title {
    font-size: 2.2rem;
  }
}

/* --- CONTACTS PAGE --- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacts__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.contacts__desc {
  color: var(--text-muted);
  margin-bottom: 35px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contacts__icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.contacts__details span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contacts__details a,
.contacts__details p {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  margin: 0;
}

.contacts__details a:hover {
  color: var(--primary-color);
}

.contacts__form-wrapper {
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contacts__form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 25px;
}

.form__group {
  margin-bottom: 20px;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- MAP SECTION --- */
.map-section {
  padding-bottom: 0;
}

.map-container {
  width: 100%;
  filter: none; /* Сброшено для светлой карты, либо можно настроить инверсию под светлый стиль */
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: 30px;
}

@media (max-width: 992px) {
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contacts__form-wrapper {
    padding: 25px;
  }
}

/* --- PRODUCT DETAIL PAGE --- */
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.product-detail__main-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.product-detail__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
}

.product-detail__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.product-detail__sub {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 15px;
}

.product-detail__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.product-detail__list li {
  position: relative;
  padding-left: 25px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-detail__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* --- SPECS SECTION --- */
.specs {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.specs__card {
  background-color: rgba(0, 0, 0, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
}

.specs__card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.specs__list {
  list-style: none;
  padding: 0;
}

.specs__list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  font-size: 0.95rem;
}

.specs__list li:last-child {
  border-bottom: none;
}

.specs__list li span {
  color: var(--text-muted);
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

@media (max-width: 992px) {
  .product-detail__grid {
    grid-template-columns: 1fr;
  }
}