/*
 * HelpSafe Law
 *
 * CONTENT
 * Основные визуальные блоки страниц:
 * - Hero
 * - поиск
 * - направления
 * - ситуации
 * - нормативные акты
 * - как пользоваться
 * - информационный блок
 * - переход на HelpSafe
 *
 * ВАЖНО:
 * Файл рассчитан на текущую структуру front-page.php.
 */


/* ============================================================
   1. БАЗОВЫЕ ПАРАМЕТРЫ КОНТЕНТА
   ============================================================ */

.site-main {
    position: relative;
    overflow: visible;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.law-section {
    position: relative;
    padding: 92px 0;
}

.law-section:first-child {
    padding-top: 0;
}

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   Общий компонент сайта
   ============================================================ */

.law-breadcrumbs {
    display: block;
    width: 100%;
    margin: 0 0 30px;
}

.law-breadcrumbs__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 9px 14px;
    list-style: none;
    gap: 0;
    box-sizing: border-box;
    background: #f6faf9;
    border: 1px solid #e2ecea;
    border-radius: 10px;
}

.law-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #686868;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}

.law-breadcrumbs__separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    margin: 0 10px;
    padding: 0;
    color: #a8b8b5;
    font-size: 8px;
    line-height: 1;
    white-space: nowrap;
}

.law-breadcrumbs__link,
.law-breadcrumbs__current {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.law-breadcrumbs__link {
    color: #5f6b69;
    text-decoration: none;
    transition: color 0.2s ease;
}

.law-breadcrumbs__link:hover {
    color: #189589;
}

.law-breadcrumbs__current {
    color: #262424;
    font-weight: 600;
}


/* ============================================================
   ХЛЕБНЫЕ КРОШКИ — МОБИЛЬНЫЕ
   ============================================================ */

@media (max-width: 700px) {

    .law-breadcrumbs {
        margin-bottom: 22px;
    }

    .law-breadcrumbs__list {
        width: 100%;
        max-width: 100%;
        padding: 8px 10px;
    }

    .law-breadcrumbs__item {
        font-size: 12px;
    }

    .law-breadcrumbs__separator {
        margin-left: 8px;
        margin-right: 8px;
    }
}


/* ============================================================
   2. HERO (ТЁМНЫЙ ВАРИАНТ)
   ============================================================ */

.law-hero {
    position: relative;
    z-index: 1;

    margin-top: -90px;
    padding: 182px 0 88px;

    overflow: hidden;

    /* Тёмный градиент с затемнением + фоновая картинка */
    background:
        linear-gradient(
            135deg,
            rgba(38, 36, 36, 0.82) 0%,
            rgba(38, 36, 36, 0.68) 50%,
            rgba(38, 36, 36, 0.55) 100%
        ),
        url("/wp-content/themes/volunteer-low/assets/images/hero.png") center center / cover no-repeat;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.law-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(129, 199, 132, 0.22) 0,
            rgba(129, 199, 132, 0.10) 20%,
            transparent 44%
        );

    pointer-events: none;
}

.law-hero::after {
    content: "";

    position: absolute;

    width: 480px;
    height: 480px;

    right: -180px;
    bottom: -260px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.08);

    pointer-events: none;
}

.law-hero__inner {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);

    align-items: center;

    gap: 70px;

    z-index: 2;
}

.law-hero__content {
    position: relative;
    z-index: 3;

    max-width: 700px;
}

.law-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 22px;

    color: #81c784;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.law-hero__eyebrow::before {
    content: "";

    width: 28px;
    height: 3px;

    border-radius: 99px;

    background: #81c784;
}

.law-hero__title {
    max-width: 720px;

    margin: 0 0 24px;

    color: #ffffff;

    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.04;

    letter-spacing: -0.045em;
}

.law-hero__title span {
    display: block;

    color: #81c784;
}

.law-hero__description {
    max-width: 650px;

    margin: 0 0 34px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 18px;
    line-height: 1.7;
}


/* ============================================================
   3. HERO SEARCH
   ============================================================ */

.law-hero__search {
    max-width: 700px;
}

.law-search-form {
    display: flex;
    align-items: stretch;

    gap: 10px;
}

.law-search-form__field {
    position: relative;

    flex: 1 1 auto;
    min-width: 0;
}

.law-search-form__icon {
    position: absolute;

    left: 19px;
    top: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    transform: translateY(-50%);

    color: #189589;

    font-size: 15px;

    pointer-events: none;
}

.law-search-form input[type="search"] {
    display: block;

    width: 100%;
    height: 58px;

    padding: 0 18px 0 50px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;

    outline: none;

    background: #ffffff;

    color: #262424;

    font-family: inherit;
    font-size: 15px;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.15);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.law-search-form input[type="search"]::placeholder {
    color: #989d9a;
}

