/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 1360px;
  z-index: 1000; display: flex; align-items: center; gap: 12px;
  color: #1a1a1a; transition: color 0.4s ease;
}
.header.light-content { color: #1a1a1a; }
.header.light-content .header-pill {
  background: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), inset 0 1px 1px rgba(255,255,255,0.9);
}
.header.light-content .logo img { filter: invert(1) brightness(0.15); }
.header.dark-content { color: #fff; }
.header.dark-content .header-pill {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1px 1px rgba(255,255,255,0.3);
}
.header.dark-content .logo img { filter: none; }
.header-pill {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), inset 0 1px 1px rgba(255,255,255,0.9);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.logo { padding: 18px 32px; display: flex; align-items: center; }
.logo img { height: 24px; display: block; }
.nav { flex: 1; display: flex; align-items: center; justify-content: space-around; padding: 10px 20px; gap: 4px; }
.nav-item {
  position: relative; padding: 12px 20px; cursor: pointer;
  font-size: 15px; font-weight: 500; color: inherit;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-item:hover { opacity: 0.65; }
.nav-item:not(:last-child)::after {
  content: ""; position: absolute; right: -2px; top: 50%;
  transform: translateY(-50%); width: 3px; height: 3px;
  border-radius: 50%; background: currentColor; opacity: 0.4;
}
.nav-item .arrow {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px,-2px);
  transition: transform 0.25s; opacity: 0.85;
}
.nav-item:hover .arrow { transform: rotate(225deg) translate(-2px,-2px); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px; padding: 10px; min-width: 240px;
  opacity: 0; visibility: hidden; transition: all 0.25s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15); color: #1a1a1a;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: #1a1a1a; transition: background 0.15s;
}
.dropdown a:hover { background: rgba(0,0,0,0.05); }
.header-actions { display: flex; gap: 6px; padding: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: inherit; transition: background 0.2s;
}
.icon-btn:hover { background: rgba(0,0,0,0.06); }
.header.dark-content .icon-btn:hover { background: rgba(255,255,255,0.15); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ============ БУРГЕР ============ */
.burger { display: none; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: space-between;
    align-items: center; width: 48px; height: 22px; padding: 13px 14px;
    box-sizing: content-box; cursor: pointer; position: relative; z-index: 1001;
  }
  .burger span {
    display: block; width: 22px; height: 2px; border-radius: 2px;
    background: currentColor; transition: transform 0.3s, opacity 0.3s, background 0.3s;
  }
  .burger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
  .burger.active span { background: #1a1a1a !important; }

  .header { gap: 8px; }
  .logo { padding: 14px 22px; }
  .logo img { height: 20px; }

  .header .nav.open {
    display: flex; position: fixed; top: 0; right: 0;
    width: 85%; max-width: 360px; height: 100vh;
    background: #fff; padding: 90px 24px 30px;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0; border-radius: 0; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    overflow-y: auto; z-index: 1000; animation: slideInRight 0.35s ease;
  }
  @keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .header .nav.open .nav-item {
    width: 100%; padding: 16px 0; border-bottom: 1px solid #eee;
    font-size: 17px; font-weight: 500; color: #1a1a1a;
    position: relative; flex-wrap: wrap;
  }
  .header .nav.open .nav-item::after { display: none; }
  .header .nav.open .nav-item .arrow {
    margin-left: auto; transform: rotate(45deg);
    border-color: #1a1a1a; transition: transform 0.3s;
  }
  .header .nav.open .nav-item.open .arrow { transform: rotate(225deg) translate(-2px,-2px); }
  .header .nav.open .dropdown {
    position: static; display: none; opacity: 1; visibility: visible;
    transform: none; background: none; box-shadow: none;
    backdrop-filter: none; border: none; padding: 10px 0 0; margin: 0; width: 100%;
  }
  .header .nav.open .nav-item.open .dropdown { display: flex; flex-direction: column; gap: 2px; }
  .header .nav.open .dropdown a { padding: 10px 12px; font-size: 15px; color: #555; border-radius: 8px; }
  .header .nav.open .dropdown a:hover { background: #f5f5f7; color: #c1121f; }

  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: ''; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 999; animation: fadeIn 0.3s ease;
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 640px) {
  .header { top: 12px; width: calc(100% - 24px); }
  .header-actions .icon-btn:nth-child(2) { display: none; }
}

/* ============ HERO ============ */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: center; justify-content: flex-start;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.5), transparent 60%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 0 80px; max-width: 700px; }
.hero-content h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; margin-bottom: 16px; line-height: 1.1; }
.hero-content p { font-size: 18px; margin-bottom: 32px; opacity: 0.9; }
.btn {
  display: inline-block; padding: 16px 36px;
  background: #e30613; color: #fff; border-radius: 50px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); background: #c00510; }
.hero-dots {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.hero-dots span.active { background: #fff; width: 30px; border-radius: 5px; }

/* ============ SECTIONS ============ */
.section { padding: 100px 0 25px 0; }
//.section-title { font-size: clamp(32px, 4vw, 52px); font-weight: 700; margin-bottom: 24px; }
//.section-text { font-size: 18px; line-height: 1.7; color: #555; max-width: 800px; }
.section .container{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.section-title,
.section-text{
  margin-left: 0;
  padding-left: 0;
  text-indent: 0;
  //text-align: left;
text-align: center;
  max-width: 100%;
}

.section-title{
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  margin: 0 0 24px 0;
  line-height: 1.1;
}

.section-text{
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin: 0 auto;
  max-width: 760px;   /* ограничение ширины, но левый край как у заголовка */
}

/* ============ ФУТЕР ============ */
.footer { background: #0a0a0a; color: #aaa; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 60px; margin-bottom: 40px; align-items: start; }
.footer-grid > div { min-width: 0; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 16px; font-weight: 600; }
.footer p { color: #aaa; font-size: 14px; line-height: 1.6; margin: 0 0 4px; }
.footer a { color: #aaa; display: block; padding: 4px 0; font-size: 14px; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #222; padding-top: 24px; text-align: center; font-size: 13px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr; gap: 40px 50px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============ КАРТА ============ */
.map-section { padding: 0; height: 500px; }
.map-section iframe { width: 100%; height: 100%; border: 0; }

/* ============ МОДАЛКА ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 2000; display: none; align-items: center; justify-content: center;
  padding: 20px; animation: modalFadeIn 0.25s ease;
}
.modal-overlay.active { display: flex; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; background: #fff; border-radius: 20px;
  padding: 40px 36px 32px; max-width: 440px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0,0,0,0.35);
  animation: modalSlideIn 0.3s cubic-bezier(0.2,0.8,0.3,1.1);
}
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal h2 { font-size: 26px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; color: #1a1a1a; }
.modal-sub { font-size: 15px; color: #666; margin: 0 0 24px; line-height: 1.4; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal input[type="text"], .modal input[type="tel"] {
  width: 100%; padding: 15px 18px; font-size: 15px; font-family: inherit;
  color: #1a1a1a; background: #f5f5f7; border: 1.5px solid transparent;
  border-radius: 12px; outline: none; transition: background 0.2s, border-color 0.2s; margin: 0;
}
.modal input::placeholder { color: #999; }
.modal input:focus { background: #fff; border-color: #c1121f; }
.modal-submit {
  width: 100%; padding: 16px 24px; font-size: 15px; font-weight: 600;
  font-family: inherit; color: #fff; background: #c1121f;
  border: none; border-radius: 12px; cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(193,18,31,0.3); margin: 6px 0 4px;
}
.modal-submit:hover { background: #a30e1a; box-shadow: 0 8px 24px rgba(193,18,31,0.45); transform: translateY(-1px); }
.modal-submit:active { transform: translateY(0) scale(0.98); }
.modal-submit:disabled { background: #999; cursor: default; transform: none; box-shadow: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #f5f5f7; border: none; font-size: 22px; line-height: 1;
  color: #666; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.modal-close:hover { background: #e8e8ea; color: #1a1a1a; transform: rotate(90deg); }
.modal-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; margin: 2px 0 0; }
.modal-check input[type="checkbox"] { flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px; accent-color: #c1121f; cursor: pointer; }
.modal-check span { font-size: 11.5px; line-height: 1.45; color: #999; }
.modal-check a { color: #777; text-decoration: underline; text-underline-offset: 2px; }
.modal-check a:hover { color: #c1121f; }

@media (max-width: 480px) {
  .modal { padding: 32px 22px 24px; border-radius: 18px; }
  .modal h2 { font-size: 22px; }
  .modal-sub { font-size: 14px; margin-bottom: 20px; }
  .modal input[type="text"], .modal input[type="tel"] { padding: 14px 16px; font-size: 14px; }
  .modal-check span { font-size: 11px; }
}

/* ============ АДАПТИВ ============ */
@media (max-width: 640px) {
  .hero-content { padding: 0 24px; }
  .section { padding: 60px 0; }
}

/* ============ ОКНО "СПАСИБО ЗА ЗАЯВКУ" ============ */
.thanks-modal {
  position: fixed; inset: 0;
  background: rgba(10,15,25,0.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 10000; padding: 20px;
}
.thanks-modal.active { opacity: 1; visibility: visible; }
.thanks-dialog {
  position: relative; background: #fff; border-radius: 20px;
  padding: 44px 36px 28px; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,.35);
  transform: translateY(20px) scale(.95);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.thanks-modal.active .thanks-dialog { transform: translateY(0) scale(1); }
.thanks-dialog .modal-close {
  position: absolute; top: 12px; right: 16px;
  background: transparent; border: 0; font-size: 28px; line-height: 1;
  color: #888; cursor: pointer; padding: 4px 8px; transition: color .2s;
  width: auto; height: auto;
}
.thanks-dialog .modal-close:hover { color: #000; background: transparent; transform: none; }
.thanks-icon {
  margin: 0 auto 18px; width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  animation: thanksPop .5s cubic-bezier(.34,1.56,.64,1) both;
}
.thanks-icon svg { display: block; }
.thanks-icon svg circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: thanksCircle .6s ease forwards; }
.thanks-icon svg path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: thanksCheck .4s ease .5s forwards; }
.thanks-title { font-size: 24px; font-weight: 700; margin: 0 0 10px; color: #111; }
.thanks-text { margin: 0 0 20px; color: #666; font-size: 15px; line-height: 1.5; }
.thanks-progress { height: 3px; background: #eef0f3; border-radius: 2px; overflow: hidden; }
.thanks-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transform-origin: left; animation: thanksBar 4s linear forwards;
}
@keyframes thanksPop { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes thanksCircle { to { stroke-dashoffset: 0; } }
@keyframes thanksCheck { to { stroke-dashoffset: 0; } }
@keyframes thanksBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ============ HONEYPOT (защита от ботов) ============ */
/* Скрываем ловушку визуально, но оставляем доступной для ботов-парсеров.
   display:none / visibility:hidden НЕ используем — многие боты их распознают
   и игнорируют такие поля. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.hp-field input,
.hp-field label,
.hp-field span {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  font-size: 0;
  line-height: 0;
}

/* ===== HERO STATIC (одна картинка) ===== */
.hero.hero-static{
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;       /* прижать к низу */
  justify-content: center;     /* по горизонтали — центр */
  padding: 0 20px 10vh;        /* отступ снизу ≈ "под машиной" */
}

.hero.hero-static::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45));
  pointer-events: none;
  z-index: 1;
}

.hero-static-inner{
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-static-inner h1{
  font-size: 44px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.hero-static-inner .btn{ margin: 0; }

@media (max-width: 768px){
  .hero.hero-static{ padding-bottom: 8vh; }
  .hero-static-inner h1{ font-size: 28px; }
}


/* ===== COLOR SLIDER (full width) ===== */
.color-slider{
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #e8dcc3;
}

.color-slider__image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .35s ease;
}
.color-slider__image.fade{ opacity: 0; }

/* === Левый нижний угол: выбор цвета === */
.color-slider__picker{
  position: absolute;
  left: 120px;              /* было 40px — сдвинули к центру */
  bottom: 40px;
  z-index: 3;
}

.color-active-name{
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 16px 0;
  padding: 0;
  color: #fff;
  letter-spacing: .3px;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  text-align: left;
}

.color-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

/* Неактивный — тонкая белая 1px */
.color-list li{
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .2s, border-width .2s;
  box-sizing: border-box;
}
.color-list li:hover{ transform: scale(1.1); }

/* Активный — та же обводка, но в 2 раза толще (2px), без колец */
.color-list li.active{
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  transform: none;
}

/* === Правый нижний угол: кнопка Заказать === */
.color-slider__order{
  position: absolute;
  right: 120px;             /* было 40px — сдвинули к центру */
  bottom: 40px;
  z-index: 3;
  background: #111 !important;
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.color-slider__order:hover{ background: #333 !important; transform: translateY(-2px); }

/* Mobile */
@media (max-width: 768px){
  .color-slider__picker{ left: 20px; bottom: 20px; }
  .color-active-name{ font-size: 15px; margin-bottom: 10px; }
  .color-list{ gap: 12px; }
  .color-list li{ width: 26px; height: 26px; }
  .color-slider__order{ right: 20px; bottom: 20px; padding: 12px 24px; font-size: 14px; }
}

/* === Стрелки === */
.color-slider > .slider-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: none;
  font-size: 30px;
  line-height: 1;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: background .2s, transform .2s;
  z-index: 3;
}
.color-slider > .slider-nav:hover{ background: #fff; transform: translateY(-50%) scale(1.08); }
.color-slider > .slider-nav.prev{ left: 24px; }
.color-slider > .slider-nav.next{ right: 24px; }

/* Mobile */
@media (max-width: 768px){
  .color-slider{ height: 70vh; min-height: 480px; }
  .color-slider__picker{ left: 20px; bottom: 20px; }
  .color-active-name{ font-size: 16px; margin-bottom: 10px; }
  .color-list{ gap: 10px; }
  .color-list li{ width: 18px; height: 18px; }
  .color-slider__order{ right: 20px; bottom: 20px; padding: 12px 24px; font-size: 14px; }
  .color-slider > .slider-nav{ width: 42px; height: 42px; font-size: 24px; }
  .color-slider > .slider-nav.prev{ left: 10px; }
  .color-slider > .slider-nav.next{ right: 10px; }
}

