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

:root {
    --amelia-bg: #18181e;
    --amelia-surface: #18181e;
    --amelia-surface-soft: #18181e;
    --amelia-panel: #18181e;
    --amelia-text: #f1f5ff;
    --amelia-muted: #a2aec9;
    --amelia-primary: #e53945;
    --amelia-primary-strong: #bd1c29;
    --amelia-border: rgba(169, 185, 219, 0.18);
    --amelia-shadow: 0 16px 34px rgba(3, 7, 15, 0.48);
}

* { box-sizing: border-box; }

.amelia-body *,
.amelia-body *::before,
.amelia-body *::after {
    border-radius: 0 !important;
}
html { scroll-behavior: smooth; }

html {
    scroll-behavior: smooth;
}

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

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

.amelia-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: #ff8a93; }
img { display: block; max-width: 100%; border-radius: 14px; }

.amelia-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(8, 12, 20, 0.86);
    border-bottom: 1px solid rgba(164, 181, 214, 0.14);
}

.amelia-topbar__outer {
    width: min(1240px, calc(100% - 3rem));
    margin: 0 auto;
}

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

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

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

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

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

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

.amelia-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: #eff4ff;
}

.amelia-btn--solid {
    background: linear-gradient(135deg, var(--amelia-primary), #ff6b74);
    box-shadow: 0 10px 20px rgba(229, 57, 69, 0.3);
}
.amelia-btn--solid:hover { background: linear-gradient(135deg, var(--amelia-primary-strong), #d53c48); color: #fff; }
.amelia-btn--ghost {
    border-color: rgba(173, 193, 229, 0.35);
    color: #eff4ff;
    background: rgba(17, 23, 37, 0.74);
}
.amelia-btn--ghost:hover { border-color: rgba(229, 57, 69, 0.74); color: #fff; }

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

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

.amelia-hero-block,
.amelia-content-shell {
    background: #2b2b36;
    border-radius: 18px;
    
    padding: 3rem;
}

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


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

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

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

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

/* Шапка */
.amelia-content-shell thead {
  background: rgba(229, 57, 69, 0.16);
}

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

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

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

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

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

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

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

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

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

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

.amelia-outline-toggle {
display: inline-flex;
    border-radius: 999px;
    background: #2b2b36;
    color: #e6efff;
    border: 1px solid rgba(169, 185, 219, 0.3);
    font-weight: 600;
    margin: 0 0 1rem;
    cursor: pointer;
    padding: 10px 20px;
}

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

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

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

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

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

}

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

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

.amelia-footer {
    background: #2b2b36;
    color: var(--amelia-muted);
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

.amelia-footer__brand {
    margin: 0.2rem 0 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f4f7ff;
}

.amelia-footer__mission {
    margin: 0.5rem 0 0;
    color: #b4c1e6;
}

.amelia-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 0;
}

.amelia-footer__links a {
    color: #eaf0ff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    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;
}

.amelia-footer__links a:hover {
    color: #cfe0ff;
    border-color: rgba(229, 57, 69, 0.8);
    background: rgba(229, 57, 69, 0.16);
}

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

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

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

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

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

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

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

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

.amelia-footer__copyright {
    margin: 0;
    color: #dce6ff;
    font-weight: 500;
}

.amelia-footer__disclaimer,
.footer-extra-text {
    margin: 0;
    color: #9eabd8;
    font-size: 0.92rem;
}

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

.amelia-lang__marker {
    color: #ff949c;
    font-weight: 700;
}

.amelia-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(--amelia-border);
    background: #101726;
    box-shadow: var(--amelia-shadow);
}
.amelia-lang ul a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #e7eeff;
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
}
.amelia-lang ul a:hover,
.amelia-lang ul a.is-current { background: rgba(229, 57, 69, 0.16); }

@media (max-width: 980px) {
    .amelia-topbar__outer {
    width: min(1240px, calc(100% - 3rem));
    margin: 0 auto;
}

.amelia-topbar__frame { grid-template-columns: auto 1fr auto; }

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

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

    .amelia-drawer {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #111a29;
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        flex-direction: column;
        gap: 0.65rem;
        display: flex;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: 0.25s;
    }

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

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

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

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

    .amelia-footer__links {
        gap: 0.5rem;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .amelia-hero-block--image-right {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "media"
            "cta";
    }
    .amelia-hero-block, .amelia-content-shell {
    background: #2b2b36;
    border-radius: 18px;
    padding: 1rem;
}
}

.amelia-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(--amelia-border);
    background: rgba(10, 16, 30, 0.95);
    box-shadow: var(--amelia-shadow);
}

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

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

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

.amelia-cookie__btn {
    cursor: pointer;
}