.law-search-form input[type="search"]:focus {
    border-color: rgba(129, 199, 132, 0.8);

    box-shadow:
        0 0 0 4px rgba(129, 199, 132, 0.15),
        0 8px 28px rgba(0, 0, 0, 0.15);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 58px;

    padding: 0 27px;

    border: 0;
    border-radius: 12px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.button--primary {
    color: #ffffff;
    background: #189589;

    box-shadow:
        0 10px 25px rgba(24, 149, 137, 0.18);
}

.button--primary:hover {
    background: #147e75;

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(24, 149, 137, 0.24);
}

.law-hero__hint {
    margin-top: 12px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;
    line-height: 1.55;
}



/* ============================================================
   4. HERO VISUAL
   ============================================================ */

.law-hero__visual {
    position: relative;

    min-height: 390px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.law-hero__visual::before {
    content: "";

    position: absolute;

    width: 310px;
    height: 310px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(129, 199, 132, 0.25) 0%,
            rgba(129, 199, 132, 0.10) 48%,
            rgba(129, 199, 132, 0) 72%
        );
}

.law-hero__visual::after {
    content: "§";

    position: absolute;

    right: 25px;
    bottom: 8px;

    color: rgba(255, 255, 255, 0.06);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 190px;
    font-weight: 700;

    line-height: 1;

    transform: rotate(-8deg);

    pointer-events: none;
}

.law-hero__document {
    position: relative;

    width: min(380px, 82%);
    min-height: 350px;

    padding: 30px 32px 34px;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 16px;

    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.1);

    transform: rotate(3deg);

    z-index: 2;
}

.law-hero__document::before {
    content: "";

    position: absolute;

    top: -13px;
    left: 34px;

    width: 82px;
    height: 26px;

    border-radius: 5px;

    background: rgba(129, 199, 132, 0.65);

    transform: rotate(-2deg);
}

.law-hero__document-top {
    display: flex;

    gap: 6px;

    margin-bottom: 27px;
}

.law-hero__document-top span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #d9dedb;
}

.law-hero__document-body {
    position: relative;
}

.law-hero__document-body::before {
    content: "ЗАКОН";

    display: block;

    margin-bottom: 9px;

    color: #189589;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.14em;
}

.law-hero__document-body::after {
    content: "Республика Беларусь";

    display: block;

    margin-top: 21px;

    color: #a2a7a4;

    font-size: 11px;
}

.law-hero__document-line {
    width: 100%;
    height: 9px;

    margin-bottom: 13px;

    border-radius: 99px;

    background: #e9eeeb;
}

.law-hero__document-line--short {
    width: 39%;
}

.law-hero__document-line--medium {
    width: 68%;
}

.law-hero__document-divider {
    width: 100%;
    height: 1px;

    margin: 25px 0;

    background: #dce3df;
}

.law-hero__document-mark {
    position: absolute;

    right: 28px;
    bottom: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 74px;
    height: 74px;

    border-radius: 50%;

    color: #ffffff;

    background: #189589;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 700;

    box-shadow:
        0 12px 26px rgba(24, 149, 137, 0.22);

    transform: rotate(-3deg);
}


/* ============================================================
   5. SECTION HEADINGS
   ============================================================ */

.section-heading {
    max-width: 760px;

    margin-bottom: 42px;
}

.section-heading--inline {
    max-width: none;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.section-heading__eyebrow {
    margin-bottom: 11px;

    color: #189589;

    font-size: 12px;
    font-weight: 800;

    line-height: 1.3;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-heading__title {
    margin: 0 0 14px;

    color: #262424;

    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.13;

    letter-spacing: -0.035em;
}

.section-heading__description {
    max-width: 680px;

    margin: 0;

    color: #6d7471;

    font-size: 16px;
    line-height: 1.7;
}

.text-link {
    flex: 0 0 auto;

    color: #189589;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.text-link span {
    display: inline-block;

    margin-left: 5px;

    transition: transform 0.2s ease;
}

.text-link:hover {
    color: #116f68;
}

.text-link:hover span {
    transform: translateX(4px);
}


/* ============================================================
   6. НАПРАВЛЕНИЯ
   ============================================================ */

.law-section--directions {
    background: #ffffff;
}

.law-directions {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.law-direction-card {
    position: relative;

    display: grid;

    grid-template-columns: 58px minmax(0, 1fr) 28px;

    align-items: center;

    gap: 19px;

    min-height: 170px;

    padding: 25px 27px;

    color: inherit;

    background: #fffdf5;

    border: 1px solid rgba(38, 36, 36, 0.08);
    border-radius: 15px;

    text-decoration: none;

    overflow: hidden;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}

.law-direction-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background: transparent;

    transition: background-color 0.22s ease;
}

.law-direction-card:hover {
    background: #ffffff;

    border-color: rgba(24, 149, 137, 0.22);

    transform: translateY(-4px);

    box-shadow:
        0 17px 40px rgba(38, 36, 36, 0.08);
}

.law-direction-card:hover::before,
.law-direction-card--accent::before {
    background: #189589;
}

.law-direction-card__icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    color: #189589;

    background: rgba(24, 149, 137, 0.09);

    font-size: 21px;
}

.law-direction-card--accent .law-direction-card__icon {
    color: #ffffff;

    background: #189589;

    box-shadow:
        0 9px 22px rgba(24, 149, 137, 0.18);
}

.law-direction-card__body {
    min-width: 0;
}

.law-direction-card__body h3 {
    margin: 0 0 8px;

    color: #262424;

    font-size: 19px;
    font-weight: 800;

    line-height: 1.25;
}

.law-direction-card__body p {
    margin: 0;

    color: #6b716f;

    font-size: 14px;
    line-height: 1.55;
}

.law-direction-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    color: #189589;

    background: rgba(24, 149, 137, 0.07);

    font-size: 16px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.law-direction-card:hover .law-direction-card__arrow {
    transform: translateX(4px);

    background: rgba(24, 149, 137, 0.13);
}


/* ============================================================
   7. СИТУАЦИИ
   ============================================================ */

.law-section--questions {
    background:
        linear-gradient(
            180deg,
            #f6faf8 0%,
            #f8fbf9 100%
        );
}

.law-question-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 13px;
}

