/* ==========================================================================
   FIGMA-ALIGNED CUSTOM STYLESHEET
   Design: PlayCity_скарга-на-рекламу (node-id=1-1461)
   Page background: #000000
   Block backgrounds: #111111
   Card backgrounds: #1b1b1b
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONT FACES
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'e-Ukraine';
    src: url('../fonts/e-Ukraine/e-Ukraine-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'e-Ukraine';
    src: url('../fonts/e-Ukraine/e-Ukraine-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Якщо шрифти не зібрані в static/fonts — браузер тихо падає на system-ui (як у base) */

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS (Figma-exact)
   -------------------------------------------------------------------------- */
:root {
    /* Backgrounds */
    --bg-page: #000000;
    --bg-block: #111111;
    --bg-card: #1b1b1b;
    
    /* Text */
    --text-white: #ffffff;
    --White: #fff;
    --String: 'e-Ukraine', sans-serif;
    --text-gray: #a1a1a1;
    --text-divider: #343434;
    
    /* Accent */
    --accent-green: #00a110;
    --accent-red: #d80d0d;

    /* Блок «Ліцензування» (hero): лінійний градієнт як у Figma */
    --licensing-hero-gradient-from: #060906;
    --licensing-hero-gradient-to: #173019;
    
    /* Radius - from Figma */
    --radius-block: 32px;
    --radius-button: 12px;
    
    /* Spacing - from Figma */
    --page-padding-x: 16px;
    --block-padding-x: 72px;
    --block-padding-y: 80px;
    --block-gap: 8px;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

*:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'e-Ukraine', 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
    background: var(--bg-page);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Шапка: без глобальної анімації/прозорості з a:hover; логотип без підкреслення */
.site-header a {
    transition: none;
}

.site-header a:hover {
    opacity: 1;
}

.site-header .site-header__brand,
.site-header .site-header__brand:hover {
    text-decoration: none;
    opacity: 1;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --------------------------------------------------------------------------
   4. PAGE WRAPPER (Figma: w-[1440px])
   -------------------------------------------------------------------------- */
.page-wrapper {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-page);
}

.layout-container {
    width: 100%;
    max-width: 1264px;
    margin: 0 auto;
}

.page-content {
    flex: 1;
}

.public-home {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

/* --------------------------------------------------------------------------
   5. HEADER (Figma: header.menu 1247:8135 — Ліцензування)
   Padding: py-16 px-32, menu gap 48px, items 16px Regular / height 24px
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--bg-page);
    /* Бокові та нижній відступи як раніше; зверху — місце під рядок-повідомлення */
    padding: 4px 32px 16px;
    position: relative;
    z-index: 200;
    overflow: visible;
    /* Легке зелене світіння під шапкою (як на макеті) */
    box-shadow: 0 12px 48px -16px rgba(0, 161, 16, 0.18);
}

.site-header__notice-bar {
    text-align: center;
    margin-bottom: 20px;
}

.site-header__notice {
    margin: 0;
    font-family: var(--String, 'e-Ukraine', sans-serif);
    font-size: 13px;
    line-height: 16px;
    font-weight: 300;
    letter-spacing: 0.1px;
    color: var(--text-white);
}

/* Рядок логотип + меню + пошук: меню absolute центрується всередині ЦЬОГО блоку, не всієї шапки */
.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1376 px;
    margin: 0 auto;
    height: 32px;
}

.site-header__brand {
    display: flex;
    align-items: center;
}

.site-header__logo {
    height: 32px;
    width: auto;
}

/* Navigation */
.site-nav {
    position: absolute;
    left: 52.5%;
    transform: translateX(-50%);
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list > .site-nav__item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__item {
    position: relative;
}

/* Мега-пункт: не створюємо власний stacking context —
   щоб .site-nav__mega центрувалось відносно .site-nav, а не конкретного пункту */
.site-nav__item--mega {
    position: static;
}

.site-nav__sub {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--text-divider);
    border-radius: var(--radius-button);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
    z-index: 100;
}

.site-nav__sub > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mega-menu (дві колонки) */
.site-nav__mega {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    transform: none;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid #303030;
    border-radius: 16px;
    box-shadow: 0 40px 48px -24px #000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
    z-index: 100;
}

.site-nav__mega-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-nav__mega-col--right {
    padding-left: 28px;
    margin-left: 28px;
    border-left: 1px solid var(--text-divider);
}

/* H5 — mega: підкреслення лише на тексті; завжди «невидима» лінія — без зсуву при hover */
.site-nav__mega-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin: 0;
    border-radius: 0;
    color: var(--White, #fff);
    font-family: var(--String, 'e-Ukraine', sans-serif);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.16px;
    text-decoration: none;
    transition: none;
}

.site-nav__mega-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: inherit;
}

.site-nav__mega-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.site-nav__mega-icon .site-nav__custom-icon-img {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
}

.site-nav__mega-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

.site-nav__mega-link:hover .site-nav__mega-text {
    text-decoration-color: currentColor;
}

.site-nav__mega-chev {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.38);
}

/* Випадання тільки після кліку (.is-open), не по hover */
.site-nav__item--has-sub.is-open .site-nav__sub,
.site-nav__item--has-sub.is-open .site-nav__mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-nav__link:hover {
    text-decoration-color: currentColor;
}

.site-nav__item--has-sub.is-open > .site-nav__link {
    text-decoration-color: currentColor;
}

.site-nav__item--has-sub .site-nav__chevron svg {
    transition: none;
}

.site-nav__item--has-sub.is-open .site-nav__chevron svg {
    transform: rotate(180deg);
}

