@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --reed-bg: #0f1220;
    --reed-surface: #161a2b;
    --reed-surface-soft: #1d2338;
    --reed-panel: #202844;
    --reed-text: #f3f6ff;
    --reed-muted: #b7c0dc;

    --reed-primary: #5b7cff;
    --reed-primary-strong: #4a68e6;
    --reed-secondary: #22c1b5;
    --reed-accent: #f7b84b;

    --reed-link: #8fb2ff;
    --reed-link-hover: #c0d2ff;
    --reed-on-primary: #0b1433;

    --reed-border: rgba(177, 190, 227, 0.28);
    --reed-border-strong: rgba(177, 190, 227, 0.44);
    --reed-topbar-bg: rgba(11, 15, 30, 0.9);
    --reed-menu-bg: #141b31;
    --reed-cookie-bg: rgba(16, 22, 40, 0.95);
    --reed-shadow: 0 16px 34px rgba(3, 7, 15, 0.48);

    --reed-success: #35c78a;
    --reed-error: #ff6b7a;
    --reed-disabled-bg: #2a3045;
    --reed-disabled-text: #96a4ce;
    --reed-focus-ring: rgba(143, 178, 255, 0.55);
    --reed-state-success-bg: rgba(53, 199, 138, 0.2);
    --reed-state-error-bg: rgba(255, 107, 122, 0.2);
}

@media (prefers-color-scheme: light) {
    :root {
        --reed-bg: #f5f7ff;
        --reed-surface: #ffffff;
        --reed-surface-soft: #eef2ff;
        --reed-panel: #e9eeff;
        --reed-text: #1a2140;
        --reed-muted: #4b567f;

        --reed-primary: #3558e8;
        --reed-primary-strong: #2746c7;
        --reed-secondary: #0a8f87;
        --reed-accent: #b06a00;

        --reed-link: #2f51df;
        --reed-link-hover: #1e39b8;
        --reed-on-primary: #ffffff;

        --reed-border: rgba(73, 93, 164, 0.22);
        --reed-border-strong: rgba(73, 93, 164, 0.38);
        --reed-topbar-bg: rgba(255, 255, 255, 0.92);
        --reed-menu-bg: #f0f4ff;
        --reed-cookie-bg: rgba(245, 247, 255, 0.96);
        --reed-shadow: 0 16px 34px rgba(23, 35, 75, 0.14);

        --reed-success: #166645;
        --reed-error: #c7334a;
        --reed-disabled-bg: #d8deef;
        --reed-disabled-text: #55618a;
        --reed-focus-ring: rgba(53, 88, 232, 0.35);
        --reed-state-success-bg: rgba(31, 143, 95, 0.15);
        --reed-state-error-bg: rgba(199, 51, 74, 0.15);
    }
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
    scroll-behavior: smooth;
}

body.rd-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--reed-text);
    line-height: 1.65;
    letter-spacing: 0.01em;
    background:var(--reed-bg);}

.rd-main,
.rd-topbar__frame,
.rd-footer__inner {
    width: min(1200px, calc(100% - 3rem));
    margin: 0 auto;
}

.rd-main { margin-top: 2rem; margin-bottom: 3rem; }
.rd-main__inner { width: 100%; }

h1, h2, h3 { margin: 0 0 1rem; line-height: 1.25; }
p, ul, ol { margin: 0 0 1rem; }
a { color: var(--reed-link); }
a:hover { color: var(--reed-link-hover); }
img { display: block; max-width: 100%; border-radius: 14px; }

.rd-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: var(--reed-topbar-bg);
    border-bottom: 1px solid var(--reed-border);
}

.rd-topbar__frame {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1rem;
}

.rd-brand__logo { width: 156px; height: auto; }

.rd-nav { display: flex; align-items: center; gap: 1.4rem; margin: 0 auto; }
.rd-nav a,
.rd-drawer > a {
    color: var(--reed-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
}
.rd-nav a:hover,
.rd-drawer > a:hover {
    color: var(--reed-on-primary);
    background: var(--reed-primary);
}

.rd-menu-toggle {
    display: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    position: relative;
}

.rd-menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 4px;
    background: var(--reed-text);
    transition: 0.2s;
}
.rd-menu-toggle span:nth-child(1) { top: 6px; }
.rd-menu-toggle span:nth-child(2) { top: 15px; }
.rd-menu-toggle span:nth-child(3) { top: 24px; }
.rd-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.rd-menu-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.rd-menu-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.rd-auth { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }

.rd-btn {
    border-radius: 12px;
    padding: 0.58rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
     color: var(--reed-on-primary);
}

