/* ============================================================
   Tidal Veranda — Mount Maunganui, Tauranga
   Single stylesheet. Coastal contemporary.
   ------------------------------------------------------------
   1  tokens
   2  reset & base
   3  typography helpers
   4  layout primitives
   5  header / navigation
   6  hero + coordinate strip
   7  tide strip
   8  sections & editorial blocks
   9  cards, grids, rails
   10 rooms
   11 stats
   12 forms
   13 tables & legal pages
   14 footer
   15 age gate, cookie banner, overlays
   16 night (dark) treatment
   17 utilities, motion, print
   ============================================================ */

/* ── 1. tokens ─────────────────────────────────────────────── */
:root{
    /* colour */
    --shell:      #f7f4ef;   /* page background, warm off-white */
    --paper:      #ffffff;
    --sand:       #ece3d5;   /* blocks, bands */
    --sand-deep:  #ddd0bb;
    --ink:        #14201e;   /* headings */
    --body:       #3d4a47;   /* running text */
    --muted:      #6d7b77;
    --line:       #d9d2c6;
    --line-soft:  #e7e1d7;
    --sea:        #0e3b3e;   /* primary brand */
    --tide:       #2c7a78;   /* accent, links */
    --tide-soft:  #e2eeec;
    --pohutu:     #b8503a;   /* secondary accent, sparing */
    --night:      #101a1a;   /* dark bands, casino */
    --night-2:    #182524;
    --night-line: #2c3a38;
    --night-text: #c3cfcc;

    /* type */
    --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* metrics */
    --wrap: 1240px;
    --wrap-narrow: 760px;
    --gut: 24px;
    --head-h: 76px;
    --strip-h: 34px;

    /* other */
    --radius: 2px;
    --shadow: 0 1px 2px rgba(20,32,30,.05), 0 8px 30px rgba(20,32,30,.06);
    --shadow-lift: 0 2px 6px rgba(20,32,30,.07), 0 18px 48px rgba(20,32,30,.10);
    --ease: cubic-bezier(.22,.61,.36,1);
}

@media (min-width: 900px){
    :root{ --gut: 40px; --head-h: 88px; }
}

/* ── 2. reset & base ───────────────────────────────────────── */
*,*::before,*::after{ box-sizing: border-box; }

html{
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--head-h) + 20px);
}

body{
    margin: 0;
    background: var(--shell);
    color: var(--body);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 350;
    line-height: 1.68;
    letter-spacing: .002em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
}

body.locked{ overflow: hidden; }

img,picture,video{ max-width: 100%; display: block; }
img{ height: auto; background: var(--sand); }

a{ color: var(--tide); text-decoration: none; }
a:hover{ color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }

button,input,select,textarea{ font: inherit; color: inherit; }