@media (max-width: 720px) {
    .site-nav__mega {
        flex-direction: column;
        min-width: min(320px, calc(100vw - 24px));
        padding: 8px;
    }

    .site-nav__mega-col--right {
        padding-left: 0;
        margin-left: 0;
        margin-top: 16px;
        padding-top: 16px;
        border-left: none;
        border-top: 1px solid var(--text-divider);
    }
}

/* H5 — простий список: невидиме підкреслення завжди */
.site-nav__sub-link--with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav__sub-link-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: inherit;
}

.site-nav__sub-link-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.site-nav__sub-link-icon img,
.site-nav__sub-link-icon .site-nav__custom-icon-img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.site-nav__sub-link {
    display: block;
    padding: 8px;
    color: var(--White, #fff);
    font-family: var(--String, 'e-Ukraine', sans-serif);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.16px;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
    transition: none;
}

.site-nav__sub-link:hover {
    text-decoration-color: currentColor;
}

.site-nav__link {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--text-white);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
    transition: none;
}

.site-nav__item--has-sub > .site-nav__link {
    cursor: pointer;
}

.site-nav__chevron {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-nav__chevron svg {
    width: 7px;
    height: 5px;
    fill: var(--text-white);
}

/* Header actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-right: 22px;
}

.icon-button {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

.site-search {
    display: flex;
    align-items: center;
}

.site-search__form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-search__input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 4px 12px;
    color: var(--text-white);
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    line-height: 24px;
    width: 200px;
    outline: none;
}

.site-search__input::placeholder {
    color: rgba(255,255,255,0.5);
}

.icon-button:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 4px;
    border-radius: 4px;
}

.icon-button__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    color: var(--text-white);
}

.icon-button__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* --------------------------------------------------------------------------
   6. HERO BLOCK (Figma: 1:1492)
   Container: pt-[8px] px-[16px]
   Content: h-[640px], rounded-[32px]
   -------------------------------------------------------------------------- */
.hero {
    margin: 0 16px 0;
    position: relative;
    height: 640px;
    border-radius: 32px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: 100%;
    padding: 80px 72px 120px;
    text-align: center;
}

.hero__title {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 38px;
    line-height: 42px;
    letter-spacing: -0.38px;
    color: var(--text-white);
    max-width: 928px;
}

.hero__subtitle {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--text-white);
    max-width: 928px;
}

/* Button - Figma: 239x64, rounded 12px, white bg */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 239px;
    height: 64px;
    padding: 20px 60px;
    border-radius: var(--radius-button);
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.2px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.button--primary {
    background: var(--text-white);
    color: #000000;
}

.button--primary:hover {
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. CONTENT BLOCK (Guidelines - Figma: 1:1500)
   bg: #111111, rounded 32px, padding 80px 72px
   -------------------------------------------------------------------------- */
.section--panel {
    margin: 8px 16px 0;
    padding: 0;
}

.section--panel > .layout-container {
    background: var(--bg-block);
    border-radius: 32px;
    padding: 80px 72px;
    max-width: none;
}

.section-heading {
    margin-bottom: 80px;
}

.section-heading__title {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.28px;
    color: var(--text-white);
}

/* Guideline list - gap 8px between items */
.guideline-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 1264px;
    max-width: 100%;
}

/* Guideline card - bg: #1b1b1b, rounded 32px, padding 30px 64px, w-[1264px] */
.guideline-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px 64px;
    background: var(--bg-card);
    border-radius: 32px;
    width: 1264px;
    max-width: 100%;
}

.guideline-card__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    transform: rotate(180deg);
}

.guideline-card__icon svg {
    width: 32px;
    height: 32px;
}

.guideline-card__text {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--text-white);
}

/* --------------------------------------------------------------------------
   8. STEPS BLOCK (Figma: 1:1531)
   Radial gradient bg from green to dark
   -------------------------------------------------------------------------- */
.section.steps {
    margin: 8px 16px 0;
    padding: 0;
}

