/* ==========================================================================\n   LADSTUDIO — CORE\n   Общие токены, базовая типографика, header/footer и общие компоненты.\n   Размеры шрифтов, отступы, высоты, радиусы и брейкпоинты заданы в px.\n   ========================================================================== */

:root {
    --bg: #f7f9f9;
    --surface: #ffffff;
    --surface-soft: #fbfcfc;
    --ink: #152238;
    --ink-soft: #2b3a4e;
    --text: #52616d;
    --muted: #73828d;
    --line: #d6e1e4;
    --line-strong: #bccdd1;
    --blue: #e2eff2;
    --blue-2: #d1e5e9;
    --yellow: #d2a529;
    --dark: #152238;
    --font-display: "Golos Text", Inter, Arial, sans-serif;
    --font-body: Inter, "Golos Text", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    background: var(--bg);
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 25px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
    font-family: var(--font-body);
}

button,
input,
textarea {
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
}

img {
    height: auto;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

[id] {
    scroll-margin-top: 92px;
}

.svg-sprite {
    width: 0;
    height: 0;
    position: absolute;
    overflow: hidden;
}

.container {
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

.section {
    position: relative;
    padding-top: 84px;
    padding-bottom: 84px;
}

.eyebrow {
    margin: 0 0 16px;
    color: #60717d;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.section-title {
    max-width: 920px;
    margin: 0;
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 600;
    line-height: 60px;
    letter-spacing: -1.8px;
}

.section-topline {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 880px) minmax(280px, 360px);
    gap: 48px;
    align-items: end;
    margin-bottom: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.section-topline::before {
    width: 58px;
    height: 3px;
    position: absolute;
    top: -2px;
    left: 0;
    content: "";
    border-radius: 20px;
    background: var(--yellow);
}

.section-side-note,
.section-lead {
    max-width: 360px;
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 26px;
}

.section-side-note {
    padding-left: 18px;
    border-left: 2px solid rgba(210, 165, 41, 0.72);
}

.icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm,
.icon.sm {
    width: 18px;
    height: 18px;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--ink);
    border-radius: 10px;
    background: transparent;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.btn-dark,
.btn.dark {
    background: var(--ink);
    color: #ffffff;
}

.btn.text {
    min-height: 42px;
    padding: 7px 0 4px;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
}

.micro-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    height: 72px;
    position: sticky;
    z-index: 80;
    top: 0;
    border-bottom: 1px solid rgba(214, 225, 228, 0.92);
    background: rgba(247, 249, 249, 0.95);
    backdrop-filter: blur(14px);
}

.header-row {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
}

.brand-clock {
    width: 17px;
    height: 17px;
    position: relative;
    border: 1px solid var(--ink);
    border-radius: 50%;
}

.brand-clock::before,
.brand-clock::after {
    position: absolute;
    left: 8px;
    bottom: 8px;
    content: "";
    background: var(--ink);
    transform-origin: 0 100%;
}

.brand-clock::before {
    width: 1px;
    height: 5px;
}

.brand-clock::after {
    width: 5px;
    height: 1px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.desktop-nav a {
    color: #53646f;
    font-size: 14px;
    line-height: 20px;
}

.header-cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--ink);
    border-radius: 9px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.menu {
    width: 42px;
    height: 42px;
    display: none;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    width: 18px;
    height: 1px;
    display: block;
    position: relative;
    margin: auto;
    background: var(--ink);
}

.menu-bars::before,
.menu-bars::after {
    position: absolute;
    left: 0;
    content: "";
}

.menu-bars::before {
    top: -5px;
}

.menu-bars::after {
    top: 5px;
}

.mobile-nav {
    display: none;
    padding-top: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.mobile-nav.open {
    display: grid;
}

.mobile-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 22px;
}

.mobile-nav a:last-child {
    border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    padding-top: 34px;
    padding-bottom: 34px;
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.footer-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    color: #71808b;
    font-size: 13px;
    line-height: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

/* --------------------------------------------------------------------------
   Floating contact
   -------------------------------------------------------------------------- */

.contact-launcher {
    position: fixed;
    z-index: 95;
    right: 18px;
    bottom: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.contact-launcher.ready:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-fab {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(20, 34, 56, 0.14);
    border-radius: 26px;
    background: rgba(21, 34, 56, 0.96);
    box-shadow: 0 14px 35px rgba(20, 34, 56, 0.18);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
}

.contact-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow);
}

.contact-panel {
    width: 350px;
    display: none;
    position: absolute;
    right: 0;
    bottom: 60px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(20, 35, 52, 0.16);
}

.contact-launcher.open .contact-panel {
    display: block;
}

.contact-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.contact-panel-head small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-panel h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 26px;
}

