/* =========================================================================
   Чиннова.рф — restrained modern classic styling
   Palette: deep ink navy + warm ivory + brass accents.
   Fonts: system serif for headings, system sans for text (no external CDN,
   so the Content-Security-Policy stays tight and no visitor data leaks).
   ========================================================================= */

:root {
    --ink: #13293f;
    --ink-soft: #24425f;
    --ink-muted: #5d7285;
    --gold: #b3894e;
    --gold-soft: #e6d3b3;
    --paper: #f7f4ef;
    --paper-card: #fffdf9;
    --line: #e3dbcd;
    --shadow-sm: 0 1px 2px rgba(19, 41, 63, .06), 0 6px 20px rgba(19, 41, 63, .05);
    --shadow-md: 0 10px 40px rgba(19, 41, 63, .10);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.site {
    font-family: var(--sans);
    color: var(--ink);
    background-color: var(--paper);
    line-height: 1.65;
}

.site h1, .site h2, .site h3, .site h4, .site .serif {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: .005em;
    color: var(--ink);
}

.site h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.15rem); line-height: 1.15; }
.site h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); }
.site h3 { font-size: 1.2rem; }

.site p { color: var(--ink-soft); }

.site .text-muted-soft { color: var(--ink-muted); }
.site .accent { color: var(--gold); }

/* ---------------------------------------------------------------- layout */
.site-section { padding: 4.5rem 0; }

.site-section--alt {
    background-color: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* In-page links and block-by-block scrolling stop below the sticky header. */
.site [data-snap-scroll] > section,
.site section[id] {
    scroll-margin-top: 4.75rem;
}

.site-section__kicker {
    display: inline-block;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: .75rem;
}

.site-section__title { margin-bottom: .75rem; }
.site-section__lead { max-width: 46rem; color: var(--ink-muted); }

.rule {
    width: 64px;
    height: 2px;
    background: var(--gold);
    margin: 1.1rem 0 1.6rem;
}

.rule--center { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- header */
.site-header {
    background-color: rgba(247, 244, 239, .94);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* The header receives the focus on page load (web/js/site.js). It is not part
   of the tab order, so the default focus ring is suppressed. */
.site-header:focus { outline: none; }

.site-header .navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-brand__name {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.site-brand__tagline {
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}

.site-header .nav-link { color: var(--ink-soft); font-size: .95rem; padding: .5rem 1rem; }

.site-header .nav-link:hover,
.site-header .nav-link:focus { color: var(--gold); }

/* The template stylesheet aligns the navbar items on the text baseline, which
   pushes the two-line brand, the links and the menu button out of line: the
   public header centres them instead. */
.site-header .navbar > .container { align-items: center; }

.site-header .navbar-toggler { border-color: var(--line); border-radius: 2px; }

.site-header .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 .18rem rgba(179, 137, 78, .25);
}

/* Header call to action: the phone number is not published any more (bots
   scraped it for cold calls), so the header offers a callback request. */
.site-header__callback {
    font-size: .9rem;
    padding: .55rem 1.1rem;
    white-space: nowrap;
}

/* --------------------------------------------------------------- buttons */
.btn-brass {
    background-color: var(--ink);
    border: 1px solid var(--ink);
    color: #fff;
    border-radius: 2px;
    padding: .7rem 1.6rem;
    font-weight: 500;
    letter-spacing: .02em;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn-brass:hover,
.btn-brass:focus { background-color: var(--gold); border-color: var(--gold); color: #fff; }

.btn-outline-ink {
    background-color: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
    border-radius: 2px;
    padding: .7rem 1.6rem;
    font-weight: 500;
}

.btn-outline-ink:hover { background-color: var(--ink); color: #fff; }

.btn-link-soft {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-soft);
    padding-bottom: 2px;
}

.btn-link-soft:hover { color: var(--ink); border-color: var(--ink); }

/* ------------------------------------------------------------------ hero */
.hero {
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(179, 137, 78, .18), transparent 60%),
        linear-gradient(180deg, #13293f 0%, #1b3652 100%);
    color: #f3efe7;
    padding: 4.5rem 0 3.5rem;
}

.hero h1 { color: #fbf8f2; }
.hero .site-section__kicker { color: var(--gold-soft); }
.hero p { color: rgba(243, 239, 231, .82); }

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 2.5rem;
    margin: 2rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(230, 211, 179, .25);
}

.hero__badge strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.6rem;
    color: #fff;
    line-height: 1.2;
}

.hero__badge span {
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(243, 239, 231, .6);
}

/* ------------------------------------------------------------- qr cards */
.qr-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
}

.qr-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 1.25rem 1rem 1.1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}

.qr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.qr-card__icon { width: 32px; height: 32px; margin: 0 auto; display: block; fill: var(--ink); }

.qr-card__image {
    width: 148px;
    height: 148px;
    margin: .35rem auto .2rem;
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    padding: 6px;
}

.qr-card__title { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); margin: 0; }

.qr-card__subtitle { font-size: .8rem; color: var(--ink-muted); margin: 0; min-height: 2.2em; }

.qr-card__link { font-size: .82rem; color: var(--gold); text-decoration: none; margin-top: auto; }

.qr-card__link:hover { color: var(--ink); }

.hero .qr-card { background: rgba(255, 253, 249, .97); }

/* Monogram of a channel (TG, WA, VK, MAX ...) instead of third-party logos. */
.qr-card__monogram {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-soft);
    color: var(--gold);
    font-family: var(--serif);
    font-size: .82rem;
    letter-spacing: .06em;
    background: #fff;
}

.contact-item__monogram {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-soft);
    color: var(--gold);
    font-family: var(--serif);
    font-size: .72rem;
    background: var(--paper-card);
}

