/* ==========================================================
   OPALUBKI.KZ | GLOBAL DESIGN SYSTEM v1.0
   Joomla 6 + Balbooa Gridbox

   Единые стили для всех будущих секций:
   - Цветовая система
   - Типографика
   - Выравнивание влево
   - Контейнеры и секции
   - Сетки и карточки
   - Кнопки и CTA
   - Формы и поля ввода
   - Интерактивные элементы
   - Анимации
   - Адаптивность от 320px

   ВАЖНО:
   Все стили ограничены префиксом opk-.
   Системные элементы Joomla не затрагиваются.
========================================================== */


/* ==========================================================
   01. DESIGN TOKENS
========================================================== */

:root {

    /* BRAND COLORS */

    --opk-dark: #05080d;
    --opk-navy: #08111d;
    --opk-navy-light: #0b1625;
    --opk-graphite: #161d27;

    --opk-yellow: #f5b400;
    --opk-yellow-light: #ffd54d;
    --opk-yellow-hover: #ffca2c;

    /* BACKGROUNDS */

    --opk-bg: #ffffff;
    --opk-bg-soft: #f5f6f8;
    --opk-bg-muted: #edf0f4;

    --opk-bg-dark: #08111d;
    --opk-bg-card-dark: #101c2a;

    /* TEXT */

    --opk-text: #17202c;
    --opk-text-muted: #5d6877;
    --opk-text-light: #ffffff;
    --opk-text-light-muted: #c3cad4;

    /* BORDERS */

    --opk-border: #e1e5ea;
    --opk-border-dark: rgba(255,255,255,.12);
    --opk-border-gold: rgba(245,180,0,.35);

    /* STATES */

    --opk-success: #21875c;
    --opk-error: #cf4040;
    --opk-warning: #b47b00;

    /* LAYOUT */

    --opk-container: 1320px;
    --opk-gutter: 24px;

    --opk-section-space: 96px;
    --opk-section-space-mobile: 56px;

    --opk-grid-gap: 24px;
    --opk-card-padding: 28px;

    /* RADIUS */

    --opk-radius-xs: 8px;
    --opk-radius-sm: 12px;
    --opk-radius-md: 18px;
    --opk-radius-lg: 24px;
    --opk-radius-xl: 32px;

    /* SHADOWS */

    --opk-shadow-sm:
        0 5px 18px rgba(9,19,32,.06);

    --opk-shadow-md:
        0 14px 40px rgba(9,19,32,.10);

    --opk-shadow-lg:
        0 24px 65px rgba(9,19,32,.16);

    --opk-shadow-gold:
        0 12px 32px rgba(245,180,0,.24);

    /* TYPOGRAPHY */

    --opk-font:
        "Roboto",
        Arial,
        Helvetica,
        sans-serif;

    --opk-h1:
        clamp(36px, 5.2vw, 76px);

    --opk-h2:
        clamp(30px, 3.8vw, 52px);

    --opk-h3:
        clamp(20px, 2vw, 26px);

    --opk-body-size:
        16px;

    --opk-body-line:
        1.65;

    /* ANIMATION */

    --opk-ease:
        cubic-bezier(.22,1,.36,1);

    --opk-transition:
        280ms var(--opk-ease);
}


/* ==========================================================
   02. GLOBAL RESET
========================================================== */

:where(
    .opk-section,
    .opk-header,
    .opk-footer,
    .opk-sticky
),
:where(
    .opk-section,
    .opk-header,
    .opk-footer,
    .opk-sticky
) *,
:where(
    .opk-section,
    .opk-header,
    .opk-footer,
    .opk-sticky
) *::before,
:where(
    .opk-section,
    .opk-header,
    .opk-footer,
    .opk-sticky
) *::after {
    box-sizing: border-box;
}

:where(
    .opk-section,
    .opk-header,
    .opk-footer,
    .opk-sticky
) {
    font-family: var(--opk-font);
    text-align: left;
}

.opk-section {
    width: 100%;
    min-width: 0;
    position: relative;
    isolation: isolate;
    background: var(--opk-bg);
    color: var(--opk-text);
}