hr{ border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

::selection{ background: var(--tide); color: #fff; }

:focus-visible{
    outline: 2px solid var(--tide);
    outline-offset: 3px;
    border-radius: 1px;
}

.skip{
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--sea); color: #fff; padding: 12px 20px;
}
.skip:focus{ left: 0; }

/* ── 3. typography ─────────────────────────────────────────── */
h1,h2,h3,h4{
    font-family: var(--display);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -.012em;
    margin: 0 0 .5em;
}

h1{ font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2{ font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3{ font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.15; }
h4{ font-size: 1.12rem; font-family: var(--sans); font-weight: 600; letter-spacing: .01em; line-height: 1.35; }

p{ margin: 0 0 1.15em; }
p:last-child{ margin-bottom: 0; }

strong{ font-weight: 600; color: var(--ink); }
em{ font-style: italic; }

.eyebrow{
    display: block;
    font-family: var(--sans);
    font-size: .70rem;
    font-weight: 600;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: var(--tide);
    margin: 0 0 18px;
}
.eyebrow--muted{ color: var(--muted); }

.lede{
    font-size: clamp(1.12rem, 1.6vw, 1.32rem);
    line-height: 1.55;
    color: var(--ink);
    font-weight: 300;
}

.small{ font-size: .875rem; line-height: 1.6; color: var(--muted); }
.tiny{ font-size: .78rem; line-height: 1.55; color: var(--muted); }

.caption{
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 12px;
}

.serif-num{ font-family: var(--display); font-weight: 400; }

/* ── 4. layout primitives ──────────────────────────────────── */
.wrap{
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: var(--gut);
    padding-right: var(--gut);
}
.wrap--narrow{ max-width: var(--wrap-narrow); }

section{ position: relative; }

.sect{ padding: clamp(56px, 8vw, 104px) 0; }
.sect--tight{ padding: clamp(40px, 5vw, 64px) 0; }
.sect--sand{ background: var(--sand); }
.sect--paper{ background: var(--paper); }
.sect--soft{ background: var(--tide-soft); }
.sect--rule{ border-top: 1px solid var(--line); }

.sect-head{
    max-width: 820px;
    margin-bottom: clamp(32px, 4vw, 56px);
}
.sect-head--center{ margin-left: auto; margin-right: auto; text-align: center; }
.sect-head p{ color: var(--body); }

.hairline{
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.cols{
    display: grid;
    gap: clamp(28px, 4vw, 56px);
}
@media (min-width: 860px){
    .cols--2{ grid-template-columns: 1fr 1fr; }
    .cols--2-3{ grid-template-columns: 5fr 7fr; }
    .cols--3-2{ grid-template-columns: 7fr 5fr; }
    .cols--3{ grid-template-columns: repeat(3, 1fr); }
}
.cols--middle{ align-items: center; }

/* buttons */
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: .80rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    padding: 15px 30px;
    border: 1px solid var(--sea);
    background: var(--sea);
    color: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
    text-align: center;
}
.btn:hover{ background: var(--tide); border-color: var(--tide); color: #fff; text-decoration: none; transform: translateY(-1px); }

.btn--ghost{ background: transparent; color: var(--sea); }
.btn--ghost:hover{ background: var(--sea); color: #fff; }

.btn--light{ background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light:hover{ background: #fff; border-color: #fff; color: var(--ink); }

.btn--solid-light{ background: #fff; border-color: #fff; color: var(--ink); }
.btn--solid-light:hover{ background: var(--tide); border-color: var(--tide); color: #fff; }

.btn--sm{ padding: 11px 20px; font-size: .72rem; }
.btn--wide{ width: 100%; }

.btn-row{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.link-arrow{
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--sea);
}
.link-arrow::after{
    content: "";
    width: 22px; height: 1px;
    background: currentColor;
    transition: width .25s var(--ease);
}
.link-arrow:hover{ text-decoration: none; color: var(--tide); }
.link-arrow:hover::after{ width: 34px; }

/* ── 5. header ─────────────────────────────────────────────── */
.util{
    background: var(--sea);
    color: rgba(255,255,255,.82);
    font-size: .74rem;
    letter-spacing: .04em;
    height: var(--strip-h);
    display: flex;
    align-items: center;
}
.util .wrap{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}
.util a{ color: rgba(255,255,255,.86); }
.util a:hover{ color: #fff; }
.util__contacts{ display: flex; gap: 22px; align-items: center; }
.util__badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .68rem;
    color: #fff;
    white-space: nowrap;
}
.util__badge b{
    border: 1px solid rgba(255,255,255,.5);
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 600;
}
@media (max-width: 1020px){
    .util__contacts a:not(.util__tel), .util__contacts span{ display: none; }
}
@media (max-width: 560px){
    .util{ font-size: .68rem; }
    .util__badge span{ display: none; }
}

.site-head{
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(247,244,239,.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-head.is-stuck{ box-shadow: 0 1px 20px rgba(20,32,30,.07); }

.site-head .wrap{
    height: var(--head-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand{ display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover{ text-decoration: none; }
.brand__mark{ width: 34px; height: 34px; flex: none; }
.brand__name{
    font-family: var(--display);
    font-size: 1.42rem;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -.01em;
}
.brand__sub{
    display: block;
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 5px;
}

.nav{ display: none; }
@media (min-width: 1020px){
    .nav{ display: flex; align-items: center; gap: 28px; }
}
.nav a{
    font-size: .80rem;
    font-weight: 500;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover{ text-decoration: none; color: var(--tide); border-bottom-color: var(--tide); }
.nav a[aria-current="page"]{ border-bottom-color: var(--sea); color: var(--sea); }

.head-cta{ display: none; }
@media (min-width: 1020px){ .head-cta{ display: inline-flex; } }

.burger{
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 40px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}
.burger span{ display: block; height: 1px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1020px){ .burger{ display: none; } }

.drawer{
    position: fixed;
    inset: 0;
    z-index: 95;
    background: var(--shell);
    padding: 90px var(--gut) 40px;
    overflow-y: auto;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .42s var(--ease), visibility .42s;
}
.drawer.is-open{ transform: translateY(0); visibility: visible; }
.drawer__close{
    position: absolute; top: 22px; right: var(--gut);
    background: none; border: 0; cursor: pointer;
    font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.drawer nav{ display: flex; flex-direction: column; }
.drawer nav a{
    font-family: var(--display);
    font-size: 2rem;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}
.drawer nav a:hover{ text-decoration: none; color: var(--tide); }
.drawer__foot{ margin-top: 34px; display: grid; gap: 10px; }
.drawer__foot a{ color: var(--ink); font-size: .95rem; }
@media (min-width: 1020px){ .drawer{ display: none; } }

/* ── 6. hero ───────────────────────────────────────────────── */
.hero{
    position: relative;
    background: var(--night);
    color: #fff;
    overflow: hidden;
}
.hero__media{ position: absolute; inset: 0; }
.hero__media img{
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .82;
}
.hero__media::after{
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(16,26,26,.42) 0%, rgba(16,26,26,.12) 34%, rgba(16,26,26,.72) 100%),
        linear-gradient(90deg, rgba(16,26,26,.55) 0%, rgba(16,26,26,0) 62%);
}
.hero__inner{
    position: relative;
    z-index: 2;
    min-height: clamp(500px, 78vh, 760px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 120px;
    padding-bottom: clamp(44px, 6vw, 76px);
}
.hero--short .hero__inner{ min-height: clamp(360px, 52vh, 480px); }

.hero h1{ color: #fff; max-width: 15ch; margin-bottom: 22px; }
.hero .eyebrow{ color: rgba(255,255,255,.72); }
.hero__lede{
    max-width: 56ch;
    font-size: clamp(1.06rem, 1.5vw, 1.26rem);
    font-weight: 300;
    color: rgba(255,255,255,.88);
    line-height: 1.6;
}
.hero .btn-row{ margin-top: 34px; }

.hero__rule{
    width: 88px; height: 1px;
    background: rgba(255,255,255,.5);
    margin: 0 0 26px;
}

/* coordinate strip under hero */
.coords{
    background: var(--sea);
    color: rgba(255,255,255,.78);
    border-top: 1px solid rgba(255,255,255,.12);
}
.coords .wrap{
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 0; padding-bottom: 0;
}
.coords__item{
    flex: 1 1 auto;
    min-width: 50%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.coords__item b{
    display: block;
    font-family: var(--display);
    font-size: 1.32rem;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    font-weight: 400;
    margin-bottom: 2px;
}
@media (min-width: 760px){
    .coords__item{
        min-width: 0;
        padding: 20px 26px;
        border-bottom: 0;
        border-left: 1px solid rgba(255,255,255,.13);
    }
    .coords__item:first-child{ border-left: 0; padding-left: 0; }
}

/* ── 7. tide strip ─────────────────────────────────────────── */
.tides{
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.tides__inner{
    display: flex;
    align-items: center;
    gap: 26px;
    overflow-x: auto;
    padding: 14px 0;
    scrollbar-width: none;
}
.tides__inner::-webkit-scrollbar{ display: none; }
.tides__label{
    flex: none;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tide);
}
.tides__group{
    flex: none;
    display: flex;
    align-items: center;
    gap: 26px;
}
.tides__item{
    flex: none;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: .80rem;
    color: var(--muted);
    white-space: nowrap;
}
.tides__item b{ color: var(--ink); font-weight: 600; }
.tides__dot{ flex: none; width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

/* ── 8. editorial blocks ───────────────────────────────────── */
.lede-block{
    display: grid;
    gap: clamp(26px, 4vw, 60px);
}
@media (min-width: 900px){
    .lede-block{ grid-template-columns: 1fr 1.15fr; align-items: start; }
}
.lede-block__figure img{ width: 100%; }

.band{
    display: grid;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line-soft);
}
@media (min-width: 900px){
    .band{ grid-template-columns: 1fr 1fr; }
    .band--flip .band__media{ order: 2; }
}
.band__media img{ width: 100%; height: 100%; object-fit: cover; }
.band__body{
    padding: clamp(30px, 4vw, 58px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.band + .band{ border-top: 0; }

/* pull quote */
.quote{
    border-left: 2px solid var(--tide);
    padding-left: clamp(20px, 3vw, 34px);
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.32;
    color: var(--ink);
    max-width: 30ch;
}
.quote cite{
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 18px;
}

/* facts list — "everything measured" */
.facts{
    list-style: none;
    margin: 0; padding: 0;
    border-top: 1px solid var(--line);
}
.facts li{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .93rem;
}
.facts dt, .facts .k{ color: var(--muted); }
.facts .v{ color: var(--ink); font-weight: 500; text-align: right; }

/* notice / callout */
.note{
    background: var(--tide-soft);
    border-left: 3px solid var(--tide);
    padding: 22px 26px;
    font-size: .95rem;
}
.note--warn{ background: #fbf0ec; border-left-color: var(--pohutu); }
.note h4{ margin-bottom: 8px; }

/* ── 9. cards & grids ──────────────────────────────────────── */
.grid{
    display: grid;
    gap: clamp(20px, 2.4vw, 30px);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--2{ grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--fixed-3{ grid-template-columns: 1fr; }
@media (min-width: 700px){ .grid--fixed-3{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .grid--fixed-3{ grid-template-columns: repeat(3, 1fr); } }

.card{
    background: var(--paper);
    border: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line); }
.card__media{ overflow: hidden; }
.card__media img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img{ transform: scale(1.03); }
.card__body{ padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3{ margin-bottom: 10px; }
.card__body p{ font-size: .95rem; }
.card__foot{ margin-top: auto; padding-top: 20px; }
.card__meta{
    font-size: .72rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
a.card{ color: inherit; }
a.card:hover{ text-decoration: none; }

/* plain listing rows (no images) */
.rows{ border-top: 1px solid var(--line); }
.row{
    display: grid;
    gap: 8px 34px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 820px){
    .row{ grid-template-columns: 220px 1fr 160px; align-items: baseline; }
}
.row__t{ font-family: var(--display); font-size: 1.42rem; color: var(--ink); line-height: 1.15; }
.row__d{ font-size: .95rem; }
.row__x{ font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 820px){ .row__x{ text-align: right; } }

/* horizontal photo strip */
.strip-3{
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.strip-3 img{ width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* ── 10. rooms ─────────────────────────────────────────────── */
.room{
    display: grid;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    margin-bottom: clamp(20px, 2.5vw, 30px);
}
@media (min-width: 900px){
    .room{ grid-template-columns: 1.1fr 1fr; }
    .room:nth-child(even) .room__media{ order: 2; }
}
.room__media img{ width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.room__body{ padding: clamp(26px, 3.4vw, 44px); }
.room__head{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.room__price{
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--sea);
    white-space: nowrap;
}
.room__price small{
    display: block;
    font-family: var(--sans);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.room__spec{
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}
.room__spec li{
    background: var(--paper);
    padding: 12px 14px;
    font-size: .82rem;
}
.room__spec b{
    display: block;
    font-size: .64rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 3px;
}
@media (min-width: 520px){ .room__spec{ grid-template-columns: repeat(4, 1fr); } }
.room__amen{
    list-style: none; margin: 22px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.room__amen li{
    font-size: .74rem;
    letter-spacing: .04em;
    color: var(--body);
    border: 1px solid var(--line);
    padding: 5px 11px;
    border-radius: 20px;
}

/* ── 11. stats ─────────────────────────────────────────────── */
.stats{ background: var(--sand); }
.stats__grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--sand-deep);
    border: 1px solid var(--sand-deep);
}
@media (min-width: 900px){ .stats__grid{ grid-template-columns: repeat(5, 1fr); } }
.stats__cell{
    background: var(--sand);
    padding: clamp(24px, 3vw, 38px) 20px;
    text-align: center;
}
.stats__n{
    display: block;
    font-family: var(--display);
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1;
    color: var(--sea);
    margin-bottom: 10px;
}
.stats__n--stars{
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    letter-spacing: .08em;
    padding: .35em 0;
}
.stats__l{
    font-size: .70rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── 12. forms ─────────────────────────────────────────────── */
.form{
    background: var(--paper);
    border: 1px solid var(--line-soft);
    padding: clamp(26px, 3.6vw, 46px);
}
.form__grid{ display: grid; gap: 20px; }
@media (min-width: 700px){
    .form__grid{ grid-template-columns: 1fr 1fr; }
    .form__grid .full{ grid-column: 1 / -1; }
}
.field label{
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.field input, .field select, .field textarea{
    width: 100%;
    background: var(--shell);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 15px;
    font-size: .96rem;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{
    background: var(--paper);
    border-color: var(--tide);
    outline: none;
}
.field textarea{ min-height: 130px; resize: vertical; }
.field select{ appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236d7b77' stroke-width='1.4' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.field .err{
    display: none;
    color: var(--pohutu);
    font-size: .78rem;
    letter-spacing: 0;
    text-transform: none;
    margin-top: 6px;
    font-weight: 500;
}
.field.is-bad input, .field.is-bad select, .field.is-bad textarea{ border-color: var(--pohutu); }
.field.is-bad .err{ display: block; }

.check{
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: .86rem;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 14px;
}
.check input{
    flex: none;
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--sea);
}
.check.is-bad{ color: var(--pohutu); }
.check span a{ text-decoration: underline; text-underline-offset: 2px; }

.form__note{ margin-top: 18px; }

.form-ok{
    display: none;
    background: var(--tide-soft);
    border-left: 3px solid var(--tide);
    padding: 20px 24px;
    margin-bottom: 24px;
    font-size: .95rem;
    color: var(--ink);
}
.form-ok.is-on{ display: block; }

/* серверная ошибка формы */
.form-bad{
    background: #fbf0ec;
    border-left: 3px solid var(--pohutu);
    padding: 18px 24px;
    margin-bottom: 24px;
    font-size: .93rem;
    color: var(--ink);
}

/* honeypot: ловушка для ботов, человек её не видит и не таббится в неё */
.hp{
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ── 13. tables & legal ────────────────────────────────────── */
.legal{ font-size: .98rem; }
.legal h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 52px; }
.legal h2:first-of-type{ margin-top: 0; }
.legal h3{ font-size: 1.18rem; margin-top: 32px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.legal ul, .legal ol{ margin: 0 0 1.2em; padding-left: 22px; }
.legal li{ margin-bottom: .5em; }
.legal .helplines{ padding-left: 0; margin: 0; }
.legal .helplines li{ margin-bottom: 0; }
.legal code{
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
    background: var(--sand);
    padding: 2px 6px;
    border-radius: 2px;
    white-space: nowrap;
}
.legal .updated{
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 34px;
}

.table-wrap{ overflow-x: auto; margin: 0 0 26px; }
table{
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    min-width: 520px;
}
th, td{
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}
th{
    font-size: .70rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
tbody tr:hover{ background: rgba(44,122,120,.04); }

/* helpline list */
.helplines{
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}
@media (min-width: 760px){ .helplines{ grid-template-columns: repeat(2, 1fr); } }
.helplines li{
    background: var(--paper);
    padding: 20px 22px;
}
.helplines b{
    display: block;
    font-family: var(--display);
    font-size: 1.28rem;
    font-weight: 400;
    color: var(--sea);
    margin-bottom: 4px;
}
.helplines span{ font-size: .86rem; color: var(--muted); display: block; }

/* ── 14. footer ────────────────────────────────────────────── */
.foot{
    background: var(--night);
    color: var(--night-text);
    padding: clamp(52px, 6vw, 78px) 0 0;
    font-size: .90rem;
}
.foot a{ color: var(--night-text); }
.foot a:hover{ color: #fff; }
.foot h4{
    color: #fff;
    font-family: var(--sans);
    font-size: .70rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.foot__grid{
    display: grid;
    gap: 36px;
    padding-bottom: 46px;
}
@media (min-width: 700px){ .foot__grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px){ .foot__grid{ grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; } }
.foot__brand .brand__name{ color: #fff; }
.foot__brand .brand__sub{ color: rgba(255,255,255,.5); }
.foot ul{ list-style: none; margin: 0; padding: 0; }
.foot li{ margin-bottom: 10px; }
.foot__addr{ font-style: normal; line-height: 1.75; color: rgba(255,255,255,.72); }

.foot__disc{
    border-top: 1px solid var(--night-line);
    padding: 30px 0;
    font-size: .82rem;
    line-height: 1.72;
    color: rgba(255,255,255,.60);
}
.foot__disc strong{ color: rgba(255,255,255,.86); font-weight: 500; }

.foot__help{
    border-top: 1px solid var(--night-line);
    padding: 22px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    font-size: .82rem;
    color: rgba(255,255,255,.72);
}
.foot__help b{ color: #fff; font-weight: 600; }

.foot__base{
    border-top: 1px solid var(--night-line);
    padding: 22px 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 26px;
    font-size: .78rem;
    color: rgba(255,255,255,.48);
}
.foot__base nav{ display: flex; flex-wrap: wrap; gap: 20px; }

/* ── 15. gate, cookie, overlays ────────────────────────────── */
.gate{
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(14,26,26,.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.gate.is-on{ display: flex; }
.gate__box{
    background: var(--shell);
    max-width: 520px;
    width: 100%;
    padding: clamp(30px, 5vw, 52px);
    text-align: center;
    border-top: 3px solid var(--tide);
}
.gate__box h2{ font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 16px; }
.gate__box p{ font-size: .95rem; }
.gate__logo{ width: 42px; height: 42px; margin: 0 auto 22px; }
.gate__btns{ display: grid; gap: 12px; margin-top: 30px; }
@media (min-width: 520px){ .gate__btns{ grid-template-columns: 1fr 1fr; } }
.gate__deny{ display: none; }
.gate.is-denied .gate__ask{ display: none; }
.gate.is-denied .gate__deny{ display: block; }

.cookie{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 40px rgba(20,32,30,.10);
    padding: 22px var(--gut);
    display: none;
}
.cookie.is-on{ display: block; }
.cookie__inner{
    max-width: var(--wrap);
    margin: 0 auto;
    display: grid;
    gap: 18px;
    align-items: center;
}
@media (min-width: 940px){ .cookie__inner{ grid-template-columns: 1fr auto; gap: 34px; } }
.cookie p{ font-size: .88rem; margin: 0; }
.cookie__btns{ display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__panel{
    display: none;
    margin-top: 22px;
    border-top: 1px solid var(--line-soft);
    padding-top: 22px;
}
.cookie__panel.is-on{ display: block; }
.cookie__opt{
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}
.cookie__opt:last-of-type{ border-bottom: 0; }
.cookie__opt input{ width: 18px; height: 18px; margin-top: 3px; accent-color: var(--sea); flex: none; }
.cookie__opt b{ display: block; color: var(--ink); font-size: .92rem; }
.cookie__opt span{ font-size: .84rem; color: var(--muted); }

/* ── 16. night treatment ───────────────────────────────────── */
.night{
    background: var(--night);
    color: var(--night-text);
}
.night h2, .night h3, .night h4{ color: #fff; }
.night .eyebrow{ color: #6fb3ae; }
.night .lede{ color: rgba(255,255,255,.86); }
.night a{ color: #7fc3be; }
.night a:hover{ color: #fff; }
.night .facts{ border-top-color: var(--night-line); }
.night .facts li{ border-bottom-color: var(--night-line); }
.night .facts .k{ color: rgba(255,255,255,.5); }
.night .facts .v{ color: #fff; }
.night .card{ background: var(--night-2); border-color: var(--night-line); }
.night .card:hover{ border-color: #3d504d; }
.night .card__body p{ color: var(--night-text); }
.night .rows{ border-top-color: var(--night-line); }
.night .row{ border-bottom-color: var(--night-line); }
.night .row__t{ color: #fff; }
.night .row__x{ color: rgba(255,255,255,.5); }
.night .band{ background: var(--night-2); border-color: var(--night-line); }
.night .note{ background: rgba(44,122,120,.14); border-left-color: var(--tide); color: var(--night-text); }
.night .btn--ghost{ color: #fff; border-color: rgba(255,255,255,.45); }
.night .btn--ghost:hover{ background: #fff; color: var(--ink); border-color: #fff; }
.night .link-arrow{ color: #7fc3be; }
.night .quote{ color: #fff; border-left-color: var(--tide); }
.night .quote cite{ color: rgba(255,255,255,.5); }

/* ── 17. utilities, motion, print ──────────────────────────── */
.center{ text-align: center; }
.mt-0{ margin-top: 0; }
.mt-s{ margin-top: 16px; }
.mt-m{ margin-top: 32px; }
.mt-l{ margin-top: 52px; }
.mb-0{ margin-bottom: 0; }
.nowrap{ white-space: nowrap; }
.vh{
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.reveal{
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in{ opacity: 1; transform: none; }

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

@media print{
    .site-head, .util, .drawer, .cookie, .gate, .foot__base nav, .btn{ display: none !important; }
    body{ background: #fff; font-size: 12pt; }
    .hero{ background: #fff; color: #000; }
    .hero__media{ display: none; }
    .hero h1, .hero__lede{ color: #000; }
}
