/* =========================================================
   RENTAL TEMPLATE V2 — COMMON STYLES
   Этап 01: базовая система, шапка, hero, главная форма.
   Цвета клиента находятся в assets/css/theme.css
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Typography ----------
   Намеренно спокойнее и легче прежней версии:
   крупные заголовки не "чернят" экран, интерфейс ближе к SaaS-стилистике.
*/
h1,
h2,
h3,
p {
  text-wrap: pretty;
}


a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(227, 231, 236, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-main {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 48px;
  height: 34px;
  flex: 0 0 48px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.main-nav {
  margin-left: auto;
}

.main-nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  color: #424955;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--brand-primary);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.header-phone-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.header-phone-number {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  padding: 0 19px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-main);
}

.btn-store {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-main);
  box-shadow: none;
}

.btn-store:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--line));
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.btn-max {
  background: linear-gradient(135deg, #42ccff 0%, #5555ee 62%, #9933dd 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(82, 85, 238, 0.22);
}

.btn-max:hover {
  box-shadow: 0 14px 34px rgba(82, 85, 238, 0.30);
}

.btn-max-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 7px;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 19px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--brand-dark);
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before {
  position: absolute;
  top: -6px;
}

.menu-toggle-lines::after {
  position: absolute;
  top: 6px;
}

.menu-open .menu-toggle-lines {
  background: transparent;
}

.menu-open .menu-toggle-lines::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 30px 0 44px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(380px, 0.87fr);
  grid-template-areas:
    "content form"
    "features form";
  column-gap: 48px;
  row-gap: 28px;
  align-items: center;
  border: 1px solid rgba(227, 231, 236, 0.9);
  border-radius: 34px;
  padding: 70px 62px 58px;
  background:
    radial-gradient(circle at 14% 10%, color-mix(in srgb, var(--brand-primary) 8%, transparent) 0, transparent 29%),
    linear-gradient(135deg, #ffffff 0%, #fafbfc 58%, #f2f4f7 100%);
  box-shadow: var(--shadow-sm);
}

/*
  Фоновый WEBP главного экрана:
  assets/img/hero/hero-parts-bg.webp

  Справа креатив читается заметнее, влево плавно растворяется,
  чтобы не мешать заголовку и основным CTA.
*/
.hero-shell::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    url("../img/hero/hero-parts-bg.webp") 74% center / cover no-repeat;
  opacity: 0.48;
  filter: blur(1.2px);
  transform: scale(1.018);

  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 28%,
    rgba(0, 0, 0, 0.10) 38%,
    rgba(0, 0, 0, 0.34) 50%,
    rgba(0, 0, 0, 0.72) 66%,
    #000 82%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 28%,
    rgba(0, 0, 0, 0.10) 38%,
    rgba(0, 0, 0, 0.34) 50%,
    rgba(0, 0, 0, 0.72) 66%,
    #000 82%,
    #000 100%
  );
}