/* ОБЯЗАТЕЛЬНОЕ ВЫРАВНИВАНИЕ ВЛЕВО */

.opk-section :is(
    h1, h2, h3, h4, h5, h6,
    p, li, dt, dd, blockquote,
    label, small, figcaption
),
.opk-header :is(
    h1, h2, h3, p, span, a, label
),
.opk-footer :is(
    h2, h3, h4, p, li, span, a, label
),
.opk-section-head,
.opk-card,
.opk-card__body,
.opk-stat,
.opk-field,
.opk-form,
.opk-lead {
    text-align: left !important;
}

.opk-section img,
.opk-header img,
.opk-footer img {
    display: block;
    max-width: 100%;
}

.opk-section svg,
.opk-header svg,
.opk-footer svg {
    flex-shrink: 0;
}

.opk-section a,
.opk-header a,
.opk-footer a {
    text-decoration: none;
}

.opk-section button,
.opk-section input,
.opk-section select,
.opk-section textarea {
    font: inherit;
}

.opk-section button {
    cursor: pointer;
}

.opk-section [hidden] {
    display: none !important;
}

.opk-section :is(
    a, button, input, select, textarea,
    summary, [tabindex]
):focus-visible {
    outline: 3px solid var(--opk-yellow);
    outline-offset: 3px;
}


/* ==========================================================
   03. GLOBAL CONTAINER
========================================================== */

.opk-container {
    width: 100%;
    max-width: var(--opk-container);
    margin-inline: auto;
    padding-inline: var(--opk-gutter);
    min-width: 0;
}

.opk-container--wide {
    max-width: 1480px;
}

.opk-container--narrow {
    max-width: 960px;
}

.opk-container--text {
    max-width: 800px;
}


/* ==========================================================
   04. GLOBAL SECTIONS
========================================================== */

.opk-section {
    padding-block: var(--opk-section-space);
}

.opk-section--compact {
    padding-block: 64px;
}

.opk-section--large {
    padding-block: 120px;
}

.opk-section--white {
    background: #ffffff;
}

.opk-section--soft {
    background: var(--opk-bg-soft);
}

.opk-section--muted {
    background: var(--opk-bg-muted);
}

.opk-section--dark {
    background:
        linear-gradient(
            125deg,
            var(--opk-dark) 0%,
            var(--opk-navy) 52%,
            var(--opk-navy-light) 100%
        );

    color: var(--opk-text-light);
}

.opk-section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 82% 12%,
            rgba(245,180,0,.07),
            transparent 48%
        );
}

.opk-section--no-top {
    padding-top: 0;
}

.opk-section--no-bottom {
    padding-bottom: 0;
}

.opk-section--flush {
    padding-block: 0;
}


/* ==========================================================
   05. SECTION HEADERS
========================================================== */

.opk-section-head {
    width: 100%;
    max-width: 850px;
    margin: 0 0 44px;
}

.opk-section-head--wide {
    max-width: 1050px;
}

.opk-section-head--compact {
    margin-bottom: 28px;
}

.opk-section-head > :last-child {
    margin-bottom: 0;
}

.opk-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 16px;
    padding: 0;

    color: var(--opk-warning);

    font-size: 12px;
    line-height: 1.4;
    font-weight: 900;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.opk-kicker::before {
    content: "";
    width: 24px;
    height: 3px;
    flex: 0 0 24px;

    border-radius: 4px;
    background: var(--opk-yellow);
}

.opk-section--dark .opk-kicker {
    color: var(--opk-yellow-light);
}


/* ==========================================================
   06. GLOBAL TYPOGRAPHY
========================================================== */

.opk-section h1,
.opk-section h2,
.opk-section h3,
.opk-section h4,
.opk-section h5,
.opk-section h6 {
    font-family: var(--opk-font);
    font-style: normal;
    text-align: left !important;
    text-transform: none;

    margin-top: 0;
    padding: 0;

    overflow-wrap: break-word;
    hyphens: manual;
}

/* H1 */

.opk-section h1,
.opk-h1 {
    font-size: var(--opk-h1);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.045em;
    margin-bottom: 24px;
}

