@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");


:root {
  --blue: #075CFF;
  --blue-2: #0045CA;
  --blue-dark: #00245E;
  --blue-soft: #EAF2FF;
  --text: #0B1F44;
  --muted: #64748B;
  --border: #D9E5F8;
  --bg: #F5F9FF;
  --white: #FFFFFF;
  --green: #12B981;
  --orange: #FF7A00;
  --shadow: 0 18px 50px rgba(0, 43, 115, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

.views-container {
  /* wrapper for all route views */
}

.view {
  display: none;
}

.view--active {
  display: block;
}

body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #fff 0%, #f4f8ff 45%, #ffffff 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 229, 248, .8);
}

.header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo { display: flex; align-items: center; min-width: 160px; }
.logo img { width: 158px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #273A5E;
  flex-wrap: nowrap; /* keep button in one line with menu on wide desktop */
}

.nav a:not(.btn) {
  position: relative;
  padding: 12px 0;
  white-space: nowrap;
}

.nav a.active,
.nav a:hover { color: var(--blue); }

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
}

/* Never apply the text-link active underline/color to CTA buttons in nav */
.nav .btn.active,
.nav .btn.active:hover {
  color: white !important;
}
.nav .btn.active::after {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s ease;
  font-size: 14px;
  font-family: inherit;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 92, 255, .18);
}

.btn--primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: white; }
.btn--outline { color: var(--blue); background: white; border-color: #9EC2FF; }
.btn--white { background: white; color: var(--blue); }
.btn--dark { background: var(--blue-dark); color: white; }

.mobile-toggle {
  display: none;
  border: 0;
  background: var(--blue-soft);
  color: var(--blue);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 24px;
  cursor: pointer;
}

.hero, .page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 62px;
}

.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(7, 92, 255, .14), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.78) 48%, rgba(234,242,255,.8) 100%);
  z-index: -2;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: var(--blue);
  font-weight: 850;
  font-size: 13px;
  margin-bottom: 22px;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.06;
  letter-spacing: -.045em;
  color: var(--blue-dark);
}

h1 span { color: var(--blue); }

.lead {
  margin: 24px 0 32px;
  max-width: 720px;
  color: #4B5F80;
  font-size: 18px;
  line-height: 1.65;
}

.hero__actions, .cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  position: relative;
  min-height: 420px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.2)),
    radial-gradient(circle at 70% 40%, rgba(7, 92, 255, .20), transparent 34%),
    linear-gradient(135deg, #EAF3FF, #FFFFFF);
  border: 1px solid #D8E7FF;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 28px;
}

.skyline {
  position: absolute;
  right: 22px; top: 28px; left: 28px;
  height: 170px;
  opacity: .56;
  background:
    linear-gradient(to top, rgba(0,36,94,.18), rgba(0,36,94,.05)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(7,92,255,.14) 23px 25px);
  clip-path: polygon(0 100%, 0 70%, 7% 70%, 7% 52%, 13% 52%, 13% 80%, 20% 80%, 20% 38%, 27% 38%, 27% 72%, 34% 72%, 34% 20%, 41% 20%, 41% 78%, 49% 78%, 49% 44%, 55% 44%, 55% 100%, 64% 100%, 64% 12%, 68% 12%, 68% 100%, 76% 100%, 76% 32%, 83% 32%, 83% 100%, 100% 100%);
}

.car-visual {
  position: absolute;
  right: -30px;
  bottom: 30px;
  width: 88%;
  height: 235px;
}

.car-body {
  position: absolute;
  left: 4%; right: 2%; bottom: 42px;
  height: 105px;
  border-radius: 70px 88px 38px 36px;
  background: linear-gradient(160deg, #ffffff 0%, #eaf1fb 45%, #cbd7e8 100%);
  box-shadow: inset -18px -20px 40px rgba(0,36,94,.12), 0 24px 50px rgba(0,36,94,.20);
  border: 2px solid rgba(255,255,255,.9);
}

.car-roof {
  position: absolute;
  left: 22%; bottom: 126px;
  width: 43%; height: 82px;
  background: linear-gradient(150deg, #fff, #e2ecfa);
  border-radius: 110px 110px 20px 10px;
  transform: skewX(-15deg);
  border: 2px solid rgba(255,255,255,.9);
}

.window {
  position: absolute;
  left: 31%; bottom: 146px;
  width: 30%; height: 48px;
  background: linear-gradient(145deg, #13315F, #0B6BFF);
  border-radius: 65px 70px 12px 8px;
  transform: skewX(-15deg);
  opacity: .9;
}

.wheel {
  position: absolute;
  bottom: 18px;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, #e8eef9 0 18%, #1d2d44 19% 42%, #07172d 43% 100%);
  border: 8px solid #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
}

.wheel--left { left: 18%; }
.wheel--right { right: 16%; }

.section { padding: 44px 0; }

.section-title {
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--blue-dark);
}

.section-subtitle {
  margin: -10px 0 28px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 800px;
}


.section-subtitle--full {
  max-width: none;
}

.export-activity-line {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card, .market-card, .panel, .faq-item, .check-panel {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 43, 115, .07);
}

.card { padding: 26px; }
.card h3 { margin: 0 0 10px; color: var(--blue-dark); font-size: 22px; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; }
.card-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  font-size: 26px; margin-bottom: 18px;
}

.marketplaces {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.market-card {
  padding: 22px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.market-icon {
  width: 62px; height: 62px;
  border-radius: 18px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  color: white; font-weight: 900; font-size: 20px;
}

.market-card h3 { margin: 0 0 8px; color: var(--blue-dark); font-size: 18px; }
.market-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.45; font-size: 13px; flex: 1; }
.market-card .btn { width: 100%; min-height: 42px; padding: 10px; font-size: 13px; }
.market-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}

.step { position: relative; padding: 18px 12px 12px; }
.step::after {
  content: "";
  position: absolute;
  top: 37px; left: 58px; right: -28px;
  border-top: 2px dashed #B8D2FF;
}
.step:last-child::after { display: none; }

.step-number {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue);
  color: white;
  font-weight: 900;
  margin-bottom: 14px;
  box-shadow: 0 10px 22px rgba(7, 92, 255, .22);
}

