:root {
  --blue-950: #071f49;
  --blue-900: #092b66;
  --blue-800: #0b3a87;
  --blue-700: #0d4aa7;
  --blue-100: #eaf2ff;
  --gold: #d7a132;
  --gold-100: #fff4d9;
  --ink: #172033;
  --muted: #637083;
  --line: #e4eaf3;
  --bg: #f7faff;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 31, 73, .13);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 10px; z-index: 1000;
  background: var(--blue-900); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(228, 234, 243, .85);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; width: 170px; min-width: 138px; }
.brand img { width: 160px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 13px;
  color: var(--blue-950);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
}
.main-nav a:hover { background: var(--blue-100); color: var(--blue-800); }
.header-phone {
  background: var(--blue-900);
  color: var(--white);
  font-weight: 900;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 12px 30px rgba(11, 58, 135, .22);
  white-space: nowrap;
}
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 9px; cursor: pointer; margin-left: auto; }
.menu-toggle span { display: block; height: 3px; background: var(--blue-900); margin: 5px 0; border-radius: 5px; transition: .25s; }

.section { padding: 92px 0; }
.section-soft {
  background:
    radial-gradient(circle at 10% 10%, rgba(215, 161, 50, .16), transparent 26%),
    radial-gradient(circle at 88% 20%, rgba(11, 58, 135, .13), transparent 30%),
    linear-gradient(180deg, #f7faff, #ffffff);
}
.hero { position: relative; overflow: hidden; padding: 82px 0 96px; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(9, 43, 102, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(9, 43, 102, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  color: var(--blue-800);
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: 12px;
}
.eyebrow::before, .section-kicker::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 20px; }
.section-kicker.light { color: #cfe0ff; }
.hero h1, .section-heading h2, .intro-grid h2, .split-grid h2, .rachat-grid h2, .proof-grid h2, .contact-card h2 {
  margin: 0;
  color: var(--blue-950);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.hero h1 { font-size: clamp(42px, 6vw, 78px); max-width: 820px; }
.hero-lead { margin: 24px 0 0; font-size: clamp(18px, 2vw, 22px); color: #3f4b5f; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: var(--white); box-shadow: 0 18px 40px rgba(11, 58, 135, .25); }
.btn-primary:hover { box-shadow: 0 24px 52px rgba(11, 58, 135, .31); }
.btn-secondary { background: var(--white); color: var(--blue-900); border-color: var(--line); box-shadow: 0 12px 26px rgba(7, 31, 73, .08); }
.btn-white { background: var(--white); color: var(--blue-900); margin-top: 18px; }
.btn-full { width: 100%; }
.trust-list { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.trust-list span {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  color: var(--blue-950);
  font-weight: 800;
  padding: 9px 13px;
  border-radius: 999px;
}
.hero-card {
  position: relative;
  min-height: 550px;
  border-radius: 42px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.86), rgba(255,255,255,.46)),
    radial-gradient(circle at 20% 18%, rgba(215, 161, 50, .22), transparent 34%),
    linear-gradient(135deg, rgba(11, 58, 135, .18), rgba(11, 58, 135, .06));
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 290px; height: 290px; border-radius: 999px;
  background: rgba(215, 161, 50, .18);
  right: -96px; bottom: -96px;
}
.phone-visual {
  position: relative; z-index: 1;
  width: min(330px, 72%);
  aspect-ratio: 9 / 16;
  border-radius: 42px;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
  box-shadow: 0 28px 62px rgba(7, 31, 73, .34);
}
.phone-screen {
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  padding: 30px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.phone-screen .signal { width: 58px; height: 7px; background: var(--blue-900); opacity: .9; border-radius: 999px; margin-bottom: 64px; }
.phone-screen strong { color: var(--blue-900); font-size: 32px; letter-spacing: -.04em; }
.phone-screen small { color: var(--muted); font-weight: 800; margin-top: 4px; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: auto; width: 100%; }
.app-grid i { aspect-ratio: 1; border-radius: 17px; background: linear-gradient(135deg, var(--blue-100), #fff); border: 1px solid #dce7f7; }
.app-grid i:nth-child(2), .app-grid i:nth-child(5) { background: linear-gradient(135deg, var(--gold-100), #fff); }
.hero-info-card {
  position: absolute; z-index: 2; left: 30px; bottom: 30px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(228,234,243,.9);
  box-shadow: 0 18px 52px rgba(7,31,73,.12);
  border-radius: 22px;
  padding: 18px 20px;
  display: grid;
  gap: 3px;
}
.hero-info-card strong { color: var(--blue-900); font-size: 18px; }
.hero-info-card span { color: var(--muted); font-weight: 750; font-size: 14px; }

.intro-strip { padding: 54px 0; background: var(--blue-950); color: var(--white); }
.intro-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: start; }
.intro-grid h2 { color: var(--white); font-size: clamp(28px, 4vw, 46px); }
.intro-grid p { margin: 0; color: #d6e3f7; font-size: 18px; }

.section-heading { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.section-heading h2 { font-size: clamp(34px, 4.7vw, 56px); }
.section-heading p { color: var(--muted); font-size: 18px; margin: 20px 0 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card, .step-card, .estimate-box, .notice-card, .feature-panel, .contact-card, .map-card, .article-preview {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 44px rgba(7, 31, 73, .07);
}
.service-card { padding: 30px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(11,58,135,.2); }
.icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-100), #fff);
  border: 1px solid #dce7f7;
  border-radius: 18px;
  font-size: 26px;
  margin-bottom: 18px;
}
.service-card h3, .step-card h3, .feature-panel h3, .estimate-box h3 { margin: 0 0 10px; color: var(--blue-950); font-size: 22px; letter-spacing: -.02em; }
.service-card p, .step-card p, .estimate-box p { margin: 0; color: var(--muted); }

.section-blue { background: linear-gradient(135deg, var(--blue-950), var(--blue-800)); color: #fff; position: relative; overflow: hidden; }
.section-blue::before { content: ""; position: absolute; inset: -200px -140px auto auto; width: 430px; height: 430px; border-radius: 999px; background: rgba(215,161,50,.19); }
.split-grid { position: relative; display: grid; grid-template-columns: 1fr .85fr; gap: 46px; align-items: center; }
.split-grid h2 { color: #fff; font-size: clamp(34px, 4.8vw, 58px); }
.split-grid p { color: #d9e6fb; font-size: 18px; }
.feature-panel { padding: 32px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); box-shadow: none; backdrop-filter: blur(15px); }
.feature-panel h3 { color: #fff; }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.check-list li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 13px; font-weight: 800; color: #eef5ff; }
.check-list li::before { content: "✓"; color: var(--gold); margin-right: 8px; }

.rachat-grid { display: grid; grid-template-columns: 1fr .78fr; gap: 46px; align-items: start; }
.rachat-grid h2, .proof-grid h2, .contact-card h2 { font-size: clamp(34px, 4.6vw, 54px); }
.rachat-grid p, .proof-grid p, .contact-card p { color: var(--muted); font-size: 18px; }
.notice-card { padding: 22px; margin-top: 26px; display: grid; gap: 6px; border-left: 5px solid var(--gold); }
.notice-card strong { color: var(--blue-950); }
.notice-card span { color: var(--muted); }
.estimate-box { padding: 28px; }
.estimate-box form { display: grid; gap: 12px; margin-top: 20px; }
.estimate-box label { color: var(--blue-950); font-weight: 900; font-size: 14px; }
.estimate-box input, .estimate-box select {
  width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 13px 14px; color: var(--ink); background: #fbfdff; outline: none;
}
.estimate-box input:focus, .estimate-box select:focus { border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(13,74,167,.11); }
.prep-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: var(--blue-100);
  color: var(--blue-950);
  font-weight: 750;
}
.prep-result ul { margin: 10px 0 0; padding-left: 20px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { padding: 30px; position: relative; overflow: hidden; }
.step-card span { display: inline-flex; color: var(--gold); font-size: 44px; font-weight: 1000; line-height: 1; margin-bottom: 18px; }
.step-card::after { content: ""; position: absolute; width: 110px; height: 110px; background: var(--blue-100); border-radius: 999px; right: -44px; top: -44px; }

.proof-section { background: #fbfdff; }
.proof-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 46px; align-items: center; }
.article-preview { overflow: hidden; margin: 0; padding: 12px; }
.article-preview img { border-radius: 20px; max-height: 610px; width: 100%; object-fit: cover; object-position: top; }
.article-preview figcaption { color: var(--muted); font-weight: 800; padding: 12px 8px 4px; font-size: 14px; }

.faq-section { background: var(--white); }
.faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 13px; }
details { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(7,31,73,.05); overflow: hidden; }
summary { cursor: pointer; padding: 20px 22px; font-weight: 1000; color: var(--blue-950); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue-800); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 22px 22px; color: var(--muted); }

.contact-section { background: linear-gradient(180deg, #f7faff, #fff); }
.contact-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 28px; align-items: stretch; }
.contact-card { padding: 34px; }
.contact-lines { display: grid; gap: 13px; margin-top: 28px; }
.contact-line { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fbfdff; }
.contact-line > span { width: 45px; height: 45px; border-radius: 15px; background: var(--blue-100); display: grid; place-items: center; font-size: 22px; }
.contact-line div { display: grid; }
.contact-line strong { color: var(--blue-950); }
.contact-line small { color: var(--muted); font-weight: 750; }
.map-card { padding: 18px; background: linear-gradient(135deg, var(--blue-950), var(--blue-700)); color: #fff; min-height: 420px; }
.map-placeholder { height: 100%; min-height: 380px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; display: grid; place-items: center; align-content: center; text-align: center; gap: 10px; background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.16), transparent 36%); padding: 24px; }
.map-placeholder span { font-size: 58px; }
.map-placeholder strong { font-size: 30px; line-height: 1.1; }
.map-placeholder small { color: #d6e3f7; font-weight: 800; margin-bottom: 14px; }

.site-footer { background: var(--blue-950); color: #d9e6fb; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .6fr .8fr .6fr; gap: 34px; }
.footer-logo { width: 154px; background: #fff; border-radius: 18px; padding: 8px; margin-bottom: 14px; }
.footer-grid div { display: grid; align-content: start; gap: 9px; }
.footer-grid strong { color: #fff; margin-bottom: 5px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; color: #aec3e1; font-size: 14px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; left: 20px; right: 20px; top: 82px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 24px;
    padding: 16px; display: none; flex-direction: column; align-items: stretch; gap: 4px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .header-phone { display: none; }
  .hero-grid, .intro-grid, .split-grid, .rachat-grid, .proof-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 520px; }
  .service-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav-wrap { min-height: 72px; }
  .brand img { width: 136px; }
  .main-nav { top: 72px; left: 14px; right: 14px; }
  .hero { padding: 56px 0 70px; }
  .hero h1 { font-size: 42px; }
  .hero-actions .btn { width: 100%; }
  .hero-card { min-height: 470px; border-radius: 30px; }
  .hero-info-card { left: 18px; right: 18px; bottom: 18px; }
  .section { padding: 68px 0; }
  .service-grid, .steps-grid, .check-list, .footer-grid { grid-template-columns: 1fr; }
  .service-card, .step-card, .estimate-box, .contact-card { padding: 24px; border-radius: 22px; }
  .footer-bottom { flex-direction: column; }
}