.contact-panel > p {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 14px;
    line-height: 21px;
}

.panel-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 0;
    border-radius: 50%;
    background: #eef3f4;
    font-size: 22px;
    line-height: 34px;
    cursor: pointer;
}

.quick-intents {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.quick-intents button {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    text-align: left;
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.quick-intents button.active {
    border-color: #b9d1d6;
    background: var(--blue);
}

.panel-channels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7px;
    margin-bottom: 14px;
}

.panel-channels span {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 12px;
    line-height: 17px;
}

.panel-channels button {
    min-height: 38px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}

.panel-channels button.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #ffffff;
}

.contact-panel .btn {
    width: 100%;
}

.contact-backdrop {
    display: none;
}

/* --------------------------------------------------------------------------
   Motion / states
   -------------------------------------------------------------------------- */

.reveal {
    opacity: 1;
    transform: none;
}

@media (hover: hover) {
    .btn:hover,
    .header-cta:hover {
        transform: translateY(-2px);
    }

    .desktop-nav a:hover,
    .micro-link:hover,
    .footer-links a:hover {
        opacity: 0.7;
    }
}

/* --------------------------------------------------------------------------
   Shared responsive rules
   -------------------------------------------------------------------------- */

@media (max-width: 1039px) {
    .desktop-nav,
    .header-cta {
        display: none;
    }

    .menu {
        display: block;
    }

    .section-title {
        max-width: 820px;
        font-size: 48px;
        line-height: 52px;
        letter-spacing: -1.4px;
    }

    .section-topline {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 40px;
    }

    .section-side-note,
    .section-lead {
        max-width: 680px;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 76px;
    }

    [id] {
        scroll-margin-top: 80px;
    }

    .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .site-header,
    .header-row {
        height: 64px;
    }

    .section-title {
        font-size: 36px;
        line-height: 40px;
        letter-spacing: -1px;
    }

    .section-topline {
        gap: 20px;
        margin-bottom: 34px;
        padding-top: 20px;
    }

    .section-side-note,
    .section-lead {
        font-size: 16px;
        line-height: 25px;
    }

    .footer {
        padding-top: 30px;
        padding-bottom: 88px;
    }

    .footer-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-launcher {
        right: 14px;
        bottom: 14px;
    }

    .contact-fab {
        width: 50px;
        height: 50px;
        min-height: 50px;
        padding: 0;
        border-radius: 50%;
    }

    .contact-fab > span:not(.contact-dot) {
        display: none;
    }

    .contact-fab .contact-dot {
        display: none;
    }

    .contact-panel {
        width: auto;
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 20px;
        border-radius: 18px;
    }

    .contact-backdrop.open {
        display: block;
        position: fixed;
        z-index: 90;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(14, 23, 36, 0.28);
        backdrop-filter: blur(3px);
    }
}