.section.steps > .layout-container {
    background:
        url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMTQwOCA3ODQnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgcHJlc2VydmVBc3BlY3RSYXRpbz0nbm9uZSc+PHJlY3QgeD0nMCcgeT0nMCcgaGVpZ2h0PScxMDAlJyB3aWR0aD0nMTAwJScgZmlsbD0ndXJsKCNncmFkKScgb3BhY2l0eT0nMScvPjxkZWZzPjxyYWRpYWxHcmFkaWVudCBpZD0nZ3JhZCcgZ3JhZGllbnRVbml0cz0ndXNlclNwYWNlT25Vc2UnIGN4PScwJyBjeT0nMCcgcj0nMTAnIGdyYWRpZW50VHJhbnNmb3JtPSdtYXRyaXgoNy4wMjI1ZS0xNSA4OS4zMiAtMjk0LjkgLTMuNTY0NWUtMTMgNzA0IDguNzA0MWUtMTMpJz48c3RvcCBzdG9wLWNvbG9yPSdyZ2JhKDE3LDE3LDE3LDEpJyBvZmZzZXQ9JzAnLz48c3RvcCBzdG9wLWNvbG9yPSdyZ2JhKDE3LDE3LDE3LDAuMDEpJyBvZmZzZXQ9JzAuNTU5MjYnLz48c3RvcCBzdG9wLWNvbG9yPSdyZ2JhKDAsMTYxLDE2LDAuMiknIG9mZnNldD0nMC43NDc1OScvPjxzdG9wIHN0b3AtY29sb3I9J3JnYmEoMzIsMTczLDQ2LDAuMyknIG9mZnNldD0nMC43NzI4MycvPjxzdG9wIHN0b3AtY29sb3I9J3JnYmEoNjQsMTg1LDc2LDAuNCknIG9mZnNldD0nMC43OTgwOCcvPjxzdG9wIHN0b3AtY29sb3I9J3JnYmEoMTI4LDIwOCwxMzYsMC42KScgb2Zmc2V0PScwLjg0ODU2Jy8+PHN0b3Agc3RvcC1jb2xvcj0ncmdiYSgxOTEsMjMyLDE5NSwwLjgpJyBvZmZzZXQ9JzAuODk5MDUnLz48c3RvcCBzdG9wLWNvbG9yPSdyZ2JhKDI1NSwyNTUsMjU1LDEpJyBvZmZzZXQ9JzAuOTQ5NTQnLz48L3JhZGlhbEdyYWRpZW50PjwvZGVmcz48L3N2Zz4=") center/cover no-repeat,
        linear-gradient(90deg, #111111, #111111),
        #000000;
    border-radius: 32px;
    padding: 80px 72px 120px;
    max-width: none;
}

.section.steps .section-heading {
    margin-bottom: 80px;
    width: 1264px;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.section.steps .section-heading__title {
    color: var(--text-white);
}

/* Steps grid - 3 items, gap 56px, w-[1264px] */
.steps-grid {
    display: flex;
    gap: 56px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
    width: 1264px;
    max-width: 100%;
}

.step-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-card__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
}

.step-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.step-card__title {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.18px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-card__text {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--text-white);
}

.step-card__text p {
    margin: 0 0 8px;
}

.step-card__text p:last-child {
    margin-bottom: 0;
}

.step-card__text a {
    color: var(--text-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.step-card__text a:hover {
    opacity: 0.85;
}

.step-card__text ul,
.step-card__text ol {
    margin: 8px 0;
    padding-left: 1.25em;
}

/* CTA Callout box - w-[1264px], rounded 32px, px-[64px] py-[80px], inner shadow */
.cta-callout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 1264px;
    max-width: 100%;
    padding: 80px 64px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(161, 161, 161, 0.2) 100%),
                linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
    box-shadow: inset 0px 0px 40px #FFFFFF;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cta-callout__title {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 38px;
    line-height: 40px;
    letter-spacing: -0.38px;
    color: var(--text-white);
    text-align: center;
    max-width: 928px;
}

/* --------------------------------------------------------------------------
   9. STATS BLOCK (Figma: 1:1555)
   bg: #111111, rounded 32px
   -------------------------------------------------------------------------- */
.section.stats {
    margin: 8px 16px 0;
    padding: 0;
}

.stats__wrapper {
    background: var(--bg-block);
    border-radius: 32px;
    padding: 80px 72px;
    max-width: none;
}

.stats__header {
    margin-bottom: 80px;
}

.stats__header .section-heading__title {
    margin-bottom: 16px;
}

.stats__subtitle {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.18px;
    color: var(--text-white);
}

.stats__timestamp {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-white);
}

/* Stats grid - 5 items in row, gap 8px, w-[1264px] */
.stats__grid {
    display: flex;
    gap: 8px;
    width: 1264px;
    max-width: 100%;
}

/* Stats card - w-[246px], px-[64px] py-[30px], gap-[24px] */
.stats-card {
    width: 246px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 64px;
    background: var(--bg-card);
    border-radius: 32px;
}

.stats-card--wide {
    /* Same as regular card in this design */
}

.stats-card__label {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--text-white);
    white-space: nowrap;
}

.stats-card__value {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 38px;
    line-height: 40px;
    letter-spacing: -0.38px;
    color: var(--text-white);
}

/* Stats fallback */
.stats__fallback {
    padding: 0;
}

.stats-empty {
    background: var(--bg-block);
    border-radius: var(--radius-block);
    padding: var(--block-padding-y) var(--block-padding-x);
    text-align: center;
}

.stats-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 32px;
    margin-bottom: 24px;
}

.stats-empty__title {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.28px;
    color: var(--text-white);
    margin-bottom: 16px;
}

.stats-empty__text {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-white);
}

/* Stats by Type Section */
.stats__type-heading {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.18px;
    color: var(--text-white);
    margin-top: 40px;
    margin-bottom: 24px;
}

.stats__type-grid {
    display: flex;
    gap: 8px;
    width: 1264px;
    max-width: 100%;
}

.stats-type-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 30px 48px;
    background: var(--bg-card);
    border-radius: 32px;
}

.stats-type-card__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
}

.stats-type-card__icon svg {
    width: 32px;
    height: 32px;
}

.stats-type-card__label {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--text-white);
}

.stats-type-card__value {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.28px;
    color: var(--text-white);
}

/* --------------------------------------------------------------------------
   10. PREFOOTER (Figma: 1:1582)
   Container: pt-[8px] px-[16px], gap-[8px]
   Boxes: h-[200px], p-[24px], bg-[#111111], rounded-[32px]
   -------------------------------------------------------------------------- */
.site-prefooter {
    margin: 8px 16px 0;
    padding: 0;
    background: var(--bg-page);
}

.site-prefooter .layout-container {
    padding: 0;
    max-width: none;
}

.site-prefooter__list {
    display: flex;
    gap: 8px;
}

.site-prefooter__item {
    flex: 1;
    display: flex;
    align-items: stretch;
    height: 200px;
    padding: 0;
    background: var(--bg-block);
    border-radius: 32px;
    overflow: hidden;
}

.site-prefooter__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 24px;
}

.site-prefooter__cell--btn,
.site-prefooter__cell--link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-radius: 32px;
    transition: background 0.2s ease;
}

.site-prefooter__cell--btn:hover,
.site-prefooter__cell--link:hover {
    background: rgba(255, 255, 255, 0.10);
    opacity: 1;
}

