/* Root */
:root {
  --bg: #EEF4F9;
  --surface: #FFFFFF;
  --text: #0B1B2B;
  --muted: #3F5468;
  --accent: #005E9C;
  --accent-text: #FFFFFF;
  --plate-bg: #0B1B2B;
  --plate-text: #EEF4F9;
  --line: #C4D3E0;
  --font: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius-btn: 10px;
  --radius-card: 14px;
  --shadow: 0 1px 2px rgb(11 27 43 / .06), 0 12px 32px rgb(11 27 43 / .08);
  --pad-x: clamp(16px, 4vw, 40px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, var(--bg) 0%, #F7FAFC 45%, var(--bg) 100%),
    radial-gradient(rgb(11 27 43 / .045) 1px, transparent 1px);
  background-size: auto, 5px 5px;
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 16px; }
p { margin: 0 0 16px; max-width: 68ch; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-narrow { max-width: 760px; }
.block { padding: clamp(64px, 8vw, 120px) 0; }
.block-title {
  font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem);
  line-height: 1.15;
}
.block-intro { color: var(--muted); margin-bottom: clamp(24px, 4vw, 40px); }
.block-figure { margin: 0; }
.block-figure img { width: 100%; border: 1px solid var(--line); }
.block-more { margin-top: 24px; max-width: 52ch; }
.block-more a { display: inline-block; word-break: keep-all; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--text);
  padding: 12px 20px; z-index: 100; border-radius: var(--radius-btn);
}
.skip:focus { left: 16px; top: 16px; }

/* Accent */
.accent {
  display: block;
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem);
  line-height: 1.08;
  color: var(--accent);
}

