:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef7ff;
  --ink: #101827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --brand: #1faaf2;
  --brand-dark: #0b72b4;
  --brand-soft: #e1f4ff;
  --navy: #0c1726;
  --green: #11a75a;
  --green-soft: #e5f8ed;
  --gold: #f3a533;
  --gold-soft: #fff3dc;
  --shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.09);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

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

.page {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 251, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner {
  width: min(var(--container), calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  line-height: 1;
}

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

.brand-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 30px rgba(31, 170, 242, 0.32);
}

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

.button-ghost {
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.button-dark {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 14px 30px rgba(12, 23, 38, 0.26);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 730px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 16%, rgba(31, 170, 242, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(5, 12, 23, 0.94), rgba(5, 12, 23, 0.74), rgba(5, 12, 23, 0.24)),
    url("https://cdn.motor1.com/images/mgl/gLjb4/s1/2021-mercedes-maybach-s-class.jpg");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg), rgba(246, 248, 251, 0));
}

.hero-inner {
  width: min(var(--container), calc(100% - 40px));
  min-height: 730px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: center;
  padding: 86px 0 150px;
}

.hero-copy {
  max-width: 800px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 850;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 710px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

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

.hero-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.hero-number {
  padding: 24px;
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.hero-number span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.hero-number strong {
  display: block;
  margin-top: 10px;
  font-size: 58px;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-number p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.hero-mini-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hero-mini-grid div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-mini-grid strong,
.hero-mini-grid span {
  display: block;
}

.hero-mini-grid strong {
  font-size: 30px;
  line-height: 1;
}

.hero-mini-grid span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 760;
}

.section {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 0;
}

.section-tight {
  padding-top: 48px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2,
.contact-copy h2,
.cta-band h2,
.cabinet-panel h2 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-desc {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.scale-grid,
.condition-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.scale-card,
.condition-card,
.step-card,
.faq-item,
.calculator,
.contact-section,
.cta-band,
.cabinet-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.scale-card,
.condition-card,
.step-card {
  padding: 24px;
}

.scale-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scale-card strong {
  display: block;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.scale-card span {
  display: block;
  margin-top: 24px;
  color: #334155;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.45;
}

.scale-card.blue {
  background: linear-gradient(180deg, #fff, var(--brand-soft));
}

.scale-card.green {
  background: linear-gradient(180deg, #fff, var(--green-soft));
}

.scale-card.gold {
  background: linear-gradient(180deg, #fff, var(--gold-soft));
}

.scale-card.dark {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #16395a);
}

.scale-card.dark span {
  color: rgba(255, 255, 255, 0.78);
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.image-panel {
  min-height: 450px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(6, 18, 33, 0.06), rgba(6, 18, 33, 0.44)),
    url("https://hips.hearstapps.com/hmg-prod/images/2025-mercedes-maybach-gls-600-173-684896b713d86.jpg?crop=0.692xw:0.587xh;0.119xw,0.154xh&resize=1200:*");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.text-panel {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: #334155;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand-soft);
}

.check-list li::after {
  content: "✓";
  position: absolute;
  left: 6px;
  top: 2px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
}

.condition-card span,
.step-card span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 900;
}

.condition-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.condition-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.faq-item {
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 850;
  text-align: left;
}

.faq-item button::after {
  content: "+";
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 22px;
  line-height: 1;
}

.faq-item.is-open button::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
}

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

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.calculator {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
  padding: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(31, 170, 242, 0.16), transparent 34%),
    #fff;
}

.calculator-copy p:not(.section-kicker) {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.calc-controls {
  margin-top: 28px;
  padding: 20px;
  border-radius: 22px;
  background: var(--surface-soft);
}

.calc-controls label {
  display: block;
  margin-bottom: 14px;
  color: #334155;
  font-weight: 850;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 14px;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.range-row input[type="number"] {
  width: 116px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
}

.calculator-results {
  display: grid;
  gap: 14px;
}

.result-main {
  padding: 26px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #153b60);
  box-shadow: 0 20px 45px rgba(12, 23, 38, 0.22);
}

.result-main span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 850;
}

.result-main strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.result-list {
  display: grid;
  gap: 10px;
}

.result-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.result-list span {
  color: var(--muted);
  font-weight: 760;
}

.result-list strong {
  color: var(--brand-dark);
  font-size: 20px;
}

.result-note,
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cabinet-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(225, 244, 255, 0.94), rgba(255, 255, 255, 0.98));
}

.cabinet-panel p:not(.section-kicker) {
  max-width: 700px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.cta-band {
  width: min(var(--container), calc(100% - 40px));
  margin: 78px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(225, 244, 255, 0.98), rgba(255, 255, 255, 0.95)),
    #fff;
}

.contact-section {
  width: min(var(--container), calc(100% - 40px));
  margin: 78px auto 0;
  padding: 34px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.contact-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-points span {
  color: #334155;
  font-weight: 760;
}

.lead-form {
  display: grid;
  gap: 16px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

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

.field input:focus,
.field textarea:focus {
  border-color: rgba(31, 170, 242, 0.56);
  box-shadow: 0 0 0 4px rgba(31, 170, 242, 0.12);
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: #0f6832;
  background: #e6f8ee;
  font-weight: 760;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #0f6832;
  background: #e6f8ee;
}

.form-status.is-error {
  color: #8f1f2d;
  background: #fde8eb;
}

.contacts-section {
  width: min(var(--container), calc(100% - 40px));
  margin: 28px auto 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
}

.contacts-card,
.map-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.contacts-card {
  padding: 30px;
}

.contacts-card h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.contacts-card p:not(.section-kicker) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.phone-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.messenger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.messenger-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.messenger-button.telegram {
  background: #229ed9;
}

.messenger-button.whatsapp {
  background: #25d366;
}

.messenger-button.viber {
  background: #7360f2;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.social-grid a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  color: #334155;
  background: var(--surface-soft);
  font-weight: 850;
}

.social-grid a::after {
  content: "↗";
  color: var(--brand-dark);
}

.map-card {
  min-height: 430px;
  padding: 18px;
  overflow: hidden;
}

.map-placeholder {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 64% 42%, rgba(31, 170, 242, 0.18), transparent 22%),
    linear-gradient(135deg, #eef7ff, #ffffff 54%, #e9f8ef);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.map-placeholder::before,
.map-placeholder::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(31, 170, 242, 0.16);
}

.map-placeholder::before {
  width: 72%;
  height: 16px;
  top: 31%;
  left: -12%;
  transform: rotate(-12deg);
}

.map-placeholder::after {
  width: 60%;
  height: 14px;
  right: -10%;
  bottom: 32%;
  transform: rotate(18deg);
}

.map-pin {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 8px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--brand);
  box-shadow: 0 20px 50px rgba(31, 170, 242, 0.35);
  transform: rotate(-45deg);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 999px;
  background: #fff;
}

.map-label {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
}

.map-label strong,
.map-label span {
  display: block;
}

.map-label strong {
  font-size: 19px;
}

.map-label span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.site-footer {
  width: min(var(--container), calc(100% - 40px));
  margin: 54px auto 0;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

@media (max-width: 1120px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero-inner,
  .split-panel,
  .calculator,
  .contact-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 540px;
  }

  .scale-grid,
  .condition-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner,
  .section,
  .contact-section,
  .contacts-section,
  .cta-band,
  .site-footer {
    width: min(100% - 28px, var(--container));
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-actions .button {
    flex: 1;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 72px 0 112px;
  }

  .section-head,
  .cta-band,
  .cabinet-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .scale-grid,
  .condition-grid,
  .steps,
  .form-row {
    grid-template-columns: 1fr;
  }

  .range-row {
    grid-template-columns: 1fr;
  }

  .range-row input[type="number"] {
    width: 100%;
  }

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

  .map-card {
    min-height: 360px;
  }
}