.site-prefooter__logo-link,
.site-prefooter__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.site-prefooter__logo-link {
    color: inherit;
    text-decoration: none;
}

.site-prefooter__logo-link:hover {
    opacity: 0.88;
}

.site-prefooter__below-link,
.site-prefooter__below-text {
    font-family: var(--String, 'e-Ukraine', sans-serif);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-white);
    text-align: center;
    max-width: 100%;
}

.site-prefooter__below-link {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 4px;
}

.site-prefooter__below-link:hover {
    text-decoration-color: currentColor;
}

.site-prefooter__inline-link,
.site-prefooter__inline-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    color: inherit;
}

.site-prefooter__inline-link {
    text-decoration: none;
}

.site-prefooter__inline-link:hover {
    opacity: 0.9;
}

.site-prefooter__item img {
    max-height: 72px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Prefooter popup button */
.site-prefooter__logo-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prefooter popup overlay */
.prefooter-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 500;
}
.prefooter-popup-overlay.is-open {
    display: block;
}

/* Prefooter popup modal */
.prefooter-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 501;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 32px;
    width: 527px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.prefooter-popup.is-open {
    display: block;
}

.prefooter-popup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.prefooter-popup__title {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 32px;
    color: var(--text-white);
}

.prefooter-popup__close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--accent-green);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-white);
    padding: 0;
}
.prefooter-popup__close svg {
    width: 18px;
    height: 18px;
}
.prefooter-popup__close:hover {
    background: rgba(0, 161, 16, 0.1);
}

.prefooter-popup__links {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.prefooter-popup__links li a {
    display: block;
    padding: 8px 0;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-white);
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.prefooter-popup__links li a:hover {
    opacity: 0.7;
}

/* Дія Центр - з текстом */
.site-prefooter__item--diya {
    flex-direction: row;
    gap: 14px;
}

.site-prefooter__item--diya .site-prefooter__cell,
.site-prefooter__item--diya .site-prefooter__cell--btn,
.site-prefooter__item--diya .site-prefooter__cell--link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.site-prefooter__item--diya img {
    max-height: 40px;
    max-width: 40px;
}

.site-prefooter__text {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 36px;
    color: var(--text-white);
}

/* --------------------------------------------------------------------------
   11. FOOTER (Figma: 1:1583)
   Container: px-[16px] py-[8px]
   Block: bg-[#1b1b1b], rounded-[32px], px-[72px] py-[48px]
   Content width: w-[1280px]
   -------------------------------------------------------------------------- */
.site-footer {
    margin: 0;
    padding: 8px 16px;
    background: var(--bg-page);
}

.site-footer .layout-container {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 48px 72px;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.site-footer__top {
    display: flex;
    gap: 24px;
    width: 1280px;
    max-width: 100%;
}

.site-footer__group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer__title {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--text-white);
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__links a {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.13px;
    color: var(--text-gray);
}

.site-footer__links a:hover {
    color: var(--text-white);
}

/* Footer bottom - divider and copyright, w-[1280px] */
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--text-divider);
    width: 1280px;
    max-width: 100%;
}

.site-footer__logo {
    height: 32px;
    width: auto;
}

.site-footer__note {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.13px;
    color: var(--text-gray);
    text-align: left;
}

/* --------------------------------------------------------------------------
   12. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    min-width: 280px;
    max-width: min(420px, calc(100vw - 48px));
    padding: 18px 22px;
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: var(--text-white);
}

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

.toast--success {
    border-left: 3px solid var(--accent-green);
}

.toast--error {
    border-left: 3px solid var(--accent-red);
}

.field-error {
    border-color: var(--accent-red) !important;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .site-nav {
        position: static;
        transform: none;
    }
    
    .site-header__inner {
        flex-wrap: wrap;
        gap: 16px;
        height: auto;
    }
    
    .steps-grid {
        flex-wrap: wrap;
    }
    
    .step-card {
        flex: 1 1 280px;
    }
    
    .stats__grid {
        flex-wrap: wrap;
    }
    
    .stats-card {
        flex: 1 1 200px;
        min-width: 200px;
    }
    
    .site-footer__top {
        flex-wrap: wrap;
    }
    
    .site-footer__group {
        flex: 1 1 200px;
    }
}

@media (max-width: 960px) {
    :root {
        --block-padding-x: 40px;
        --block-padding-y: 48px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero__title {
        font-size: 32px;
        line-height: 38px;
    }
    
    .site-nav__list {
        gap: 24px;
    }
    
    .guideline-card {
        padding: 24px 32px;
    }
    
    .cta-callout {
        padding: 48px 32px;
    }
    
    .cta-callout__title {
        font-size: 28px;
        line-height: 34px;
    }
    
    .site-prefooter__list {
        flex-wrap: wrap;
    }
    
    .site-prefooter__item {
        flex: 1 1 calc(33.333% - 6px);
        height: 140px;
    }
    
    .site-footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .site-footer__note {
        text-align: center;
    }
}

@media (max-width: 640px) {
    :root {
        --page-padding-x: 8px;
        --block-padding-x: 24px;
        --block-padding-y: 32px;
    }
    
    .site-header {
        padding: 8px 16px 12px;
    }
    
    .site-nav {
        display: none;
    }
    
    .hero {
        height: 420px;
        margin: 8px 8px 0;
    }
    
    .hero__title {
        font-size: 26px;
        line-height: 32px;
    }
    
    .hero__subtitle {
        font-size: 14px;
    }
    
    .button {
        min-width: 200px;
        height: 56px;
        padding: 16px 40px;
        font-size: 18px;
    }
    
    .section--panel,
    .section.steps,
    .section.stats {
        margin-left: 8px;
        margin-right: 8px;
    }
    
    .section-heading {
        margin-bottom: 40px;
    }
    
    .section-heading__title {
        font-size: 22px;
        line-height: 28px;
    }
    
    .guideline-card {
        padding: 20px 24px;
        gap: 16px;
    }
    
    .guideline-card__text {
        font-size: 14px;
    }
    
    .steps-grid {
        flex-direction: column;
        gap: 32px;
    }
    
    .stats__grid {
        flex-direction: column;
    }
    
    .stats-card {
        min-width: 100%;
        padding: 24px 32px;
    }
    
    .stats-card__value {
        font-size: 32px;
    }
    
    .site-prefooter {
        margin: 8px 8px 0;
    }
    
    .site-prefooter__list {
        flex-direction: column;
    }
    
    .site-prefooter__item {
        flex: 1 1 100%;
        height: 120px;
    }
    
    .site-footer {
        margin: 0 8px 8px;
    }
    
    .site-footer__top {
        flex-direction: column;
        padding: 32px 24px;
        gap: 32px;
    }
    
    .site-footer__bottom {
        padding: 20px 24px;
    }
}

/* --------------------------------------------------------------------------
   16. LICENSING PAGES (hero, cards, timeline)
   Hero block Figma: 1247:8340 — linear gradient var(--licensing-hero-gradient-from)→var(--licensing-hero-gradient-to), blur 20px,
   inset shadow white 40px, padding 80px 72px, column gap 80px, title row gap 32px, cols 616px
   -------------------------------------------------------------------------- */
