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

/* Base */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--bg) 0%, #E2EDF6 55%, var(--bg) 100%);
  min-height: 100%;
}

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

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; overflow-wrap: break-word; }

h1 {
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

h3 { font-size: clamp(1.2rem, 0.6vw + 1rem, 1.5rem); margin: 0 0 10px; }

p { margin: 0 0 16px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-side); }
.wrap-narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.text-body { color: var(--muted); }

/* Header */
.topbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 2 * var(--pad-side)));
  z-index: 60;
}

.topbar-in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow-soft);
  min-height: 64px;
}

.topbar-in > :last-child { justify-self: end; }
.topbar-in > :first-child { justify-self: start; }

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.brand:hover { color: var(--accent); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 10px 16px;
  min-height: 48px;
  cursor: pointer;
}
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn:active { box-shadow: none; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  display: block;
  position: relative;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-open .menu-icon { background: none; }
.menu-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Menu overlay */
.menu {
  position: fixed;
  inset: 0;
  background: var(--plate-bg);
  color: var(--plate-text);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 5vh, 56px);
  padding: 96px var(--pad-side) 40px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
  overflow-y: auto;
}
.menu-open .menu { visibility: visible; opacity: 1; }

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-link {
  display: inline-block;
  color: var(--plate-text);
  font-size: clamp(1.4rem, 2.4vw + 1rem, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}
.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 3px;
  background: var(--accent-text);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}
.menu-link:hover::after, .menu-link:focus-visible::after, .menu-link[aria-current="page"]::after { transform: scaleX(1); }

