/* Root */
:root {
  --bg: #F2F7F7;
  --surface: #FFFFFF;
  --text: #0F2A2E;
  --muted: #46605F;
  --accent: #0B6E77;
  --accent-dark: #08525A;
  --accent-text: #FFFFFF;
  --plate-bg: #0B6E77;
  --plate-text: #FFFFFF;
  --line: #D8E5E5;
  --radius: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgb(15 42 46 / .06), 0 12px 32px rgb(15 42 46 / .08);
  --shadow-lift: 0 2px 4px rgb(15 42 46 / .07), 0 20px 44px rgb(15 42 46 / .12);
  --font-head: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --pad-side: clamp(16px, 4vw, 40px);
  --gap-band: clamp(64px, 9vw, 128px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4.6vw + 0.6rem, 4.2rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 2.6vw + 0.8rem, 2.8rem); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 0.6vw + 1rem, 1.5rem); }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad-side); }
.wrap-slim { max-width: 760px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-line {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 10px 18px; border-radius: var(--radius-pill);
  text-decoration: none; transition: top 0.2s ease;
}
.skip-line:focus { top: 8px; }

/* Announcement */
.announce { background: var(--plate-bg); color: var(--plate-text); text-align: center; }
.announce-text {
  margin: 0; padding: 8px var(--pad-side); font-size: 0.875rem;
  max-width: none; font-family: var(--font-body); line-height: 1.4;
}

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 70;
  padding: 18px 0;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.topbar.is-solid {
  background: rgb(242 247 247 / .94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
}
.mark {
  font-family: var(--font-head); font-weight: 750; font-size: 1.05rem;
  color: var(--text); text-decoration: none; text-align: center;
  letter-spacing: -0.01em;
}
.topbar-mail {
  margin: 0; font-size: 0.875rem; color: var(--muted);
  font-family: var(--font-body); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.topbar-mail a { color: inherit; }
.menu-btn {
  justify-self: end; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  color: var(--text);
  transition: border-radius 0.25s ease, background 0.25s ease, transform 0.15s ease;
}
.menu-btn:hover { border-radius: 12px; background: var(--bg); }
.menu-btn:focus-visible { outline: 3px double var(--accent); outline-offset: 3px; }
.menu-btn:active { transform: scale(0.97); }

/* Fullscreen menu */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--surface);
  display: flex; align-items: center;
  padding: 132px var(--pad-side) 48px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-grid {
  display: grid; gap: 40px; grid-template-columns: 1fr; width: 100%;
  max-height: 100%; overflow-y: auto;
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-link {
  display: inline-block; padding: 10px 0;
  font-family: var(--font-head); font-weight: 650;
  font-size: clamp(1.5rem, 2.4vw + 1rem, 2.2rem);
  color: var(--text); text-decoration: none; line-height: 1.2;
  transition: color 0.2s ease, transform 0.2s ease, border-radius 0.2s ease;
}
.menu-link:hover { color: var(--accent); transform: translateX(6px); }
.menu-link[aria-current="page"] { color: var(--accent); }
.menu-side { border-top: 1px solid var(--line); padding-top: 24px; }
.menu-side-tag {
  margin: 0 0 12px; font-family: var(--font-head); font-weight: 650;
  font-size: 1rem; color: var(--accent);
}
.menu-side ul, .bottom-contacts ul, .footer-contacts ul { list-style: none; margin: 0; padding: 0; }
.menu-side li, .bottom-contacts li, .footer-contacts li { margin: 0 0 8px; font-size: 1rem; }
.menu-side li span, .bottom-contacts li span, .footer-contacts li span {
  color: var(--muted); font-family: var(--font-head); font-size: 0.875rem; margin-right: 6px;
}
body.menu-locked { overflow: hidden; }

/* Buttons */
.pill, .pill-quiet {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  border-radius: var(--radius-pill); cursor: pointer; text-decoration: none;
  border: 1px solid transparent;
  transition: border-radius 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.pill { background: var(--accent); color: var(--accent-text); }
.pill:hover { background: var(--accent-dark); border-radius: 14px; color: var(--accent-text); }
.pill:focus-visible { outline: 3px double var(--accent); outline-offset: 3px; }
.pill:active { transform: scale(0.97); }
.pill-quiet {
  background: var(--surface); color: var(--text); border-color: var(--line);
  min-height: 44px; padding: 0 20px; font-size: 0.95rem;
}
.pill-quiet:hover, .pill-quiet.is-active {
  border-color: var(--accent); color: var(--accent); border-radius: 14px;
}
.pill-quiet:focus-visible { outline: 3px double var(--accent); outline-offset: 3px; }
.pill-quiet:active { transform: scale(0.97); }

/* Bands and background layer */
.band { position: relative; padding-block: var(--gap-band); overflow: hidden; }
.band-quiet { background: var(--surface); }
.band::before, .band::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%; opacity: 0.5;
}
.band::before {
  width: 420px; height: 420px; left: -160px; top: -120px;
  background: radial-gradient(circle at 30% 30%, rgb(11 110 119 / .14), rgb(11 110 119 / 0) 70%);
}
.band::after {
  width: 520px; height: 260px; right: -180px; bottom: -100px;
  border-radius: 260px 260px 0 0;
  background: linear-gradient(180deg, rgb(11 110 119 / .10), rgb(11 110 119 / 0));
}
.band-quiet::before { background: radial-gradient(circle at 30% 30%, rgb(11 110 119 / .10), rgb(11 110 119 / 0) 70%); }
.band .wrap { position: relative; z-index: 1; }
.band-lead { color: var(--muted); font-size: 1.06rem; max-width: 62ch; margin-bottom: 2rem; }

/* Hero */
.hero { padding-top: clamp(32px, 5vw, 64px); }
.hero-photo { margin: 0 0 32px; }
.hero-photo img {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  transform: scale(1.04); transition: transform 0.8s ease;
}
.hero-photo img { animation: hero-settle 0.8s ease forwards; }
@keyframes hero-settle { to { transform: scale(1); } }
.hero-grid {
  display: grid; gap: 32px; grid-template-columns: 1fr;
  align-items: start;
}
.hero-title { margin-bottom: 0.5em; }
.hero-side .pill { margin-top: 24px; justify-self: start; max-width: 320px; }
.hero-title { margin-bottom: 0.4em; }
.hero-side { display: grid; gap: 20px; align-content: start; }
.hero-text { color: var(--muted); margin: 0; max-width: 38ch; }

/* Manifesto */
.idea-grid {
  display: grid; gap: 40px; grid-template-columns: 1fr;
  align-items: start;
}
.idea-grid .prose p { max-width: 60ch; }
.idea-photo img { aspect-ratio: 4 / 3; border-radius: var(--radius); width: 100%; }
.idea-photo { background: var(--surface); padding: 14px; border-radius: calc(var(--radius) + 6px); }
.accent {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 4vw + 0.9rem, 3.6rem);
  line-height: 1.08; letter-spacing: -0.02em; color: var(--text);
}
.plate {
  position: relative; z-index: 1;
  background: var(--plate-bg); color: var(--plate-text);
  padding: 24px 28px; border-radius: var(--radius);
  margin: 8px 0 0; max-width: 640px;
  font-size: 1.05rem; line-height: 1.6;
  box-shadow: var(--shadow-soft);
}

/* Services */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-row .pill-quiet { padding: 10px 18px; min-height: 44px; }
.tile-grid {
  display: grid; gap: 24px; grid-template-columns: 1fr;
  grid-auto-rows: 1fr; align-items: stretch;
}
.tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; align-self: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.tile img { width: 100%; aspect-ratio: 16 / 10; flex: none; }
.tile-body { padding: 28px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.tile-body h3 { margin-bottom: 0.4em; }
.tile-body p { margin: 0; color: var(--muted); font-size: 1rem; }
.tile.is-hidden { display: none; }

/* FAQ */
.queries { display: grid; gap: 14px; max-width: 760px; }
.queries h3 { font-size: 1.3rem; }
.queries details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 24px;
  transition: box-shadow 0.3s ease;
}
.queries details[open] { box-shadow: var(--shadow-soft); }
.queries summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 650;
  font-size: 1.05rem; padding: 18px 0; list-style-position: outside;
}
.queries summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.queries details > p { color: var(--muted); margin: 0 0 20px; }

/* Form */
.form-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
.form-hint { color: var(--muted); font-size: 0.95rem; }
.brief-form { display: grid; gap: 18px; }
.brief-form .form {
  display: grid; gap: 18px; background: transparent;
}
.field { display: grid; gap: 8px; }
.field-tag {
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--text);
}
.field-box {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 16px; width: 100%;
}
.field-box::placeholder { color: var(--muted); opacity: 1; }
.field-box:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field.is-invalid .field-box { border-color: #9C2A2A; outline-color: #9C2A2A; }
.field-area { resize: vertical; min-height: 120px; }
.field-check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.95rem; color: var(--muted);
}
.field-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form-send { justify-self: start; }
.form-send[disabled] { opacity: 0.6; cursor: wait; }
.form-send.is-sending { opacity: 0.6; pointer-events: none; }

