/*
Theme Name: АкваБуд
Theme URI: https://akvabud.ua
Author: АкваБуд
Author URI: https://akvabud.ua
Description: Кастомна тема для сайту АкваБуд. Усі блоки головної сторінки редагуються з адмінки через ACF.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akvabud
*/

:root {
  --navy: #1F3A6A;
  --navy-700: #16294C;
  --navy-900: #0E1B33;
  --navy-50: #EEF2F9;

  --accent: #3FB8C8;
  --accent-600: #2E9CAB;
  --accent-50: #E8F7F9;

  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --bg-sand: #F3F1EC;
  --line: #E6EAF0;
  --line-strong: #D2D8E2;

  --ink: #1A1F2B;
  --ink-2: #3F4756;
  --ink-3: #6B7480;
  --ink-4: #98A0AD;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --shadow-md: 0 6px 24px -8px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.05);
  --container: 1180px;
  --pad: clamp(20px, 5vw, 56px);
}

html[data-accent="turquoise"] { --accent:#3FB8C8; --accent-600:#2E9CAB; --accent-50:#E8F7F9; }
html[data-accent="orange"]    { --accent:#FF7A3D; --accent-600:#E5632A; --accent-50:#FFEFE6; }
html[data-accent="green"]     { --accent:#1F8A5B; --accent-600:#176E48; --accent-50:#E6F3EC; }

*,*::before,*::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
html { -webkit-text-size-adjust:100%; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width:100%; display:block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }
p  { margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { display: none; }
.section--navy .eyebrow { color: rgba(255,255,255,.7); }

.h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  margin: 14px 0 18px;
}
.lede {
  color: var(--ink-2);
  font-size: clamp(16px, 1.8vw, 18px);
  max-width: 56ch;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 14px;
  font-weight: 700; font-size: 16px;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-align: center;
  min-width: 44px;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--accent) 70%, transparent),
              0 2px 4px -2px color-mix(in oklab, var(--accent) 50%, transparent);
}
.btn--primary:hover {
  background: var(--accent-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px color-mix(in oklab, var(--accent) 75%, transparent),
              0 3px 6px -2px color-mix(in oklab, var(--accent) 50%, transparent);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px -4px color-mix(in oklab, var(--accent) 60%, transparent);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.btn--lg { height: 60px; padding: 0 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn .arrow { width: 18px; height: 18px; }

/* Header: same on all pages (matches the homepage design). */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform .35s ease;
  will-change: transform;
}
.header.is-visible { transform: translateY(0); }
@media (min-width: 960px) {
  .header, .header.is-visible {
    position: sticky;
    transform: none;
    transition: none;
  }
}
.header__row {
  display: flex; align-items: center; gap: 18px;
  height: 68px;
}
.nav { display: none; gap: 4px; margin-left: 20px; flex-wrap: nowrap; }
.nav a {
  padding: 9px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; font-size: 14.5px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.is-cta {
  color: #fff; font-weight: 700;
  background: var(--accent);
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 6px 16px -8px color-mix(in oklab, var(--accent) 70%, transparent);
}
.nav a.is-cta:hover {
  background: var(--accent-600);
  color: #fff;
  box-shadow: 0 8px 18px -8px color-mix(in oklab, var(--accent) 75%, transparent);
}

.header__phone {
  margin-left: auto;
  display: none;
  align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
  color: var(--navy);
  white-space: nowrap;
}
.header__phone .dot {
  width: 8px; height: 8px; border-radius: 999px; background: #25C16A;
  box-shadow: 0 0 0 4px rgba(37,193,106,.18);
}

.burger {
  margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.burger svg { width: 22px; height: 22px; }
.phone-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px;
  border-radius: 999px;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: 14px;
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .burger { display: none; }
  .header__phone { display: flex; }
  .phone-pill { display: none; }
}

.drawer {
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(14,27,51,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.drawer[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 86%);
  background: #fff;
  padding: 22px 22px 28px;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.drawer[aria-hidden="false"] .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__close {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer a {
  padding: 14px 14px;
  border-radius: 14px;
  color: var(--ink); font-weight: 600; font-size: 17px;
}
.drawer a.is-cta {
  background: var(--accent); color: #fff; margin-top: 4px;
  text-align: center; font-weight: 700;
  box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--accent) 70%, transparent);
}
.drawer__phone {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 14px;
}
.drawer__phone strong { display: block; font-size: 20px; color: var(--navy); }

.wordmark {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: 'Manrope', sans-serif;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
}
.wordmark__img { display: block; height: 40px; width: auto; }
@media (max-width: 480px) { .wordmark__img { height: 32px; } }
.wordmark__a { font-weight: 800; font-size: 22px; padding-right: 2px; }
.wordmark__bud {
  font-weight: 800; font-size: 18px;
  color: #fff; background: var(--navy);
  padding: 6px 8px 5px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}
.wordmark__sub {
  margin-left: 10px;
  font-size: 10px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.1;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
@media (max-width: 480px) { .wordmark__sub { display: none; } }

/* Homepage-specific hero rules are scoped to body.home so they don't leak to subpages. */
.home .hero { position: relative; overflow: hidden; padding-top: clamp(40px, 10vw, 80px); padding-bottom: clamp(40px, 7vw, 80px); isolation: isolate; }
@media (min-width: 960px) { .home .hero { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); } }
.home .hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: -2;
  pointer-events: none;
}
.home .hero__splash {
  position: absolute;
  top: -5%; right: 0;
  width: clamp(280px, 35vw, 500px);
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: .65;
}
.home .hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(60px, 10vh, 120px);
  background: linear-gradient(180deg, rgba(245,247,250,0) 0%, var(--bg-soft) 100%);
  z-index: 0;
  pointer-events: none;
}
.home .hero .container { position: relative; z-index: 1; }
.home .hero__inner { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
@media (max-width: 959px) {
  .home .hero__inner > .hero__copy   { order: 1; }
  .home .hero__inner > .hero__trust  { order: 2; }
  .home .hero__inner > .hero__visual { order: 3; }
}
@media (min-width: 960px) {
  .home .hero__inner {
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: auto auto auto auto;
    align-items: start;
    column-gap: clamp(28px, 4vw, 56px);
    row-gap: 18px;
  }
  .home .hero__inner > .hero__copy { display: contents; }
  .home .hero__inner > .hero__copy > h1         { grid-column: 1; grid-row: 1; }
  .home .hero__inner > .hero__copy > .hero__lede { grid-column: 1; grid-row: 2; }
  .home .hero__inner > .hero__copy > .hero__cta  { grid-column: 1; grid-row: 3; margin-top: 10px; }
  .home .hero__inner > .hero__visual { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
  .home .hero .hero__trust  {
    grid-column: 1 / -1; grid-row: 4;
    margin: 32px auto 0;
    justify-self: center;
    max-width: 920px;
    column-gap: 48px;
    row-gap: 8px;
  }
  .home .hero .hero__trust .num  { font-size: clamp(44px, 5.8vw, 54px); }
  .home .hero .hero__trust .lbl  { font-size: 24px; }
  .home .hero .hero__trust .desc { font-size: 22px; margin-top: 8px; }
  .home .hero__visual .hero__card {
    aspect-ratio: auto;
    height: 100%;
    max-width: none;
    margin: 0;
  }
  .home .hero__visual .hero__product { max-height: 100%; }
  .home .hero__visual .hero__product--back  { width: 52%; height: 92%; top: 2%; left: -2%; bottom: auto; right: auto; transform: rotate(-2deg); }
  .home .hero__visual .hero__product--front { width: 76%; height: 78%; bottom: 0%; right: -6%; top: auto; left: auto; transform: rotate(2deg); }
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-50);
  color: var(--navy);
  font-weight: 600; font-size: 13px;
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
}
.hero__badge .badge-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }

.home .hero h1 {
  margin-top: 18px;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .home .hero h1 { text-wrap: balance; }
}
.home .hero__h1-accent {
  display: block;
  margin-top: 14px;
  color: var(--accent-600);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.18;
}
html[data-accent="turquoise"] .home .hero__h1-accent { color: #1F6E78; }
.home .hero__lede { margin-top: 22px; font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-2); max-width: 52ch; }
.home .hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.hero__phone-link {
  color: var(--ink-2); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 8px;
}
.hero__phone-link strong { color: var(--navy); }

.home .hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 14px;
  row-gap: 4px;
  max-width: 540px;
  text-align: center;
}
@media (min-width: 720px) { .home .hero__trust { column-gap: 28px; } }
@media (min-width: 960px) {
  .home .hero__trust {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
}
.home .hero__trust > div {
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 4px;
  position: relative;
}
.home .hero__trust > div + div::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8%;
  bottom: 8%;
  width: 1.5px;
  background: color-mix(in oklab, var(--navy) 55%, transparent);
}
@media (min-width: 720px) {
  .home .hero__trust > div + div::before { left: -14px; }
}
.home .hero__trust .num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(26px, 3.4vw, 32px); color: var(--navy); line-height: 1; }
.home .hero__trust .lbl { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.2; letter-spacing: 0.01em; }
.home .hero__trust .desc { font-size: 13px; color: var(--ink-3); line-height: 1.35; margin-top: 4px; }

.home .hero__visual { position: relative; }
@media (min-width: 960px) { .home .hero__visual { min-height: 380px; } }
.home .hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #EAF3F7 0%, #DDEAF1 100%);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-md);
}
@media (min-width: 960px) { .home .hero__card { aspect-ratio: 4 / 5; } }
html[data-accent="orange"] .home .hero__card { background: linear-gradient(180deg, #FBEDE3 0%, #F3DCC8 100%); }
html[data-accent="green"]  .home .hero__card { background: linear-gradient(180deg, #E5EFE8 0%, #D3E3D8 100%); }

.home .hero__card--products {
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}
.home .hero__product { position: absolute; object-fit: contain; filter: drop-shadow(0 18px 36px rgba(15,40,80,.22)); }
.home .hero__product--back {
  width: 55%; top: 0; left: 0; z-index: 1; height: 100%;
  transform: none;
}
.home .hero__product--front {
  width: 60%; bottom: 0; right: -8%; z-index: 2; height: 75%;
  transform: none;
  filter: drop-shadow(0 22px 40px rgba(15,40,80,.25));
}
@media (max-width: 600px) {
  .home .hero__product--back  { width: 50%; left: 0; }
  .home .hero__product--front { width: 60%; right: -6%; }
}

.placeholder-photo {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(31,58,106,.06) 0 1px, transparent 1px 14px);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 22px;
  color: var(--navy);
}
.placeholder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.placeholder-photo .tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff;
  padding: 6px 10px; border-radius: 6px;
  font-size: 11px; letter-spacing: .04em;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.silhouette {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 78%; aspect-ratio: 3/4;
  background:
    radial-gradient(circle at 50% 18%, var(--navy) 0 18%, transparent 18.5%),
    linear-gradient(180deg, transparent 28%, var(--navy) 28% 100%);
  -webkit-mask: radial-gradient(ellipse 60% 18% at 50% 28%, #000 99%, transparent 100%),
                linear-gradient(180deg, transparent 22%, #000 33% 95%, transparent 100%);
  mask: radial-gradient(ellipse 60% 18% at 50% 28%, #000 99%, transparent 100%),
        linear-gradient(180deg, transparent 22%, #000 33% 95%, transparent 100%);
  opacity: .85;
}
.hero__chip {
  position: absolute; padding: 14px 16px;
  background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-2);
}
.hero__chip strong { font-size: 15px; color: var(--navy); display: block; }
.hero__chip .icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-50); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.hero__chip--1 { top: 18px; left: -14px; }
.hero__chip--2 { bottom: 24px; right: -14px; }
@media (max-width: 600px) {
  .hero__chip--1 { left: 4px; }
  .hero__chip--2 { right: 4px; }
}

.hero__drop {
  position: absolute; right: -120px; top: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle at 50% 50%, var(--accent-50), transparent 65%);
  z-index: -1; pointer-events: none;
}

.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  text-align: left; color: inherit;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pcard--photo { background-color: #EAF3F7; background-size: cover; background-position: center bottom; background-repeat: no-repeat; }
.pcard--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.92) 55%, rgba(255,255,255,.55) 78%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.pcard--photo > * { position: relative; z-index: 1; }
.pcard--photo .pcard__icon { display: none; }
.pcard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pcard__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-50); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.pcard__icon svg { width: 26px; height: 26px; }
.pcard h3 { font-size: 18px; }
.pcard p { color: var(--ink-2); font-size: 15px; }
.pcard__more {
  margin-top: auto;
  color: var(--navy); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 18px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(15,40,80,.06);
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.pcard__more::after { content: "→"; transition: transform .2s ease; }
.pcard:hover .pcard__more { background: var(--accent); border-color: var(--accent); color: var(--navy-900); box-shadow: 0 6px 18px rgba(125,201,197,.35); }
.pcard:hover .pcard__more::after { transform: translateX(3px); }

.howto {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px)  { .howto { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .howto { grid-template-columns: repeat(4, 1fr); } }
.step {
  counter-increment: step;
  position: relative;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.step__n {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

.product {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.product__visual {
  background: linear-gradient(180deg, var(--navy-50), #fff);
  padding: 24px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
  overflow: hidden;
}
@media (min-width: 960px) {
  .product__visual {
    min-height: 0;
    height: 420px;
    padding: 36px;
  }
}
.product__visual img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center; display: block; }
.product__visual::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line);
}
.product__body { padding: 28px; display: flex; flex-direction: column; min-width: 0; text-align: center; align-items: center; flex: 1; }
.product__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-600);
}
html[data-accent="turquoise"] .product__kicker { color: #1F6E78; }
.product h3 {
  font-size: clamp(22px, 2.6vw, 26px);
  margin: 8px 0 10px;
}
.product__tag { color: var(--navy); font-weight: 600; font-size: 15.5px; }
.product__desc { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.product__group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.product__desc, .product__tag { width: 100%; }
.product__group strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.product__group ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.product__group ul li {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.45;
}
.product__specs {
  margin-top: 18px; padding: 16px 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
}
.product__specs li { list-style: none; }
.product__specs .v { font-weight: 800; color: var(--navy); font-size: 18px; }
.product__specs .k { color: var(--ink-3); font-size: 12.5px; }
.product__cta { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.product__cta .btn { height: 46px; padding: 0 18px; font-size: 14.5px; }

.prod-illus { width: 100%; height: 240px; }

.stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
  text-align: center;
}
@media (min-width: 720px) {
  .stat { padding: 32px 28px; gap: 16px; }
}
.stat__n {
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.stat__n em { font-style: normal; color: var(--accent); font-size: clamp(40px, 6.4vw, 80px); line-height: 1; display: inline-block; }
.stat__n:has(br) em { font-size: clamp(30px, 3.6vw, 48px); }
.stat__l { font-size: 13.5px; color: rgba(255,255,255,.78); line-height: 1.45; }
@media (min-width: 720px) {
  .stat__l { font-size: 15px; line-height: 1.5; }
}

@media (min-width: 1000px) {
  .grid-4:has(.stat) {
    grid-template-rows: auto 1fr;
    row-gap: 18px;
    column-gap: 16px;
  }
  .stat {
    grid-row: span 2;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 18px;
  }
  .stat__n { align-self: center; }
  .stat__l { align-self: start; }
}

.videos { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .videos { grid-template-columns: repeat(4, 1fr); } }

.vcard {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-700);
  position: relative;
  aspect-ratio: 16 / 9;
  border: 0; padding: 0; margin: 0;
  color: #fff;
  display: block;
  cursor: pointer;
}
.vcard__cover {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.vcard:hover .vcard__cover { transform: scale(1.04); }
.vcard::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,27,51,.78) 100%);
  z-index: 1;
  pointer-events: none;
}
.vcard[data-loaded="1"]::before { display: none; }
.vcard[data-loaded="1"] iframe { z-index: 2; }
.vcard__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform .2s ease;
}
.vcard:hover .vcard__play { transform: translate(-50%,-50%) scale(1.06); }
.vcard__play svg { width: 20px; height: 20px; margin-left: 3px; }
.vcard__title {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  z-index: 2;
  font-size: 14px; font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-wrap: balance;
}
.vcard iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.about { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.about__photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #EAF3F7, #DDEAF1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__photo .placeholder-photo .tag { background: rgba(255,255,255,.95); }
.about__sig {
  margin-top: 22px;
  font-family: 'Manrope', sans-serif;
  color: var(--navy);
  font-weight: 700;
}
.about__sig small { display: block; color: var(--ink-3); font-weight: 500; margin-top: 2px; }

.contacts {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contacts { grid-template-columns: 1.05fr .95fr; } }
.contacts__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.contacts__row { display: flex; gap: 14px; align-items: flex-start; }
.contacts__row .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-50); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contacts__row .k { font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contacts__row .v { font-size: 16px; color: var(--ink); font-weight: 600; }
.contacts__row .v a { color: inherit; }
.contacts__row .v a:hover { color: var(--navy); }

.contacts__map {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 320px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(31,58,106,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,58,106,.06) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
}
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contacts__pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  width: 44px; height: 44px; border-radius: 999px 999px 999px 0;
  background: var(--navy);
  transform-origin: bottom left;
  rotate: -45deg;
  box-shadow: 0 8px 24px rgba(31,58,106,.3);
}
.contacts__pin::before { content: ""; position: absolute; inset: 8px; border-radius: 999px; background: var(--accent); }
.contacts__map .addr {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: #fff; border-radius: 12px; padding: 14px 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px; color: var(--ink-2);
}
.contacts__map .addr strong { color: var(--ink); display: block; margin-bottom: 2px; }

.cta-banner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative; overflow: hidden;
}
@media (min-width: 800px) { .cta-banner { grid-template-columns: 1.2fr auto; } }
.cta-banner h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.1; color: #fff; }
.cta-banner p { color: rgba(255,255,255,.78); margin-top: 10px; max-width: 50ch; }
.cta-banner__wave {
  position: absolute; right: -120px; top: -180px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: .18;
  pointer-events: none;
}
.cta-banner .btns { display: flex; gap: 10px; flex-wrap: wrap; z-index: 1; }

.footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding: 56px 0 28px; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin: 0 0 14px; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer a { color: rgba(255,255,255,.78); transition: color .15s; display: inline-block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer__brand .wordmark__a { color: #fff; }
.footer__brand .wordmark__bud { background: var(--accent); color: var(--navy-900); }
.footer__brand p { margin-top: 16px; font-size: 14.5px; max-width: 36ch; }
.footer__bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.5);
}
.footer__socials { display: flex; gap: 8px; margin-top: 14px; }
.footer__socials a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.footer__socials a:hover { background: rgba(255,255,255,.12); }
.footer__socials svg { width: 18px; height: 18px; }

.lockup { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lockup .h2 { margin: 0; }

.water-wave {
  display: block; width: 100%; height: 40px;
  color: var(--bg-soft);
}

@media (max-width: 959px) {
  .eyebrow { display: flex; justify-content: center; }

  .hero__copy { text-align: center; }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }

  .lockup { justify-content: center; }
  .h2, .lede { text-align: center; }
  .section h2, .section h3 { text-align: center; }
  .section .lede { margin-left: auto; margin-right: auto; }

  .section .howto + div[style*="flex"] { justify-content: center !important; }

  .product__body { text-align: center; align-items: center; }
  .product__specs { justify-items: center; }
  .product__cta { justify-content: center; }

  .pcard { text-align: center; align-items: center; }
  .pcard__more { align-self: center; }

  .step { text-align: center; }
  .step__n { display: flex; margin-left: auto; margin-right: auto; }

  .about { text-align: center; }
  .about__photo { margin-left: auto; margin-right: auto; }
  .about__sig, .about blockquote { text-align: center; }

  #useful .container > div[style*="margin-top:28px"] { text-align: center; }

  .cta-banner { text-align: center; }
  .cta-banner p { margin-left: auto; margin-right: auto; }
  .cta-banner .btns { justify-content: center; }

  .footer__grid > div { text-align: center; }
  .footer__brand .wordmark { display: inline-flex; }
  .footer__brand .wordmark__img { margin-left: auto; margin-right: auto; }
  .footer__brand p { margin-left: auto; margin-right: auto; }
  .footer__socials { justify-content: center; }
  .footer h4 { text-align: center; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ─────────── GUIDE / SINGLE ARTICLE ─────────── */
.guide__title {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-top: 14px;
}
.guide__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}
.guide__cover-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.guide__content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.guide__content h2,
.guide__content h3,
.guide__content h4 {
  color: var(--ink);
  margin: 36px 0 14px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.guide__content h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
.guide__content h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; }
.guide__content h4 { font-size: clamp(17px, 1.8vw, 20px); font-weight: 700; }
.guide__content > h2:first-child,
.guide__content > h3:first-child { margin-top: 0; }
.guide__content p { margin: 0 0 18px; }
.guide__content ul,
.guide__content ol { margin: 0 0 22px 24px; padding: 0; }
.guide__content li { margin: 0 0 8px; }
.guide__content li::marker { color: var(--accent-600); }
.guide__content strong { color: var(--ink); font-weight: 700; }
.guide__content a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 3px; }
.guide__content a:hover { color: var(--navy); }
.guide__content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  font-style: italic;
}
.guide__content blockquote p:last-child { margin-bottom: 0; }
.guide__content img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
  max-width: 100%;
  height: auto;
}
.guide__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.guide__content th,
.guide__content td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}
.guide__content th { color: var(--navy); font-weight: 700; }