/* H2 */

.opk-section h2,
.opk-h2,
.opk-title {
    font-size: var(--opk-h2);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.035em;
    margin-bottom: 22px;
}

/* H3 */

.opk-section h3,
.opk-h3 {
    font-size: var(--opk-h3);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 14px;
}

/* H4 */

.opk-section h4,
.opk-h4 {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
    margin-bottom: 12px;
}

/* H5 / H6 */

.opk-section h5,
.opk-section h6 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 800;
    margin-bottom: 10px;
}

/* PARAGRAPHS */

.opk-section p,
.opk-text {
    margin: 0 0 16px;

    font-size: var(--opk-body-size);
    line-height: var(--opk-body-line);
    font-weight: 400;

    color: var(--opk-text-muted);
    text-align: left !important;
}

/* LARGE SUBTITLE */

.opk-lead,
.opk-section .opk-lead {
    max-width: 800px;

    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.6;
    font-weight: 400;

    color: var(--opk-text-muted);
}

/* SMALL TEXT */

.opk-small,
.opk-section .opk-small {
    font-size: 13px;
    line-height: 1.55;
    color: var(--opk-text-muted);
}

/* EMPHASIS */

.opk-accent {
    color: var(--opk-yellow);
}

.opk-highlight {
    display: inline;
    color: var(--opk-yellow);
}

.opk-strong {
    font-weight: 800;
}

.opk-muted {
    color: var(--opk-text-muted);
}

/* DARK TYPOGRAPHY */

.opk-section--dark :is(
    h1, h2, h3, h4, h5, h6
) {
    color: #ffffff;
}

.opk-section--dark :is(
    p, .opk-text, .opk-lead, .opk-small
) {
    color: var(--opk-text-light-muted);
}

.opk-section--dark .opk-accent,
.opk-section--dark .opk-highlight {
    color: var(--opk-yellow-light);
}


/* ==========================================================
   07. LISTS
========================================================== */

.opk-list {
    display: grid;
    gap: 14px;

    list-style: none;
    padding: 0;
    margin: 0;
}

.opk-list li {
    position: relative;
    padding-left: 28px;

    line-height: 1.55;
    text-align: left !important;
}

.opk-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;

    width: 10px;
    height: 10px;

    border-radius: 3px;
    background: var(--opk-yellow);
    transform: rotate(45deg);
}

.opk-list--check li::before {
    content: "✓";
    top: 0;

    width: auto;
    height: auto;

    background: none;
    transform: none;

    color: var(--opk-success);
    font-weight: 900;
}

.opk-section--dark .opk-list--check li::before {
    color: var(--opk-yellow);
}


/* ==========================================================
   08. GLOBAL GRIDS
========================================================== */

.opk-grid {
    display: grid;
    gap: var(--opk-grid-gap);
    min-width: 0;
    align-items: stretch;
}

.opk-grid > * {
    min-width: 0;
}

.opk-grid--2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.opk-grid--3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.opk-grid--4 {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.opk-grid--auto {
    grid-template-columns:
        repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.opk-grid--compact {
    gap: 16px;
}

.opk-grid--large {
    gap: 32px;
}

/* TWO-COLUMN CONTENT */

.opk-split {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;
    gap: clamp(32px, 5vw, 80px);
}

.opk-split--wide-left {
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, .85fr);
}

.opk-split--wide-right {
    grid-template-columns:
        minmax(0, .85fr)
        minmax(0, 1.15fr);
}


/* ==========================================================
   09. GLOBAL CARDS
========================================================== */

.opk-card {
    position: relative;
    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    padding: var(--opk-card-padding);

    border: 1px solid var(--opk-border);
    border-radius: var(--opk-radius-md);

    background: #ffffff;
    color: var(--opk-text);

    box-shadow: var(--opk-shadow-sm);

    text-align: left !important;

    transition:
        transform var(--opk-transition),
        box-shadow var(--opk-transition),
        border-color var(--opk-transition);
}

.opk-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--opk-shadow-md);
    border-color: rgba(245,180,0,.35);
}

.opk-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.opk-card__body > :last-child {
    margin-bottom: 0;
}