@media (max-width: 429px) {
    .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .section {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .section-title {
        font-size: 33px;
        line-height: 37px;
        letter-spacing: -0.8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================================\n   V24 — shared architecture additions\n   ========================================================================== */

.desktop-nav a.active,
.mobile-nav a.active {
    color: var(--ink);
    font-weight: 600;
}

.quick-intents a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 20px;
}

.quick-intents a:hover {
    border-color: var(--line-strong);
    background: var(--blue);
}

.footer-expanded {
    padding-top: 62px;
    padding-bottom: 28px;
}

.footer-main {
    display: grid;
    grid-template-columns: 420px 190px 230px 190px;
    gap: 48px;
    align-items: start;
}

.footer-brand-col p {
    max-width: 390px;
    margin: 22px 0 18px;
    color: var(--text);
    font-size: 15px;
    line-height: 24px;
}

.footer-nav {
    display: grid;
    gap: 10px;
}

.footer-nav strong {
    margin-bottom: 5px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.footer-nav a {
    color: var(--text);
    font-size: 13px;
    line-height: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

@media (max-width: 1199px) {
    .footer-main {
        grid-template-columns: 340px 180px 210px 180px;
        gap: 34px;
    }
}

@media (max-width: 1039px) {
    .footer-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 34px 44px;
    }

    .footer-brand-col {
        grid-column: 1 / 3;
    }

    .footer-nav:last-child {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .footer-expanded {
        padding-top: 44px;
        padding-bottom: 86px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-nav:last-child {
        grid-column: auto;
    }

    .footer-bottom {
        display: grid;
        gap: 6px;
        margin-top: 36px;
        padding-top: 18px;
    }
}

/* ======================================================================
   Form runtime states
   Общие для всех форм сайта. Honeypot физически остаётся в DOM, но не
   участвует в визуальном layout.
   ====================================================================== */
.form-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.form-status {
    min-height: 22px;
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--text, #5f6b75);
}

.form-status:empty {
    min-height: 0;
    margin: 0;
}

.form-status.is-pending {
    color: var(--text, #5f6b75);
}

.form-status.is-success {
    color: #2f6652;
}

.form-status.is-error {
    color: #8b3f3f;
}

[data-submit-button][disabled] {
    cursor: wait;
    opacity: 0.72;
}

/* Shared contact dialog: one form, outside the page layout. */
html.contact-modal-open,body.contact-modal-open { overflow:hidden; }
.contact-dialog { position:fixed; inset:0; margin:auto; width:calc(100% - 32px); max-width:520px; max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); padding:24px; overflow:auto; overscroll-behavior:contain; border:1px solid #d0dde0; border-radius:20px; background:#f9fbf8; color:var(--ink); box-shadow:0 25px 80px #15223833; }
.contact-dialog:not([open]) { display:none; }
.contact-dialog[open] { display:block; }
.contact-dialog::backdrop { background:#14233680; }
.contact-dialog.is-fallback { z-index:999; }
.contact-dialog.is-fallback::before { content:""; position:fixed; inset:0; z-index:-1; background:#14233680; }
.contact-dialog:focus { outline:none; }
.contact-dialog__head { position:sticky; top:0; z-index:2; background:#f9fbf8; padding-bottom:8px; display:flex; justify-content:space-between; align-items:start; gap:20px; }
.contact-dialog__head .eyebrow { margin:0 0 8px; font-size:10px; letter-spacing:1px; }
.contact-dialog__head h2 { margin:0; font:600 27px/32px var(--font-display); letter-spacing:-.6px; }
.contact-dialog__close { flex:0 0 44px; width:44px; height:44px; border:1px solid #d3dfe1; border-radius:50%; background:#edf3f1; color:#31515f; font-size:28px; line-height:1; cursor:pointer; }
.contact-dialog__intro { margin:12px 0 20px; font-size:13px; line-height:20px; color:#607583; }
.contact-dialog .contact-dialog__form { padding:0; margin:0; background:transparent; border:0; box-shadow:none; border-radius:0; }
.contact-dialog .field { display:grid; gap:7px; margin:0 0 16px; }
.contact-dialog .field label { font-size:12px; line-height:18px; color:#405969; }
.contact-dialog .field input,.contact-dialog .field textarea { width:100%; min-width:0; padding:11px 12px; border:1px solid #bbcfd5; border-radius:9px; background:#fff; color:#233e4d; font:400 16px/22px var(--font-body); }
.contact-dialog .field textarea { min-height:100px; resize:vertical; }
.contact-dialog .channels { display:flex; flex-wrap:wrap; gap:6px; }
.contact-dialog .channel { min-height:38px; padding:8px 12px; border:1px solid #cbd9dc; border-radius:20px; background:#fff; font-size:12px; color:#46606d; cursor:pointer; }
.contact-dialog .channel.active { background:#2f4e5d; border-color:#2f4e5d; color:#fff; }
.contact-dialog .consent { display:flex; align-items:start; gap:9px; margin:0 0 14px; font-size:11px; line-height:17px; color:#607583; }
.contact-dialog .consent input { flex:0 0 18px; width:18px; height:18px; margin:0; accent-color:#385c6e; }
.contact-dialog .consent a { text-decoration:underline; text-underline-offset:2px; }
.contact-dialog .btn { width:100%; min-height:46px; }
.contact-dialog :is(input,textarea,button,a):focus-visible { outline:3px solid #ae8529; outline-offset:2px; }
.contact-dialog .project-builder-form-summary { padding:10px 12px; margin:0 0 16px; font-size:12px; line-height:19px; background:#e7f0ed; border:1px solid #c6dbd7; border-radius:9px; }
.contact-dialog .project-builder-form-summary strong,.contact-dialog .project-builder-form-summary span { display:block; }
.contact-dialog .project-builder-form-summary[hidden] { display:none; }
.contact-invitation { padding:44px 0; border-top:1px solid #d7e1e3; }
.contact-invitation .container { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.contact-invitation .eyebrow { margin-bottom:10px; }
.contact-invitation h2 { margin:0 0 8px; font:600 30px/36px var(--font-display); letter-spacing:-.6px; }
.contact-invitation p:not(.eyebrow) { margin:0; font-size:14px; line-height:22px; color:#647985; }
.contact-invitation .btn { flex-shrink:0; }
@media(max-width:540px) {
 .contact-dialog { width:calc(100% - 20px); max-height:calc(100vh - 20px); max-height:calc(100dvh - 20px); padding:20px 16px; border-radius:16px; }
 .contact-dialog__head { gap:12px; }
 .contact-dialog__head h2 { font-size:24px; line-height:29px; }
 .contact-dialog .channel { padding:8px 10px; }
 .contact-invitation .container { flex-direction:column; align-items:start; gap:20px; }
 .contact-invitation h2 { font-size:26px; line-height:32px; }
 .contact-invitation .btn { width:100%; }
}
.page-contact-cta .contact-cta-grid { grid-template-columns:minmax(0,1fr) auto; align-items:center; }
.page-contacts .contact-page-grid { grid-template-columns:minmax(0,1fr); max-width:760px; }
.contact-page-grid>.btn { justify-self:start; }
@media(max-width:650px) { .page-contact-cta .contact-cta-grid { grid-template-columns:1fr; } }

/* Compact shared footer: routes remain available without repeated catalogs. */
.footer-concise { padding:48px 0 28px; border-top:1px solid #d6e1e4; }
.footer-concise__main { display:flex; justify-content:space-between; align-items:start; gap:32px; }
.footer-concise__main p { margin:16px 0 0; max-width:30ch; color:#526873; font-size:14px; line-height:1.6; }
.footer-concise__main nav { display:flex; flex-wrap:wrap; gap:12px 24px; max-width:550px; }
.footer-concise nav a { display:inline-flex; align-items:center; min-height:44px; color:#526873; font-size:14px; line-height:1.5; }
.footer-concise__bottom { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:32px; padding-top:20px; border-top:1px solid #d6e1e4; color:#526873; font-size:14px; }
.footer-concise__bottom nav { display:flex; flex-wrap:wrap; gap:0 24px; }
@media(max-width:767px) {
 .footer-concise { padding-bottom:100px; }
 .footer-concise__main { flex-direction:column; gap:24px; }
 .footer-concise__main nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; width:100%; }
 .footer-concise__bottom { flex-direction:column; align-items:start; gap:8px; }
 .footer-concise__bottom nav { display:block; }
}