/* Prices */
.price-table { overflow-x: auto; }
.price-list {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); font-size: 1rem;
}
.price-list th, .price-list td {
  text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-list thead th {
  font-family: var(--font-head); font-weight: 650; color: var(--text);
  background: var(--bg); font-size: 0.95rem;
}
.price-list tbody th[scope="row"] { font-family: var(--font-head); font-weight: 650; }
.price-list td { color: var(--muted); }
.price-list tbody tr:last-child th, .price-list tbody tr:last-child td { border-bottom: 0; }

/* Scope steps */
.scope-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: step; }
.step-list li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px 24px 76px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.step-list li::before {
  content: counter(step); position: absolute; left: 24px; top: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--plate-bg); color: var(--plate-text);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  display: grid; place-items: center;
}
.step-list h3 { margin-bottom: 0.3em; font-size: 1.15rem; }
.step-list p { margin: 0; color: var(--muted); font-size: 1rem; }
.scope-photo img { aspect-ratio: 3 / 4; width: 100%; border-radius: var(--radius); }
.scope-photo { background: var(--bg); padding: 14px; border-radius: calc(var(--radius) + 6px); }

/* Inner page head */
.page-head { padding-top: clamp(40px, 6vw, 72px); }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }

/* Prose */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-head); font-weight: 650; }