/* Useful article cards (re-used on /useful/ and on single guide related block) */
.articles {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .articles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .articles { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.article-card__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-600);
  background: var(--accent-50);
  padding: 5px 10px;
  border-radius: 999px;
}
.article-card h3 {
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
}
.article-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.article-card__more {
  margin-top: auto;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-card__more::after { content: "→"; transition: transform .2s ease; }
.article-card:hover .article-card__more::after { transform: translateX(3px); }

/* ─────────── CONTACT FORM ─────────── */
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-form { grid-template-columns: .9fr 1.1fr; align-items: start; }
}
.contact-form__intro .h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.15;
}
.contact-form__hint {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.contact-form__hint p { margin: 0 0 6px; }
.contact-form__hint a { color: var(--navy); }
.contact-form__hint a:hover { color: var(--accent-600); }

.contact-form__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form__field--wide { grid-column: 1 / -1; }
.contact-form__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.contact-form__label em {
  color: var(--accent-600);
  font-style: normal;
  margin-left: 2px;
}
.contact-form__form input[type="text"],
.contact-form__form input[type="tel"],
.contact-form__form select,
.contact-form__form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form__form input:focus,
.contact-form__form select:focus,
.contact-form__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.contact-form__form textarea { resize: vertical; min-height: 84px; }
.contact-form__form input:invalid:not(:placeholder-shown),
.contact-form__form input.is-invalid,
.contact-form__form textarea.is-invalid {
  border-color: #DC4646;
}

.contact-form__consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-2); line-height: 1.45;
  margin-top: 4px;
}
.contact-form__consent input { margin-top: 3px; transform: scale(1.1); accent-color: var(--accent); }

.contact-form__actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 8px;
}
.contact-form__actions .btn { min-width: 220px; }
.contact-form__actions .btn[disabled] { opacity: .6; cursor: progress; }
.contact-form__error {
  color: #DC4646;
  font-size: 14px;
  font-weight: 600;
}

.contact-form__success {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
}
.contact-form__check {
  width: 80px; height: 80px; margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--accent-50);
  color: var(--accent-600);
  display: flex; align-items: center; justify-content: center;
}
.contact-form__success h3 {
  font-size: clamp(22px, 2.8vw, 28px);
  color: var(--navy);
  margin: 0 0 8px;
}
.contact-form__success p {
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0 auto;
}

/* When success is shown, hide the form for visual focus */
.contact-form.is-sent .contact-form__intro,
.contact-form.is-sent .contact-form__form { display: none; }
.contact-form.is-sent .contact-form__success { grid-column: 1 / -1; }
