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

:root {
    --awh-bg: #f4f7fd;
    --awh-surface: #ffffff;
    --awh-surface-soft: #eef3ff;
    --awh-panel: #ffffff;
    --awh-text: #1c2a3f;
    --awh-muted: #5e6e88;
    --awh-primary: #2f72e6;
    --awh-primary-strong: #1f5fcd;
    --awh-border: rgba(35, 62, 108, 0.16);
    --awh-shadow: 0 14px 30px rgba(21, 44, 89, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

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

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

.awh-main { margin-top: 2rem; margin-bottom: 3rem; }

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

.awh-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--awh-border);
}

.awh-topbar__frame {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.awh-topbar__nav-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

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

.awh-nav { display: flex; align-items: center; gap: 1.15rem; margin: 0; }

.awh-nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.awh-nav-link,
.awh-drawer-link,
.awh-drawer-sublink {
    color: var(--awh-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    display: inline-flex;
    align-items: center;
}

.awh-nav-item--has-children > .awh-nav-link {
    padding-right: 1.55rem;
}

.awh-nav-item--has-children::after {
    content: "";
    position: absolute;
    right: 0.55rem;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--awh-muted);
    border-bottom: 2px solid var(--awh-muted);
    transform: translateY(-62%) rotate(45deg);
    color: var(--awh-muted);
    pointer-events: none;
}

.awh-nav-submenu {
    position: absolute;
    left: 0;
    top: calc(100% + 0.45rem);
    min-width: 230px;
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid var(--awh-border);
    background: var(--awh-surface);
    box-shadow: var(--awh-shadow);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 40;
}

.awh-nav-item--has-children:hover > .awh-nav-submenu,
.awh-nav-item--has-children:focus-within > .awh-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.awh-nav-sublink {
    border-radius: 9px;
    padding: 0.45rem 0.6rem;
    width: 100%;
}

.awh-nav-link:hover,
.awh-nav-sublink:hover,
.awh-drawer-link:hover,
.awh-drawer-sublink:hover {
    color: #fff;
    background: var(--awh-primary);
}

.awh-drawer-link,
.awh-drawer-sublink {
    display: block;
}

.awh-drawer-item {
    width: 100%;
}

.awh-drawer-parent {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.awh-drawer-parent .awh-drawer-link {
    flex: 1;
}

.awh-drawer-subtoggle {
    border: 1px solid var(--awh-border);
    background: var(--awh-surface-soft);
    color: var(--awh-muted);
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.awh-drawer-subtoggle span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
    transition: transform 0.2s ease;
}

.awh-drawer-subtoggle.is-open span {
    transform: translateY(1px) rotate(225deg);
}

.awh-drawer-submenu {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.4rem;
    margin-left: 0.65rem;
    padding-left: 0.7rem;
    border-left: 1px solid var(--awh-border);
}

.awh-drawer-submenu.is-open {
    display: flex;
}

.awh-drawer-sublink {
    font-size: 0.9rem;
    padding: 0.35rem 0.7rem;
}

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

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

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

.awh-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: #fff;
}

.awh-btn--solid {
    background: linear-gradient(135deg, var(--awh-primary), #4a86ec);
    box-shadow: 0 10px 20px rgba(47, 114, 230, 0.24);
}
.awh-btn--solid:hover { background: linear-gradient(135deg, var(--awh-primary-strong), #3c73d7); color: #fff; }
.awh-btn--ghost {
    border-color: var(--awh-border);
    color: var(--awh-text);
    background: var(--awh-surface-soft);
}
.awh-btn--ghost:hover { border-color: var(--awh-primary); color: var(--awh-primary); }

.awh-hero-block .awh-btn--ghost,
.awh-content-shell .awh-btn--ghost {
    color: var(--awh-primary);
    border-color: rgba(75, 95, 255, 0.35);
}
.awh-hero-block .awh-btn--ghost:hover,
.awh-content-shell .awh-btn--ghost:hover {
    border-color: var(--awh-primary);
    color: var(--awh-primary);
}

.awh-drawer { display: none; }
.awh-drawer__inner {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.awh-page-wrap,
.awh-main-column { width: 100%; }

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

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


.awh-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;
}

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

.awh-content-shell h2 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.awh-content-shell h2,
.awh-content-shell h3,
.awh-content-shell h4 {
    color: var(--awh-text);
    line-height: 1.35;
    letter-spacing: 0;
}
.awh-content-shell p,
.awh-content-shell li,
.awh-content-shell td,
.awh-content-shell th,
.awh-outline,
.awh-footer {
    color: var(--awh-muted);
}
.awh-content-shell ul,
.awh-content-shell ol { padding-left: 1.2rem; }
.awh-content-shell code {
    background: var(--awh-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(--awh-border);
  border-radius: 12px;
 
}

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

/* Шапка */
.awh-content-shell thead {
  background: rgba(63, 140, 255, 0.16);
}

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

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

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

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

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

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

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

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

.awh-content-block .awh-btn--ghost {
    color: var(--awh-primary);
    border-color: rgba(75, 95, 255, 0.35);
}

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

.awh-outline-shell {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

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

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

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

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

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

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

}

.awh-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;
}

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

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

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

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

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

.awh-footer__kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #7285ad;
}

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

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

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

.awh-footer__links a {
    color: var(--awh-text);
    text-decoration: none;
    border: 1px solid var(--awh-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;
}

.awh-footer__links a:hover {
    color: var(--awh-primary);
    border-color: var(--awh-primary);
    background: rgba(47, 114, 230, 0.1);
}

.awh-footer__meta {
    display: grid;
    gap: 1.1rem;
}

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

.awh-footer__compliance-title {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7285ad;
}

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

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

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

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

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

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

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

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

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

.awh-lang__marker {
    color: var(--awh-primary);
    font-weight: 700;
}

.awh-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(--awh-border);
    background: var(--awh-surface);
    box-shadow: var(--awh-shadow);
}
.awh-lang ul a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: var(--awh-text);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
}
.awh-lang ul a:hover,
.awh-lang ul a.is-current { background: rgba(63, 140, 255, 0.16); }

@media (max-width: 980px) {
    .awh-topbar__frame { grid-template-columns: auto 1fr auto; }
    .awh-topbar__nav-group { justify-content: flex-end; }

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

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

    .awh-drawer {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--awh-surface);
        padding: 1rem;
        border-top: 1px solid var(--awh-border);
        display: flex;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: 0.25s;
    }

    .awh-nav-submenu {
        display: none;
    }

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

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

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

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

    .awh-footer__links {
        gap: 0.5rem;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.awh-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(--awh-border);
    background: var(--awh-surface);
    box-shadow: var(--awh-shadow);
}

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

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

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

.awh-cookie__btn {
    cursor: pointer;
}

