/*
Theme Name: ARGO X
Theme URI: https://argo-x.lv/
Author: SIA ARGO X
Description: Корпоративный сайт SIA ARGO X: инженерные сети, услуги, галерея объектов, новости и заявки в ERP. RU/LV.
Version: 1.6.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: argox
*/

:root {
    --bg: #f3f6f9;
    --bg-2: #ffffff;
    --card: #ffffff;
    --card-2: #f8fafc;
    --line: #e3e9f0;
    --line-strong: #cfd8e3;
    --ink: #2c3e50;
    --text: #2c3e50;
    --muted: #5a6c7d;
    --header: #2e4054;
    --footer: #22303f;
    --panel: #0e1c30;
    --accent: #ff7e00;
    --accent-2: #ff9e00;
    --cold: #00e5ff;
    --hot: #ff3d00;
    --heat: #ff7e00;
    --sew: #2fd273;
    --ok: #047857;
    --err: #b91c1c;
    --radius: 16px;
    --radius-sm: 12px;
    --container: 1200px;
    --pad: clamp(16px, 3.4vw, 32px);
    --gap: clamp(14px, 1.8vw, 24px);
    --gap-lg: clamp(26px, 4.4vw, 56px);
    --sect: clamp(46px, 7.4vw, 92px);
    --header-h: 74px;
    --font: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --shadow-card: 0 10px 30px rgba(44, 62, 80, .07);
    --shadow-lift: 0 22px 50px rgba(44, 62, 80, .13);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.08rem, 1rem + .5vw, 1.25rem); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
time { color: var(--muted); font-size: .85rem; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

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

/* Scrollbar in the site palette */
* { scrollbar-width: thin; scrollbar-color: var(--accent) #e8edf3; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #e8edf3; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    border: 3px solid #e8edf3;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right));
}

.container.narrow { max-width: 820px; }

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header);
    box-shadow: 0 6px 24px rgba(20, 32, 46, .18);
    transition: box-shadow .25s ease;
}

.site-header.is-scrolled { box-shadow: 0 10px 32px rgba(20, 32, 46, .3); }

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 52%, var(--accent) 100%);
    pointer-events: none;
}

body.admin-bar .site-header { top: 32px; }

.header-inner {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 24px);
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-logo { display: block; height: clamp(34px, 3.4vw, 46px); width: auto; }

.nav-main { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 28px); margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(9px, 1.35vw, 24px); margin: 0; padding: 0; list-style: none; }
.nav-list a { color: #cfd9e4; font-size: clamp(.79rem, .66rem + .45vw, .95rem); font-weight: 700; white-space: nowrap; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: #fff; }
.nav-extra { display: flex; align-items: center; gap: clamp(10px, 1.3vw, 18px); }

.header-contact { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; flex: 0 0 auto; min-width: 0; }
.header-tagline {
    color: var(--accent);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.nav-phone {
    color: #fff;
    font-size: clamp(.92rem, .82rem + .4vw, 1.05rem);
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
}
.nav-phone:hover { color: var(--accent-2); }
.header-hours { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; color: #a9b9c9; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.header-hours::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sew);
    box-shadow: 0 0 0 3px rgba(47, 210, 115, .16);
    flex: 0 0 auto;
}

.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch a { padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #cfd9e4; letter-spacing: .04em; }
.lang-switch a.is-active { background: rgba(255, 255, 255, .16); color: #fff; }
.lang-switch a:hover { color: #fff; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: transform .2s ease;
}

.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    box-shadow: 0 8px 22px rgba(255, 126, 0, .35);
}

.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 126, 0, .45); }

.btn-ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: 0 4px 14px rgba(44, 62, 80, .08);
}