.opk-card__footer {
    margin-top: auto;
    padding-top: 24px;
}

.opk-card__title {
    margin: 0 0 12px;

    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--opk-text);
}

.opk-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--opk-text-muted);
}

/* CARD IMAGE */

.opk-card__media {
    position: relative;
    overflow: hidden;

    width: 100%;
    aspect-ratio: 4 / 3;

    margin-bottom: 22px;
    border-radius: var(--opk-radius-sm);

    background: var(--opk-bg-soft);
}

.opk-card__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 500ms var(--opk-ease);
}

.opk-card:hover .opk-card__media img {
    transform: scale(1.045);
}

/* CARD ICON */

.opk-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    flex: 0 0 56px;

    margin: 0 0 22px;

    border-radius: var(--opk-radius-sm);

    color: var(--opk-warning);
    background: rgba(245,180,0,.10);
    border: 1px solid rgba(245,180,0,.25);
}

.opk-icon-box svg {
    width: 27px;
    height: 27px;
}

/* DARK CARDS */

.opk-section--dark .opk-card,
.opk-card--dark {
    background: var(--opk-bg-card-dark);
    border-color: var(--opk-border-dark);
    color: #ffffff;
    box-shadow: 0 16px 42px rgba(0,0,0,.16);
}

.opk-section--dark .opk-card__title,
.opk-card--dark .opk-card__title {
    color: #ffffff;
}

.opk-section--dark .opk-card__text,
.opk-card--dark .opk-card__text {
    color: var(--opk-text-light-muted);
}

.opk-section--dark .opk-card:hover,
.opk-card--dark:hover {
    border-color: var(--opk-border-gold);
}

/* FEATURED CARD */

.opk-card--featured {
    border-color: var(--opk-yellow);
    box-shadow: var(--opk-shadow-md);
}

.opk-card--featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;

    width: 70px;
    height: 3px;

    background: var(--opk-yellow);
    border-radius: 0 0 4px 4px;
}


/* ==========================================================
   10. BUTTONS
========================================================== */

.opk-btn {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    min-height: 54px;
    max-width: 100%;

    padding: 14px 24px;

    border: 1px solid transparent;
    border-radius: var(--opk-radius-xs);

    font-family: var(--opk-font);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;

    text-align: left !important;
    text-decoration: none !important;

    cursor: pointer;

    transition:
        transform var(--opk-transition),
        background var(--opk-transition),
        border-color var(--opk-transition),
        box-shadow var(--opk-transition);
}

.opk-btn > span {
    position: relative;
    z-index: 1;
}

.opk-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* YELLOW BUTTON */

.opk-btn--primary {
    color: #171a1e !important;

    background:
        linear-gradient(
            135deg,
            var(--opk-yellow-light),
            var(--opk-yellow)
        );

    box-shadow: var(--opk-shadow-gold);
}

.opk-btn--primary:hover {
    background:
        linear-gradient(
            135deg,
            #ffe17a,
            var(--opk-yellow-hover)
        );

    color: #171a1e !important;
}

/* DARK BUTTON */

.opk-btn--dark {
    background: var(--opk-navy);
    color: #ffffff !important;
    border-color: var(--opk-navy);
}

.opk-btn--dark:hover {
    background: #142337;
    color: #ffffff !important;
}

/* OUTLINE BUTTON */

.opk-btn--outline {
    background: transparent;
    color: var(--opk-text) !important;
    border-color: var(--opk-border);
}

.opk-btn--outline:hover {
    border-color: var(--opk-yellow);
    color: var(--opk-text) !important;
}

.opk-section--dark .opk-btn--outline {
    border-color: rgba(255,255,255,.28);
    color: #ffffff !important;
}

.opk-section--dark .opk-btn--outline:hover {
    border-color: var(--opk-yellow);
}

/* BUTTON SIZES */

.opk-btn--sm {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 13px;
}

.opk-btn--lg {
    min-height: 62px;
    padding: 17px 30px;
    font-size: 16px;
}

.opk-btn--block {
    display: flex;
    width: 100%;
}