.step h3 { margin: 0 0 8px; color: var(--blue-dark); font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.panel { padding: 26px; }

.panel-title {
  margin: 0 0 22px;
  font-size: 24px;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-row, .form-row { display: grid; gap: 8px; margin-bottom: 12px; }
.calc-row { grid-template-columns: 1fr 150px 44px; align-items: center; }

label { color: #2B3E62; font-size: 14px; font-weight: 700; }

input, textarea, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #D8E2F1;
  border-radius: 10px;
  background: white;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: .2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(7, 92, 255, .10);
}

.currency {
  min-height: 44px;
  border: 1px solid #D8E2F1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #F8FBFF;
  font-weight: 850;
  font-size: 28px;
  color: var(--blue-dark);
}

/* На мобильных единицы валюты в калькуляторе сильно меньше и компактнее */
@media (max-width: 720px) {
  .currency {
    min-height: 38px;
    font-size: 18px;
    border-radius: 8px;
  }
}

.total {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EAF2FF, #D7E8FF);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.total span { font-weight: 850; color: var(--blue-dark); }
.total strong { font-size: clamp(26px, 3vw, 38px); color: var(--blue-dark); white-space: nowrap; }

.note { margin: 12px 0 0; color: #7A8BA8; font-size: 12px; line-height: 1.5; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row--full { grid-column: 1 / -1; }
textarea { resize: vertical; min-height: 106px; }
.submit-btn { width: 100%; margin-top: 12px; min-height: 56px; font-size: 16px; }

.status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ECFDF5;
  color: #066043;
  display: none;
  line-height: 1.45;
  font-size: 14px;
}

.check-panel { padding: 22px; }
.checks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; overflow: hidden; }
.check-item { padding: 20px 16px; border-right: 1px solid var(--border); min-height: 122px; }
.check-item:last-child { border-right: 0; }
.check-icon {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.check-item p { margin: 0; font-weight: 750; color: #1E3358; line-height: 1.35; font-size: 14px; }

.cta {
  margin: 30px 0 54px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 50%, rgba(255,255,255,.28), transparent 28%),
    linear-gradient(135deg, #075CFF, #003BAE);
  color: white;
  min-height: 210px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  padding: 36px 42px;
  box-shadow: var(--shadow);
}
.cta h2 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 42px); }
.cta p { margin: 0 0 26px; font-size: 18px; line-height: 1.55; opacity: .92; max-width: 640px; }

.cta-car {
  position: absolute;
  right: 36px; bottom: 30px;
  width: 340px; height: 128px;
  opacity: .95;
}
.cta-car .car-body { background: linear-gradient(160deg, #2278FF, #062A75); height: 74px; }
.cta-car .car-roof { background: linear-gradient(150deg, #70A8FF, #075CFF); bottom: 92px; height: 52px; }
.cta-car .window { bottom: 102px; height: 28px; }
.cta-car .wheel { width: 48px; height: 48px; bottom: 16px; border-width: 5px; }

.timeline { display: grid; gap: 14px; }
.timeline-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 18px 18px 18px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 43, 115, .04);
}
.timeline-num {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: white; font-weight: 900;
  font-size: 18px;
  align-self: start;
  margin-top: 2px;
}
.timeline-item h3 { margin: 0 0 4px; color: var(--blue-dark); font-size: 16.5px; }
.timeline-item p { margin: 0; color: #5A6E8C; font-size: 14px; line-height: 1.45; }

.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-question {
  width: 100%;
  border: 0;
  background: white;
  padding: 22px 24px;
  text-align: left;
  font: inherit;
  font-weight: 850;
  color: var(--blue-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.65;
}
.faq-item.open .faq-answer { display: block; }

.contact-box {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-dark), #0045CA);
  color: white;
}
.contact-box p { color: rgba(255,255,255,.8); line-height: 1.7; }
.contact-line { margin: 14px 0; font-weight: 800; }
.contact-line--messengers {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-line__icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-line__icons img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.contact-line__text {
  display: inline-flex;
  align-items: center;
}


.footer {
  background: #001D4C;
  color: white;
  padding: 46px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer img {
  width: 160px;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}

.footer p, .footer a { color: rgba(255,255,255,.72); line-height: 1.7; font-size: 14px; }
.footer h3 { margin: 0 0 12px; font-size: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }


.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contacts__line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-contacts__icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-contacts__icons img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  margin: 0;
  filter: none;
}


.footer-contacts-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1.45;
}
.footer-contact-info p {
  margin: 0;
}


.footer-contact-info__time {
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

@media (max-width: 1060px) {
  .marketplaces { grid-template-columns: repeat(3, 1fr); }
  .checks { grid-template-columns: repeat(3, 1fr); }
  .check-item { border-bottom: 1px solid var(--border); }
  .hero__grid, .cta, .grid-2 { grid-template-columns: 1fr; }
  .cta-car { opacity: .18; }
}

@media (max-width: 900px) {
  .tools-grid {
    gap: 36px;
  }
  .tools-grid > .panel {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .header__inner { min-height: 66px; gap: 12px; }
  .mobile-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute;
    top: 66px; left: 14px; right: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 14px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
    gap: 6px;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 10px 8px;
    font-size: 15px;
  }
  .nav a.active::after {
    display: none;
  }
  .nav .btn { width: 100%; min-height: 48px; }
  .hero, .page-hero { padding-top: 38px; }
  .hero-card { min-height: 300px; }
  .marketplaces, .steps, .checks, .footer__grid, .form-grid, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .calc-row { grid-template-columns: 1fr 100px 36px; }
  .total { align-items: flex-start; flex-direction: column; }
  .footer__bottom { flex-direction: column; }
}

/* Калькулятор: принудительно в одну колонку раньше, чтобы не было тесно */
@media (max-width: 720px) {
  .calc-row {
    grid-template-columns: 1fr;
    gap: 3px;
    margin-bottom: 8px;
  }
  .calc-row .currency {
    display: none;
  }
}

@media (max-width: 520px) {
  .container { width: min(100% - 24px, 1180px); }
  .logo img { width: 132px; }
  .hero__actions, .cta__actions { flex-direction: column; }
  .btn { width: 100%; }
  .panel, .check-panel, .cta, .card { padding: 18px; }
  .calc-row { grid-template-columns: 1fr; gap: 4px; margin-bottom: 10px; }
  .currency { display: none; }
  .panel-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .country-form-title {
    font-size: 14px;
    padding: 9px 12px;
    margin-bottom: 12px;
  }
  .grid-2 {
    gap: 14px;
  }
  .market-card {
    padding: 16px;
  }
  .market-card-actions {
    flex-direction: column;
    gap: 8px;
  }
  .market-card-actions .btn {
    width: 100%;
  }

  /* === КАЛЬКУЛЯТОР — сильные улучшения на мобильных === */
  #calculator .panel {
    padding: 14px 12px 16px;
    border-radius: 16px;
  }

  #calculator .panel-title {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .calc-country-selector {
    margin: 0 0 6px;
  }

  .country-form-title {
    margin-bottom: 6px;
    padding: 6px 9px;
    font-size: 12.5px;
    border-radius: 10px;
  }

  .calc-row {
    margin-bottom: 5px;
    gap: 2px;
  }

  .calc-row > label {
    font-size: 12px;
    margin-bottom: 1px;
    font-weight: 700;
    color: #334766;
  }

  .calc-row input {
    min-height: 44px;
    font-size: 15px;
    padding: 9px 10px;
    border-radius: 8px;
  }

  /* Кнопка таможни */
  .calc-row--button {
    margin: 2px 0 4px;
  }
  .calc-row--button .btn {
    min-height: 40px;
    font-size: 12.5px;
    padding: 0 10px;
  }

  /* Статус и заметки */
  .calc-row--rate-status small,
  .calc-row--customs-note small {
    font-size: 10px;
    line-height: 1.25;
  }

  .total {
    margin: 8px 0 4px;
    padding: 12px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #C9DCFF 0%, #A8C8FF 100%);
    border: 1px solid #6FA3FF;
  }

  .total span {
    font-size: 11.5px;
    font-weight: 700;
    color: #1E3A6E;
  }

  .total strong {
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    color: #00245E;
  }

  .note {
    font-size: 10px;
    margin-top: 5px;
    color: #4A5F7A;
    line-height: 1.3;
  }
}


/* Иллюстрации автомобиля удалены */
.hero__grid {
  grid-template-columns: 1fr;
  max-width: none;
}

.hero {
  padding: 76px 0 58px;
}

.cta {
  grid-template-columns: 1fr;
}

.cta-car,
.hero-card,
.car-visual,
.skyline {
  display: none !important;
}


/* В блоке площадок оставлены 2 карточки */
.marketplaces {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

@media (max-width: 820px) {
  .marketplaces {
    grid-template-columns: 1fr;
    max-width: none;
  }
}


/* Фиксация заголовка первого экрана */
.hero-title-fixed {
  max-width: 1600px;
  font-size: clamp(28px, 4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-title-fixed .hero-line {
  display: block;
  white-space: nowrap;
  color: var(--blue-dark);
}

.hero-title-fixed .hero-line--accent {
  color: var(--blue);
}

@media (max-width: 900px) {
  .hero-title-fixed .hero-line {
    white-space: normal;
  }
}

/* Улучшения заголовка на телефонах */
@media (max-width: 520px) {
  .hero-title-fixed {
    font-size: clamp(26px, 7.2vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }
  .hero {
    padding-top: 52px;
    padding-bottom: 42px;
  }
  .lead {
    font-size: 15.5px;
    margin: 16px 0 24px;
    line-height: 1.55;
  }
  .hero__actions {
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .market-icon {
    width: 112px;
    font-size: 16px;
  }
}


/* Точная настройка логотипов площадок */
.market-icon {
  width: 98px;
  height: 98px;
  border-radius: 24px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.market-icon--che168 span {
  display: block;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
  color: #ffffff;
  transform: translateY(-1px);
}

.market-icon--guazi {
  background: transparent !important;
}

.market-icon--guazi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

@media (max-width: 520px) {
  .market-icon {
    width: 90px;
    height: 90px;
  }

  .market-icon--che168 span {
    font-size: 25px;
  }
}


/* Тонкая настройка размеров логотипов площадок */
.market-icon--che168 span {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.04em;
  transform: translateY(-1px);
}

.market-icon--guazi img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@media (max-width: 520px) {
  .market-icon--che168 span {
    font-size: 21px;
  }
}


/* Исправление четкости логотипа Guazi */
.market-icon--guazi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: none;
}


/* Логотип Guazi по последнему образцу пользователя */
.market-icon--guazi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: none;
}


/* Подзаголовок страницы "Как купить" в одну строку на десктопе */
.lead--single-line {
  white-space: nowrap;
  max-width: none;
  font-size: 24px;
  line-height: 1.35;
}

@media (max-width: 1400px) {
  .lead--single-line {
    font-size: 22px;
  }
}

@media (max-width: 1100px) {
  .lead--single-line {
    white-space: normal;
    font-size: inherit;
    line-height: inherit;
  }
}


/* CTA-подзаголовок в одну строку на десктопе */
.cta__lead--single-line {
  white-space: nowrap;
  max-width: none;
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 1500px) {
  .cta__lead--single-line {
    font-size: 13px;
  }
}

@media (max-width: 1280px) {
  .cta__lead--single-line {
    white-space: normal;
    font-size: 17px;
    line-height: 1.55;
  }
}


/* FAQ: подзаголовок в одну строку на десктопе */
.lead--faq-single-line {
  white-space: nowrap;
  max-width: none;
  font-size: 24px;
  line-height: 1.35;
}

@media (max-width: 1500px) {
  .lead--faq-single-line {
    font-size: 22px;
  }
}

@media (max-width: 1150px) {
  .lead--faq-single-line {
    white-space: normal;
    font-size: inherit;
    line-height: inherit;
  }
}


/* Более широкая плашка "Связаться с менеджером" */
.btn--contact-wide {
  padding-left: 34px;
  padding-right: 34px;
  white-space: nowrap;
  border-radius: 18px;
}

@media (max-width: 900px) {
  .btn--contact-wide {
    padding-left: 28px;
    padding-right: 28px;
  }
}


/* Дополнительное увеличение ширины кнопки "Связаться с менеджером" */
.btn--contact-wide {
  min-width: 470px;
  padding-left: 44px;
  padding-right: 44px;
  white-space: nowrap;
  justify-content: center;
  border-radius: 22px;
}

@media (max-width: 1200px) {
  .btn--contact-wide {
    min-width: 420px;
    padding-left: 38px;
    padding-right: 38px;
  }
}

@media (max-width: 900px) {
  .btn--contact-wide {
    min-width: auto;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }
}


/* Финальная настройка кнопки "Связаться с менеджером":
   отступ слева и справа примерно как ширина трех букв */
.btn--contact-wide {
  min-width: auto;
  padding-left: 2.2em;
  padding-right: 2.2em;
  white-space: nowrap;
  border-radius: 18px;
}

@media (max-width: 900px) {
  .btn--contact-wide {
    width: 100%;
    padding-left: 2.2em;
    padding-right: 2.2em;
  }
}


/* Точная настройка: отступы у кнопки по ширине примерно трех букв */
.btn--contact-wide {
  width: auto;
  min-width: fit-content;
  padding-left: 3ch;
  padding-right: 3ch;
  white-space: nowrap;
  display: inline-flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .btn--contact-wide {
    width: 100%;
    min-width: auto;
    padding-left: 3ch;
    padding-right: 3ch;
  }
}


/* Финальная правка кнопки "Связаться с менеджером":
   внутренние отступы слева и справа примерно в ширину трех букв */
.btn--contact-wide {
  width: fit-content !important;
  min-width: 0 !important;
  padding-left: 3ch !important;
  padding-right: 3ch !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  justify-content: center !important;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .btn--contact-wide {
    width: 100% !important;
    padding-left: 3ch !important;
    padding-right: 3ch !important;
  }
}


/* О нас: фиксируем заголовок в 2 строки */
.about-title-fixed {
  font-size: clamp(34px, 4.6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  max-width: 1800px;
}

.about-title-fixed .about-title-line {
  display: block;
}

.about-title-fixed .about-title-line:first-child {
  white-space: nowrap;
}

@media (max-width: 1150px) {
  .about-title-fixed .about-title-line:first-child {
    white-space: normal;
  }
}


/* О нас: разбивка заголовка на 2 строки с сохранением текущего размера и цветов */
.about-title-two-lines .about-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .about-title-two-lines .about-line {
    white-space: normal;
  }
}


/* О нас: явная цветовая схема заголовка по образцу */
.about-title-two-lines {
  color: var(--blue-dark);
}

.about-title-two-lines .about-line {
  display: block;
  white-space: nowrap;
  color: var(--blue-dark);
}

.about-title-two-lines .about-accent {
  color: var(--blue);
}

@media (max-width: 1200px) {
  .about-title-two-lines .about-line {
    white-space: normal;
  }
}


/* О нас: история компании */
.about-lead {
  max-width: 980px;
}

.about-timeline .timeline-num {
  width: 72px;
  height: 46px;
  border-radius: 999px;
  font-size: 14px;
}

.about-timeline .timeline-item {
  grid-template-columns: 84px 1fr;
}


/* О нас: лицензия и банковские реквизиты */
.about-docs-grid {
  align-items: start;
}

.about-docs-btn {
  margin-top: 18px;
}

.bank-card {
  display: grid;
  gap: 14px;
}

.bank-row {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.bank-row:first-of-type {
  border-top: 0;
}

.bank-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bank-row strong {
  display: block;
  color: var(--blue-dark);
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

@media (max-width: 820px) {
  .bank-row strong {
    font-size: 13px;
  }
}


/* О нас: 3 карточки для лицензии, CNY и USD реквизитов */
.about-docs-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1060px) {
  .about-docs-grid {
    grid-template-columns: 1fr;
  }
}


/* FAQ: разделы из файла вопросов и ответов */
.faq-page {
  display: grid;
  gap: 42px;
}

.faq-section .section-title {
  margin-bottom: 14px;
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ol {
  margin: 0 0 12px 22px;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer li {
  margin: 6px 0;
}

.faq-answer a {
  color: var(--blue);
  font-weight: 700;
}


/* FAQ в формате каталожной страницы: боковое меню + контент */
.faq-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #D8E7FF;
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}

.faq-sidebar__link {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 14px;
  color: var(--blue-dark);
  font-weight: 850;
  border: 1px solid transparent;
  transition: .2s ease;
}

.faq-sidebar__link:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.faq-sidebar__link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 14px 28px rgba(7, 92, 255, .18);
}

.faq-page {
  gap: 34px;
}

.faq-section {
  scroll-margin-top: 110px;
  padding: 28px;
  border: 1px solid #D8E7FF;
  border-radius: 26px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
}

.faq-section .section-title {
  margin-bottom: 20px;
}

.faq-section .faq-list {
  gap: 12px;
}

@media (max-width: 980px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px;
  }

  .faq-sidebar__link {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .faq-sidebar {
    grid-template-columns: 1fr;
  }

  .faq-section {
    padding: 18px;
    border-radius: 20px;
  }
}


/* FAQ: возвращаем стиль карточек как раньше — белые раскрывающиеся блоки */
.faq-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.faq-section .section-title {
  margin: 0 0 20px;
}

.faq-section .faq-list {
  display: grid;
  gap: 16px;
}

.faq {
  background: #ffffff;
  border: 1px solid #D8E7FF;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 35, 70, .06);
}

.faq button {
  width: 100%;
  min-height: 76px;
  padding: 22px 26px;
  border: 0;
  background: #ffffff;
  color: var(--blue-dark);
  font-family: inherit;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.faq button span {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  transition: .2s ease;
}

.faq.open button span {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 26px 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.faq.open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ol {
  margin: 0 0 12px 22px;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer li {
  margin: 6px 0;
}

.faq-answer a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 640px) {
  .faq button {
    min-height: 64px;
    padding: 18px 18px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 18px 20px;
    font-size: 13px;
  }
}


/* FAQ click fix */
.faq .faq-answer {
  display: none;
}

.faq.open .faq-answer {
  display: block;
}

.faq.open button span {
  transform: none;
}


/* FAQ: корректная нумерация основных этапов покупки */
.faq-answer .faq-steps {
  margin: 0 0 0 22px;
  padding: 0;
}

.faq-answer .faq-steps > li {
  margin: 0 0 16px;
  padding-left: 6px;
}

.faq-answer .faq-steps > li::marker {
  font-weight: 900;
  color: var(--blue-dark);
}

.faq-answer .faq-steps p {
  margin: 0 0 8px;
}

.faq-answer .faq-steps p:last-child {
  margin-bottom: 0;
}


/* FAQ: точное оформление ответа «Как купить? (Основные этапы)» */
.faq-answer .faq-steps--exact {
  margin-left: 22px;
}

.faq-answer .faq-steps--exact > li {
  margin-bottom: 20px;
}

.faq-answer .faq-steps--exact p {
  margin: 0 0 12px;
}

.faq-answer .faq-steps--exact p:last-child {
  margin-bottom: 0;
}


.faq-sidebar__link.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)) !important;
  box-shadow: 0 14px 28px rgba(7, 92, 255, .18);
}

.faq-sidebar__link:not(.active) {
  color: var(--blue-dark) !important;
  background: transparent !important;
  box-shadow: none !important;
}


/* Кликабельные названия и логотипы площадок */
.market-title-link {
  color: inherit;
  text-decoration: none;
}

.market-title-link:hover {
  color: var(--blue);
}

.market-logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
}


/* О нас: команда */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 270px));
  justify-content: center;
  align-items: stretch;
  gap: 18px;
}

.team-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 270px));
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  margin: 0 auto 18px;
}

.team-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 14px 14px 16px;
  border: 1px solid #D7E3F8;
  border-radius: 30px;
  background: #FFFFFF;
  box-shadow: none;
  text-align: center;
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 4.85;
  overflow: hidden;
  border-radius: 24px;
  background: #E9EDF5;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  background: #E9EDF5;
}