.rd-btn--solid {
    background: linear-gradient(135deg, var(--reed-primary), var(--reed-secondary));
    box-shadow: 0 10px 20px color-mix(in srgb, var(--reed-primary) 35%, transparent);
}
.rd-btn--solid:hover { background: linear-gradient(135deg, var(--reed-primary-strong), var(--reed-secondary)); color: var(--reed-on-primary); }
.rd-btn--ghost {
    border-color: var(--reed-border-strong);
    color: var(--reed-on-primary);
    background: color-mix(in srgb, var(--reed-panel) 72%, transparent);
}
.rd-btn--ghost:hover { border-color: var(--reed-primary); color: var(--reed-text); }


.rd-btn:focus-visible,
.rd-nav a:focus-visible,
.rd-drawer > a:focus-visible,
.rd-lang summary:focus-visible,
.rd-outline-toggle:focus-visible {
    outline: 3px solid var(--reed-focus-ring);
    outline-offset: 2px;
}

.rd-btn[aria-disabled="true"],
.rd-btn:disabled {
    background: var(--reed-disabled-bg);
    color: var(--reed-disabled-text);
    border-color: var(--reed-border);
    cursor: not-allowed;
    box-shadow: none;
}

.rd-state--success {
    color: var(--reed-success);
    background: var(--reed-state-success-bg);
}

.rd-state--error {
    color: var(--reed-error);
    background: var(--reed-state-error-bg);
}

.rd-hero-block .rd-btn--ghost,
.rd-content-shell .rd-btn--ghost {
    color: var(--reed-primary);
    border-color: color-mix(in srgb, var(--reed-primary) 45%, transparent);
}
.rd-hero-block .rd-btn--ghost:hover,
.rd-content-shell .rd-btn--ghost:hover {
    border-color: var(--reed-primary);
    color: var(--reed-primary);
}

.rd-drawer { display: none; }
.rd-page-wrap,
.rd-main-column { width: 100%; }

.rd-hero-block,
.rd-content-shell {
    background: var(--reed-surface-soft);
    border-radius: 18px;
    
    padding: 3rem;
}

.rd-hero-block { margin-bottom: 1rem; }
.rd-hero-block h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }


.rd-hero-block--image-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 40%);
    grid-template-areas:
        "text media"
        "cta media";
    align-items: center;
    column-gap: 1.2rem;
    row-gap: .8rem;
}

.rd-hero-block--image-right .rd-hero-block__text { grid-area: text; }
.rd-hero-block--image-right .rd-hero-block__media { grid-area: media; }
.rd-hero-block--image-right .rd-hero-block__cta { grid-area: cta; }
.rd-hero-block--image-right .rd-hero-block__media img {
    width: 100%;
    height: auto;
    display: block;
}

.rd-content-shell h2 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.rd-content-shell h2,
.rd-content-shell h3,
.rd-content-shell h4 {
    color: var(--reed-text);
    line-height: 1.35;
    letter-spacing: 0;
}
.rd-content-shell p,
.rd-content-shell li,
.rd-content-shell td,
.rd-content-shell th,
.rd-outline,
.rd-footer {
    color: var(--reed-muted);
}
.rd-content-shell ul,
.rd-content-shell ol { padding-left: 1.2rem; }
.rd-content-shell code {
    background: var(--reed-surface-soft);
    border-radius: 6px;
    padding: 0.08rem 0.35rem;
}
/* Обёртка (figure.table) — именно она отвечает за скролл и скругления */
figure.table {
  width: 100%;
  margin: 1rem 0;
  overflow-x: auto;
  border: 1px solid var(--reed-border);
  border-radius: 12px;
 
}

/* Таблица остаётся таблицей */
.rd-content-shell figure.table > table {
  width: 100%;
  border-collapse: separate; /* важно для border-radius через обёртку */
  border-spacing: 0;
  margin: 0;                /* чтобы не раздувать обёртку */
}

/* Шапка */
.rd-content-shell thead {
  background: color-mix(in srgb, var(--reed-primary) 18%, transparent);
}

.rd-content-shell th,
.rd-content-shell td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--reed-border);
  text-align: left;
  vertical-align: top;
}

.rd-content-shell tr:last-child td {
  border-bottom: none;
}

.rd-content-shell th {
  font-weight: 600;
  color: var(--reed-text);
}