/* --------------------------------------------------------- service cards */
.service-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 1.6rem 1.4rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }

.service-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold-soft);
    color: var(--gold);
    font-family: var(--serif);
    font-size: .95rem;
    letter-spacing: .06em;
    margin-bottom: .9rem;
}

.service-card__title { font-size: 1.1rem; margin-bottom: .45rem; }

.service-card__text { font-size: .92rem; color: var(--ink-muted); margin-bottom: .8rem; }

.service-card__price {
    font-size: .84rem;
    color: var(--ink);
    border-top: 1px dashed var(--line);
    padding-top: .65rem;
    margin: 0;
}

/* ------------------------------------------------------- principles/steps */
.principle {
    padding: 1.5rem 1.4rem;
    border-left: 2px solid var(--gold);
    background: var(--paper-card);
    height: 100%;
}

.principle h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.principle p { font-size: .9rem; color: var(--ink-muted); margin: 0; }

.steps { counter-reset: step; display: grid; gap: 1.25rem; }

.step { position: relative; padding-left: 3.5rem; }

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--gold);
    border: 1px solid var(--gold-soft);
    background: #fff;
}

.step h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.step p { font-size: .9rem; color: var(--ink-muted); margin: 0; }

/* ------------------------------------------------------------------ form */
.form-panel {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.site .form-label { font-size: .88rem; font-weight: 600; color: var(--ink); }

.site .form-control,
.site .form-select {
    border-radius: 2px;
    border-color: var(--line);
    padding: .65rem .85rem;
    background-color: #fff;
    color: var(--ink);
}

.site .form-control:focus,
.site .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 .18rem rgba(179, 137, 78, .18);
}

.site textarea.form-control { min-height: 132px; }

.site .form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }

.site .invalid-feedback { font-size: .82rem; }

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

.site img[src*="captcha"] { border: 1px solid var(--line); border-radius: 2px; background: #fff; }

.form-note { font-size: .8rem; color: var(--ink-muted); }

/* ------------------------------------------------------------- contacts */
.contact-item { display: flex; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon { width: 22px; height: 22px; fill: var(--gold); flex: 0 0 22px; margin-top: .25rem; }
.contact-item__label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.contact-item__value { font-size: 1.02rem; color: var(--ink); text-decoration: none; }
a.contact-item__value:hover { color: var(--gold); }

.legal-note {
    font-size: .82rem;
    color: var(--ink-muted);
    border-left: 2px solid var(--line);
    padding-left: 1rem;
}

/* ------------------------------------------------------------------ faq */
.site .accordion-item { border-color: var(--line); background: var(--paper-card); }
.site .accordion-button { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); background: var(--paper-card); }
.site .accordion-button:not(.collapsed) { background: #fff; color: var(--ink); box-shadow: none; }
.site .accordion-button:focus { box-shadow: none; border-color: var(--gold-soft); }
.site .accordion-body { font-size: .93rem; color: var(--ink-muted); }

/* --------------------------------------------------------------- footer */
.site-footer {
    background: var(--ink);
    color: rgba(243, 239, 231, .78);
    padding: 3.25rem 0 1.5rem;
    margin-top: 0;
}

.site-footer h3 {
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 1rem;
}

.site-footer a { color: rgba(243, 239, 231, .85); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .site-brand__name { color: #fff; }
.site-footer__bottom {
    border-top: 1px solid rgba(243, 239, 231, .16);
    margin-top: 2.25rem;
    padding-top: 1.1rem;
    font-size: .8rem;
    color: rgba(243, 239, 231, .55);
}

/* ------------------------------------------------------- legal documents */
.legal-document { max-width: 54rem; }
.legal-document h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-document p, .legal-document li { font-size: .96rem; color: var(--ink-soft); }
.legal-document code { background: #fff; border: 1px solid var(--line); padding: 0 .3rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 991.98px) {
    .site-section { padding: 3.25rem 0; }
    .hero { padding: 3rem 0 2.5rem; }

    /* Menu button: a comfortable 44 px tap target, vertically centred on the
       brand (the template's baseline alignment left it hanging below). */
    .site-header .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
    }

    /* The collapsed menu becomes a plain list of full width rows. */
    .site-header .navbar-collapse {
        margin-top: .75rem;
        padding-top: .5rem;
        border-top: 1px solid var(--line);
    }

    /* The menu list is rendered with Bootstrap's mb-2, an !important utility:
       it has to be neutralised so the gap above the callback button is set by
       the button itself (and not doubled). */
    .site-header .navbar-nav { margin-bottom: 0 !important; }

    .site-header .navbar-nav .nav-link {
        padding: .7rem .25rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--line);
    }

    .site-header .navbar-nav .nav-item:last-child .nav-link { border-bottom: 0; }

    .site-header .navbar-nav .site-header__callback,
    .site-header .site-header__callback {
        display: block;
        width: 100%;
        margin-top: .9rem;
        padding: .7rem 1rem;
        font-size: .95rem;
        text-align: center;
    }

    /* Call-to-action rows are centred on narrow screens. */
    .cta-actions {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .qr-card__image { width: 132px; height: 132px; }
    .form-panel { padding: 1.35rem; }
    .hero__badges { gap: 1.25rem 1.75rem; }

    /* The "Открыть" link of a channel becomes a full width button: on a phone
       a 13 px text link is too small a target next to the QR code. */
    .qr-card__link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        margin-top: .7rem;
        padding: .6rem 1rem;
        font-size: .95rem;
        border: 1px solid var(--gold-soft);
        border-radius: 2px;
        background: #fff;
    }
}