.hero-shell::after {
  position: absolute;
  z-index: 1;
  right: -110px;
  bottom: -170px;
  width: 430px;
  height: 430px;
  border: 80px solid color-mix(in srgb, var(--brand-primary) 7%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-content,
.hero-form-card,
.hero-features {
  position: relative;
  z-index: 2;
}

.hero-content {
  grid-area: content;
  align-self: end;
}

.hero-form-card {
  grid-area: form;
  align-self: center;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, var(--line));
  border-radius: 999px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--brand-primary) 5%, #fff);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 650;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.hero-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5.1vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 650;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}

.no-break {
  white-space: nowrap;
}

.hero-title-accent {
  color: var(--brand-primary);
}

.hero-lead {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-features {
  grid-area: features;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  align-self: start;
}

.hero-feature {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 15px;
  background: var(--surface);
}

.hero-feature-value {
  display: block;
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-feature-label {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

/* ---------- Main lead form ---------- */
.hero-form-card {
  border: 1px solid rgba(227, 231, 236, 0.85);
  border-radius: 26px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.form-kicker {
  margin: 0 0 8px;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 650;
}

.form-subtitle {
  margin: 11px 0 23px;
  color: var(--text-muted);
  font-size: 14px;
}

.form-group + .form-group {
  margin-top: 15px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  color: #3f4651;
  font-size: 13px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  padding: 13px 14px;
  background: #fbfcfd;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input.form-control {
  min-height: 50px;
}

textarea.form-control {
  min-height: 118px;
  resize: vertical;
}

.form-control::placeholder {
  color: #9ba2ad;
}

.form-control:focus {
  border-color: color-mix(in srgb, var(--brand-primary) 48%, var(--line));
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 9%, transparent);
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.form-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  font-size: 16px;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-policy {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.form-policy input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--brand-primary);
}

.form-policy a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  color: var(--text-muted);
  font-size: 12px;
}

.form-note-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

/* ---------- Temporary roadmap block ---------- */
.stage-note {
  padding: 0 0 70px;
}

.stage-note-card {
  border: 1px dashed #cbd1d8;
  border-radius: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-muted);
  text-align: center;
}

.stage-note-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-main);
  font-size: 18px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(390px, calc(100% - 32px));
  display: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.toast.is-visible {
  display: block;
}

.toast-title {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 650;
}

.toast-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.toast.is-error .toast-title {
  color: var(--danger);
}

.toast.is-success .toast-title {
  color: var(--success);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }

  .header-contact {
    margin-left: auto;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) 390px;
    column-gap: 32px;
    row-gap: 24px;
    padding: 54px 46px 46px;
  }

  .hero-title {
    font-size: clamp(42px, 5vw, 60px);
  }
}