.hero-licensing {
    margin: 0 16px 0;
    border-radius: 32px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before,
.hero-licensing::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.3) 100%),
        linear-gradient(180deg, var(--licensing-hero-gradient-from) 0%, var(--licensing-hero-gradient-to) 100%);
    filter: contrast(1.1) saturate(1.3);
}

.hero::after,
.hero-licensing::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    box-shadow: inset 0 0 30px 0 #ffffff;
    pointer-events: none;
}


.hero-licensing__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 80px;
    max-width: 1408px;
    margin: 0 auto;
    padding: 80px 72px;
    width: 100%;
    box-sizing: border-box;
}

/* Breadcrumbs — default white; gray only in hero (Figma 1247:8340) */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 1264px;
    margin: 0;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--text-white);
}

.breadcrumbs a,
.breadcrumbs span:not(.breadcrumbs__chev):not(.breadcrumbs__sep) {
    color: var(--text-white);
}

.breadcrumbs a:hover {
    color: var(--text-white);
    opacity: 0.85;
}

.breadcrumbs__sep {
    color: var(--text-white);
    user-select: none;
    font-size: 16px;
    line-height: 24px;
}

.breadcrumbs__chev {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-white);
}

.hero-licensing .breadcrumbs,
.hero-licensing .breadcrumbs a,
.hero-licensing .breadcrumbs span:not(.breadcrumbs__chev):not(.breadcrumbs__sep) {
    color: var(--text-gray);
}

.hero-licensing .breadcrumbs a:hover {
    color: var(--text-white);
    opacity: 1;
}

.hero-licensing .breadcrumbs__sep,
.hero-licensing .breadcrumbs__chev {
    color: var(--text-gray);
}

.breadcrumbs__chev svg {
    width: 24px;
    height: 24px;
}

.hero-licensing__row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    max-width: 1264px;
}

.hero-licensing__title {
    flex: 0 1 616px;
    max-width: 616px;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 38px;
    line-height: 40px;
    letter-spacing: -0.38px;
    color: var(--text-white);
}

.hero-licensing__lead {
    flex: 0 1 616px;
    max-width: 616px;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--text-white);
}

/* License cards (index) */
.section-license-cards {
    margin: 8px 16px 0;
    padding: 0;
}

.section-license-cards__panel {
    background: var(--bg-block);
    border-radius: var(--radius-block);
    padding: var(--block-padding-y) var(--block-padding-x);
    max-width: none;
}

/* Figma 1247:8134 → cards 1247:8355: кожна картка 1264×216, gap 16, p-40, текст 576×136, gap 48, ілюстрація з x≈767 */
.license-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 1264px;
    max-width: 100%;
    margin: 0 auto;
}

.license-card {
    position: relative;
    width: 100%;
    max-width: 1264px;
    height: 216px;
    box-sizing: border-box;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 32px;
    overflow: hidden;
}

.license-card__body {
    position: relative;
    z-index: 2;
    width: 576px;
    max-width: min(576px, calc(100% - 320px));
    height: 136px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 48px;
    padding: 0;
    box-sizing: border-box;
}

.license-card__title {
    margin: 0;
    max-height: 64px;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.28px;
    color: var(--text-white);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.license-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    align-self: flex-start;
    border-radius: 12px;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--accent-green);
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.license-card__cta:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

.license-card__cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Смуга зображення: від лінії 767/1264 до правого краю; top/bottom 0 — на всю висоту картки; img більша за слот — обріз по картці */
.license-card__media {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 60.68%;
    overflow: hidden;
    pointer-events: none;
}

.license-card__media img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    width: auto;
    min-height: 122%;
    height: 122%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

/* Картка 1 — вертикаль кадру: міняй % у object-position (десктоп) */
.license-cards .license-card:nth-child(1) .license-card__media img {
    transform: translate(-50%, -50%);
    object-position: center 27%;
}

/* Картка 4 (slot-machines) — той самий прийом, що картка 1 */
.license-cards .license-card:nth-child(4) .license-card__media img {
    transform: translate(-50%, -50%);
    object-position: center 35%;
}

/* Картка 6 — PNG +20% (scale); блок .license-card__media обрізає як раніше */
.license-cards .license-card:nth-child(6) .license-card__media img {
    transform: translate(-50%, -50%) scale(1.2);
    object-position: center 27%;
}