.law-question-card {
    display: grid;

    grid-template-columns: 44px minmax(0, 1fr) 20px;

    align-items: center;

    gap: 14px;

    min-height: 94px;

    padding: 18px 20px;

    color: inherit;

    background: #ffffff;

    border: 1px solid rgba(38, 36, 36, 0.07);
    border-radius: 13px;

    text-decoration: none;

    box-shadow:
        0 5px 18px rgba(38, 36, 36, 0.035);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.law-question-card:hover {
    border-color: rgba(24, 149, 137, 0.20);

    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(38, 36, 36, 0.07);
}

.law-question-card__icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #189589;

    background: #eef8f5;

    font-size: 16px;
}

.law-question-card__text {
    color: #343837;

    font-size: 14px;
    font-weight: 750;

    line-height: 1.4;
}

.law-question-card__arrow {
    color: #a3aaa7;

    font-size: 16px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.law-question-card:hover .law-question-card__arrow {
    color: #189589;

    transform: translateX(3px);
}


/* ============================================================
   8. НОРМАТИВНЫЕ АКТЫ
   ============================================================ */

.law-section--acts {
    background: #ffffff;
}

.law-act-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.law-act-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 245px;

    padding: 29px 31px 27px;

    color: inherit;

    background: #ffffff;

    border: 1px solid rgba(38, 36, 36, 0.09);
    border-radius: 16px;

    text-decoration: none;

    overflow: hidden;

    box-shadow:
        0 6px 24px rgba(38, 36, 36, 0.035);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.law-act-card::after {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    right: -58px;
    bottom: -62px;

    border-radius: 50%;

    border: 18px solid rgba(24, 149, 137, 0.055);

    pointer-events: none;
}

.law-act-card:hover {
    border-color: rgba(24, 149, 137, 0.22);

    transform: translateY(-4px);

    box-shadow:
        0 18px 38px rgba(38, 36, 36, 0.08);
}

.law-act-card__number {
    display: inline-flex;
    align-self: flex-start;

    margin-bottom: 18px;

    padding: 7px 11px;

    border-radius: 7px;

    color: #189589;

    background: #edf8f5;

    font-size: 12px;
    font-weight: 850;

    line-height: 1;

    letter-spacing: 0.02em;
}

.law-act-card h3 {
    position: relative;
    z-index: 2;

    margin: 0 0 11px;

    color: #262424;

    font-size: 20px;
    font-weight: 800;

    line-height: 1.3;

    letter-spacing: -0.015em;
}

.law-act-card p {
    position: relative;
    z-index: 2;

    margin: 0;

    color: #707673;

    font-size: 14px;
    line-height: 1.6;
}

.law-act-card__link {
    position: relative;
    z-index: 2;

    display: inline-flex;

    margin-top: auto;
    padding-top: 23px;

    color: #189589;

    font-size: 13px;
    font-weight: 800;
}


/* ============================================================
   9. КАК ПОЛЬЗОВАТЬСЯ
   ============================================================ */

.law-section--how {
    padding-top: 96px;
    padding-bottom: 96px;

    background: #262424;
}

.law-how {
    display: grid;

    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);

    align-items: center;

    gap: 85px;
}

.law-how__content {
    max-width: 500px;
}

.law-how__content .section-heading__eyebrow {
    color: #81c784;
}

.law-how__content .section-heading__title {
    margin-bottom: 23px;

    color: #ffffff;

    font-size: clamp(32px, 3.5vw, 46px);
}

.law-how__content p {
    margin: 0 0 17px;

    color: rgba(255, 255, 255, 0.70);

    font-size: 15px;
    line-height: 1.75;
}