@media (max-width: 900px) {
  .header-main {
    min-height: 72px;
  }

  .header-contact .btn {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
  }

  .menu-open .main-nav {
    display: block;
  }

  .main-nav-list {
    width: min(1180px, 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-inline: auto;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "form"
      "features";
    gap: 30px;
    padding: 44px 42px 38px;
  }

  .hero-shell::before {
    background-position: 72% center;
    opacity: 0.16;
    filter: blur(1.4px);
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      transparent 34%,
      rgba(0, 0, 0, 0.16) 48%,
      rgba(0, 0, 0, 0.56) 68%,
      #000 90%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      transparent 34%,
      rgba(0, 0, 0, 0.16) 48%,
      rgba(0, 0, 0, 0.56) 68%,
      #000 90%
    );
  }

  .hero-content {
    text-align: center;
  }

  .eyebrow {
    margin-inline: auto;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-logo {
    width: 44px;
    height: 31px;
    flex-basis: 44px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    padding: 12px 0 28px;
  }

  .hero-shell {
    gap: 24px;
    border-radius: 24px;
    padding: 28px 18px 20px;
  }

  .hero-shell::before {
    background-position: 78% center;
    opacity: 0.09;
    filter: blur(1.8px);
    transform: scale(1.02);
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      transparent 46%,
      rgba(0, 0, 0, 0.18) 64%,
      rgba(0, 0, 0, 0.58) 82%,
      #000 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      transparent 46%,
      rgba(0, 0, 0, 0.18) 64%,
      rgba(0, 0, 0, 0.58) 82%,
      #000 100%
    );
  }

  .hero-content {
    text-align: left;
  }

  .eyebrow {
    margin-inline: 0;
    margin-bottom: 18px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .hero-title {
    font-size: clamp(36px, 11.5vw, 48px);
    line-height: 1.03;
    font-weight: 650;
    letter-spacing: -0.03em;
  }

  .hero-title br {
    display: none;
  }

  .hero-lead {
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 14px;
  }

  .hero-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-feature {
    min-height: 82px;
    padding: 12px 10px;
    text-align: center;
  }

  .hero-feature-value {
    font-size: 17px;
  }

  .hero-feature-label {
    font-size: 10.5px;
  }

  .hero-feature {
    min-height: auto;
    text-align: left;
  }

  .hero-form-card {
    width: 100%;
    border-radius: 21px;
    padding: 22px 18px;
    box-shadow: 0 18px 48px rgba(20, 27, 40, 0.10);
  }

  .form-title {
    font-size: 26px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}


@media (max-width: 390px) {
  .container {
    width: min(100% - 16px, 1180px);
  }

  .header-main {
    min-height: 66px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 40px;
    height: 28px;
    flex-basis: 40px;
  }

  .brand-name {
    font-size: 16px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    inset: 66px 0 auto;
  }

  .hero-shell {
    padding: 24px 14px 16px;
  }

  .hero-shell::before {
    opacity: 0.05;
    background-position: 82% center;
  }

  .hero-title {
    font-size: clamp(34px, 11vw, 42px);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-feature {
    min-height: auto;
    text-align: left;
  }

  .hero-form-card {
    padding: 20px 14px;
  }

  .form-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* =========================================================
   COMMON CARD HOVER
   Единый "живой" эффект плашек.
   Работает только на устройствах с настоящим hover,
   поэтому мобильная/сенсорная верстка не двигается.
   ========================================================= */

.ui-card-lift {
  transition:
    transform 0.22s cubic-bezier(.2, .7, .3, 1),
    box-shadow 0.22s ease;
}

/* У интерактивных плашек текст не выделяется случайным drag-движением мыши. */
.hero-feature.ui-card-lift,
.advantage-card.ui-card-lift,
.team-card.ui-card-lift,
.catalog-card.ui-card-lift,
.review-card.ui-card-lift {
  -webkit-user-select: none;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  .hero-feature.ui-card-lift:hover,
  .advantage-card.ui-card-lift:hover,
  .team-card.ui-card-lift:hover,
  .catalog-card.ui-card-lift:hover,
  .review-card.ui-card-lift:hover,
  .store-photo-card.ui-card-lift:hover,
  .store-info-card.ui-card-lift:hover,
  .store-map-card.ui-card-lift:hover {
    transform: translate3d(3px, -3px, 0);
    box-shadow: 0 18px 42px rgba(20, 27, 40, 0.11);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-card-lift {
    transition: box-shadow 0.18s ease;
  }

  .hero-feature.ui-card-lift:hover,
  .advantage-card.ui-card-lift:hover,
  .team-card.ui-card-lift:hover,
  .catalog-card.ui-card-lift:hover,
  .review-card.ui-card-lift:hover,
  .store-photo-card.ui-card-lift:hover,
  .store-info-card.ui-card-lift:hover,
  .store-map-card.ui-card-lift:hover {
    transform: none;
  }
}

/* =========================================================
   COOKIE NOTICE
   Компактное уведомление в стиле текущего шаблона.
   ========================================================= */

.cookie-notice {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  width: min(370px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  background: rgba(27, 30, 36, 0.96);
  color: #fff;
  box-shadow: 0 20px 54px rgba(20, 27, 40, 0.28);
  backdrop-filter: blur(14px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice.is-hiding {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.cookie-notice-text {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.48;
}

.cookie-notice-text a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice-accept {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 11px;
}

@media (max-width: 620px) {
  .cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 15px;
    border-radius: 14px;
  }

  .cookie-notice-text {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .cookie-notice-accept {
    min-height: 40px;
  }
}

/* =========================================================
   CLIENT — АВТОФОРСАЖ.COM
   Фирменный длинный логотип и красный второй акцент.
   ========================================================= */

.brand-autoforsazh {
  min-width: 0;
}

.brand-logo.brand-logo-autoforsazh {
  width: 232px;
  height: 42px;
  flex: 0 0 232px;
  object-fit: contain;
  object-position: left center;
}

.hero-title-accent {
  color: var(--brand-secondary);
}

@media (max-width: 1100px) {
  .brand-logo.brand-logo-autoforsazh {
    width: 205px;
    height: 38px;
    flex-basis: 205px;
  }
}

@media (max-width: 620px) {
  .brand-logo.brand-logo-autoforsazh {
    width: 180px;
    height: 34px;
    flex-basis: 180px;
  }
}

@media (max-width: 390px) {
  .brand-logo.brand-logo-autoforsazh {
    width: 166px;
    height: 32px;
    flex-basis: 166px;
  }
}

