/* ==========================================================
   IT-Revisor
   styles.css
========================================================== */

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion:reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }

}

body {

    margin: 0;

    font-family: "Inter", sans-serif;

    font-size: 18px;

    line-height: 1.75;

    color: #111;

    background: #fff;

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;

}

img,
svg,
object {

    display: block;

    max-width: 100%;

    height: auto;

}

a {

    color: inherit;

    text-decoration: none;

}

button {

    font: inherit;

    background: none;

    border: none;

    cursor: pointer;

}

ul {

    padding: 0;

    margin: 0;

    list-style: none;

}

p,
h1,
h2,
h3 {

    margin: 0;

}

:root {

    --bg: #ffffff;

    --surface: #fafafa;

    --text: #111111;

    --text-soft: #666;

    --border: #e7e7e7;

    --accent: #2146d0;

    --accent-hover: #1737ab;

    --container: 1200px;

    --radius: 8px;

    --shadow:
        0 10px 40px rgba(0, 0, 0, .04);

    /* Это аккуратно подтянет все блоки друг к другу */
    --section: 64px;

    --transition: .25s ease;

}

.container {

    width: min(calc(100% - 48px),
            var(--container));

    margin-inline: auto;

}

.narrow {

    max-width: 820px;

}

.skip-link {

    position: absolute;

    left: -9999px;

    top: 0;

    padding: 12px 20px;

    background: #000;

    color: #fff;

    z-index: 100;

}

.skip-link:focus {

    left: 20px;

    top: 20px;

}

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, .82);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(0, 0, 0, .06);

}

.header .container {

    height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 32px;

}

.brand {

    display: flex;

    align-items: center;

    gap: 14px;

}

.brand img {

    width: 42px;

    height: 42px;

}

.brand-title {

    display: block;

    font-size: 18px;

    font-weight: 700;

    letter-spacing: .02em;

}

.brand-subtitle {

    display: block;

    margin-top: 2px;

    font-size: 13px;

    color: var(--text-soft);

}

.nav {

    display: flex;

    align-items: center;

    gap: 40px;

    margin-left: auto;

}

.nav a {

    position: relative;

    font-size: 15px;

    font-weight: 500;

    color: #333;

    transition: var(--transition);

}

.nav a:hover {

    color: var(--accent);

}

.nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 0;

    height: 2px;

    background: var(--accent);

    transition: var(--transition);

}

.nav a:hover::after {

    width: 100%;

}

.menu-button {

    display: none;

    font-size: 26px;

    padding: 4px;

}

main {

    overflow: hidden;

}

.section {

    padding: var(--section) 0;

}

.section+.section {

    /* border-top: 1px solid #f1f1f1; */

}

.section-label {

    display: inline-block;

    margin-bottom: 22px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;

    color: var(--accent);

}

h1 {
    max-width: 800px;
    /* Заменяем 12ch на адекватное значение или убираем свойство */
    font-size: 64px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.04em;
    margin-bottom: 36px;
}

h2 {

    max-width: 18ch;

    font-size: 42px;

    line-height: 1.15;

    letter-spacing: -.03em;

    margin-bottom: 28px;

}

h3 {

    font-size: 24px;

    line-height: 1.3;

    margin-bottom: 14px;

    font-weight: 600;

}

p {

    max-width: 72ch;

    color: #444;

}

.hero {
    /* Было 120px, сокращаем до 40-50px для поднятия контента */
    padding-top: 33px;

    /* Было 140px. Убираем лишнюю пустоту перед следующей секцией */
    padding-bottom: 64px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 90px;
}

.eyebrow {

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .18em;

    text-transform: uppercase;

    color: var(--accent);

    margin-bottom: 24px;

}

.hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    /* Обеспечивает срез углов самого фото по радиусу контейнера */
}

.hero-description {

    display: flex;

    flex-direction: column;

    /* Строго заданный отступ между абзацами */
    gap: 13px;

    margin-top: 36px;

    font-size: 20px;

    color: #555;

    /* Ограничиваем ширину для идеальной длины строки (~65 символов) */
    max-width: 800px;

    /* Улучшаем читаемость (tracking и leading) */
    line-height: 1.6;
    letter-spacing: -0.01em;

}

/* Контейнер кнопок */
.hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    /* Жестко держим в одну линию на десктопе */
    align-items: center;

    /* Динамический зазор: 16px на больших экранах, сжимается до 8px на ноутбуках */
    gap: clamp(8px, 1.2vw, 16px);
    margin-top: 48px;
}

/* Базовый класс кнопок: возвращаем архитектуру и дизайн */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 54px;
    /* Жесткий каркас: возвращаем правильную толщину */
    border-radius: 8px;
    /* Возвращаем скругление */

    font-weight: 600;
    transition: var(--transition);

    white-space: nowrap;
    /* Запрещаем тексту ломаться на 2 строки */
    width: auto;

    /* Снимаем костыли: текст больше не будет обрезаться многоточием */
    overflow: visible;

    /* Динамические отступы: от 28px плавно сжимаются до 10px при нехватке места */
    padding: 0 clamp(10px, 1.5vw, 28px);

    /* Динамический шрифт: от 18px плавно сжимается до 12px */
    font-size: clamp(12px, 1.2vw, 18px);
}