.law-how__content p:last-child {
    margin-bottom: 0;
}

.law-how__steps {
    display: flex;
    flex-direction: column;

    gap: 15px;
}

.law-how-step {
    position: relative;

    display: grid;

    grid-template-columns: 82px minmax(0, 1fr);

    align-items: center;

    gap: 25px;

    min-height: 126px;

    padding: 20px 24px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.045);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.law-how-step:hover {
    background: rgba(255, 255, 255, 0.075);

    border-color: rgba(129, 199, 132, 0.22);

    transform: translateX(4px);
}

.law-how-step__number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 76px;
    height: 76px;

    border: 1px solid rgba(129, 199, 132, 0.45);
    border-radius: 50%;

    color: #81c784;

    font-size: 21px;
    font-weight: 850;

    letter-spacing: 0.02em;
}

.law-how-step h3 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 19px;
    font-weight: 800;

    line-height: 1.25;
}

.law-how-step p {
    margin: 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 14px;
    line-height: 1.55;
}


/* ============================================================
   10. ВАЖНО
   ============================================================ */

.law-section--notice {
    padding-top: 84px;
    padding-bottom: 84px;

    background: #ffffff;
}

.law-notice {
    position: relative;

    display: grid;

    grid-template-columns: 72px minmax(0, 1fr);

    gap: 28px;

    padding: 36px 40px;

    border: 1px solid rgba(24, 149, 137, 0.18);
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #f0faf7 0%,
            #f8fcfa 100%
        );

    overflow: hidden;
}

.law-notice::after {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -120px;
    top: -120px;

    border-radius: 50%;

    border: 1px solid rgba(24, 149, 137, 0.09);

    pointer-events: none;
}

.law-notice__icon {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 66px;
    height: 66px;

    border-radius: 17px;

    color: #189589;

    background: #ffffff;

    font-size: 25px;

    box-shadow:
        0 8px 24px rgba(38, 36, 36, 0.06);
}

.law-notice__content {
    position: relative;
    z-index: 2;
}

.law-notice__content h2 {
    margin: 0 0 12px;

    color: #262424;

    font-size: 24px;
    font-weight: 850;

    line-height: 1.25;
}

.law-notice__content p {
    max-width: 930px;

    margin: 0 0 12px;

    color: #626a67;

    font-size: 14px;
    line-height: 1.7;
}

.law-notice__content p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   11. HELP SAFE CTA
   ============================================================ */

.law-section--helpsafe {
    padding-top: 100px;
    padding-bottom: 100px;

    background: #ffffff;
}

.law-crosslink {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;

    gap: 45px;

    padding: 35px 0 70px;

    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    overflow: hidden;
}

.law-crosslink__content {
    position: relative;
    z-index: 2;

    max-width: 750px;
}

.law-crosslink__content .section-heading__eyebrow {
    margin-bottom: 10px;

    color: #189589;
}