.team-card h3 {
  margin: 0 0 6px;
  min-height: 1.25em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #16397E;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.team-card p {
  margin: 0;
  min-height: 2.8em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #6D7890;
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 1180px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 270px));
  }
}

@media (max-width: 820px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 270px));
  }
  .team-lead-grid {
    grid-template-columns: repeat(2, minmax(0, 270px));
  }
}

@media (max-width: 620px) {
  .team-grid,
  .team-lead-grid {
    grid-template-columns: minmax(0, 320px);
  }
  .team-card {
    padding: 14px 14px 16px;
    border-radius: 26px;
  }
  .team-photo-wrap,
  .team-photo {
    border-radius: 20px;
  }
  .team-card h3 {
    min-height: auto;
    font-size: 17px;
  }
  .team-card p {
    min-height: auto;
    font-size: 13px;
  }
}

/* О нас: языки коммуникации команды */
.language-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -8px 0 28px;
  padding: 18px 20px;
  border: 1px solid #D8E7FF;
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
  color: var(--blue-dark);
}

.language-note strong {
  margin-right: 4px;
  font-size: 16px;
}

.language-note span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 640px) {
  .language-note {
    align-items: flex-start;
  }
}


/* Форма заказа запчастей */
.parts-order-form {
  border: 1px solid #D7E3F8;
  border-radius: 34px;
  background: #FFFFFF;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(20, 75, 160, 0.08);
}