.rd-hero-block h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.rd-content-block h2 {
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.rd-content-block ul,
.rd-content-block ol {
    padding-left: 1.2rem;
}

.rd-content-block code {
    background: var(--reed-surface-soft);
    border-radius: 6px;
    padding: 0.08rem 0.35rem;
}

.rd-cta-group {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.rd-content-block .rd-btn--ghost {
    color: var(--reed-primary);
    border-color: color-mix(in srgb, var(--reed-primary) 45%, transparent);
}

.rd-content-block .rd-btn--ghost:hover {
    border-color: var(--reed-primary);
    color: var(--reed-primary);
}

.rd-outline-toggle {
display: inline-flex;
    border-radius: 999px;
    background: var(--reed-surface-soft);
    color: var(--reed-text);
    border: 1px solid var(--reed-border-strong);
    font-weight: 600;
    margin: 0 0 1rem;
    cursor: pointer;
    padding: 10px 20px;
}

.rd-outline {
    display: none;
    
    border: 1px solid var(--reed-border);
    border-radius: 12px;
    padding: 0.9rem;
    margin-bottom: 1rem;
}

.rd-outline.is-open { display: block; }

.rd-outline__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.7rem; }
.rd-outline__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.rd-outline__list a { color: var(--reed-muted); text-decoration: none; }
.rd-outline__list a:hover { color: var(--reed-primary); }

.rd-content-divider {
    border: 0;
    border-top: 1px solid var(--reed-border);
    margin: 1.25rem 0;
}

.rd-faq-list { display: grid; gap: 0.75rem; }
.rd-faq-entry {
    border: 1px solid var(--reed-border);
    border-radius: 14px;

}

.rd-faq-entry__trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem;
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
}

.rd-faq-entry__trigger h3 { margin: 0; font-size: 1.3rem; }
.rd-faq-entry__glyph {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--reed-primary);
    transition: transform 0.2s;
}
.rd-faq-entry__trigger.is-open .rd-faq-entry__glyph { transform: rotate(45deg); }
.rd-faq-entry__answer { display: none; padding: 0 1rem 1rem; }
.rd-faq-entry__answer.is-open { display: block; }

.rd-footer {
    background: var(--reed-surface-soft);
    color: var(--reed-muted);
    margin-top: 1rem;
    border-top: 1px solid var(--reed-border);
}

.rd-footer__inner {
    display: grid;
    gap: 1.35rem;
    border-radius: 18px;
    padding: 2.4rem 2.2rem;
}

.rd-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.rd-footer__company {
    max-width: 680px;
}

.rd-footer__kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--reed-muted);
}

.rd-footer__brand {
    margin: 0.2rem 0 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--reed-text);
}

.rd-footer__mission {
    margin: 0.5rem 0 0;
    color: var(--reed-muted);
}

.rd-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.8rem;
    border-top: 1px solid var(--reed-border);
    border-bottom: 1px solid var(--reed-border);
    padding: 0.9rem 0;
}

.rd-footer__links a {
    color: var(--reed-text);
    text-decoration: none;
    border: 1px solid var(--reed-border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.42rem 0.8rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.rd-footer__links a:hover {
    color: var(--reed-link-hover);
    border-color: var(--reed-primary);
    background: color-mix(in srgb, var(--reed-primary) 18%, transparent);
}

.rd-footer__compliance {
    display: grid;
    gap: 0.55rem;
}

.rd-footer__compliance-title {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--reed-muted);
}

.rd-footer__logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.rd-footer__logos-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.rd-footer__logos-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.95;
}

.rd-footer__logos-item a {
    display: inline-flex;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.rd-footer__logos-item a:hover {
    transform: translateY(-1px);
    opacity: 0.85;
}

.rd-footer__legal {
    display: grid;
    gap: 0.45rem;
}

.rd-footer__copyright {
    margin: 0;
    color: var(--reed-text);
    font-weight: 500;
}

.rd-footer__disclaimer,
.footer-extra-text {
    margin: 0;
    color: var(--reed-muted);
    font-size: 0.92rem;
}

.rd-lang { position: relative; }
.rd-lang summary {
    list-style: none;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid var(--reed-border-strong);
    color: var(--reed-text);
    padding: 0.45rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.rd-lang summary::-webkit-details-marker { display: none; }
.rd-lang__status {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--reed-success);
}

.rd-lang__marker {
    color: var(--reed-link);
    font-weight: 700;
}

.rd-lang ul {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.4rem);
    margin: 0;
    padding: 0.35rem;
    min-width: 130px;
    list-style: none;
    border-radius: 10px;
    border: 1px solid var(--reed-border);
    background: var(--reed-panel);
    box-shadow: var(--reed-shadow);
}
.rd-lang ul a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: var(--reed-text);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
}
.rd-lang ul a:hover,
.rd-lang ul a.is-current { background: color-mix(in srgb, var(--reed-primary) 18%, transparent); }