.button-primary {

    background: var(--accent);

    color: #fff;

}

.button-primary:hover {

    background: var(--accent-hover);

}

.button-secondary {

    border: 1px solid var(--border);

    background: #fff;

}

.button-secondary:hover {

    border-color: #aaa;

}

.hero-diagram {

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 40px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: linear-gradient(180deg,
            #fff,
            #fbfbfb);

}

.diagram {

    /* margin-top: 8px; */

    padding: 0 48px;

    /* border: 1px solid var(--border); */

    /* border-radius: 12px; */

    background: #fff;

    margin-bottom: 33px;

}

.section-description {

    margin-bottom: 52px;

}

.cards {

    display: grid;

    grid-template-columns:
        repeat(3,
            1fr);

    gap: 24px;

    padding: 0 48px;
    margin-top: 56px;

}

.card {

    padding: 32px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: #fff;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;

}

.card:hover {

    transform: translateY(-4px);

    border-color: #cfd5e8;

    box-shadow: var(--shadow);

}

.card p {

    font-size: 16px;

    color: #666;

}

.deliverables {

    display: grid;

    grid-template-columns:
        repeat(2,
            1fr);

    gap: 18px 40px;

    margin-top: 48px;

}

.deliverables li {

    position: relative;

    padding-left: 22px;

    font-size: 17px;

    color: #333;

}

.deliverables li::before {

    content: "";

    position: absolute;

    left: 0;

    top: 12px;

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--accent);

}

.contact-section {

    text-align: left;
    border-top: 1px solid #f1f1f1;

}

.contact-actions {

    margin-top: 42px;

}

.contact-info {

    display: grid;

    grid-template-columns:
        repeat(2,
            1fr);

    gap: 32px;

    margin-top: 56px;

    padding-top: 40px;

    border-top: 1px solid var(--border);

}

.contact-info span {

    display: block;

    margin-bottom: 10px;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;

    color: #666;

}

.contact-info a {

    color: var(--accent);

}

.footer {

    margin-top: 120px;

    padding: 48px 0;

    border-top: 1px solid var(--border);

}

.footer-grid {

    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 40px;

    align-items: start;

}

.footer-brand {

    display: flex;

    align-items: center;

    gap: 16px;

}

.footer-brand strong {

    display: block;

    font-size: 18px;

}

.footer-brand p {

    margin-top: 4px;

    font-size: 15px;

    color: #666;

}

.footer-links {

    display: flex;

    flex-direction: column;

    gap: 12px;

    align-items: flex-end;

}

.footer-links a {

    color: var(--accent);

}

.copyright {

    grid-column: 1/-1;

    margin-top: 32px;

    padding-top: 24px;

    border-top: 1px solid var(--border);

    font-size: 15px;

    color: #777;

}

.fade {

    opacity: 0;

    transform: translateY(24px);

    transition:
        opacity .6s ease,
        transform .6s ease;

}

.fade.visible {

    opacity: 1;

    transform: none;

}

:focus-visible {

    outline: 2px solid var(--accent);

    outline-offset: 3px;

}

@media (max-width:1100px) {

    .hero-grid {

        grid-template-columns: 1fr;

        gap: 60px;

    }

    /* Возвращаем кнопкам нормальный читаемый размер, так как место теперь есть */
    .button {
        font-size: 16px;
        padding: 0 28px;
    }

    .cards {

        grid-template-columns:
            repeat(2,
                1fr);
        padding: 0 24px;
        margin-top: 48px;

    }

}

@media (max-width:760px) {

    .header .container {

        height: 72px;

    }

    .nav {

        display: none;

    }

    .menu-button {

        display: block;

        margin-left: auto;

    }

    .section {
        /* Было 88px. Для экранов смартфонов 48px — оптимальный "воздух" */
        padding: 48px 0;
    }

    .container {

        width: min(calc(100% - 32px),
                1200px);

    }

    h1 {

        font-size: 48px;

    }

    h2 {

        font-size: 32px;

    }

    .hero {

        padding-top: 4px;

    }

    .hero-description {

        display: flex;

        flex-direction: column;

        /* Строго заданный отступ между абзацами */
        gap: 8px;

        font-size: 18px;

        /* Ограничиваем ширину для идеальной длины строки (~65 символов) */
        max-width: 360px;

        /* Улучшаем читаемость (tracking и leading) */
        line-height: 1.6;
        letter-spacing: -0.01em;

    }

    .cards {

        grid-template-columns: 1fr;
        padding: 0 8px;
        margin-top: 33px;

    }

    .deliverables {

        grid-template-columns: 1fr;

    }

    .contact-info {

        grid-template-columns: 1fr;

    }

    .footer-grid {

        grid-template-columns: 1fr;

    }

    .footer-links {

        align-items: flex-start;

    }

    .diagram {

        padding: 0 8px;
        margin-bottom: 24px;

    }

    .hero-diagram {

        padding: 24px;

    }

}

@media (max-width:420px) {

    .button {

        width: 100%;

    }

    .hero-actions {

        flex-direction: column;

    }

}