/* Картка 2 — міняй center top та -10px */
.license-cards .license-card:nth-child(2) .license-card__media img {
    object-position: center top;
    transform: translate(-50%, calc(-50% - 10px));
}

/* Timeline (license.html) — зверху/збоку 72–80 як у Figma; знизу панелі 8px (не 80!), інакше велика «порожня» смуга перед префутером */
.section-timeline {
    margin: 8px 16px 0;
    padding: 0;
}

.section-timeline__panel {
    background: var(--bg-block);
    border-radius: var(--radius-block);
    max-width: none;
}

/* 1264 + 72+72 = 1408 — padding всередині, робоча ширина тексту/кроків/карток = 1264px (border-box) */
.section-timeline__panel.layout-container {
    max-width: min(1408px, 100%);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 80px 72px 8px;
    box-sizing: border-box;
}

.timeline-intro {
    width: 100%;
    max-width: none;
    margin-bottom: 60px;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-intro__heading {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.28px;
    color: var(--text-white);
    margin-bottom: 16px;
}

.timeline-intro__text {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-white);
}

.timeline {
    position: relative;
    width: 100%;
    max-width: none;
    padding-left: 32px;
    box-sizing: border-box;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--text-divider);
    border-radius: 1px;
}

.timeline-step {
    position: relative;
    padding-bottom: 60px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

/* Лінія таймлайну не йде нижче останнього кружечка: перекриваємо смугу під крапкою кольором панелі */
.timeline-step:last-child::after {
    content: '';
    position: absolute;
    left: -21px;
    top: 26px;
    bottom: 0;
    width: 4px;
    margin-left: 0;
    background: var(--bg-block);
    z-index: 2;
    pointer-events: none;
}

/* Figma: 24×24, fill #00A110 — маркер через SVG у license-renderer.js */
.timeline-step__dot {
    position: absolute;
    left: -32px;
    top: 2px;
    z-index: 3;
    width: 24px;
    height: 24px;
    aspect-ratio: 1 / 1;
    color: var(--accent-green);
    display: block;
    line-height: 0;
}

.timeline-step__dot svg {
    display: block;
    width: 100%;
    height: 100%;
}

.timeline-step__title {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.2px;
    color: var(--text-white);
    margin-bottom: 16px;
}

.timeline-step__body {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--text-white);
}

.timeline-step__body p {
    margin: 0 0 12px;
}

.timeline-step__body p:last-child {
    margin-bottom: 0;
}

.timeline-step__body ul,
.timeline-step__body ol {
    margin: 12px 0;
    padding-left: 1.35em;
    list-style-position: outside;
}

.timeline-step__body ul {
    list-style-type: disc;
}

.timeline-step__body ol {
    list-style-type: decimal;
}

.timeline-step__body li {
    margin-bottom: 8px;
}

.timeline-step__body li:last-child {
    margin-bottom: 0;
}

.timeline-step__body a {
    color: var(--text-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.timeline-step__body a:hover {
    opacity: 0.85;
}

/* Крок «Подання документів» тощо — картки адреса / пошта / онлайн (Figma Middle-Grey #1B1B1B) */
.timeline .step-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.timeline .step-cards .step-card {
    display: flex;
    height: 220px;
    padding: 24px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1 0 0;
    min-width: min(220px, 100%);
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 24px;
    background: var(--bg-card);
    overflow: hidden;
}

.timeline .step-cards .step-card > div:first-child {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
}

.timeline .step-cards .step-card__icon-wrap {
    flex-shrink: 0;
}

.timeline .step-cards .step-card__title {
    margin: 0;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.16px;
    color: var(--text-white);
}

.timeline .step-cards .step-card__text {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.14px;
    color: var(--text-white);
    width: 100%;
    flex-shrink: 0;
    overflow-wrap: anywhere;
}

/* Крок «Результат» — картки в ряд, всередині вертикальний стек (Figma Middle-Grey) */
.result-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    align-items: stretch;
}

.result-card {
    display: flex;
    height: 458px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
    min-width: min(280px, 100%);
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 24px;
    background: var(--bg-card);
    overflow: hidden;
}

.result-card__title {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.18px;
    color: var(--text-white);
    margin: 0;
    flex-shrink: 0;
}

.result-card__body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 22px;
    color: var(--text-white);
}

.result-card__body p {
    margin: 0 0 10px;
}

.result-card__body p:last-child {
    margin-bottom: 0;
}

.result-card__body ul,
.result-card__body ol {
    margin: 10px 0;
    padding-left: 1.35em;
}

.result-card__body li {
    margin-bottom: 6px;
}