.btn-ghost:hover { color: var(--ink); background: #fff; border-color: var(--line-strong); box-shadow: 0 8px 22px rgba(44, 62, 80, .12); }

.btn-sm { padding: 10px 18px; font-size: .88rem; }

/* Hero */
.hero { position: relative; padding: 28px 0 8px; }

.hero-inner { position: relative; z-index: 1; width: 100%; }

.hero-card {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 28px;
    align-items: stretch;
    padding: 28px;
    border: 2px solid rgba(46, 64, 84, .45);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(44, 62, 80, .09), 0 0 0 6px rgba(46, 64, 84, .05);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.hero-card:hover {
    border-color: var(--accent);
    box-shadow: 0 24px 60px rgba(44, 62, 80, .09), 0 0 0 6px rgba(255, 126, 0, .13);
}

.hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 12px 60px 20px;
}

/* Hero: drafting lines echoing the logo underline */
.hero-card::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 20px;
    background:
        linear-gradient(90deg, rgba(255, 126, 0, .55), rgba(255, 126, 0, 0)) top left / 64px 1px no-repeat,
        linear-gradient(180deg, rgba(255, 126, 0, .55), rgba(255, 126, 0, 0)) top left / 1px 64px no-repeat,
        linear-gradient(270deg, rgba(44, 62, 80, .2), rgba(44, 62, 80, 0)) bottom right / 64px 1px no-repeat,
        linear-gradient(0deg, rgba(44, 62, 80, .2), rgba(44, 62, 80, 0)) bottom right / 1px 64px no-repeat;
    pointer-events: none;
}

.hero-copy::before {
    content: "";
    position: absolute;
    left: 0;
    top: 30px;
    bottom: 78px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(255, 126, 0, 0), rgba(255, 126, 0, .65) 18%, rgba(255, 126, 0, .18) 72%, rgba(255, 126, 0, 0));
    pointer-events: none;
}

.hero-copy::after {
    content: "";
    position: absolute;
    left: 0;
    top: 30px;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    pointer-events: none;
}

.eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(44, 62, 80, .07);
}

.hero h1 {
    margin: 0 0 20px;
    max-width: 22ch;
    color: var(--ink);
    font-size: clamp(2.3rem, 4.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
}

.hero h1 .accent {
    position: relative;
    display: inline-block;
    color: var(--accent);
}

.hero h1 .accent::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: -8px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 Q150 1 297 6' fill='none' stroke='%23ff9e00' stroke-width='5' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    pointer-events: none;
}

.hero .lead {
    margin: 0 0 30px;
    max-width: 52ch;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 24px rgba(44, 62, 80, .3);
    transition: background .2s ease, transform .2s ease;
    z-index: 2;
}

.hero-scroll:hover { background: var(--accent); color: #fff; transform: translateX(-50%) translateY(2px); }
.hero-scroll svg { width: 18px; height: 18px; }

/* Riser schematic panel */
.hero-schema {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: clamp(320px, 52vw, 620px);
    padding: clamp(14px, 1.6vw, 22px) clamp(10px, 1.4vw, 16px) clamp(10px, 1.2vw, 16px);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px rgba(14, 28, 48, .35);
    overflow: hidden;
}

.hero-schema::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 28px);
    pointer-events: none;
}

.hero-schema-title {
    position: relative;
    margin: 0 0 10px;
    color: #e8eef5;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-align: center;
}

.schema-svg { position: relative; width: 100%; height: auto; display: block; flex: 1; }