/* Header */
.topbar {
  position: sticky; top: 12px; z-index: 50;
  width: calc(100% - 2 * var(--pad-x));
  max-width: 1080px; margin: 12px auto 0;
}
.topbar-in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; min-height: 64px;
  background: rgb(255 255 255 / .92);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px clamp(10px, 2vw, 22px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.brand {
  font-weight: 700; font-size: 1.3rem; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em; text-align: center;
}
.brand-foot { color: var(--plate-text); }
.btn-top { justify-self: end; }

/* Menu button */
.menu-btn {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 10px;
  font: 600 1rem var(--font); color: var(--text);
  cursor: pointer; border-radius: var(--radius-btn);
  min-height: 44px;
}
.menu-btn-line {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-btn-line + .menu-btn-line { margin-top: 5px; }
.menu-btn-text { font-size: 15px; }
[aria-expanded="true"] .menu-btn-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .menu-btn-line:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .menu-btn-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--plate-bg); color: var(--plate-text);
  display: none; overflow-y: auto; padding: 96px var(--pad-x) 48px;
}
.menu.menu-open { display: block; z-index: 45; }
.menu-list { list-style: none; margin: 0 0 40px; }
.menu-link {
  display: inline-block;
  color: var(--plate-text); text-decoration: none;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  padding: 10px 4px; position: relative;
}
.menu-link::after {
  content: ""; position: absolute; left: 0; bottom: 4px;
  width: 100%; height: 3px; background: #7FB3D9;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.menu-link:hover::after, .menu-link:focus-visible::after,
.menu-link[aria-current="page"]::after { transform: scaleX(1); }
.menu address { font-style: normal; }
.menu ul { list-style: none; }
.menu ul li { padding: 4px 0; color: var(--plate-text); }
.menu ul li span { color: #A9C4D8; margin-right: 8px; font-size: 15px; }
.menu ul a { color: var(--plate-text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 0; border-radius: var(--radius-btn);
  font: 600 1rem var(--font); color: var(--accent-text);
  text-decoration: none; cursor: pointer;
  background-image: linear-gradient(135deg, #0077BD, var(--accent) 55%, #004A7C);
  background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 2px 6px rgb(0 94 156 / .25);
  transition: background-position .3s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background-position: 100% 0; }
.btn:focus-visible { outline: 3px solid #B85C00; outline-offset: 3px; }
.btn:active { box-shadow: none; transform: translateY(1px); }
.btn-ghost {
  background: none; color: var(--accent);
  border: 1px solid var(--accent);
}

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: 55fr 45fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem);
  line-height: 1.08; letter-spacing: -0.02em;
}
.hero-text { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.3rem); color: var(--muted); }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; aspect-ratio: 3 / 4; max-height: 80vh;
  object-fit: cover; border: 1px solid var(--line);
}

/* Tiles */
.tile-grid {
  display: grid; grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: clamp(20px, 3vw, 32px); margin-bottom: clamp(32px, 5vw, 48px);
}
.tile {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 1px 2px rgb(11 27 43 / .05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-title { font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem); }
.tile-text { color: var(--muted); margin: 0; flex: 1; }
.tile-dark { background: var(--plate-bg); border-color: var(--plate-bg); }
.tile-dark .tile-title { color: var(--plate-text); }
.tile-dark .tile-text { color: #C9D8E4; }

/* Prices */
.price-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px); align-items: stretch;
}
.price-card { display: flex; flex-direction: column; }
.price-tag {
  margin: auto 0 0; padding-top: 16px;
  font-weight: 700; color: var(--accent); font-size: 1.05rem;
}
.price-card.is-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

/* Form */
.form-wrap .lead-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 40px);
  max-width: 760px;
  display: grid; gap: 20px;
}
.field { display: grid; gap: 6px; }
.field-label { font-weight: 600; font-size: 1rem; }
.field-input {
  font: 400 1rem var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field-input::placeholder { color: #52677B; opacity: 1; }
.field-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-area { min-height: 120px; resize: vertical; }
.field.has-error .field-input { border-color: #A83300; }
.field-error { color: #8F2D00; font-size: 15px; margin: 0; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.form-note { color: var(--muted); font-size: 15px; margin: 0; }
.lead-form.is-busy .form-send { opacity: .6; pointer-events: none; }
.form-send { justify-self: start; }

/* Steps */
.steps-split {
  display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.steps { list-style: none; counter-reset: step; display: grid; gap: 24px; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--plate-bg); color: var(--plate-text);
  font-weight: 700; display: grid; place-items: center;
}
.step-title { font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem); }
.step-text { color: var(--muted); margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem;
  padding: 16px 0; list-style-position: inside;
}
.faq-item p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* Plate */
.plate {
  background: var(--plate-bg); color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px);
  align-items: center;
}
.plate .block-title { color: var(--plate-text); }
.plate-text { color: #C9D8E4; }
.prose .plate-text { color: #C9D8E4; }
.plate-text a { color: #8FC2E8; }
.plate-figure img { border: 1px solid #33465A; }

/* Float panel */
.float-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; padding: 12px var(--pad-x);
  background: rgb(238 244 249 / .95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.float-btn { width: 100%; }

/* Footer */
.foot {
  background: var(--plate-bg); color: var(--plate-text);
  padding: clamp(48px, 6vw, 80px) 0 24px; margin-top: clamp(64px, 9vw, 128px);
}
.foot-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid #33465A;
}
.foot-head { color: var(--plate-text); font-size: 1.1rem; }
.foot-note { color: #A9C4D8; font-size: 15px; }
.foot-list { list-style: none; display: grid; gap: 10px; }
.foot-link { color: #C9D8E4; text-decoration: none; font-size: 15px; }
.foot-link:hover { color: #FFFFFF; text-decoration: underline; }
.foot address { font-style: normal; }
.foot address ul { list-style: none; display: grid; gap: 8px; }
.foot address li { font-size: 15px; color: #C9D8E4; }
.foot address li span { color: #8FA9BF; margin-right: 8px; }
.foot address a { color: #C9D8E4; }
.foot-base { padding-top: 20px; }
.foot-copy { color: #8FA9BF; font-size: 14px; margin: 0; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 1.6vw + 1rem, 2rem); margin-top: 40px; }
.prose h2, .prose h3 { color: var(--text); }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden;
  font-size: 15px;
}
.prose th, .prose td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line); color: var(--text);
}
.prose th { background: var(--bg); }

/* Inner pages */
.page-head { padding-top: clamp(96px, 12vw, 160px); }
.page-head .block-intro { margin-bottom: 0; }

/* Reveal */
html.has-js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
html.has-js .reveal.is-shown { opacity: 1; transform: none; }

/* Breakpoints */
@media (min-width: 480px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.is-featured { grid-row: span 1; }
}

@media (min-width: 640px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .float-panel { display: block; }
}

@media (min-width: 768px) {
  .steps-split { grid-template-columns: 3fr 2fr; }
  .plate { grid-template-columns: 3fr 2fr; }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .price-card.is-featured { transform: scale(1.02); }
}

@media (min-width: 1024px) {
  .float-panel { display: none; }
  .foot-grid { grid-template-columns: 2fr 1.4fr 1.4fr 1.2fr; }
}

@media (min-width: 1280px) {
  .block { padding: 128px 0; }
}

@media (max-width: 639px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 10; max-height: none; }
  .hero-title { font-size: clamp(32px, 8.5vw, 40px); }
  .btn-top {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 13px;
  }
  .menu-btn { padding: 8px; }
  .menu-btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (max-height: 600px) {
  .hero { padding-top: 32px; }
  .hero-figure img { max-height: 320px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.has-js .reveal { opacity: 1; transform: none; }
}

/* Contacts */
.foot-grid > ul { list-style: none; display: grid; gap: 8px; margin: 0; }
.foot-grid > ul li { font-size: 15px; color: #C9D8E4; }
.foot-grid > ul li span { color: #8FA9BF; margin-right: 8px; }
.foot-grid > ul li a { color: #C9D8E4; }
.foot-grid > ul li a:hover { color: #FFFFFF; text-decoration: underline; }
.menu-in > ul li a { color: var(--plate-text); }