.result-card__body a {
    color: var(--text-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.result-card__body a:hover {
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   17. ADMIN
   -------------------------------------------------------------------------- */
.admin-hidden {
    display: none !important;
}

.admin-body {
    min-height: 100vh;
}

.admin-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px var(--page-padding-x) 56px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Екран входу: по центру вікна (поки #admin-app схований) */
.admin-wrap:has(#admin-app.admin-hidden) {
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 24px;
}

.admin-title {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.24px;
    color: var(--text-white);
    margin: 0 0 24px;
    text-align: center;
    width: 100%;
}

.admin-card {
    max-width: 420px;
    padding: 24px;
    margin-bottom: 24px;
    background: var(--bg-block);
    border: 1px solid var(--text-divider);
    border-radius: var(--radius-button);
}

.admin-card--login {
    width: 100%;
    margin-bottom: 0;
}

.admin-app {
    width: 100%;
    align-self: stretch;
}

.admin-logout-row {
    justify-content: flex-end;
    margin-bottom: 8px;
}

.admin-help {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-gray);
    margin: 0 0 16px;
}

.admin-field {
    margin-bottom: 16px;
}

.admin-field--tight {
    margin-bottom: 0;
}

.admin-field--slug {
    flex: 1;
    max-width: 280px;
    min-width: 160px;
}

.admin-field--spaced-top {
    margin-top: 16px;
}

.admin-field label {
    display: block;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 18px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.admin-field input[type="text"],
.admin-field input[type="password"],
.admin-field select,
.admin-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: 'e-Ukraine', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-white);
    background: var(--bg-card);
    border: 1px solid var(--text-divider);
    border-radius: var(--radius-button);
    transition: border-color 0.2s ease;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

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

.admin-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.admin-row--pages {
    margin-bottom: 16px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    color: #000000;
    background: var(--text-white);
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.admin-btn:hover {
    transform: translateY(-1px);
}

.admin-btn--secondary {
    color: var(--text-white);
    background: transparent;
    border: 1px solid var(--text-divider);
}

.admin-btn--secondary:hover {
    border-color: var(--text-gray);
    opacity: 1;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.admin-tab {
    padding: 10px 18px;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-gray);
    background: var(--bg-block);
    border: 1px solid var(--text-divider);
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-tab:hover {
    color: var(--text-white);
}

.admin-tab.is-active {
    color: var(--text-white);
    border-color: var(--accent-green);
    background: var(--bg-card);
}

.admin-panel {
    display: none;
}

.admin-panel.is-active {
    display: block;
}

.admin-admins-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-admins-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--text-divider);
    font-family: 'e-Ukraine', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: var(--text-white);
}

.admin-admins-list li:last-child {
    border-bottom: none;
}

.admin-msg {
    margin-top: 12px;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.admin-msg--ok {
    color: var(--accent-green);
}

.admin-msg--err {
    color: var(--accent-red);
}

/* ——— CMS адмінка (форми замість сирого JSON) ——— */
.admin-section-title {
    margin: 0 0 12px;
    font-family: 'e-Ukraine', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: var(--text-primary, #fff);
}

.admin-section-title--spaced {
    margin-top: 28px;
}

.cms-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cms-after-stack {
    margin-top: 10px;
    margin-bottom: 4px;
}

.cms-card {
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--bg-card, #1b1b1b);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cms-card-nested {
    background: rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
}

.cms-nested {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.cms-nested-label {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.cms-link-row {
    align-items: flex-end;
    flex-wrap: wrap;
}

.cms-link-row .admin-field {
    flex: 1 1 160px;
}

.admin-panel--menu .cms-card {
    padding: 10px 12px;
}

.admin-help--compact {
    font-size: 12px;
    line-height: 17px;
    margin-bottom: 10px;
}

.admin-row--menu-actions {
    margin-bottom: 10px;
    gap: 8px;
}

.admin-btn--compact {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 13px;
}

.admin-menu-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.admin-tab--sub {
    padding: 6px 14px;
    min-height: 34px;
    font-size: 13px;
}

.cms-menu-subpanel {
    display: none;
}

.cms-menu-subpanel.is-active {
    display: block;
}

.cms-stack--compact {
    gap: 10px;
}

.cms-header-main-row,
.cms-footer-main-row {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.cms-col-move {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
    padding-bottom: 2px;
}

.cms-col-move .admin-btn {
    font-size: 12px;
    padding: 4px 0;
    min-width: 34px;
    min-height: 30px;
    justify-content: center;
}

.cms-col-hide {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    padding-bottom: 10px;
}

.cms-col-hide--sub {
    padding-bottom: 10px;
}

.cms-col-hide-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
}

.cms-col-hide-label:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.cms-col-hide-label input {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.cms-header-field-grow {
    flex: 1 1 180px;
    min-width: 140px;
}

.cms-footer-title-grow {
    flex: 1 1 220px;
    min-width: 160px;
}

.cms-icon-hit {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.cms-icon-preview {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(0, 161, 16, 0.28);
    border-radius: 10px;
    background: rgba(0, 161, 16, 0.12);
    cursor: pointer;
    overflow: hidden;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cms-icon-preview:hover {
    background: rgba(0, 161, 16, 0.22);
    border-color: rgba(0, 161, 16, 0.45);
}

.cms-icon-preview img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.cms-icon-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    background: rgba(216, 13, 13, 0.92);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.cms-icon-hit--has-icon:hover .cms-icon-remove {
    opacity: 1;
    pointer-events: auto;
}

.cms-icon-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.cms-header-item--hidden {
    opacity: 0.58;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.2);
}

.cms-footer-col--hidden {
    opacity: 0.58;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.2);
}

.cms-footer-link-row--hidden {
    opacity: 0.55;
}

.cms-footer-link-row .admin-field {
    flex: 1 1 140px;
}

.cms-prefooter-item--hidden {
    opacity: 0.55;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.2);
}

.cms-prefooter-toolbar {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.cms-pf-field-img {
    flex: 1 1 240px;
    min-width: 180px;
}

.cms-pf-field-alt {
    flex: 1 1 160px;
    min-width: 120px;
}

.cms-pf-below-grow,
.cms-pf-side-grow,
.cms-pf-layout-wrap {
    flex: 1 1 220px;
    min-width: 200px;
}

.cms-h-sub-move-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
    justify-content: flex-end;
    padding-bottom: 2px;
}

.cms-h-sub-move-wrap .admin-btn {
    font-size: 11px;
    padding: 4px 8px;
    min-width: 36px;
}

.cms-h-mega-wrap {
    margin-top: 6px;
}

.cms-h-mega-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

.cms-h-mega-label input {
    margin-top: 3px;
    flex-shrink: 0;
}

.cms-h-sub-field-col {
    flex: 0 1 200px;
    min-width: 140px;
}

.cms-h-sub-field-icon {
    flex: 0 0 auto;
    min-width: 0;
    margin-bottom: 0;
}

.cms-h-sub-field-icon .cms-icon-hit {
    margin-top: 22px;
}

.cms-btn-icon {
    flex: 0 0 auto;
    min-width: 40px;
    padding-left: 12px;
    padding-right: 12px;
}

.cms-step-toolbar {
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.cms-step .admin-field {
    margin-bottom: 12px;
}

.cms-copy-row {
    margin-top: 8px;
}

.cms-copy-hint code {
    font-size: 0.9em;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.cms-html-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.cms-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.cms-rich-tb-btn {
    padding: 6px 10px;
    font-size: 12px;
}

.cms-rich-editor {
    min-height: 140px;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary, #fff);
    font-family: 'e-Ukraine', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.cms-rich-editor:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 1px;
}

.cms-rich-editor h2,
.cms-rich-editor h3 {
    margin: 0.35em 0;
    font-weight: 400;
    line-height: 1.25;
}

.cms-rich-editor p {
    margin: 0.35em 0;
}

.cms-rich-editor ul,
.cms-rich-editor ol {
    margin: 0.35em 0;
    padding-left: 1.5em;
}

.cms-rich-editor a {
    color: var(--text-white, #fff);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cms-rich-editor a:hover {
    opacity: 0.9;
}

.cms-rich-html-fallback {
    width: 100%;
    box-sizing: border-box;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
}

.cms-html-hint {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
}

.cms-html-hint code {
    font-size: 0.95em;
    padding: 0 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.cms-page-root {
    margin-top: 20px;
}

.cms-footer-col .cms-fcol-subs {
    margin-top: 14px;
}

.cms-subsec {
    margin-bottom: 10px;
}

@media (max-width: 960px) {
    .hero-licensing__inner {
        gap: 48px;
        padding: 48px 40px 56px;
    }

    .hero-licensing__row {
        flex-direction: column;
        gap: 24px;
    }

    .hero-licensing__title,
    .hero-licensing__lead {
        flex: none;
        max-width: none;
        width: 100%;
    }

    .hero-licensing__title {
        font-size: 30px;
        line-height: 36px;
    }

    /* Картки: однакова висота, зображення на всю ширину нижнього блоку, вертикальний cover + обріз */
    .license-cards {
        gap: 12px;
    }

    .license-card {
        display: flex;
        flex-direction: column;
        height: 360px;
        padding: 24px 24px 0;
        box-sizing: border-box;
    }

    .license-card__body {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        gap: 24px;
    }

    .license-card__title {
        -webkit-line-clamp: 3;
        max-height: none;
        font-size: 22px;
        line-height: 28px;
    }

    .license-card__media {
        position: relative;
        left: auto;
        flex: 1 1 auto;
        min-height: 160px;
        width: calc(100% + 48px);
        margin-left: -24px;
        margin-right: -24px;
        margin-top: auto;
    }

    .license-card__media img {
        min-height: 120%;
        height: 120%;
    }

    /* Картка 1 — екран ≤960px (міняй % тут) */
    .license-cards .license-card:nth-child(1) .license-card__media img {
        transform: translate(-50%, -50%);
        object-position: center 60%;
    }

    /* Картка 4 — як картка 1 */
    .license-cards .license-card:nth-child(4) .license-card__media img {
        transform: translate(-50%, -50%);
        object-position: center 60%;
    }

    /* Картка 6 — PNG +20%, блок обрізає як раніше */
    .license-cards .license-card:nth-child(6) .license-card__media img {
        transform: translate(-50%, -50%) scale(1.2);
        object-position: center 60%;
    }

    /* Картка 2 — міняй -8px */
    .license-cards .license-card:nth-child(2) .license-card__media img {
        object-position: center top;
        transform: translate(-50%, calc(-50% - 8px));
    }

    .section-timeline__panel.layout-container {
        padding: 56px 40px 8px;
        max-width: 100%;
    }

    .timeline-intro {
        margin-bottom: 48px;
    }

    .timeline-step {
        padding-bottom: 48px;
    }
}

@media (max-width: 640px) {
    .hero-licensing {
        margin: 8px 8px 0;
    }

    .hero-licensing__inner {
        gap: 40px;
        padding: 32px 24px 40px;
    }

    .hero-licensing__title {
        font-size: 26px;
        line-height: 32px;
    }

    .section-license-cards,
    .section-timeline {
        margin-left: 8px;
        margin-right: 8px;
    }

    .section-license-cards__panel,
    .section-timeline__panel {
        padding: var(--block-padding-y) var(--block-padding-x);
    }

    .section-timeline__panel.layout-container {
        padding: var(--block-padding-y) var(--block-padding-x) 8px;
        max-width: 100%;
    }

    .timeline-intro {
        margin-bottom: 40px;
    }

    .timeline-step {
        padding-bottom: 40px;
    }

    .result-cards {
        flex-direction: column;
    }

    .result-card {
        flex: none;
        width: 100%;
    }

    .license-card {
        height: 340px;
        padding: 20px 20px 0;
    }

    .license-card__body {
        gap: 20px;
    }

    .license-card__media {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        min-height: 140px;
    }

    .admin-wrap {
        padding-top: 24px;
    }

    .admin-row--pages {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-field--slug {
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   18. PRINT
   -------------------------------------------------------------------------- */
@media print {
    .site-header,
    .site-prefooter,
    .site-footer,
    .button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        height: auto;
        background: white;
    }
    
    .hero__media {
        display: none;
    }
}
