/* =========================================================
   Адвокатский кабинет «Интенцио» — стили сайта
   Шрифты Forum и Onest (лицензия SIL OFL) размещены на самом сайте:
   страница не обращается к сторонним серверам за шрифтами.
   ========================================================= */

@font-face {
    font-family: "Forum";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/forum-cyrillic-400-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Forum";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/forum-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/onest-cyrillic-400-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/onest-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/onest-cyrillic-500-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/onest-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/onest-cyrillic-600-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/onest-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
    --paper: #ffffff;
    --marble: #f1f2f0;
    --ink: #1e2326;
    --slate: #5b6469;
    --porphyry: #6e1f33;
    --porphyry-deep: #561727;
    --rule: #dadddb;

    --display: "Forum", "Times New Roman", Georgia, serif;
    --text: "Onest", "Helvetica Neue", Arial, sans-serif;

    --measure: 68ch;
    --wrap: 1180px;
    --gutter: clamp(20px, 5vw, 56px);
    --section: clamp(72px, 11vw, 140px);
}

/* ---------- Основа ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.6;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--porphyry);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--porphyry-deep);
}

:focus-visible {
    outline: 2px solid var(--porphyry);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.08;
    margin: 0;
    color: var(--ink);
}

p {
    margin: 0 0 1em;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}

.skip-link:focus {
    top: 12px;
}

/* ---------- Строка о принадлежности к адвокатуре ---------- */
.status-line {
    background: var(--ink);
    color: #e9ecea;
    font-size: 13.5px;
    line-height: 1.45;
}

.status-line p {
    margin: 0;
    padding: 9px 0;
}

/* ---------- Шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--rule);
}

@supports (backdrop-filter: blur(8px)) {
    .site-header {
        background: rgba(255, 255, 255, 0.86);
        backdrop-filter: blur(8px);
    }
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    line-height: 1;
}

.wordmark-name {
    font-family: var(--display);
    font-size: 27px;
    letter-spacing: 0.2em;
    color: var(--porphyry);
    margin-right: -0.2em;
}

.wordmark-sub {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--slate);
}

.nav-toggle {
    display: none;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    background: none;
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: 9px 14px;
    cursor: pointer;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 15.5px;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
    color: var(--porphyry);
}

.site-nav .nav-phone {
    font-weight: 600;
    color: var(--porphyry);
}

/* ---------- Кнопки ---------- */
.button {
    display: inline-block;
    font-family: var(--text);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 15px 26px;
    border-radius: 2px;
    border: 1px solid var(--porphyry);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.button-primary {
    background: var(--porphyry);
    color: #fff;
}

.button-primary:hover {
    background: var(--porphyry-deep);
    color: #fff;
}

.button-quiet {
    background: transparent;
    color: var(--porphyry);
}

.button-quiet:hover {
    background: var(--marble);
}

/* ---------- Первый экран ---------- */
.hero {
    padding: clamp(40px, 6vw, 84px) 0 clamp(64px, 8vw, 110px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
    gap: clamp(32px, 6vw, 96px);
    align-items: end;
}

.hero-role {
    font-size: 17px;
    color: var(--slate);
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(44px, 5.6vw, 84px);
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 30px;
}

.hero-lead {
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.55;
    max-width: 40em;
    margin-bottom: 30px;
}

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

.hero-facts {
    font-size: 15px;
    color: var(--slate);
    max-width: 40em;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid var(--rule);
}

.hero-portrait {
    margin: 0;
}

.hero-portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #c8c8c8;
}

.hero-portrait figcaption {
    font-size: 13.5px;
    color: var(--slate);
    margin-top: 12px;
}

/* ---------- Gaius: почему «Интенцио» ---------- */
.formula {
    background: var(--porphyry);
    color: #f6eef0;
    padding: var(--section) 0;
}

.formula-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: end;
}

.formula blockquote {
    margin: 0;
}

.formula-latin {
    font-family: var(--display);
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.12;
    margin: 0 0 28px;
    color: #fff;
}

.formula-source {
    font-size: 15px;
    color: #e3c9cf;
}

.formula-note h2 {
    font-size: clamp(26px, 2.6vw, 34px);
    color: #fff;
    margin-bottom: 18px;
}

.formula-note p {
    font-size: 17px;
    color: #f6eef0;
    max-width: 34em;
}

.formula-note p:last-child {
    margin-bottom: 0;
}

/* ---------- Общие секции ---------- */
.section {
    padding: var(--section) 0;
}