.menu-side { color: var(--plate-text); border-top: 1px solid rgb(238 244 249 / .2); padding-top: 20px; }
.menu-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.menu-side li { font-size: 1rem; }
.menu-side a { color: var(--plate-text); }
.menu-side span { color: #AFC3D4; margin-right: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: none;
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(180deg, #0E6DB2 0%, var(--accent) 100%);
  background-size: 100% 200%;
  background-position: 0 0;
  color: var(--accent-text);
  box-shadow: 0 8px 20px rgb(0 94 156 / .28);
  transition: background-position .3s ease, box-shadow .25s ease, transform .15s ease;
}
.btn:hover { background-position: 0 -100%; }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.btn:active { box-shadow: none; transform: translateY(1px); }

.btn-plate {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.btn-plate:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero-split {
  padding-top: clamp(112px, 14vh, 152px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  align-content: center;
  padding-top: 8px;
}

.hero-title {
  margin-bottom: 20px;
  max-width: 16ch;
  text-wrap: balance;
}

.lead {
  display: inline-block;
  font-size: clamp(2.6rem, 5vw + 1rem, 5.2rem);
  color: var(--accent);
  line-height: 1;
}

.hero-sub { font-size: clamp(1.05rem, 0.8vw + 0.9rem, 1.3rem); color: var(--muted); margin-bottom: 28px; }
.hero-note {
  margin: 32px 0 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-photo { margin: 0; }
.hero-photo img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  width: 100%;
}

/* Sections */
.block { padding-block: var(--sect-gap); }
.block > .wrap > h2 { max-width: 68ch; margin-bottom: 18px; }
.block > .wrap > .text-body { max-width: 62ch; line-height: 1.65; margin-bottom: clamp(24px, 4vw, 40px); }

/* Tiles */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 24px;
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover, .tile:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tile p { color: var(--muted); }

.tile-dark { background: var(--plate-bg); color: var(--plate-text); border-color: var(--plate-bg); }
.tile-dark p { color: #C3D2DE; }
.tile-dark a { color: #7FB6DC; }

/* Map block */
.map-block {
  margin-top: clamp(32px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
}
.map-fig { margin: 20px 0 0; }
.map-fig img { aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); width: 100%; }
.map-fig figcaption {
  padding-top: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Prices */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
.price-card { display: flex; flex-direction: column; }
.price-val {
  margin-top: auto;
  padding-top: 24px;
  font-weight: 600;
  color: var(--accent);
}
.price-mid { border-color: var(--accent); border-width: 2px; }
.is-featured { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Plate */
.plate {
  background: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-lift);
}
.plate h2 { color: var(--plate-text); }
.plate .text-body { color: #C3D2DE; }
.plate a:not(.btn) { color: #7FB6DC; }

/* Form */
.quote-form { display: grid; gap: 20px; margin-top: 24px; }
.form-field { display: grid; gap: 6px; }
.field-label { font-size: 0.95rem; font-weight: 600; color: var(--plate-text); }
.field-input, .field-area {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  min-height: 48px;
  width: 100%;
}
.field-area { min-height: 120px; resize: vertical; }
.field-input::placeholder { color: var(--muted); }
.field-input:focus-visible, .field-area:focus-visible { outline: 3px solid #7FB6DC; outline-offset: 2px; border-color: #7FB6DC; }

.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: #C3D2DE; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #7FB6DC; flex: none; }

.form-note { font-size: 0.9rem; color: #C3D2DE; margin: 0; }
.form-submit { justify-self: start; }
.is-sending { opacity: .6; pointer-events: none; }
.field-error { color: #FFC2B0; font-size: 0.9rem; margin: 0; }
.form-field:has(.field-input:invalid:not(:placeholder-shown)) .field-label { color: #FFC2B0; }

/* Steps */
.step-list {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.step-list li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 24px 24px 68px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.step-list p { color: var(--muted); }
.step-fig { margin: clamp(28px, 4vw, 48px) 0 0; }
.step-fig img { aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); max-width: 560px; }

/* FAQ */
.questions { display: grid; gap: 12px; }
.questions details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  transition: box-shadow .25s ease;
}
.questions details[open] { box-shadow: var(--shadow-soft); }
.questions summary {
  font-weight: 600;
  cursor: pointer;
  list-style-position: outside;
}
.questions summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.questions p { color: var(--muted); margin-top: 12px; }

/* Gallery */
.gallery-grid { display: grid; gap: 24px; }
.gallery-grid img { border: 1px solid var(--line); object-fit: cover; width: 100%; }

/* Prose */
.text-body h2 { margin-top: 40px; }
.text-body h3 { margin-top: 32px; }
.text-body ul, .text-body ol { padding-left: 24px; color: var(--text); max-width: 68ch; }
.text-body table {
  border-collapse: collapse;
  width: 100%;
  max-width: 68ch;
  font-size: 0.95rem;
}
.text-body th, .text-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.text-body th { background: var(--surface); font-weight: 600; }

/* Inner pages */
.page-head { padding-top: clamp(120px, 16vh, 160px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-head .text-body { font-size: clamp(1.05rem, 0.8vw + 0.9rem, 1.25rem); max-width: 68ch; }

.contact-info ul, .contact-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-info li, .contact-block li { font-size: 1.05rem; }
.contact-info span, .contact-block span { color: var(--muted); margin-right: 6px; display: inline-block; min-width: 84px; }

.map-hint {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  color: var(--muted);
}

/* Floating bar */
.float-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  box-shadow: var(--shadow-lift);
}
.float-note { margin: 0; font-size: 0.95rem; }
.float-cta { min-height: 42px; padding: 0 20px; font-size: 0.95rem; }

/* Footer */
.site-foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 64px);
  margin-top: var(--sect-gap);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.foot-head { font-weight: 700; margin: 0 0 12px; font-size: 1rem; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-list a { text-decoration: none; font-size: 0.95rem; color: var(--muted); }
.foot-list a:hover { color: var(--accent); text-decoration: underline; }

.site-foot address { font-style: normal; color: var(--muted); font-size: 0.95rem; }
.site-foot address p { margin: 0 0 8px; max-width: 40ch; }
.site-foot .foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot .foot-col ul span { color: var(--muted); margin-right: 6px; }

.foot-line { border-top: 1px solid var(--line); padding-block: 20px; }
.foot-line p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Reveal */
html.ready .fade { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
html.ready .fade.fade-in { opacity: 1; transform: none; }

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

@media (min-width: 640px) {
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .float-bar { display: flex; }
  .quote-form { grid-template-columns: repeat(2, 1fr); }
  .quote-form .form-field:last-of-type, .quote-form .field-check, .quote-form .form-note, .quote-form .form-submit, .quote-form .field-area { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .hero-grid { align-items: center; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .questions { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .step-list { grid-template-columns: repeat(4, 1fr); }
  .float-bar { display: none; }
}

@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: 55fr 45fr; gap: 64px; }
  .hero-photo img { max-height: 720px; }
}

@media (max-width: 639px) {
  .topbar-cta { flex-shrink: 0; }
  .brand { font-size: 0.95rem; }
  .menu-word { display: none; }
}

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

/* Hero on small screens */
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: 2; max-width: 560px; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .hero-title { max-width: 20ch; }
}

/* Mobile guards */
@media (max-width: 639px) {
  .block > .wrap > * { min-width: 0; max-width: 100%; }
  .block img, figure img, .step-fig img, .map-fig img,
  .gallery-grid img, .hero-photo img { width: 100%; max-width: 100%; height: auto; }
  .step-fig, .map-fig, .map-block { max-width: 100%; }
}