/* Contacts block */
.contact-block { display: grid; gap: 12px; max-width: 560px; }
.contact-block address { font-style: normal; color: var(--muted); line-height: 1.6; }
.contact-block address p { margin: 0 0 6px; }

/* Thanks / 404 */
.page-wide { text-align: center; }
.page-wide .wrap { display: grid; gap: 20px; justify-items: center; }
.page-wide .plate { margin: 0; }
.page-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; list-style: none; padding: 0; margin: 8px 0 0; }

/* Float bar */
.float-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgb(242 247 247 / 0), rgb(242 247 247 / .96) 40%);
  pointer-events: none;
}
.float-bar .pill { pointer-events: auto; box-shadow: var(--shadow-soft); }

/* Footer */
.bottom {
  background: var(--surface); border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 80px); margin-top: 0;
}
.bottom-grid {
  display: grid; gap: 40px; grid-template-columns: 1fr;
}
.bottom-brand .mark { font-size: 1.1rem; margin: 0 0 16px; }
.bottom-brand address { font-style: normal; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.bottom-brand address p { margin: 0 0 8px; max-width: 46ch; }
.bottom-tag {
  margin: 0 0 14px; font-family: var(--font-head); font-weight: 650;
  font-size: 1rem; color: var(--accent);
}
.bottom-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bottom-links a { color: var(--text); text-decoration: none; }
.bottom-links a:hover { color: var(--accent); text-decoration: underline; }
.bottom-contacts ul { display: grid; gap: 10px; }
.bottom-line { margin-top: 40px; padding-block: 24px 32px; border-top: 1px solid var(--line); }
.bottom-copy { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Reveal */
html.is-live .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.is-live .reveal.is-shown { opacity: 1; transform: translateY(0); }

/* Media 480 */
@media (min-width: 480px) {
  .menu-grid { grid-template-columns: 1fr; gap: 32px; }
  .tile-body { padding: 28px 30px; }
}

/* Media 640 */
@media (min-width: 640px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .bottom-grid { grid-template-columns: repeat(2, 1fr); }
  .page-links { justify-content: center; }
}

/* Media 768 */
@media (min-width: 768px) {
  .menu-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
  .menu-side { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 40px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 64px; }
  .idea-grid { grid-template-columns: 1.1fr 1fr; }
  .scope-grid { grid-template-columns: 1.2fr 0.8fr; }
  .bottom-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .float-bar { display: none; }
}

/* Media 1024 */
@media (min-width: 1024px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .step-list { gap: 20px; }
  .menu-link { font-size: 2rem; }
}

/* Media 1280 */
@media (min-width: 1280px) {
  .wrap { max-width: 1200px; }
  .hero-photo img { aspect-ratio: 16 / 8; }
  .tile-body { padding: 30px 32px; }
}

/* Short screens */
@media (max-height: 600px) {
  .hero { padding-top: 24px; }
  .band { padding-block: clamp(48px, 8vh, 96px); }
  .menu { padding-top: 132px; }
  .menu-link { font-size: 1.4rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.is-live .reveal { opacity: 1; transform: none; }
  .hero-photo img { transform: scale(1); }
}

/* Small screens */
@media (max-width: 479px) {
  .topbar-mail { display: none; }
  .topbar-row { grid-template-columns: auto 1fr; }
  .topbar .mark { justify-self: start; text-align: left; }
  .topbar .menu-btn { grid-column: 1 / -1; justify-self: stretch; }
  .plate { padding: 16px 20px; line-height: 1.5; font-size: 0.95rem; max-width: 60ch; }
  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero-side .pill { margin-top: 24px; }
  .float-bar .pill { max-width: 320px; width: 100%; text-align: center; }
}

@media (max-width: 639px) {
  .hero-side .pill + .pill { display: none; }
}

@media (min-width: 768px) {
  .hero-side .pill { margin-top: 28px; }
}

/* Menu open state */
body.menu-locked .topbar,
body.menu-locked .topbar.is-solid {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.menu-btn[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.menu-btn[aria-expanded="true"]:hover {
  border-radius: 12px;
}