.section-marble {
    background: var(--marble);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: start;
}

.section-head h2 {
    font-size: clamp(36px, 4.4vw, 58px);
}

.section-intro {
    font-size: 19px;
    max-width: 36em;
    margin: 0;
}

/* ---------- Об адвокате ---------- */
.about-body p {
    max-width: var(--measure);
}

.about-body .section-intro {
    margin-bottom: 1em;
}

.facts {
    margin: 48px 0 0;
    border-top: 1px solid var(--rule);
}

.facts div {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 2.2fr);
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}

.facts dt {
    color: var(--slate);
    font-size: 15px;
}

.facts dd {
    margin: 0;
}

.about-check {
    margin-top: 28px;
    font-size: 15px;
    color: var(--slate);
}

/* ---------- Направления ---------- */
.practice-list {
    margin-top: clamp(40px, 6vw, 72px);
    border-top: 1px solid var(--ink);
}

.practice {
    border-bottom: 1px solid var(--rule);
}

.practice summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 28px;
    gap: clamp(16px, 5vw, 80px);
    align-items: baseline;
    padding: 26px 0;
}

.practice summary::-webkit-details-marker {
    display: none;
}

.practice-title {
    font-family: var(--display);
    font-size: clamp(26px, 2.8vw, 36px);
    line-height: 1.1;
}

.practice-summary {
    color: var(--slate);
    font-size: 16px;
}

.practice-sign {
    position: relative;
    width: 18px;
    height: 18px;
    justify-self: end;
    align-self: center;
}

.practice-sign::before,
.practice-sign::after {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 2px;
    background: var(--porphyry);
    transition: transform 0.2s ease;
}

.practice-sign::after {
    transform: rotate(90deg);
}

.practice[open] .practice-sign::after {
    transform: rotate(0deg);
}

.practice summary:hover .practice-title {
    color: var(--porphyry);
}

.practice-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 28px;
    gap: clamp(16px, 5vw, 80px);
    padding: 0 0 40px;
}

.practice-groups {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
}

.practice-groups h3 {
    font-family: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 10px;
}

.practice-groups p.where {
    font-size: 14.5px;
    color: var(--slate);
    margin: -4px 0 10px;
}

.practice-groups ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.practice-groups li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 7px;
    font-size: 16px;
    line-height: 1.5;
}

.practice-groups li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 1px;
    background: var(--porphyry);
}

.courts {
    margin-top: 40px;
    font-size: 16px;
    color: var(--slate);
    max-width: 52em;
}

/* ---------- Как строится работа ---------- */
.steps {
    list-style: none;
    margin: clamp(40px, 6vw, 72px) 0 0;
    padding: 0;
    counter-reset: step;
}

.step {
    counter-increment: step;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(16px, 5vw, 80px);
    padding: 30px 0;
    border-top: 1px solid var(--rule);
}

.step:last-child {
    border-bottom: 1px solid var(--rule);
}

.step h3 {
    font-size: clamp(24px, 2.4vw, 30px);
    display: flex;
    gap: 18px;
    align-items: baseline;
}

.step h3::before {
    content: counter(step);
    font-family: var(--display);
    color: var(--porphyry);
    font-size: 0.9em;
    min-width: 1ch;
}

.step p {
    margin: 0;
    max-width: 40em;
}

.step .norm,
.secrecy .norm {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--slate);
}

.secrecy {
    margin-top: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(16px, 5vw, 80px);
}

.secrecy h3 {
    font-size: clamp(24px, 2.4vw, 30px);
}

.secrecy p {
    margin: 0;
    max-width: 40em;
}

/* ---------- Контакты ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(24px, 5vw, 80px);
}

.contact-grid h2 {
    font-size: clamp(36px, 4.4vw, 58px);
}

.contact-name {
    font-size: 17px;
    color: var(--slate);
    margin-bottom: 26px;
}

.contact-lines {
    font-family: var(--display);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.25;
    margin-bottom: 30px;
}

.contact-lines p {
    margin: 0 0 6px;
}

.contact-lines a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
}

.contact-lines a:hover {
    color: var(--porphyry);
    border-bottom-color: var(--porphyry);
}

.contact-extra p {
    max-width: 40em;
}

/* ---------- Подвал ---------- */
.site-footer {
    background: var(--ink);
    color: #c9cfcc;
    font-size: 15px;
    padding: 72px 0 28px;
}

.site-footer a {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
}

.footer-grid .wordmark-name {
    color: #fff;
}