@media (max-width: 980px) {
    .rd-topbar__frame { grid-template-columns: auto 1fr auto; }

    .rd-nav--desktop,
    .rd-auth--desktop {
        display: none;
    }

    .rd-menu-toggle { display: block; margin-left: auto;}

    .rd-drawer {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--reed-menu-bg);
        padding: 1rem;
        border-top: 1px solid var(--reed-border);
        flex-direction: column;
        gap: 0.65rem;
        display: flex;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: 0.25s;
    }

    .rd-drawer.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .rd-lang ul {
        right: auto;
        left: 0;
    }

    .rd-footer__inner {
        padding: 1.7rem 1.1rem;
    }

    .rd-footer__brand {
        font-size: 1.1rem;
    }

    .rd-footer__links {
        gap: 0.5rem;
    }

    .rd-footer__links a {
        width: 100%;
        text-align: center;
    }
}

.rd-section-base {
    padding: 1rem 0;
}

.rd-section-base__header {
    margin-bottom: .7rem;
}

.rd-section-base__subtitle {
    margin: .25rem 0 0;
    font-size: .92rem;
    color: var(--reed-muted);
}

 .rd-text-image-left__grid,
.rd-text-image-float__layout {
    display: contents;
}

.rd-text-image-left {
    display: grid;
    grid-template-columns: minmax(180px, 320px) 1fr;
    gap: 1rem;
    align-items: start;
}

.rd-text-image-left--image-right .rd-text-image-left__media {
    order: 2;
}

.rd-text-image-float__media {
    width: min(320px, 42%);
    margin-bottom: .55rem;
}

.rd-text-image-float__media img {
    width: 100%;
    height: auto;
}

.rd-text-image-float--left .rd-text-image-float__media {
    float: left;
    margin-right: 1rem;
}

.rd-text-image-float--right .rd-text-image-float__media {
    float: right;
    margin-left: 1rem;
}

.rd-text-image-float::after {
    content: "";
    display: table;
    clear: both;
}

.rd-text-image-left__media img {
    width: 100%;
    height: auto;
}

.rd-mini-cards,
.rd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}

.rd-catalog-extended {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.rd-catalog-extended__item,
.rd-catalog-image-only__item,
.rd-mini-cards__item,
.rd-gallery-slider__item,
.rd-gallery-grid figure,
.rd-section-fallback,
.rd-catalog-list-view__item {
    background: var(--reed-surface-soft);
    border: 1px solid var(--reed-border);
    border-radius: 12px;
    padding: .85rem;
}

.rd-catalog-extended__item {
    color: inherit;
    text-decoration: none;
    display: grid;
    gap: .55rem;
}

.rd-catalog-extended__item img,
.rd-catalog-image-only__item img,
.rd-catalog-list-view__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.rd-catalog-image-only {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.rd-catalog-image-only__item {
    display: block;
    padding: .4rem;
}

.rd-mini-inline,
.rd-catalog-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: .55rem;
}

.rd-catalog-list-view {
    display: grid;
    gap: .75rem;
}

.rd-catalog-list-view__item {
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(120px, 180px) 1fr;
    align-items: start;
}

.rd-catalog-list-view__image {
    display: block;
}

.rd-catalog-list-view__link {
    display: inline-block;
    margin-top: .5rem;
}

.rd-gallery-slider {
    display: grid;
    gap: .65rem;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
}

.rd-gallery-grid img,
.rd-gallery-slider img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.rd-text-compact > *:first-child {
    margin-top: 0;
}

@media (max-width: 860px) {
    .rd-text-image-left {
        grid-template-columns: 1fr;
    }

    .rd-text-image-left--image-right .rd-text-image-left__media {
        order: initial;
    }

    .rd-text-image-float__media {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }

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

    .rd-catalog-image-only {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rd-catalog-list-view__item {
        grid-template-columns: 1fr;
    }

    .rd-hero-block--image-right {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "media"
            "cta";
    }
    .rd-hero-block, .rd-content-shell {
    background: var(--reed-surface-soft);
    border-radius: 18px;
    padding: 1rem;
}
}

.rd-cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: none;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--reed-border);
    background: var(--reed-cookie-bg);
    box-shadow: var(--reed-shadow);
}

.rd-cookie.is-visible {
    display: flex;
}

.rd-cookie__text {
    margin: 0;
    color: var(--reed-text);
    max-width: 760px;
}

.rd-cookie__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rd-cookie__btn {
    cursor: pointer;
}