.opk-btn:hover {
    transform: translateY(-2px);
}

.opk-btn:active {
    transform: translateY(0) scale(.99);
}

.opk-btn:disabled,
.opk-btn[aria-disabled="true"] {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* CTA GROUP */

.opk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;

    gap: 14px;
    margin-top: 30px;
}


/* ==========================================================
   11. BUTTON SHINE EFFECT
========================================================== */

.opk-btn--shine {
    isolation: isolate;
    overflow: hidden;
}

.opk-btn--shine::after {
    content: "";

    position: absolute;
    z-index: 0;
    pointer-events: none;

    top: -70%;
    left: -60%;

    width: 25%;
    height: 240%;

    transform: rotate(22deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.34),
            transparent
        );

    animation:
        opk-button-shine 5.5s ease-in-out infinite;
}

@keyframes opk-button-shine {
    0%, 65% {
        left: -60%;
    }

    90%, 100% {
        left: 145%;
    }
}


/* ==========================================================
   12. LABELS / BADGES / TAGS
========================================================== */

.opk-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    max-width: 100%;

    padding: 7px 12px;

    border-radius: 100px;

    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;

    text-align: left;

    color: #674900;
    background: #fff3c9;
    border: 1px solid rgba(245,180,0,.25);
}

.opk-badge--dark {
    color: var(--opk-yellow-light);
    background: rgba(245,180,0,.10);
    border-color: rgba(245,180,0,.25);
}

.opk-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 11px;

    border-radius: 7px;

    background: var(--opk-bg-soft);
    color: var(--opk-text-muted);

    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.opk-section--dark .opk-tag {
    background: rgba(255,255,255,.07);
    color: #e6e9ef;
}


/* ==========================================================
   13. FORMS
========================================================== */

.opk-form {
    width: 100%;
    min-width: 0;
    text-align: left !important;
}

.opk-fields {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.opk-field {
    display: flex;
    flex-direction: column;
    gap: 8px;

    min-width: 0;
}

.opk-field--full {
    grid-column: 1 / -1;
}

.opk-field label,
.opk-label {
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;

    color: var(--opk-text);
    text-align: left !important;
}

.opk-input,
.opk-select,
.opk-textarea {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 52px;

    padding: 13px 16px;

    border: 1px solid #d7dde5;
    border-radius: var(--opk-radius-xs);

    outline: none;

    background: #ffffff;
    color: var(--opk-text);

    font-family: var(--opk-font);
    font-size: 16px;
    line-height: 1.4;

    text-align: left !important;

    box-shadow: none;

    transition:
        border-color var(--opk-transition),
        box-shadow var(--opk-transition);
}

.opk-textarea {
    min-height: 120px;
    resize: vertical;
}

.opk-input::placeholder,
.opk-textarea::placeholder {
    color: #8b95a2;
    opacity: 1;
}

.opk-input:focus,
.opk-select:focus,
.opk-textarea:focus {
    border-color: var(--opk-yellow);

    box-shadow:
        0 0 0 4px rgba(245,180,0,.12);
}

.opk-input[aria-invalid="true"],
.opk-select[aria-invalid="true"],
.opk-textarea[aria-invalid="true"] {
    border-color: var(--opk-error);
}

.opk-field__hint {
    font-size: 12px;
    line-height: 1.45;
    color: var(--opk-text-muted);
}

.opk-field__error {
    font-size: 12px;
    line-height: 1.45;
    color: var(--opk-error);
}

/* CHECKBOX */

.opk-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    cursor: pointer;
    text-align: left !important;
}

.opk-checkbox input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;

    margin: 2px 0 0;

    accent-color: var(--opk-yellow);
}

.opk-checkbox span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--opk-text-muted);
}


/* ==========================================================
   14. INTERACTIVE CHOICES
========================================================== */

.opk-choice-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.opk-choice {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 64px;

    padding: 15px 18px;

    background: #ffffff;

    border: 1px solid var(--opk-border);
    border-radius: var(--opk-radius-sm);

    color: var(--opk-text);

    text-align: left !important;

    cursor: pointer;

    transition:
        background var(--opk-transition),
        border-color var(--opk-transition),
        box-shadow var(--opk-transition);
}