/* Building cutaway */
.bld-silhouette { fill: #0a1526; }
.bld-roof { fill: #16283f; stroke: #2b4059; stroke-width: 1.5; }
.bld-vent { fill: #16283f; stroke: #3a5170; stroke-width: 1; }
.bld-slab { stroke: #24364c; stroke-width: 1.5; }
.bld-partition { stroke: #1b2c41; stroke-width: 1; stroke-dasharray: 6 5; }
.bld-wall { stroke: #33475f; stroke-width: 3; }
.bld-ground { stroke: #2b4059; stroke-width: 2; stroke-dasharray: 6 6; }
.bld-window { fill: #12243a; stroke: #2b4059; stroke-width: 1; }
.bld-glazing { stroke: #2b4059; stroke-width: 1; }
.bld-door { fill: #12243a; stroke: #3a5170; stroke-width: 1.5; }
.bld-step { stroke: #3a5170; stroke-width: 2; stroke-linecap: round; }
.fixture { fill: #142a42; stroke: #3a5170; stroke-width: 1.2; }

.pipe-base { fill: none; stroke: #22344c; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pipe-flow {
    fill: none;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 14 12;
    animation: ax-flow 2.2s linear infinite;
}
.pipe-flow.reverse { animation-direction: reverse; }
.rail-flow { stroke-width: 3; animation-duration: 3.4s; }
.feed-flow { stroke-width: 2.6; animation-duration: 2.2s; }
.branch-flow { stroke-width: 2.6; animation-duration: 2.6s; }
.flow-heat { stroke: var(--heat); filter: drop-shadow(0 0 5px var(--heat)); }
.flow-cold { stroke: var(--cold); filter: drop-shadow(0 0 5px var(--cold)); }
.flow-sew { stroke: var(--sew); filter: drop-shadow(0 0 5px var(--sew)); animation-duration: 2.8s; }

.floor-label { fill: #8fa3b8; font-size: 10px; font-family: var(--font); font-weight: 600; }

.schema-tag { font-family: var(--font); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.tag-heat { fill: var(--heat); }
.tag-cold { fill: var(--cold); }
.tag-sew { fill: var(--sew); }

.schema-legend {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    color: #b8c7d6;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
}
.schema-legend li { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 20px; height: 4px; border-radius: 999px; display: inline-block; }
.dot-heat { background: var(--heat); box-shadow: 0 0 8px var(--heat); }
.dot-cold { background: var(--cold); box-shadow: 0 0 8px var(--cold); }
.dot-sew { background: var(--sew); box-shadow: 0 0 8px var(--sew); }

@keyframes ax-flow { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }
@keyframes ax-stripes-run { from { background-position: 0 0; } to { background-position: 120px 0; } }

/* Stats strip */
.stats-strip { padding: 26px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: var(--gap); }
.stat-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: clamp(8px, 1.2vw, 14px);
    padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, transparent);
    opacity: .75;
    pointer-events: none;
}
.stat-card strong { color: var(--accent); font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat-card span { color: var(--muted); font-size: .95rem; font-weight: 600; }

/* Advertising banners */
.banner-strip { padding: 28px 0 0; }
.banner-bottom { padding: 0 0 8px; }
.banner-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.ax-banner {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.ax-banner:hover { transform: translateY(-3px); border-color: rgba(255, 126, 0, .45); box-shadow: var(--shadow-lift); }
.ax-banner img { display: block; width: 100%; height: auto; max-height: 190px; object-fit: cover; }

/* Sections */
.section { position: relative; padding: var(--sect) 0; }

.section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(46, 64, 84, .5) 18%, var(--accent) 50%, rgba(46, 64, 84, .5) 82%, transparent);
    pointer-events: none;
}

.section-alt {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section h2 { position: relative; padding-bottom: 14px; }

.section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-head { max-width: min(720px, 100%); margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section-head h2 { margin-bottom: 12px; }

.section-topline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.section-topline .section-head { margin-bottom: 0; }

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }
.services-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-card);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.card:hover { transform: translateY(-4px); border-color: rgba(255, 126, 0, .45); box-shadow: var(--shadow-lift); }

.service-card { padding: clamp(20px, 2vw, 26px); gap: 12px; }
.service-num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 126, 0, .12);
    color: var(--accent);
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .06em;
}
.service-card h3 { margin: 0; }
.service-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.service-price {
    margin-top: auto;
    padding-top: 4px;
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 126, 0, .12);
    color: #b85600;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .01em;
}

/* Prices strip */
.price-head { max-width: 640px; margin: 0 0 16px; }
.price-head h3 { margin: 0 0 4px; font-size: 1.12rem; }
.price-head p { margin: 0; color: var(--muted); font-size: .92rem; }

.price-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 26px;
    margin: 0 0 28px;
    padding: 20px 26px;
    border: 1px dashed rgba(255, 126, 0, .45);
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(255, 126, 0, .09), rgba(0, 229, 255, .06));
}

.price-card { display: flex; flex-direction: column; gap: 2px; padding-right: 26px; border-right: 1px solid var(--line-strong); }
.price-card span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.price-card strong { color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.price-note { margin: 0 0 0 auto; max-width: 38ch; color: var(--muted); font-size: .85rem; }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: var(--gap-lg);
    align-items: start;
}

.about-copy p { color: var(--muted); font-size: 1.02rem; }

.glass-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.glass-card h3 { font-size: 1.05rem; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: grid; gap: 4px; padding-left: 16px; border-left: 3px solid rgba(255, 126, 0, .5); }
.feature-list strong { font-size: .98rem; color: var(--ink); }
.feature-list span { color: var(--muted); font-size: .9rem; }

/* Media cards */
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef2f7; }
.card-media img, .thumb-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }

.thumb-ph {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 126, 0, .18), transparent 55%),
        linear-gradient(135deg, #eef2f7, #dfe6ee);
    color: rgba(44, 62, 80, .35);
    font-weight: 900;
    letter-spacing: .2em;
    font-size: .85rem;
}

.card-body { display: grid; gap: 8px; padding: 22px; }
.card-body h3 { margin: 0; font-size: 1.08rem; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { margin: 0; color: var(--muted); font-size: .93rem; }

.link-more { margin-top: 6px; font-size: .88rem; font-weight: 700; }

/* Partners */
.partners-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.partner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.partner-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: .85;
    pointer-events: none;
}
.partner-card:hover { transform: translateY(-4px); border-color: rgba(255, 126, 0, .45); box-shadow: var(--shadow-lift); }
.partner-logo-box {
    display: grid;
    place-items: center;
    height: 92px;
    padding: 14px;
    border-radius: 12px;
    background: var(--card-2);
    border: 1px solid var(--line);
}
.partner-logo-box img { max-height: 62px; width: auto; max-width: 100%; object-fit: contain; }
.partner-card h3 { margin: 0; font-size: 1.02rem; }
.partner-card h3 a { color: var(--ink); }
.partner-card h3 a:hover { color: var(--accent); }
.partner-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Cooperation */
.coop-section { background: linear-gradient(180deg, #fff, var(--bg)); }
.coop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: var(--gap-lg);
    align-items: start;
}
.coop-copy > .muted { max-width: 46ch; font-size: 1.02rem; }
.coop-points { margin-top: 26px; }
.coop-form { align-self: stretch; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: var(--gap-lg);
    align-items: start;
}

.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-item { display: grid; gap: 2px; padding-left: 18px; border-left: 3px solid rgba(255, 126, 0, .55); }
.contact-item small { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.contact-item a, .contact-item span { color: var(--ink); font-size: 1.02rem; font-weight: 600; }
.contact-item a:hover { color: var(--accent); }

.lead-form {
    position: relative;
    display: grid;
    gap: 16px;
    padding: clamp(22px, 2.6vw, 30px);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; }

.lead-form label { display: grid; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .02em; }

.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dfe6ee;
    border-radius: var(--radius-sm);
    background: #f6f8fb;
    color: var(--ink);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 126, 0, .16);
}

.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form .btn { width: 100%; }
.form-note { margin: 0; color: var(--muted); font-size: .8rem; text-align: center; }

.form-alert { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; }
.form-alert.ok { border: 1px solid #a7f3d0; background: #ecfdf5; color: var(--ok); }
.form-alert.err { border: 1px solid #fecaca; background: #fef2f2; color: var(--err); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Page hero / archive / single */
.page-hero { padding: clamp(32px, 5.4vw, 56px) 0 clamp(26px, 4.2vw, 44px); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-hero h1 { margin: 0; }
.page-hero p { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }

.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.back-link:hover { color: var(--accent); }

.single-media { margin: 30px auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.single-media img { display: block; width: 100%; }

.prose { color: #3d5166; font-size: 1.02rem; }
.prose h2, .prose h3 { margin-top: 1.6em; color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Images placed directly in the page content: centred, rounded, gallery-like */
.prose img {
    display: block;
    margin: 1.8em auto;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(44, 62, 80, .14);
}

/* WordPress gallery blocks and classic galleries */
.prose .wp-block-gallery,
.prose .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 16px;
    margin: 2em 0;
    padding: 0;
    list-style: none;
}

.prose .wp-block-gallery .wp-block-gallery,
.prose .gallery .gallery { display: contents; }

.prose .wp-block-gallery figure,
.prose .wp-block-gallery li,
.prose .gallery .gallery-item {
    margin: 0;
    border: 0;
    background: none;
}

.prose .wp-block-gallery .wp-block-gallery__images-link,
.prose .wp-block-gallery a,
.prose .gallery a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.prose .wp-block-gallery img,
.prose .gallery img {
    display: block;
    width: 100%;
    margin: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.prose .wp-block-gallery figcaption,
.prose .gallery .wp-caption-text {
    padding: 10px 14px 12px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.4;
    text-align: left;
}

/* Theme gallery */
.gallery-title { margin: 44px 0 20px; font-size: 1.45rem; }

.ax-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 16px;
    margin: 0 0 8px;
}

.ax-gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.ax-gallery-item a { display: block; }

.ax-gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 126, 0, .45);
    box-shadow: var(--shadow-lift);
}

.ax-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
}

.ax-gallery-caption {
    padding: 10px 14px 12px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.4;
}

.page-hero-intro { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 68ch; }

/* Lightbox */
.ax-lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(14, 28, 48, .9);
    backdrop-filter: blur(6px);
}

.ax-lightbox[hidden] { display: none; }

.ax-lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 84vh;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
}

.ax-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.ax-lightbox-close:hover { border-color: var(--accent); color: var(--accent-2); }

.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
    font-size: .9rem;
}
.pagination .page-numbers.current { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.pagination .page-numbers:hover { color: var(--accent); border-color: var(--accent); }

.empty-state { padding: clamp(26px, 5vw, 48px); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; text-align: center; color: var(--muted); }

/* CTA strip */
.cta-strip { padding: clamp(40px, 6vw, 72px) 0; }
.cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding: clamp(26px, 4vw, 44px);
    border-radius: 24px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 24px 60px rgba(255, 126, 0, .3);
    overflow: hidden;
}
.cta-inner::after {
    content: "";
    position: absolute;
    inset: auto -10% -60% auto;
    width: 420px;
    height: 220px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, .25), transparent 70%);
    pointer-events: none;
}
.cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .16) 0 20px, transparent 20px 60px);
    background-size: 120px 100%;
    animation: ax-stripes-run 8s linear infinite;
    pointer-events: none;
}
.cta-inner h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .92); }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner .btn { position: relative; background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .16); }
.cta-inner .btn:hover { color: var(--ink); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }

/* Footer */
.site-footer { position: relative; background: var(--footer); padding-top: 64px; color: #cfd9e4; }
.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 52%, var(--accent) 100%);
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: clamp(24px, 3.4vw, 44px);
    padding-bottom: clamp(28px, 4vw, 44px);
}
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #8fa3b8; margin-bottom: 16px; }
.footer-grid p { color: #aebccb; font-size: .92rem; max-width: 38ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #cfd9e4; font-size: .92rem; }
.footer-links a:hover { color: var(--accent-2); }
.footer-contact { display: grid; gap: 10px; font-size: .92rem; }
.footer-contact a { color: #cfd9e4; }
.footer-contact a:hover { color: var(--accent-2); }
.footer-contact .muted { color: #8fa3b8; }
.footer-requisites {
    padding: 18px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #8fa3b8;
    font-size: .82rem;
}

.footer-requisites h4 {
    margin: 0 0 6px;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #b9c8d8;
}

.footer-requisites p { margin: 0; line-height: 1.6; }

/* Partner banners in the footer */
.footer-partners {
    padding: 0 0 34px;
}

.footer-partners h4 {
    margin: 0 0 14px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #8fa3b8;
}

.footer-partners-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.footer-partner:hover {
    border-color: rgba(255, 158, 0, .55);
    background: rgba(255, 255, 255, .09);
    transform: translateY(-2px);
}

.footer-partner .partner-logo {
    height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.9);
    opacity: .8;
    transition: filter .2s ease, opacity .2s ease;
}

.footer-partner:hover .partner-logo {
    filter: none;
    opacity: 1;
}

.footer-partner-name {
    color: #cfd9e4;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #8fa3b8;
    font-size: .85rem;
}

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible { outline: 3px solid rgba(255, 126, 0, .6); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .pipe-flow,
    .cta-inner::before { animation: none; }
}

/* ==========================================================================
   Adaptive layer — grids, type and spacing follow the viewport size instead
   of a few fixed presets. Order: wide ratios → header → narrow → landscape.
   ========================================================================== */

/* Two-sided layouts keep their designed proportions once both sides fit */
@media (min-width: 1000px) {
    .hero-card { grid-template-columns: 1.05fr .95fr; padding: 32px; gap: 32px; }
    .hero-copy { padding: 36px 20px 64px 28px; }
    .hero h1 { font-size: clamp(2.4rem, 4vw, 3.2rem); max-width: 26ch; }
    .hero .lead { font-size: 1.16rem; }
    .hero-actions .btn { padding: 16px 32px; font-size: 1rem; }
    .about-grid { grid-template-columns: 1.1fr .9fr; }
    .contact-grid, .request-grid { grid-template-columns: .9fr 1.1fr; }
    .coop-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet landscape: the inline menu survives on tighter spacing */
@media (min-width: 1100px) and (max-width: 1199px) {
    .header-inner { gap: 14px; }
    .brand-logo { height: 38px; }
    .header-hours { display: none; }
    .nav-main { gap: 14px; }
    .nav-list { gap: 12px; }
    .nav-list a { font-size: .8rem; }
    .nav-extra { gap: 10px; }
    .lang-switch a { padding: 5px 8px; }
    .header-contact { font-size: .94rem; }
}

/* Desktop header: compact spacing so all sections stay on one line */
@media (min-width: 1200px) {
    .header-inner { gap: 18px; }
    .nav-main { gap: 16px; }
    .nav-list { gap: 14px; }
    .nav-list a { font-size: .88rem; }
    .nav-extra { gap: 12px; }
    .lang-switch a { padding: 5px 9px; }
}

/* Tablets in portrait and phones: navigation folds into a dropdown */
@media (max-width: 1099px) {
    .header-inner { gap: 14px; }
    .header-tagline { display: none; }
    .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; }
    .nav-main {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        padding: 18px clamp(16px, 3.4vw, 32px) 24px;
        background: var(--header);
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 0 24px 50px rgba(20, 32, 46, .35);
    }
    .nav-main.is-open { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-list a { display: flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 1rem; }
    .nav-extra { justify-content: space-between; flex-wrap: wrap; gap: 12px; }
    .nav-extra .btn { min-height: 44px; }
    .lang-switch a { padding: 9px 16px; }
    .header-contact { align-items: flex-start; min-width: 0; }
}

/* Narrow screens: one column rhythm, calmer paddings */
@media (max-width: 820px) {
    .hero { padding: 20px 0 4px; }
    .hero-card { padding: 18px; border-radius: 22px; }
    .hero-copy { padding: 12px 6px 30px; }
    .hero h1 { max-width: 24ch; }
    .hero-scroll { position: static; transform: none; margin: 16px auto 0; }
    .hero-scroll:hover { transform: translateY(2px); }
    .stat-card { padding: 16px 18px; flex-direction: row; align-items: baseline; justify-content: space-between; }
    .price-strip { padding: 16px 18px; gap: 10px 18px; }
    .price-card { padding-right: 18px; }
    .price-note { margin-left: 0; max-width: none; }
    .cta-inner { padding: 26px; }
    .lead-form { padding: 22px; }
    /* iOS does not zoom in when a field is focused at 16px */
    .lead-form input,
    .lead-form textarea,
    .lead-form select { font-size: 16px; }
}

@media (max-width: 620px) {
    .price-strip { flex-direction: column; align-items: flex-start; }
    .price-card { padding-right: 0; border-right: 0; }
    .partner-card { padding: 16px; gap: 8px; }
    .partner-logo-box { height: 72px; padding: 10px; }
    .service-card { padding: 20px; }
}

@media (max-width: 520px) {
    .brand-logo { height: 34px; }
    .nav-phone { font-size: .95rem; }
    .header-hours { font-size: .66rem; }
    .hero h1 { font-size: clamp(1.85rem, 8.6vw, 2.35rem); }
    .hero .lead { font-size: 1.02rem; margin-bottom: 20px; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1 1 auto; }
    .schema-legend { font-size: .66rem; gap: 6px 12px; }
}

/* Touch devices: tap targets without changing the horizontal layout */
@media (hover: none) and (pointer: coarse) {
    .nav-list a { display: flex; align-items: center; min-height: 44px; }
    .lang-switch a { display: inline-flex; align-items: center; min-height: 40px; }
    .btn { min-height: 44px; }
    .work-check, .consent-row { padding: 15px 16px; }
    .footer-links a, .footer-contact a { display: inline-flex; align-items: center; min-height: 30px; }
    .quick-card, .partner-card { -webkit-tap-highlight-color: rgba(255, 126, 0, .12); }
}

/* Landscape phones and short windows: keep the first screen usable */
@media (max-height: 620px) and (orientation: landscape) {
    .hero { padding: 14px 0 4px; }
    .hero-schema { min-height: 240px; }
    .hero-copy { padding-bottom: 20px; }
    .hero-scroll { display: none; }
    .section { padding: 44px 0; }
}
/* Privacy policy */
.footer-privacy { color: #8fa3b8; text-decoration: underline; text-underline-offset: 3px; }
.footer-privacy:hover { color: #fff; }
.ax-cookies-wrap { overflow-x: auto; margin: 18px 0 8px; }
.ax-cookies { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ax-cookies th, .ax-cookies td { padding: 8px 10px; border-bottom: 1px solid #dbe3ec; text-align: left; vertical-align: top; }
.ax-cookies th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ax-cookies td:first-child { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; }

/* Section pages: actions, request form */
.section-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
    gap: var(--gap-lg);
    align-items: start;
}
.request-intro h2 { margin-top: 0; }
.request-intro .form-note { margin-top: 24px; text-align: left; }
.works-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.works-list li {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 3px solid rgba(255, 126, 0, .55);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card);
}
.works-list strong { display: block; color: var(--ink); }
.works-list span { color: var(--muted); font-size: .9rem; }

.lead-form select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dfe6ee;
    border-radius: var(--radius-sm);
    background: #f6f8fb;
    color: var(--ink);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.lead-form select:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 126, 0, .16);
}

.lead-form fieldset { margin: 0; padding: 0; border: 0; }
.works-field legend { margin-bottom: 10px; color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.works-grid { display: grid; gap: 10px; }
.work-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid #dfe6ee;
    border-radius: var(--radius-sm);
    background: #f6f8fb;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
}
.work-check span { display: grid; gap: 2px; }
.work-check small { color: var(--muted); font-size: .8rem; font-weight: 500; }
.work-check input,
.consent-row input {
    width: auto;
    margin: 3px 0 0;
    padding: 0;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.consent-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: 0;
    cursor: pointer;
}
.consent-row a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 820px) {
    .section-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* Intro page: section tiles */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--gap); }
.quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 22px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.quick-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: .85;
    border-radius: var(--radius) var(--radius) 0 0;
    pointer-events: none;
}
.quick-card:hover { transform: translateY(-4px); border-color: rgba(255, 126, 0, .45); box-shadow: var(--shadow-lift); }
.quick-card h3 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.quick-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.quick-card .link-more { margin-top: auto; color: var(--accent); }