.law-crosslink__content h2 {
    margin: 0 0 13px;

    color: #262424;

    font-size: clamp(28px, 3vw, 40px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.law-crosslink__content p {
    max-width: 650px;

    margin: 0;

    color: #262424;

    font-size: 15px;
    line-height: 1.65;
}

.law-crosslink__action {
    position: relative;
    z-index: 3;
}

.law-crosslink .button--primary {
    min-width: 220px;

    color: #189589;

    background: #ffffff;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.10);
}

.law-crosslink .button--primary:hover {
    color: #147e75;

    background: #f4faf7;

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.14);
}

.law-crosslink .button--primary span {
    margin-left: 8px;

    transition: transform 0.2s ease;
}

.law-crosslink .button--primary:hover span {
    transform: translateX(4px);
}

.law-crosslink::after {
    content: "🐾";

    position: absolute;

    right: 70px;
    bottom: -28px;

    color: rgba(24, 149, 137, 0.10);

    font-size: 125px;

    transform: rotate(-12deg);

    pointer-events: none;
}

@media (max-width: 800px) {

    .law-crosslink {
        grid-template-columns: 1fr;

        gap: 28px;

        padding: 25px 0 65px;
    }

    .law-crosslink__action {
        justify-self: start;
    }

    .law-crosslink::after {
        right: 10px;
        bottom: -25px;

        font-size: 100px;
    }

}

@media (max-width: 560px) {

    .law-crosslink {
        gap: 24px;

        padding-bottom: 60px;
    }

    .law-crosslink__content h2 {
        font-size: 28px;
    }

    .law-crosslink .button--primary {
        min-width: 0;
        width: 100%;
    }

    .law-crosslink::after {
        right: -5px;
        bottom: -20px;

        font-size: 85px;
    }

}

/* ============================================================
   ПРАВОВАЯ ЦЕПОЧКА
   ============================================================ */

.law-section--chain {
    background:
        linear-gradient(
            180deg,
            #f6faf8 0%,
            #ffffff 100%
        );
}

.law-chain-slider {
    position: relative;

    display: block;

    width: 100%;
    max-width: 100%;

    min-width: 0;

    box-sizing: border-box;
}

.law-chain-slider__viewport {
    position: relative;

    width: 100%;
    max-width: 100%;

    min-width: 0;

    overflow-x: hidden;
    overflow-y: visible;

    box-sizing: border-box;

    padding: 8px 2px 20px;

    outline: none;
}

.law-chain-slider .law-chain {
    display: flex;

    flex-wrap: nowrap;

    gap: 16px;

    width: max-content;
    max-width: none;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    transform: translate3d(0, 0, 0);

    transition:
        transform 0.38s ease;
}

.law-chain-slider .law-chain__item {
    position: relative;

    flex: 0 0 300px;

    width: 300px;
    max-width: 300px;

    min-width: 300px;

    min-height: 235px;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-sizing: border-box;

    padding: 24px 23px;

    text-align: center;

    background: #ffffff;

    border: 1px solid rgba(38, 36, 36, 0.08);

    border-radius: 16px;

    box-shadow:
        0 7px 24px rgba(38, 36, 36, 0.045);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.law-chain-slider .law-chain__item:hover {
    transform: translateY(-4px);

    border-color:
        rgba(24, 149, 137, 0.22);

    box-shadow:
        0 15px 34px rgba(38, 36, 36, 0.08);
}

.law-chain-slider .law-chain__item--accent {
    border-color:
        rgba(24, 149, 137, 0.25);

    background:
        linear-gradient(
            145deg,
            #f0faf7 0%,
            #ffffff 100%
        );

    box-shadow:
        0 10px 30px rgba(24, 149, 137, 0.08);
}

.law-chain-slider .law-chain__number {
    margin-bottom: 13px;

    color: #a3aaa7;

    font-size: 11px;
    font-weight: 850;

    line-height: 1;

    letter-spacing: 0.09em;
}

.law-chain-slider .law-chain__icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    margin-bottom: 16px;

    border-radius: 15px;

    color: #189589;

    background: #edf8f5;

    font-size: 21px;
}

.law-chain-slider .law-chain__item--accent .law-chain__icon {
    color: #ffffff;

    background: #189589;

    box-shadow:
        0 9px 22px rgba(24, 149, 137, 0.18);
}

.law-chain-slider .law-chain__item h3 {
    margin: 0 0 9px;

    color: #262424;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.25;
}

.law-chain-slider .law-chain__item p {
    max-width: 245px;

    margin: 0;

    color: #707673;

    font-size: 13px;

    line-height: 1.6;
}

.law-chain-slider__arrow {
    position: absolute;

    top: 50%;

    z-index: 30;

    width: 46px;
    height: 46px;

    display: flex !important;

    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    box-sizing: border-box;

    border: 1px solid
        rgba(24, 149, 137, 0.22);

    border-radius: 50%;

    color: #189589;

    background: #ffffff;

    font-size: 16px;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(38, 36, 36, 0.14);

    transform: translateY(-50%);

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.law-chain-slider__arrow--prev {
    left: 12px;
}

.law-chain-slider__arrow--next {
    right: 12px;
}

.law-chain-slider__arrow:hover:not(:disabled) {
    color: #ffffff;

    background: #189589;

    border-color: #189589;

    transform:
        translateY(-50%)
        scale(1.06);
}

.law-chain-slider__arrow:focus-visible {
    outline: 3px solid
        rgba(24, 149, 137, 0.22);

    outline-offset: 3px;
}

.law-chain-slider__arrow:disabled {
    opacity: 0.30;

    cursor: default;

    box-shadow:
        0 3px 10px rgba(38, 36, 36, 0.06);
}

@media (max-width: 1100px) {

    .law-chain-slider__arrow--prev {
        left: 4px;
    }

    .law-chain-slider__arrow--next {
        right: 4px;
    }

    .law-chain-slider .law-chain__item {
        flex-basis: 285px;

        width: 285px;
        max-width: 285px;

        min-width: 285px;
    }
}

@media (max-width: 800px) {

    .law-chain-slider__arrow {
        display: none !important;
    }

    .law-chain-slider__viewport {
        width: 100%;
        max-width: 100%;

        overflow: visible;

        padding: 0;
    }

    .law-chain-slider .law-chain {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;

        width: 100%;
        max-width: 100%;

        transform: none !important;

        transition: none;
    }

    .law-chain-slider .law-chain__item {
        width: auto;
        max-width: none;
        min-width: 0;

        min-height: 210px;

        flex: none;
    }
}

@media (max-width: 560px) {

    .law-chain-slider .law-chain {
        grid-template-columns: 1fr;

        gap: 11px;
    }

    .law-chain-slider .law-chain__item {
        min-height: 0;

        display: grid;

        grid-template-columns:
            48px
            minmax(0, 1fr);

        grid-template-rows:
            auto
            auto
            auto;

        column-gap: 15px;

        align-items: center;

        padding: 17px 18px;

        text-align: left;
    }

    .law-chain-slider .law-chain__number {
        grid-column: 1;
        grid-row: 1 / 4;

        align-self: center;

        margin: 0;
    }

    .law-chain-slider .law-chain__icon {
        grid-column: 2;
        grid-row: 1;

        width: 42px;
        height: 42px;

        margin: 0 0 5px;

        border-radius: 11px;

        font-size: 16px;
    }

    .law-chain-slider .law-chain__item h3 {
        grid-column: 2;
        grid-row: 2;

        margin: 0 0 3px;

        font-size: 16px;
    }

    .law-chain-slider .law-chain__item p {
        grid-column: 2;
        grid-row: 3;

        max-width: none;

        font-size: 12px;

        line-height: 1.5;
    }
}


/* ============================================================
   13. ЧТО ПОЛУЧАЕТ ПОЛЬЗОВАТЕЛЬ
   ============================================================ */

.law-section--benefits {
    background: #ffffff;
}

.law-benefits {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.law-benefit {
    display: grid;

    grid-template-columns: 50px minmax(0, 1fr);

    align-items: start;

    gap: 17px;

    min-height: 145px;

    padding: 23px 22px;

    background: #fffdf5;

    border: 1px solid rgba(38, 36, 36, 0.07);
    border-radius: 15px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.law-benefit:hover {
    transform: translateY(-3px);

    border-color: rgba(24, 149, 137, 0.20);

    box-shadow:
        0 13px 30px rgba(38, 36, 36, 0.07);
}

.law-benefit__icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: #189589;
    background: #edf8f5;

    font-size: 18px;
}

.law-benefit__content {
    min-width: 0;
}

.law-benefit__content h3 {
    margin: 2px 0 8px;

    color: #262424;

    font-size: 17px;
    font-weight: 800;

    line-height: 1.25;
}

.law-benefit__content p {
    margin: 0;

    color: #707673;

    font-size: 13px;
    line-height: 1.6;
}


/* ============================================================
   14. ОБЪЯСНЕНИЕ HELP SAFE LAW
   ============================================================ */

.law-section--explanation {
    background:
        linear-gradient(
            180deg,
            #f6faf8 0%,
            #f8fbf9 100%
        );
}

.law-explanation {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);

    align-items: center;

    gap: 70px;
}

.law-explanation__content {
    max-width: 700px;
}

.law-explanation__content .section-heading__title {
    margin-bottom: 22px;
}

.law-explanation__content p {
    margin: 0 0 17px;

    color: #626a67;

    font-size: 15px;
    line-height: 1.75;
}

.law-explanation__content p:last-child {
    margin-bottom: 0;
}

.law-explanation__example {
    position: relative;

    padding: 34px 34px 32px;

    background: #262424;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 22px 45px rgba(38, 36, 36, 0.12);
}

.law-explanation__example::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: -75px;
    top: -90px;

    border-radius: 50%;

    border: 1px solid rgba(129, 199, 132, 0.18);

    pointer-events: none;
}

.law-explanation__example::after {
    content: "§";

    position: absolute;

    right: 22px;
    bottom: -24px;

    color: rgba(129, 199, 132, 0.08);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 105px;
    font-weight: 700;

    line-height: 1;

    pointer-events: none;
}

.law-explanation__example-label {
    position: relative;
    z-index: 2;

    margin-bottom: 17px;

    color: #81c784;

    font-size: 11px;
    font-weight: 850;

    line-height: 1;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.law-explanation__example-text {
    position: relative;
    z-index: 2;

    margin-bottom: 25px;

    color: #ffffff;

    font-size: 21px;
    font-weight: 750;

    line-height: 1.45;
}

.law-explanation__example-result {
    position: relative;
    z-index: 2;

    padding-top: 19px;

    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.law-explanation__example-result span {
    display: block;

    margin-bottom: 7px;

    color: #81c784;

    font-size: 12px;
    font-weight: 850;

    letter-spacing: 0.04em;
}

.law-explanation__example-result strong {
    display: block;

    max-width: 430px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;
    font-weight: 600;

    line-height: 1.6;
}


/* ============================================================
   15. АДАПТАЦИЯ НОВЫХ БЛОКОВ
   ============================================================ */

@media (max-width: 1050px) {

    .law-chain__item {
        min-width: 125px;

        padding-left: 13px;
        padding-right: 13px;
    }

    .law-chain__connector {
        font-size: 17px;
    }

    .law-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .law-explanation {
        gap: 45px;
    }
}


/* ============================================================
   16. ПЛАНШЕТ — НОВЫЕ БЛОКИ
   ============================================================ */

@media (max-width: 800px) {

    .law-chain {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        overflow: visible;

        gap: 13px;

        padding: 0;
    }

    .law-chain__item {
        min-width: 0;
    }

    .law-chain__connector {
        display: none;
    }

    .law-benefits {
        grid-template-columns: 1fr;
    }

    .law-explanation {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .law-explanation__content {
        max-width: none;
    }

    .law-hero__visual {
        display: none;
    }

    .law-hero__inner {
        gap: 0;
    }
}


/* ============================================================
   17. МОБИЛЬНЫЕ — НОВЫЕ БЛОКИ
   ============================================================ */

@media (max-width: 560px) {

    .law-chain {
        grid-template-columns: 1fr;
    }

    .law-chain__item {
        display: grid;

        grid-template-columns: 44px minmax(0, 1fr);

        grid-template-rows: auto auto;

        column-gap: 14px;

        align-items: center;

        padding: 17px 18px;

        text-align: left;
    }

    .law-chain__number {
        grid-column: 1;
        grid-row: 1 / 3;

        margin: 0;

        align-self: center;
    }

    .law-chain__icon {
        grid-column: 2;
        grid-row: 1;

        width: 42px;
        height: 42px;

        margin: 0 0 7px;

        border-radius: 11px;

        font-size: 16px;
    }

    .law-chain__item h3 {
        grid-column: 2;
        grid-row: 2;

        margin: 0 0 4px;

        font-size: 16px;
    }

    .law-chain__item p {
        grid-column: 2;
        grid-row: 3;

        font-size: 12px;
    }

    .law-chain__item {
        grid-template-rows: auto auto auto;
    }

    .law-benefit {
        grid-template-columns: 46px minmax(0, 1fr);

        gap: 14px;

        min-height: 0;

        padding: 19px 18px;
    }

    .law-benefit__icon {
        width: 46px;
        height: 46px;

        border-radius: 12px;

        font-size: 17px;
    }

    .law-benefit__content h3 {
        font-size: 16px;
    }

    .law-benefit__content p {
        font-size: 12px;
    }

    .law-explanation__example {
        padding: 27px 22px 25px;

        border-radius: 15px;
    }

    .law-explanation__example-text {
        font-size: 18px;
    }

    .law-explanation__example-result strong {
        font-size: 13px;
    }
}


/* ============================================================
   18. ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ — НОВЫЕ БЛОКИ
   ============================================================ */

@media (max-width: 380px) {

    .law-chain__item {
        grid-template-columns: 39px minmax(0, 1fr);

        column-gap: 11px;

        padding: 15px;
    }

    .law-chain__number {
        font-size: 10px;
    }

    .law-chain__icon {
        width: 39px;
        height: 39px;

        font-size: 15px;
    }

    .law-chain__item h3 {
        font-size: 15px;
    }

    .law-chain__item p {
        font-size: 11px;
    }

    .law-benefit {
        grid-template-columns: 42px minmax(0, 1fr);

        gap: 12px;

        padding: 17px 15px;
    }

    .law-benefit__icon {
        width: 42px;
        height: 42px;
    }

    .law-explanation__example-text {
        font-size: 17px;
    }
}


/* ============================================================
   12. ОБЩИЕ ССЫЛКИ В КОНТЕНТЕ
   ============================================================ */

.site-main a {
    outline: none;
}

.site-main a:focus-visible,
.site-main button:focus-visible,
.site-main input:focus-visible {
    outline: 3px solid rgba(24, 149, 137, 0.25);
    outline-offset: 3px;
}


/* ============================================================
   13. ЭКРАННЫЕ ЧИТАТЕЛИ
   ============================================================ */

.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* ============================================================
   14. АДАПТАЦИЯ ДЛЯ СРЕДНИХ ЭКРАНОВ
   ============================================================ */

@media (max-width: 1050px) {

    .law-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);

        gap: 40px;
    }

    .law-hero__title {
        font-size: clamp(40px, 5vw, 56px);
    }

    .law-hero__visual {
        min-height: 340px;
    }

    .law-hero__document {
        width: 330px;
        min-height: 315px;
    }

    .law-question-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .law-how {
        gap: 50px;
    }
}


/* ============================================================
   15. ПЛАНШЕТ
   ============================================================ */

@media (max-width: 800px) {

    .container {
        width: min(100% - 36px, 680px);
    }

    .law-section {
        padding: 72px 0;
    }

    .law-hero {
        padding: 68px 0 70px;
    }

    .law-hero__inner {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .law-hero__content {
        max-width: none;
    }

    .law-hero__visual {
        min-height: 300px;
    }

    .law-hero__document {
        width: min(350px, 80%);
        min-height: 300px;
    }

    .law-directions {
        grid-template-columns: 1fr;
    }

    .law-question-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .law-act-grid {
        grid-template-columns: 1fr;
    }

    .law-how {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .law-how__content {
        max-width: 700px;
    }

    .law-notice {
        grid-template-columns: 60px minmax(0, 1fr);

        gap: 22px;

        padding: 30px;
    }

    .law-notice__icon {
        width: 58px;
        height: 58px;
    }

    .law-crosslink {
        grid-template-columns: 1fr;

        gap: 28px;

        padding: 40px;
    }

    .law-crosslink__action {
        justify-self: start;
    }
}


/* ============================================================
   16. МОБИЛЬНЫЕ УСТРОЙСТВА
   ============================================================ */

@media (max-width: 560px) {

    .container {
        width: calc(100% - 28px);
    }

    .law-section {
        padding: 58px 0;
    }

    .law-hero {
        padding: 52px 0 55px;
    }

    .law-hero__eyebrow {
        margin-bottom: 17px;

        font-size: 11px;
    }

    .law-hero__title {
        margin-bottom: 19px;

        font-size: 38px;
        line-height: 1.05;
    }

    .law-hero__description {
        margin-bottom: 25px;

        font-size: 15px;
        line-height: 1.6;
    }

    .law-search-form {
        flex-direction: column;

        gap: 9px;
    }

    .law-search-form input[type="search"] {
        height: 54px;
    }

    .button {
        width: 100%;
        min-height: 54px;
    }

    .law-hero__hint {
        font-size: 12px;
    }

    .law-hero__visual {
        min-height: 245px;
    }

    .law-hero__visual::before {
        width: 230px;
        height: 230px;
    }

    .law-hero__visual::after {
        right: -4px;
        bottom: -5px;

        font-size: 125px;
    }

    .law-hero__document {
        width: min(290px, 83%);
        min-height: 245px;

        padding: 23px 23px 25px;

        border-radius: 13px;
    }

    .law-hero__document-mark {
        right: 21px;
        bottom: 21px;

        width: 57px;
        height: 57px;

        font-size: 29px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading--inline {
        display: block;
    }

    .section-heading--inline .text-link {
        display: inline-block;

        margin-top: 4px;
    }

    .section-heading__title {
        font-size: 30px;
    }

    .section-heading__description {
        font-size: 14px;
    }

    .law-direction-card {
        grid-template-columns: 48px minmax(0, 1fr) 23px;

        gap: 14px;

        min-height: 0;

        padding: 20px 18px;
    }

    .law-direction-card__icon {
        width: 48px;
        height: 48px;

        border-radius: 12px;

        font-size: 17px;
    }

    .law-direction-card__body h3 {
        font-size: 17px;
    }

    .law-direction-card__body p {
        font-size: 13px;
    }

    .law-question-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .law-question-card {
        min-height: 78px;

        padding: 15px 16px;
    }

    .law-act-card {
        min-height: 0;

        padding: 24px 22px;
    }

    .law-act-card h3 {
        font-size: 18px;
    }

    .law-how {
        gap: 34px;
    }

    .law-how__content .section-heading__title {
        font-size: 32px;
    }

    .law-how-step {
        grid-template-columns: 62px minmax(0, 1fr);

        gap: 17px;

        min-height: 104px;

        padding: 17px;
    }

    .law-how-step__number {
        width: 60px;
        height: 60px;

        font-size: 17px;
    }

    .law-how-step h3 {
        font-size: 17px;
    }

    .law-how-step p {
        font-size: 13px;
    }

    .law-notice {
        grid-template-columns: 1fr;

        gap: 19px;

        padding: 25px 22px;
    }

    .law-notice__icon {
        width: 54px;
        height: 54px;

        border-radius: 14px;
    }

    .law-notice__content h2 {
        font-size: 22px;
    }

    .law-notice__content p {
        font-size: 13px;
        line-height: 1.65;
    }

    .law-crosslink {
        padding: 31px 24px;

        border-radius: 16px;
    }

    .law-crosslink__content h2 {
        font-size: 28px;
    }

    .law-crosslink__content p {
        font-size: 14px;
    }

    .law-crosslink__action {
        width: 100%;
    }

    .law-crosslink .button--primary {
        width: 100%;
    }
}


/* ============================================================
   17. ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
   ============================================================ */

@media (max-width: 380px) {

    .container {
        width: calc(100% - 22px);
    }

    .law-hero__title {
        font-size: 34px;
    }

    .law-direction-card {
        grid-template-columns: 43px minmax(0, 1fr) 20px;

        gap: 11px;

        padding: 17px 14px;
    }

    .law-direction-card__icon {
        width: 43px;
        height: 43px;
    }

    .law-direction-card__body h3 {
        font-size: 16px;
    }

    .law-direction-card__body p {
        font-size: 12px;
    }

    .law-how-step {
        grid-template-columns: 54px minmax(0, 1fr);

        gap: 13px;

        padding: 14px;
    }

    .law-how-step__number {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 800px) {

    .law-hero {
        margin-top: -70px;
        padding-top: 140px;
    }

}