.form-grid--parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field span {
  color: #0B2D67;
  font-weight: 800;
  font-size: 15px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #D7E3F8;
  border-radius: 18px;
  background: #F8FBFF;
  color: #0B2D67;
  font: inherit;
  font-size: 16px;
  outline: none;
  padding: 15px 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #1262FF;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(18, 98, 255, 0.10);
}

.parts-order-form__note {
  margin-top: 16px;
  color: #6D7890;
  font-size: 15px;
  line-height: 1.45;
}

.parts-order-form__submit {
  margin-top: 20px;
  min-width: 240px;
}

@media (max-width: 760px) {
  .parts-order-form {
    padding: 18px;
    border-radius: 24px;
  }

  .form-grid--parts {
    grid-template-columns: 1fr;
  }

  .parts-order-form__submit {
    width: 100%;
    min-width: 0;
  }

  .parts-order-form__note {
    font-size: 14px;
  }
}

#parts-order-form {
  scroll-margin-top: 110px;
}




.howbuy-page-title {
  margin: 0 0 24px;
  max-width: 1000px;
  font-size: clamp(30px, 4.8vw, 48px);
}

/* Как купить: блок преимуществ — теперь красивая сетка */
.howbuy-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin-bottom: 12px;
}

.benefit {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px;
  border-left: 4px solid var(--blue);
  transition: transform .2s ease, box-shadow .2s ease;
}