.opk-choice:hover {
    border-color: var(--opk-yellow);
}

.opk-choice.is-active,
.opk-choice[aria-pressed="true"] {
    background: #fff9e8;
    border-color: var(--opk-yellow);

    box-shadow:
        0 0 0 2px rgba(245,180,0,.13);
}

.opk-choice__title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.opk-choice__description {
    font-size: 12px;
    line-height: 1.45;
    color: var(--opk-text-muted);
}


/* ==========================================================
   15. STATS
========================================================== */

.opk-stat {
    min-width: 0;
    text-align: left !important;
}

.opk-stat__number {
    display: block;

    font-size: clamp(28px, 3vw, 48px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.035em;

    color: var(--opk-text);
}

.opk-stat__label {
    display: block;
    margin-top: 8px;

    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;

    color: var(--opk-text-muted);
}

.opk-section--dark .opk-stat__number {
    color: var(--opk-yellow-light);
}

.opk-section--dark .opk-stat__label {
    color: var(--opk-text-light-muted);
}


/* ==========================================================
   16. FAQ
========================================================== */

.opk-faq {
    display: grid;
    gap: 12px;
}

.opk-faq-item {
    overflow: hidden;

    border: 1px solid var(--opk-border);
    border-radius: var(--opk-radius-sm);

    background: #ffffff;
}

.opk-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 20px 24px;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;

    color: var(--opk-text);

    text-align: left !important;
    cursor: pointer;

    list-style: none;
}

.opk-faq-item summary::-webkit-details-marker {
    display: none;
}

.opk-faq-item summary::after {
    content: "+";

    font-size: 26px;
    line-height: 1;

    color: var(--opk-yellow);
}

.opk-faq-item[open] summary::after {
    content: "−";
}

.opk-faq-item__content {
    padding: 0 24px 22px;

    color: var(--opk-text-muted);

    font-size: 15px;
    line-height: 1.65;
    text-align: left !important;
}

.opk-faq-item__content > :last-child {
    margin-bottom: 0;
}


/* ==========================================================
   17. ALERTS / FORM STATES
========================================================== */

.opk-alert {
    padding: 15px 18px;

    border-radius: var(--opk-radius-xs);
    border: 1px solid var(--opk-border);

    background: var(--opk-bg-soft);
    color: var(--opk-text);

    font-size: 14px;
    line-height: 1.5;
    text-align: left !important;
}

.opk-alert--success {
    background: #eaf8ef;
    border-color: #b6e4c9;
    color: #176840;
}

.opk-alert--error {
    background: #fff0f0;
    border-color: #f3c1c1;
    color: #a52e2e;
}

.opk-alert--warning {
    background: #fff8e4;
    border-color: #f1dfaa;
    color: #775500;
}


/* ==========================================================
   18. DIVIDERS
========================================================== */

.opk-divider {
    width: 100%;
    height: 1px;

    margin-block: 30px;

    border: 0;
    background: var(--opk-border);
}

.opk-section--dark .opk-divider {
    background: var(--opk-border-dark);
}


/* ==========================================================
   19. SCROLL ANIMATIONS
========================================================== */

.opk-reveal {
    opacity: 0;
    transform: translateY(24px);

    transition:
        opacity 650ms var(--opk-ease),
        transform 650ms var(--opk-ease);
}

/* JS добавляет класс после попадания в viewport */

.opk-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Без JS контент не должен исчезать */

@starting-style {
    .opk-reveal.is-visible {
        opacity: 0;
    }
}

/* Дополнительные эффекты */

.opk-hover-lift {
    transition:
        transform var(--opk-transition),
        box-shadow var(--opk-transition);
}

.opk-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--opk-shadow-md);
}

.opk-image-zoom {
    overflow: hidden;
}

.opk-image-zoom img {
    transition:
        transform 550ms var(--opk-ease);
}

.opk-image-zoom:hover img {
    transform: scale(1.05);
}


/* ==========================================================
   20. GLOBAL RESPONSIVE | 1200px
========================================================== */

