/* ============================================================
   Креп-Коннект — Main Stylesheet
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1a3a6b;
  --blue-dark:  #122a52;
  --blue-light: #2454a0;
  --orange:     #e8620a;
  --orange-h:   #c9520a;
  --gray-50:    #f8f9fb;
  --gray-100:   #eef0f4;
  --gray-200:   #dce0e8;
  --gray-300:   #c4cad5;
  --gray-400:   #9aa3b2;
  --gray-500:   #7a8494;
  --gray-600:   #5a6478;
  --gray-800:   #2c3345;
  --white:      #ffffff;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow:     0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.16);

  --header-h:   72px;
  --transition: .25s ease;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- SCROLL BAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 3px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
}
.btn--primary:hover {
  background: var(--orange-h);
  border-color: var(--orange-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,98,10,.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--outline-dark:hover {
  background: var(--blue);
  color: var(--white);
}

.btn--lg { padding: 15px 32px; font-size: 1.05rem; border-radius: var(--radius-sm); }
.btn--full { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.logo__icon {
  display: block;
  flex-shrink: 0;
}
.logo__text strong { color: var(--orange); }
.logo--light { color: var(--white); }
.logo--light .logo__text strong { color: var(--orange); }

/* Nav */
.nav { margin-left: auto; }
.nav__list {
  display: flex;
  gap: 4px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link.active {
  color: var(--blue);
  background: var(--gray-50);
}

/* Header phone */
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue);
  font-size: .95rem;
  padding: 8px 16px;
  border: 2px solid var(--blue);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.header__phone:hover {
  background: var(--blue);
  color: var(--white);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 96px 0; }
.section--gray { background: var(--gray-50); }

.section__header {
  text-align: center;
  margin-bottom: 56px;
}
.section__tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(232,98,10,.1);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
}
.section__desc {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://avatars.mds.yandex.net/get-maps-adv-crm/11387709/2a0000018f808f562d2f77462334d85a3bde/orig');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(10, 22, 50, .88) 0%,
    rgba(26, 58, 107, .78) 55%,
    rgba(36, 84, 160, .65) 100%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 80px 0;
  max-width: 720px;
}

.hero__label {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
}
.hero__subtitle strong {
  color: var(--white);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}
.stat span {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: rgba(255,255,255,.6);
  animation: bounce 2s infinite;
  transition: border-color var(--transition), color var(--transition);
}
.hero__scroll a:hover {
  border-color: rgba(255,255,255,.8);
  color: var(--white);
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__text p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about__text strong { color: var(--blue-dark); }
.about__text .btn { margin-top: 8px; }

.about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about__card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.about__card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
}
.about__card-icon { font-size: 2rem; margin-bottom: 12px; }
.about__card h3 { font-size: .95rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.about__card p { font-size: .85rem; color: var(--gray-600); line-height: 1.6; }

/* ============================================================
   CATALOG
   ============================================================ */
.catalog { background: var(--gray-50); }

/* Filters */
.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 600;
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--blue-light); color: var(--blue); }
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* Product grid */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