.benefit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 43, 115, .08);
}

.benefit h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 850;
  color: var(--blue-dark);
  letter-spacing: -.02em;
}

.benefit p {
  margin: 0;
  color: #4B5F80;
  font-size: 14.5px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .howbuy-benefits {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .benefit {
    padding: 18px 16px;
    border-left-width: 3px;
  }
  .benefit h3 {
    font-size: 19px;
  }
  .benefit p {
    font-size: 14px;
  }
}


/* Иконки мессенджеров в шапке */
.header-contact-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.header-contact-link {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid #D9E5F8;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(0, 36, 94, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  flex: 0 0 auto;
}

.header-contact-link svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.header-contact-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 92, 255, 0.18);
  border-color: #9EC2FF;
}

.header-contact-link--whatsapp { color: #25D366; }
.header-contact-link--telegram { color: #26A5E4; }
.header-contact-link--max {
  color: #1677FF;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FF 100%);
}

@media (max-width: 1400px) {
  .nav {
    gap: 14px;
  }
  .nav .btn--contact-wide {
    padding-left: 2.8ch !important;
    padding-right: 2.8ch !important;
    min-width: 0 !important;
  }
}

@media (max-width: 1280px) {
  .nav {
    gap: 12px;
  }
  .nav .btn--contact-wide {
    padding-left: 2.4ch !important;
    padding-right: 2.4ch !important;
  }
}

@media (max-width: 1100px) {
  .nav {
    gap: 10px;
  }
  .nav .btn--contact-wide {
    padding-left: 2ch !important;
    padding-right: 2ch !important;
    font-size: 13px;
  }
}

/* On wide desktop keep the button inline with menu by further shrinking if needed */
@media (min-width: 1100px) {
  .nav .btn--contact-wide {
    font-size: 13.5px;
  }
}

@media (max-width: 1120px) {
  .header__inner {
    gap: 18px;
  }

  .nav {
    gap: 16px;
  }

  .header-contact-links {
    gap: 8px;
  }

  .header-contact-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .header-contact-link svg {
    width: 20px;
    height: 20px;
  }
}

/* Прячем иконки мессенджеров из горизонтальной шапки на средних экранах,
   чтобы не было тесно. Они остаются внутри мобильного меню. 
   Прячем чуть раньше, чтобы кнопка "Связаться с менеджером" всегда оставалась в одной строке с меню на десктопе. */
@media (max-width: 1050px) {
  .nav .header-contact-links {
    display: none;
  }
  .nav {
    gap: 10px;
  }
}

/* Дополнительно: на очень широких экранах даём кнопке чуть больше воздуха, но не позволяем ей выталкивать себя вниз */
@media (min-width: 1200px) {
  .nav {
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .header-contact-links {
    margin-left: 0;
    justify-content: center;
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 8px;
  }

  .nav .header-contact-links,
  .nav .btn--contact-wide {
    width: 100%;
  }

  .nav .header-contact-links {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .nav .header-contact-link {
    width: 100%;
    height: 46px;
    max-width: none;
    border-radius: 12px;
  }

  .nav .header-contact-link img {
    width: 22px;
    height: 22px;
  }
}

/* Ещё более компактная шапка на маленьких телефонах */
@media (max-width: 480px) {
  .header__inner { min-height: 60px; }
  .logo img { width: 118px; }
  .mobile-toggle {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .nav {
    top: 60px;
    left: 12px;
    right: 12px;
    padding: 14px 12px 16px;
  }
  .nav a.active::after {
    display: none;
  }
  .nav .header-contact-links {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .nav .header-contact-link {
    height: 42px;
  }
}


/* Оригинальные иконки мессенджеров в шапке */
.header-contact-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 4px;
}

.header-contact-link {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: visible;
  transition: transform .18s ease, opacity .18s ease;
}

.header-contact-link img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.header-contact-link svg {
  display: none;
}

.header-contact-link:hover {
  transform: translateY(-1px) scale(1.03);
  opacity: .95;
  box-shadow: none;
  border-color: transparent;
}

.header-contact-link--whatsapp,
.header-contact-link--telegram,
.header-contact-link--wechat,
.header-contact-link--max {
  color: inherit;
}

@media (max-width: 1120px) {
  .header-contact-links {
    gap: 10px;
  }

  .header-contact-link,
  .header-contact-link img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 820px) {
  .header-contact-links {
    margin-left: 0;
    justify-content: center;
    padding-top: 4px;
    width: 100%;
  }

  .nav .header-contact-links {
    display: flex;
  }

  .nav .header-contact-link {
    flex: 0 0 auto;
    max-width: none;
  }
}




.calc-row--button {
  align-items: center;
}

.calc-link-btn {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  white-space: normal;
  text-align: center;
}


.calc-link-btn--full {
  grid-column: 1 / -1;
}

/* Increased currency symbol size for better readability */
.calc-unit, .calc-input-unit, .field-unit, .currency-badge { font-size: 38px; }

.input-unit { font-size: 38px; }



.calc-row--converted input[readonly] {
  background: #FFFFFF;
  color: var(--text);
  font-weight: inherit;
}

/* Дополнительная полировка видимых вспомогательных строк калькулятора на телефоне */
@media (max-width: 640px) {
  .calc-row--usd-rate,
  .calc-row--converted,
  .calc-row--rate-status {
    margin-bottom: 4px;
  }
  .calc-row--usd-rate input,
  .calc-row--converted input {
    min-height: 42px;
    font-size: 15px;
  }
}


.calc-row--price-currency {
  grid-template-columns: 1fr 190px 82px;
  align-items: center;
  column-gap: 12px;
}

.calc-row--customs-wide {
  grid-template-columns: 1fr 190px 44px;
}

.calc-row--price-currency input { min-width: 0; }

.currency-toggle {
  position: relative;
  justify-self: end;
  width: 82px;
  height: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 3px;
  border: 1px solid #D8E2F1;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 3px 10px rgba(18, 55, 120, 0.06);
  overflow: hidden;
}

.currency-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 8px;
  background: linear-gradient(180deg, #2A67FF 0%, #214CCB 100%);
  box-shadow: 0 4px 10px rgba(33, 76, 203, 0.20);
  transition: transform .22s ease;
}

.currency-toggle[data-value="USD"] .currency-toggle__thumb {
  transform: translateX(100%);
}

.currency-toggle__option {
  position: relative;
  z-index: 1;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font-weight: 850;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .22s ease, opacity .22s ease;
}

.currency-toggle__option:hover {
  opacity: .95;
}

.currency-toggle__option.is-active {
  color: #FFFFFF;
}

.currency-toggle__option:focus-visible {
  outline: none;
}

.currency-toggle:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(7, 92, 255, .10), 0 8px 18px rgba(18, 55, 120, 0.10);
}

@media (max-width: 900px) {
  .calc-row--price-currency {
    grid-template-columns: 1fr 150px 76px;
    column-gap: 10px;
  }

  .calc-row--customs-wide {
    grid-template-columns: 1fr 150px 42px;
  }

  .currency-toggle {
    width: 76px;
    height: 42px;
    border-radius: 10px;
  }

  .currency-toggle__thumb {
    border-radius: 8px;
  }

  .currency-toggle__option {
    font-size: 24px;
  }

  .calc-row {
    gap: 6px;
    margin-bottom: 9px;
  }
}

@media (max-width: 640px) {
  .calc-row--price-currency {
    display: block;
    margin-bottom: 12px;
  }

  .calc-row--price-currency > label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: 700;
  }

  .calc-row--price-currency input#priceCny {
    width: 100%;
    min-height: 50px;
    font-size: 17px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .calc-row--price-currency .currency-toggle {
    display: inline-flex;
    width: auto;
    max-width: 132px;
    height: 38px;
    margin-top: 0;
    border-radius: 10px;
    border: 1px solid #D0DFF5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .calc-row--price-currency .currency-toggle__option {
    font-size: 18px;
    font-weight: 800;
  }
}

@media (max-width: 480px) {
  .calc-row--price-currency input#priceCny {
    min-height: 48px;
    font-size: 16px;
  }
  .calc-row--price-currency .currency-toggle {
    max-width: 120px;
    height: 36px;
  }
  .calc-row--price-currency .currency-toggle__option {
    font-size: 17px;
  }
}


/* Fix: long values in calculator inputs should not expand the whole calculator block */
.tools-grid,
.tools-grid > *,
.panel,
.calc-row,
.calc-row > * {
  min-width: 0;
}

.tools-grid {
  grid-template-columns: 1fr;
}

input,
textarea,
select {
  box-sizing: border-box;
}

.calc-row input,
.calc-row select {
  min-width: 0;
  max-width: 100%;
}

.calc-row--price-currency #priceCny {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}


.calc-row--rate-status {
  grid-template-columns: 1fr 194px 44px;
  margin-top: -8px;
  margin-bottom: 12px;
}

.calc-row--rate-status small {
  grid-column: 2 / 4;
  color: #7183A1;
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .calc-row--rate-status {
    grid-template-columns: 1fr 192px 42px;
  }
}

@media (max-width: 640px) {
  .calc-row--rate-status {
    grid-template-columns: 1fr;
  }

  .calc-row--rate-status small {
    grid-column: 1;
  }
}


.calc-country-selector {
  display: grid;
  gap: 10px;
  margin: -6px 0 18px;
}

.calc-country-selector__label {
  color: #7183A1;
  font-size: 13px;
  font-weight: 700;
}

.country-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.country-switch {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #D8E2F1;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--blue-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.country-switch:hover {
  border-color: #B6CBF2;
  background: #F7FAFF;
}

.country-switch.is-active {
  color: #FFFFFF;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 10px 22px rgba(7, 92, 255, .16);
}

/* Горизонтальная прокрутка чипов стран на мобильных — намного аккуратнее */
@media (max-width: 640px) {
  .calc-country-selector {
    margin-bottom: 10px;
  }
  .country-switches {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    margin-bottom: 4px;
  }
  .country-switches::-webkit-scrollbar {
    display: none;
  }
  .country-switch {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 13px;
    font-size: 12.5px;
    scroll-snap-align: start;
    border-radius: 999px;
  }
}

.currency.currency--code {
  font-size: 17px;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .country-switches {
    gap: 6px;
  }

  .country-switch {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .currency.currency--code {
    font-size: 15px;
  }
}


.country-form-title {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #D8E7FF;
  border-radius: 16px;
  background: #F7FAFF;
  color: var(--blue-dark);
  font-weight: 850;
  font-size: 15px;
}


/* WeChat QR popup */
.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wechat-modal.is-open {
  display: flex;
}

.wechat-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 22, 55, 0.48);
  backdrop-filter: blur(5px);
}

.wechat-modal__content {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid #D8E7FF;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 24px 70px rgba(0, 35, 90, 0.22);
  text-align: center;
}

.wechat-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid #D8E2F1;
  border-radius: 12px;
  background: #F8FBFF;
  color: var(--blue-dark);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.wechat-modal__content h2 {
  margin: 6px 0 8px;
  color: var(--blue-dark);
  font-size: 26px;
  line-height: 1.2;
}

.wechat-modal__content p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.wechat-modal__qr {
  width: min(310px, 100%);
  height: auto;
  display: block;
  margin: 0 auto 18px;
  border: 1px solid #E3ECFA;
  border-radius: 22px;
}

.wechat-modal__id {
  padding: 12px 14px;
  border-radius: 14px;
  background: #F4F8FF;
  color: var(--blue-dark);
  font-size: 15px;
}

body.wechat-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .wechat-modal__content {
    padding: 22px;
    border-radius: 24px;
  }

  .wechat-modal__content h2 {
    font-size: 22px;
    padding-right: 34px;
  }

  .wechat-modal__qr {
    width: min(270px, 100%);
  }
}