.footer-grid .wordmark-sub {
    color: #aab2ae;
}

.footer-block h2 {
    font-family: var(--text);
    font-size: 13.5px;
    font-weight: 500;
    color: #aab2ae;
    margin-bottom: 14px;
}

.footer-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-block li {
    margin-bottom: 9px;
}

.footer-legal {
    margin-top: 22px;
    max-width: 44em;
}

.footer-bottom {
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid #39403f;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    justify-content: space-between;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.linklike {
    font: inherit;
    color: #fff;
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

/* ---------- Уведомление о cookie ---------- */
.cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    max-width: 760px;
    margin: 0 auto;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--porphyry);
    box-shadow: 0 18px 40px rgba(30, 35, 38, 0.16);
    padding: 20px 22px;
    display: none;
}

.cookie.is-visible {
    display: block;
}

.cookie p {
    font-size: 14.5px;
    margin: 0 0 14px;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie .button {
    padding: 11px 20px;
    font-size: 15px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        padding: 8px var(--gutter) 22px;
        box-shadow: 0 14px 30px rgba(30, 35, 38, 0.12);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .site-nav li {
        width: 100%;
        border-bottom: 1px solid var(--rule);
    }

    .site-nav a {
        display: block;
        padding: 14px 0;
        font-size: 17px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .hero-grid,
    .formula-grid,
    .section-head,
    .contact-grid,
    .secrecy,
    .step {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero-portrait {
        max-width: 260px;
    }

    .section-head {
        gap: 18px;
    }

    .step {
        gap: 10px;
    }

    .secrecy {
        gap: 12px;
    }

    .practice summary {
        grid-template-columns: minmax(0, 1fr) 24px;
        gap: 6px 16px;
    }

    .practice-summary {
        grid-column: 1;
        grid-row: 2;
    }

    .practice-sign {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .practice-body {
        grid-template-columns: 1fr;
    }

    .practice-groups {
        grid-column: 1;
        grid-template-columns: 1fr;
    }

    .facts div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .status-line {
        font-size: 12.5px;
    }

    .wordmark-name {
        font-size: 23px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .button {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* ---------- Страница политики ---------- */
.header-back {
    font-size: 15.5px;
    color: var(--ink);
    text-decoration: none;
}

.header-back:hover {
    color: var(--porphyry);
}

.legal {
    padding: clamp(48px, 7vw, 96px) 0 var(--section);
}

.legal-head {
    max-width: 46em;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.legal-head h1 {
    font-size: clamp(40px, 5vw, 68px);
    margin-bottom: 22px;
}

.legal-head p {
    color: var(--slate);
    margin: 0;
}

.legal-body {
    max-width: 46em;
}

.legal-body h2 {
    font-size: clamp(26px, 2.6vw, 34px);
    margin: 56px 0 18px;
    padding-top: 22px;
    border-top: 1px solid var(--rule);
}

.legal-body p,
.legal-body li {
    font-size: 16.5px;
}

.legal-body ol,
.legal-body ul {
    padding-left: 1.3em;
    margin: 0 0 1em;
}

.legal-body li {
    margin-bottom: 6px;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 18px 0 8px;
}

.legal-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 620px;
    font-size: 15px;
}

.legal-table th,
.legal-table td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px 12px 0;
    border-bottom: 1px solid var(--rule);
}

.legal-table th {
    font-weight: 600;
    color: var(--slate);
    font-size: 14px;
    border-bottom-color: var(--ink);
}

.fill {
    background: #f6e9ec;
    padding: 0 4px;
}

.footer-bottom.footer-solo {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.site-footer:has(.footer-solo) {
    padding: 28px 0;
}

.nowrap {
    white-space: nowrap;
}

/* ---------- Телефон и e-mail картинками ---------- */
.contact-btn {
    display: inline-block;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
    font-size: inherit;
    vertical-align: middle;
}

.contact-btn img {
    display: inline-block;
    height: 1.25em;
    width: auto;
    max-width: none;
}

.contact-btn.contact-inline {
    vertical-align: -0.33em;
}

.contact-btn.contact-big {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
}

.contact-btn.contact-big:hover {
    border-bottom-color: var(--porphyry);
}

.contact-btn:hover img {
    opacity: 0.82;
}

@media (max-width: 420px) {
    .contact-lines {
        font-size: 24px;
    }
}

@media (max-width: 980px) {
    .site-nav .nav-contact {
        padding: 14px 0;
        font-size: 17px;
    }
}