.product-card--featured {
  border-color: var(--orange);
  background: linear-gradient(135deg, #fff8f4 0%, #ffffff 100%);
}
.product-card--featured:hover { border-color: var(--orange-h); }

.product-card__badge {
  position: absolute;
  top: -1px; right: 20px;
  background: var(--orange);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.product-card__img {
  width: calc(100% + 48px);
  margin: -24px -24px 16px;
  aspect-ratio: 4/3;
  background: #f5f7fa;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.product-card__body { flex: 1; }
.product-card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(36,84,160,.1);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}
.product-card p {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.product-card__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  transition: all var(--transition);
}
.product-card__btn:hover {
  background: var(--blue);
  color: var(--white);
}

.product-card__add {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transition: all var(--transition);
}
.product-card__add:hover {
  background: var(--blue);
  color: var(--white);
}

.product-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.product-card__sizes span {
  font-size: .7rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  color: var(--blue);
  background: rgba(26,58,107,.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.product-card.hidden { display: none; }

.catalog__cta {
  text-align: center;
  margin-top: 48px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.catalog__cta p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.adv-card {
  position: relative;
  padding: 36px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.adv-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

.adv-card__num {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  transition: color var(--transition);
}
.adv-card:hover .adv-card__num { color: rgba(36,84,160,.1); }

.adv-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.adv-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.adv-card p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--gray-50); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--gray-200);
  aspect-ratio: 1 / 1;
  margin: 0;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery__item:hover img { transform: scale(1.07); }

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 107, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition);
  opacity: 0;
}
.gallery__item:hover .gallery__overlay {
  background: rgba(26, 58, 107, .55);
  opacity: 1;
}

.gallery__item--hidden { display: none; }

.gallery__more-wrap {
  text-align: center;
  margin-top: 28px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 12, 26, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(6px);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img-wrap {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 80px rgba(0,0,0,.7);
  transition: opacity .2s ease;
}
.lightbox__img-wrap img.loading { opacity: 0; }

.lightbox__loader {
  position: absolute;
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--white);
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
.lightbox__loader.active { display: block; }

.lightbox__close {
  position: fixed;
  top: 20px; right: 24px;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 10;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); color: var(--white); }

.lightbox__nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 10;
}
.lightbox__nav:hover { background: rgba(255,255,255,.2); color: var(--white); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

.lightbox__counter {
  position: fixed;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .05em;
}

/* ============================================================
   REQUEST FORM
   ============================================================ */
.request {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
}

.request__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.request__info .section__tag { background: rgba(255,255,255,.15); color: var(--white); }
.request__info .section__title { color: var(--white); text-align: left; }
.request__info p { color: rgba(255,255,255,.7); margin-top: 16px; line-height: 1.7; }

.request__features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.request__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: .925rem;
}
.request__features li svg { color: var(--orange); flex-shrink: 0; }

.request__contact {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.request__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  transition: color var(--transition);
}
.request__phone:hover { color: var(--orange); }
.request__contact span {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* Form */
.request__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  min-width: 0;
  width: 100%;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form__group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(36,84,160,.12);
}
.form__group input.error,
.form__group select.error,
.form__group textarea.error {
  border-color: #e53e3e;
}

.form__error {
  font-size: .8rem;
  color: #e53e3e;
  min-height: 18px;
}

.form__check {
  margin-bottom: 20px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .875rem;
  color: var(--gray-600);
}
.checkbox input[type="checkbox"] { display: none; }
.checkbox__mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  margin-top: 1px;
}
.checkbox input:checked + .checkbox__mark {
  background: var(--blue);
  border-color: var(--blue);
}
.checkbox input:checked + .checkbox__mark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.form__link { color: var(--blue-light); text-decoration: underline; cursor: pointer; }

select.highlighted {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  transition: outline .3s;
}

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success message */
.form__success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: var(--radius-sm);
  color: #166534;
  margin-top: 12px;
}
.form__success svg { color: #22c55e; flex-shrink: 0; }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-item__icon {
  width: 48px; height: 48px;
  background: rgba(36,84,160,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.contact-item a { font-size: 1.15rem; font-weight: 700; color: var(--blue-dark); }
.contact-item a:hover { color: var(--orange); }
.contact-item span { color: var(--gray-600); line-height: 1.6; }

.contacts__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.contacts__map iframe { width: 100%; height: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 24px 48px;
}

.footer__brand .logo { margin-bottom: 14px; }
.footer__brand p { font-size: .9rem; line-height: 1.6; }

.footer__nav h4,
.footer__contacts h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a {
  font-size: .9rem;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }

.footer__contacts a {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer__contacts a:hover { color: var(--orange); }
.footer__contacts p {
  font-size: .875rem;
  line-height: 1.6;
  margin-top: 4px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
}
.footer__bottom .container {
  display: flex;
  justify-content: center;
}
.footer__bottom span {
  font-size: .85rem;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   SCROLL TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover { background: var(--blue-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1220px) {
  .header__inner { gap: 16px; }
  .nav__link { padding: 8px 8px; }
}

@media (max-width: 1024px) {
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .contacts__grid { grid-template-columns: 1fr; }
  .contacts__map { height: 320px; }
  .request__inner { grid-template-columns: 1fr; gap: 40px; }
  .request__form { padding: 32px 24px; }
}

@media (max-width: 1100px) {
  :root { --header-h: 64px; }

  /* Header mobile */
  .header__phone { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 24px 24px;
    transform: translateY(calc(-100% - var(--header-h)));
    visibility: hidden;
    transition: transform var(--transition), visibility 0s var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
  }
  .nav.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform var(--transition), visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; padding: 12px 16px; font-size: 1rem; white-space: normal; }
  .burger { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__cards { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .advantages__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__stats { gap: 24px; }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .catalog__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-top { bottom: 20px; right: 20px; }
  .whatsapp-btn { bottom: 80px; right: 20px; width: 52px; height: 52px; }

  /* Mobile spacing */
  .container { padding: 0 16px; }
  .header__inner { gap: 12px; }
  .section { padding: 48px 0; }
  .section__header { margin-bottom: 36px; }
  .footer__inner { gap: 24px; padding: 40px 16px 32px; }
  .footer__bottom { padding: 16px; }
  .request__form { padding: 24px 16px; }
  .modal__box { padding: 24px 20px; }
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
}

/* ============================================================
   STAT URGENCY (dispatch countdown)
   ============================================================ */
.stat--urgency strong {
  color: var(--orange);
}
.stat--urgency[style*="display:none"] { display: none !important; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,20,40,.6);
  backdrop-filter: blur(3px);
}

.modal__box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}

.modal__box h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.modal__body p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
}
.modal__body strong { color: var(--blue-dark); }
.modal__body a { color: var(--blue-light); }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: background var(--transition), color var(--transition);
}
.modal__close:hover { background: var(--gray-200); color: var(--blue-dark); }

/* Footer email link */
.footer__contacts a { display: block; color: var(--gray-300); font-size: .9rem; margin-bottom: 4px; }
.footer__contacts a:hover { color: var(--white); }

/* ============================================================
   CART BUTTON (header)
   ============================================================ */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.cart-btn:hover { background: var(--gray-100); }
.header.scrolled .cart-btn { color: var(--blue-dark); }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  line-height: 1;
  display: none;
}

/* ============================================================
   ADD-TO-CART MINI-MODAL
   ============================================================ */
.add-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  align-items: center;
  justify-content: center;
}
.add-modal.open { display: flex; }