@media (max-width: 1200px) {

    :root {
        --opk-container: 1120px;
        --opk-section-space: 80px;
        --opk-grid-gap: 20px;
    }

    .opk-grid--4 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .opk-split {
        gap: 40px;
    }
}


/* ==========================================================
   21. TABLET | 991px
========================================================== */

@media (max-width: 991px) {

    :root {
        --opk-gutter: 20px;
        --opk-section-space: 72px;
    }

    .opk-grid--3 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .opk-split,
    .opk-split--wide-left,
    .opk-split--wide-right {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .opk-section-head {
        margin-bottom: 36px;
    }

    .opk-card {
        padding: 24px;
    }
}


/* ==========================================================
   22. MOBILE | 767px
========================================================== */

@media (max-width: 767px) {

    :root {
        --opk-gutter: 16px;

        --opk-section-space:
            var(--opk-section-space-mobile);

        --opk-grid-gap: 16px;
        --opk-card-padding: 20px;

        --opk-h1: clamp(34px, 8vw, 52px);
        --opk-h2: clamp(28px, 7vw, 38px);
        --opk-h3: 20px;

        --opk-body-size: 15px;
        --opk-body-line: 1.6;
    }

    .opk-section--compact {
        padding-block: 42px;
    }

    .opk-section--large {
        padding-block: 72px;
    }

    .opk-section-head {
        margin-bottom: 30px;
    }

    .opk-kicker {
        margin-bottom: 13px;
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .opk-section h1,
    .opk-h1 {
        margin-bottom: 20px;
    }

    .opk-section h2,
    .opk-h2,
    .opk-title {
        margin-bottom: 18px;
    }

    .opk-lead {
        font-size: 16px;
    }

    .opk-grid--2,
    .opk-grid--3 {
        grid-template-columns: 1fr;
    }

    .opk-grid--4 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .opk-card {
        border-radius: 14px;
    }

    .opk-card__title {
        font-size: 19px;
    }

    .opk-card__text {
        font-size: 14px;
    }

    .opk-card__footer {
        padding-top: 18px;
    }

    .opk-actions {
        gap: 12px;
        margin-top: 24px;
    }

    .opk-btn {
        min-height: 52px;
        padding: 13px 18px;
        font-size: 14px;
    }

    .opk-btn--lg {
        min-height: 56px;
    }

    .opk-fields {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .opk-field--full {
        grid-column: auto;
    }

    .opk-choice-grid {
        gap: 10px;
    }

    .opk-choice {
        min-height: 58px;
        padding: 12px;
    }

    .opk-faq-item summary {
        padding: 17px 18px;
        font-size: 15px;
    }

    .opk-faq-item__content {
        padding: 0 18px 18px;
        font-size: 14px;
    }
}


/* ==========================================================
   23. SMALL MOBILE | 480px
========================================================== */

@media (max-width: 480px) {

    .opk-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .opk-actions .opk-btn {
        width: 100%;
    }

    .opk-grid--4 {
        gap: 12px;
    }

    .opk-choice-grid {
        grid-template-columns: 1fr;
    }

    .opk-icon-box {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .opk-icon-box svg {
        width: 24px;
        height: 24px;
    }
}


/* ==========================================================
   24. EXTRA SMALL | 360px
========================================================== */

@media (max-width: 360px) {

    :root {
        --opk-gutter: 14px;
        --opk-h1: 32px;
        --opk-h2: 27px;
        --opk-h3: 18px;
    }

    .opk-grid--4 {
        grid-template-columns: 1fr;
    }

    .opk-card {
        padding: 18px;
    }

    .opk-btn {
        padding: 12px 15px;
        font-size: 13px;
    }

    .opk-section h1,
    .opk-section h2,
    .opk-section h3 {
        letter-spacing: -.025em;
    }
}


/* ==========================================================
   25. ACCESSIBILITY / REDUCED MOTION
========================================================== */

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

    .opk-section *,
    .opk-section *::before,
    .opk-section *::after,
    .opk-header *,
    .opk-footer * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .opk-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================
   END | OPALUBKI GLOBAL CSS v1.0
========================================================== */