.prose {
    display: flex;
    flex-direction: column;
    /* Строго заданный отступ между абзацами */
    gap: 13px;
    /* Отступ, отделяющий текст от диаграммы */
    /* margin-bottom: 33px; */
}

/* Стили для списков внутри текстовых блоков */
.prose ul {
    list-style: disc;
    padding-left: 24px;
    margin-top: 12px;
}

.prose li {
    line-height: 1.6;
    color: #444;
}

/* Типографическая иерархия внутри текстовых контейнеров */
.prose h2 {
    /* Флекс-gap (20px) + margin-top (32px) дадут 52px "воздуха" перед новым разделом */
    margin-top: 32px;

    /* Слегка компенсируем нижний gap, чтобы прижать H2 к его тексту */
    margin-bottom: -4px;
}

/* Первый заголовок не должен отталкиваться от верха контейнера */
.prose h2:first-child {
    margin-top: 0;
}


/* ==========================================================
   Блок атрефактов (Что получит заказчик)
========================================================== */

.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.artifact-card {
    padding: 28px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.artifact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.artifact-tech {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.artifact-title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.artifact-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

@media (max-width: 900px) {
    .artifacts-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   Инкапсулированные стили Футера (revisor-footer)
========================================================== */

.revisor-footer {
    margin-top: 80px;
    /* Сузили отступы в два раза (было 48px) */
    padding: 24px 0;
    border-top: 1px solid var(--border);
    background-color: var(--bg);
}

.revisor-footer-container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

/* Верхний блок */
.revisor-footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.revisor-footer-brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.revisor-footer-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.revisor-footer-subtitle {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--text-soft);
}

/* Ссылки (Иконки) */
.revisor-footer-links {
    display: flex;
    gap: 16px;
}

/* Стилизация иконок под iOS-кнопки */
.revisor-footer-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    /* iOS-скругление */
    border: 1px solid var(--border);
    color: var(--text-soft);
    background-color: transparent;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.revisor-footer-icon-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: var(--surface);
    /* Легкая заливка при наведении */
}

/* Юридический блок внизу */
.revisor-footer-bottom {
    display: flex;
    justify-content: space-between;
    /* Прижимаем оба блока к нижней границе, чтобы политики встали на один уровень с ИП */
    align-items: flex-end;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 24px;
}

.revisor-footer-legal {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.revisor-footer-copyright {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.4;
}

.revisor-footer-requisites {
    font-size: 12px;
    color: #a0a0a0;
    line-height: 1.4;
}

.revisor-footer-policy {
    display: flex;
    gap: 24px;
}

.revisor-footer-policy a {
    font-size: 13px;
    color: #a0a0a0;
    text-decoration: underline;
    /* Вернули подчеркивание */
    text-underline-offset: 4px;
    /* Чуть отодвинули линию от текста для эстетики */
    line-height: 1.4;
    transition: var(--transition);
}

.revisor-footer-policy a:hover {
    color: var(--text);
}

/* Адаптив для мобильных устройств */
@media (max-width: 760px) {
    .revisor-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: flex-start;
    }

    .revisor-footer-links {
        /* На мобильных оставляем иконки в ряд */
        flex-direction: row;
    }

    .revisor-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .revisor-footer-policy {
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
    }
}


/* ==========================================================
   Cookie Banner
========================================================== */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;

    /* Смещение вниз для анимации появления */
    transform: translateX(-50%) translateY(120px);
    width: calc(100% - 48px);

    /* Выравниваем по ширине .container narrow */
    max-width: 820px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    /* Глубокая мягкая тень */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 24px;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-text {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition);
}

.cookie-text a:hover {
    color: var(--accent);
}

.cookie-actions {
    display: flex;
    gap: 12px;
    /* Запрещаем кнопкам сжиматься */
    flex-shrink: 0;
}

/* Переопределяем высоту базовых кнопок для компактности баннера */
.cookie-btn {
    height: 42px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 6px;
}

/* Адаптив для мобильных устройств */
@media (max-width: 760px) {
    .cookie-banner {
        bottom: 16px;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}


/* ==========================================================
   Инкапсулированные стили Шапки (revisor-header)
========================================================== */

.revisor-header {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.revisor-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.revisor-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.revisor-header-brand-text {
    display: flex;
    flex-direction: column;
}

.revisor-header-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
}

.revisor-header-subtitle {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.2;
}

.revisor-header-nav-desktop {
    display: flex;
    gap: 32px;
}

.revisor-header-nav-desktop a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.revisor-header-nav-desktop a:hover {
    color: var(--accent);
}

.revisor-header-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

/* Мобильное меню (перекрывает экран под хедером) */
.revisor-header-mobile-overlay {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--bg);
    z-index: 8999;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
}

.revisor-header-nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.revisor-header-nav-mobile a {
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    transition: var(--transition);
}

.revisor-header-nav-mobile a:hover {
    color: var(--accent);
}

/* Адаптив внутри компонента */
@media (max-width: 760px) {
    .revisor-header-nav-desktop {
        display: none;
    }

    .revisor-header-menu-toggle {
        display: block;
    }
}