.add-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,20,40,.5);
  backdrop-filter: blur(3px);
}

.add-modal__box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  width: min(380px, calc(100% - 32px));
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}

.add-modal__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.add-modal__label {
  font-size: .875rem;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 20px;
}
.add-modal__field {
  margin-bottom: 16px;
}
.add-modal__field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.add-modal__field select,
.add-modal__field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--blue-dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.add-modal__field select:focus,
.add-modal__field input:focus { border-color: var(--blue-light); }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: rgba(10,20,40,.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1900;
  width: min(400px, 100vw);
  background: var(--white);
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.cart-drawer__head h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--gray-400);
  text-align: center;
  padding: 40px 0;
}
.cart-empty svg { opacity: .3; }
.cart-empty p { font-size: .9rem; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}
.cart-item__name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--blue-dark);
}
.cart-item__size {
  font-size: .8rem;
  color: var(--gray-500);
  grid-column: 1;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 1;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.qty-btn:hover { background: var(--gray-100); border-color: var(--blue-light); }
.qty-input {
  width: 56px;
  height: 28px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue-dark);
  font-family: inherit;
}
.cart-item__del {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.cart-item__del:hover { color: #e53935; background: #ffeaea; }

.cart-drawer__foot {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.cart-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.cart-form-row input {
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: inherit;
  color: var(--blue-dark);
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}
.cart-form-row input:focus { border-color: var(--blue-light); }
.cart-form-row input.error { border-color: #e53935; }
.cart-or {
  text-align: center;
  font-size: .8rem;
  color: var(--gray-400);
  margin: 10px 0 6px;
}
.cart-phone-link {
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  color: var(--blue-light);
}
.cart-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  color: var(--blue-dark);
  text-align: center;
}
.cart-success svg { color: #2e7d32; }
.cart-count-label {
  font-size: .8rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .cart-form-row { grid-template-columns: 1fr; }
  .cart-drawer { left: 0; width: 100%; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--blue);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner__text {
  flex: 1;
  font-size: .875rem;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  margin: 0;
}
.cookie-banner__link {
  color: #90c0ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__link:hover {
  color: var(--white);
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner__btn {
  padding: 10px 22px;
  font-size: .875rem;
  white-space: nowrap;
}
.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.8);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,.75);
  color: var(--white);
  background: rgba(255,255,255,.08);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px 20px;
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__btn {
    flex: 1;
    text-align: center;
  }
}

/* ============================================================
   FOOTER BOTTOM — ссылка на политику
   ============================================================ */
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__privacy-link {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.footer__privacy-link:hover {
  color: rgba(255,255,255,.7);
}

/* ============================================================
   CART AGREE — согласие на ПД в форме корзины
   ============================================================ */
.cart-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .8rem;
  color: var(--gray-500);
  line-height: 1.4;
  margin: 8px 0;
  cursor: pointer;
}
.cart-agree input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.cart-agree a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-agree-error {
  font-size: .78rem;
  color: #e53935;
  margin: 0 0 8px;
  display: none;
}
.cart-agree-error.visible {
  display: block;
}

/* ============================================================
   PRIVACY MODAL — оформление расширенного текста
   ============================================================ */
.modal__date {
  font-size: .78rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.modal__body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue);
  margin: 20px 0 6px;
}
.modal__body h3:first-of-type {
  margin-top: 4px;
}
.modal__body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}
.modal__body ul li {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 4px;
}
.modal__body code {
  font-family: monospace;
  font-size: .82rem;
  background: var(--gray-100);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Honeypot — скрыто от людей, видно ботам */
.hp-trap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