.calc-row--customs-note {
  grid-template-columns: 1fr 234px 44px;
  margin-top: -8px;
  margin-bottom: 12px;
}

.calc-row--customs-note small {
  grid-column: 2 / 4;
  color: #7183A1;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .calc-row--customs-note {
    grid-template-columns: 1fr 192px 42px;
  }
}

@media (max-width: 640px) {
  .calc-row--customs-note {
    grid-template-columns: 1fr;
  }

  .calc-row--customs-note small {
    grid-column: 1;
  }
}


/* Max QR popup */
.max-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.max-modal.is-open {
  display: flex;
}

.max-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 22, 55, 0.48);
  backdrop-filter: blur(5px);
}

.max-modal__content {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid #D8E7FF;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 24px 70px rgba(0, 35, 90, 0.22);
  text-align: center;
}

.max-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid #D8E2F1;
  border-radius: 12px;
  background: #F8FBFF;
  color: var(--blue-dark);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.max-modal__content h2 {
  margin: 6px 0 8px;
  color: var(--blue-dark);
  font-size: 26px;
  line-height: 1.2;
}

.max-modal__content p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.max-modal__qr {
  width: min(310px, 100%);
  height: auto;
  display: block;
  margin: 0 auto 18px;
  border: 1px solid #E3ECFA;
  border-radius: 22px;
}

