/* ============================================================
   Инденза — styles.css
   Чистый «клинический» стиль, mobile-first, адаптив
   ============================================================ */

:root {
    --color-primary:   #0B3D52;
    --color-primary-2: #157089;
    --color-accent:    #E76F35;
    --color-accent-d:  #cf5d27;
    --color-bg:        #FFFFFF;
    --color-tint:      #F1F6F7;
    --color-text:      #16282E;
    --color-muted:     #5C7178;
    --color-border:    #E2EAEC;

    --radius:    14px;
    --radius-sm: 10px;
    --maxw:      1120px;
    --gap:       clamp(16px, 4vw, 32px);
    --shadow:    0 10px 40px rgba(11, 61, 82, 0.10);

    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--accent {
    background: var(--color-accent);
    color: #fff;
}
.btn--accent:hover { background: var(--color-accent-d); }

.btn--ghost {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-primary); }

.btn--lg { font-size: 16px; padding: 16px 28px; }

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(150%) blur(8px);
    border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--color-primary);
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 9px;
    background: var(--color-primary);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}
.brand__mark--sm { width: 28px; height: 28px; font-size: 16px; border-radius: 7px; }
.btn--header { padding: 10px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
    background:
        radial-gradient(120% 120% at 85% 0%, #eaf3f5 0%, #ffffff 55%);
    padding: clamp(40px, 8vw, 80px) 0;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    align-items: center;
}
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-2);
    margin-bottom: 14px;
}
.hero__title {
    font-size: clamp(44px, 11vw, 76px);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.hero__lead {
    font-size: clamp(16px, 4vw, 19px);
    color: var(--color-muted);
    max-width: 46ch;
    margin: 0 0 26px;
}
.hero__lead strong { color: var(--color-text); }

.hero__facts {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
.hero__facts li {
    font-size: 14px;
    color: var(--color-muted);
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.hero__facts-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* product image card (signature element) */
.hero__media { display: flex; justify-content: center; }
.product-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: clamp(20px, 5vw, 38px);
    box-shadow: var(--shadow);
    max-width: 440px;
    width: 100%;
}
.product-card::before {
    content: "";
    position: absolute;
    inset: 18%;
    background: radial-gradient(circle, rgba(21,112,137,0.12) 0%, transparent 70%);
    z-index: 0;
}
.product-card img { position: relative; z-index: 1; margin: 0 auto; }
.product-card__badge {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 2;
    background: var(--color-accent);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
}

/* ---------- sections ---------- */
.section { padding: clamp(48px, 9vw, 84px) 0; }
.section--tint { background: var(--color-tint); }
.section__title {
    font-size: clamp(26px, 6vw, 38px);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 30px;
}
.prose { font-size: 16px; color: var(--color-muted); margin: 0; }
.prose strong { color: var(--color-text); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

/* specs */
.specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.spec {
    background: #fff;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.spec__label { font-size: 13px; color: var(--color-muted); }
.spec__value { font-size: 18px; font-weight: 700; color: var(--color-primary); }

/* features */
.feature {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 26px 24px;
}
.feature__title {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.feature__text { font-size: 15px; color: var(--color-muted); margin: 0; }

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
    color: #fff;
    padding: clamp(40px, 8vw, 64px) 0;
}
.cta-band__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}
.cta-band__title { font-size: clamp(24px, 6vw, 34px); font-weight: 800; }
.cta-band__sub { margin: 8px 0 0; opacity: 0.9; max-width: 50ch; }

/* ---------- footer ---------- */
.site-footer {
    background: #0a2f40;
    color: #c7d7dd;
    padding: 48px 0 36px;
}
.site-footer__inner { display: flex; flex-direction: column; gap: 20px; }
.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
}
.site-footer__disclaimer {
    font-size: 13px;
    line-height: 1.7;
    color: #95acb4;
    max-width: 75ch;
    margin: 0;
}
.btn--footer { align-self: flex-start; }
.site-footer__copy {
    font-size: 13px;
    color: #6f8891;
    margin: 8px 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
}

/* ============================================================
   ADAPTIVE — планшеты и десктоп
   ============================================================ */
@media (min-width: 720px) {
    .grid--2 { grid-template-columns: 1fr 1fr; }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .specs   { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
    .specs       { grid-template-columns: repeat(3, 1fr); }
    .cta-band__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* доступность */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    padding: 9px 13px;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}
.nav__link:hover { background: var(--color-tint); color: var(--color-primary); }
.nav__link.is-active { color: var(--color-primary); background: var(--color-tint); }
.btn--nav { padding: 9px 16px; font-size: 14px; margin-left: 6px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle__bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        padding: 12px 20px 18px;
        box-shadow: var(--shadow);
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav__link { padding: 12px 14px; font-size: 16px; }
    .btn--nav { margin: 8px 0 0; justify-content: center; }
    .site-header__inner { position: relative; }
}

/* ============================================================
   PAGE HEAD + ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.page-head {
    background: radial-gradient(120% 130% at 90% 0%, #eaf3f5 0%, #ffffff 60%);
    border-bottom: 1px solid var(--color-border);
    padding: clamp(28px, 6vw, 52px) 0;
}
.page-head__title {
    font-size: clamp(28px, 6vw, 44px);
    font-weight: 800;
    color: var(--color-primary);
    margin: 12px 0 10px;
}
.page-head__sub { font-size: clamp(15px, 4vw, 18px); color: var(--color-muted); max-width: 60ch; margin: 0; }
.crumbs { font-size: 14px; color: var(--color-muted); }
.crumbs a { color: var(--color-primary-2); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }

/* ============================================================
   КОНТЕНТ / СТАТЬЯ
   ============================================================ */
.narrow { max-width: 760px; }
.eyebrow--dark { color: var(--color-primary-2); }
.prose--lead { font-size: clamp(17px, 4vw, 20px); color: var(--color-text); line-height: 1.6; }

.article { font-size: 16px; color: var(--color-text); }
.article p { margin: 0 0 18px; color: #38505a; }
.article strong { color: var(--color-text); }
.article__h2 {
    font-size: clamp(21px, 5vw, 28px);
    font-weight: 800;
    color: var(--color-primary);
    margin: 36px 0 14px;
    padding-top: 8px;
}
.muted { color: var(--color-muted); font-size: 14px; }

.ul { margin: 0 0 18px; padding-left: 22px; }
.ul li { margin-bottom: 8px; color: #38505a; }
.ul--cols { columns: 2; column-gap: 28px; }
@media (max-width: 560px) { .ul--cols { columns: 1; } }

/* callouts */
.callout {
    background: var(--color-tint);
    border-left: 4px solid var(--color-primary-2);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 22px 0;
    font-size: 15px;
    color: #2e454d;
}
.callout--warn { background: #fdf1ea; border-left-color: var(--color-accent); }
.callout--muted { background: #f5f7f8; border-left-color: #b7c6cb; color: var(--color-muted); font-size: 14px; }

.article__cta { margin-top: 34px; }

/* ============================================================
   КАРТОЧКИ РАЗДЕЛОВ (главная)
   ============================================================ */
.cards { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.card-link {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--color-primary-2); }
.card-link__tag {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-primary-2);
    letter-spacing: 0.05em;
}
.card-link__title { font-size: 20px; font-weight: 700; color: var(--color-primary); margin: 8px 0 8px; }
.card-link__text { font-size: 15px; color: var(--color-muted); margin: 0 0 14px; }
.card-link__more { font-size: 14px; font-weight: 700; color: var(--color-accent); }

/* ============================================================
   ШАГИ (механизм)
   ============================================================ */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 8px 0 10px; }
.step {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px 22px 22px 64px;
    position: relative;
}
.step__num {
    position: absolute;
    left: 18px; top: 22px;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: var(--color-primary);
    color: #fff;
    font-weight: 800;
    border-radius: 9px;
}
.step__title { font-size: 18px; font-weight: 700; color: var(--color-primary); margin: 0 0 6px; }
.step__text { font-size: 15px; color: var(--color-muted); margin: 0; }

/* ============================================================
   ИССЛЕДОВАНИЯ
   ============================================================ */
.study {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: 20px 22px;
    margin: 0 0 16px;
}
.study__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.study__name { font-size: 20px; font-weight: 800; color: var(--color-primary); margin: 0; }
.study__tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary-2);
    background: var(--color-tint);
    padding: 4px 10px;
    border-radius: 999px;
}
.study p { margin: 0; color: #38505a; font-size: 15px; }

/* таблица */
.table-wrap { overflow-x: auto; margin: 8px 0 22px; border: 1px solid var(--color-border); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-border); }
.table th { background: var(--color-tint); color: var(--color-primary); font-weight: 700; }
.table tr:last-child td { border-bottom: none; }
.table td:first-child { font-weight: 700; color: var(--color-primary); }

/* ============================================================
   SPLIT (упаковка: картинка + текст)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr; gap: var(--gap); align-items: center; margin-bottom: 36px; }
.split__media { display: flex; justify-content: center; }
.specs--wide { margin-top: 4px; }

@media (min-width: 820px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .split { grid-template-columns: 0.9fr 1.1fr; }
}

/* ============================================================
   ПОДВАЛ — раскладка ссылок
   ============================================================ */
.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    padding-bottom: 8px;
}
.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.site-footer__nav a {
    font-size: 14px;
    font-weight: 600;
    color: #c7d7dd;
    transition: color .15s ease;
}
.site-footer__nav a:hover { color: #fff; }

/* ============================================================
   FAQ (аккордеон)
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.faq__item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}
.faq__item[open] { border-color: var(--color-primary-2); box-shadow: var(--shadow); }
.faq__q {
    list-style: none;
    cursor: pointer;
    padding: 18px 52px 18px 20px;
    position: relative;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    user-select: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "+";
    position: absolute;
    right: 18px; top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    color: var(--color-accent);
    transition: transform .2s ease;
}
.faq__item[open] .faq__q::after { content: "\2013"; }
.faq__q:hover { background: var(--color-tint); }
.faq__a {
    padding: 0 20px 18px;
    font-size: 15px;
    line-height: 1.65;
    color: #38505a;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО (предложение перейти на официальный сайт)
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(11, 61, 82, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.modal__card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 34px 28px 28px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(11, 61, 82, 0.35);
    transform: translateY(16px) scale(0.98);
    transition: transform .25s ease;
}
.modal.is-open .modal__card { transform: translateY(0) scale(1); }
.modal__close {
    position: absolute;
    top: 10px; right: 12px;
    width: 38px; height: 38px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
    border-radius: 9px;
    transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: var(--color-tint); color: var(--color-primary); }
.modal__img {
    width: 110px; height: 110px;
    object-fit: contain;
    margin: 0 auto 14px;
}
.modal__title {
    font-size: 23px;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 10px;
}
.modal__text {
    font-size: 15px;
    color: var(--color-muted);
    margin: 0 0 22px;
    line-height: 1.6;
}
.modal__cta { width: 100%; justify-content: center; }
.modal__later {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    background: none;
    border: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-muted);
    cursor: pointer;
}
.modal__later:hover { color: var(--color-primary); text-decoration: underline; }