.max-modal__id {
  padding: 12px 14px;
  border-radius: 14px;
  background: #F4F8FF;
  color: var(--blue-dark);
  font-size: 15px;
}

body.max-modal-open {
  overflow: hidden;
}


.contact-qr-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-qr-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 16px 12px 18px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.contact-qr-card__title {
  color: #ffffff;
  font-weight: 850;
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-qr-card__image {
  display: block;
  width: 100%;
  max-width: 150px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #ffffff;
  padding: 8px;
  box-sizing: border-box;
}

.contact-qr-card__meta {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 1200px) {
  .contact-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .contact-qr-grid {
    grid-template-columns: 1fr;
  }

  .contact-qr-card__image {
    max-width: 180px;
  }
}


.contact-hours {
  margin: 20px 0 26px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 800;
}

.contact-hours span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .contact-hours {
    font-size: 15px;
  }

  .contact-hours span {
    font-size: 14px;
  }
}


.contact-time {
  margin: -10px 0 28px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-time span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.contact-time strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .contact-time {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .contact-time strong {
    font-size: 22px;
  }
}

/* ============================================
   Общие улучшения мобильной версии (телефоны)
   ============================================ */
@media (max-width: 640px) {
  .section {
    padding: 32px 0;
  }
  .section-title {
    font-size: clamp(24px, 6.5vw, 32px);
    margin-bottom: 14px;
  }
  .section-subtitle {
    margin-bottom: 18px;
    font-size: 14.5px;
  }
  .panel {
    padding: 18px;
  }
  .panel-title {
    font-size: 19px;
    margin-bottom: 14px;
  }

  .tools-grid {
    gap: 32px;
  }

  .calc-row,
  .form-row {
    margin-bottom: 9px;
  }

  .total {
    margin-top: 12px;
    padding: 14px 16px;
  }
  .total strong {
    font-size: 26px;
  }

  .note {
    font-size: 11.5px;
  }

  .market-card,
  .card,
  .step {
    padding: 18px;
  }

  .step {
    margin-bottom: 4px;
  }

  .checks {
    gap: 0;
  }
  .check-item {
    padding: 16px 14px;
    min-height: 92px;
  }
  .check-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }

  .form-grid {
    gap: 10px;
  }

  input, textarea, select {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 15.5px;
  }

  .submit-btn {
    min-height: 52px;
    font-size: 15.5px;
  }

  .status {
    font-size: 13.5px;
  }
}

/* Ещё жёстче на самых маленьких экранах */
@media (max-width: 420px) {
  .container {
    width: calc(100% - 20px);
  }
  .hero-title-fixed {
    font-size: 25px;
    line-height: 1.1;
  }
  .lead {
    font-size: 14.8px;
  }
  .panel, .market-card, .card {
    padding: 15px;
  }
  .country-form-title {
    padding: 8px 11px;
    font-size: 13.5px;
  }
  .total strong {
    font-size: 24px;
  }
}
