:root {
    --page: #f7f8fc;
    --panel: #ffffff;
    --mist: #edf1ff;
    --blue-mist: #dfe6ff;
    --ink: #1f2937;
    --muted: #5b6472;
    --heading: #1b2440;
    --primary: #3459e6;
    --primary-dark: #2344bf;
    --primary-soft: rgba(52, 89, 230, 0.11);
    --accent: #2fb380;
    --action: #3459e6;
    --line: rgba(52, 89, 230, 0.16);
    --shadow: 0 18px 42px rgba(52, 89, 230, 0.12);
    --radius: 5px;
    --header-height: 76px;
}

@font-face {
    font-display: swap;
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400 900;
    src: url("/assets/fonts/roboto/roboto-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-display: swap;
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400 900;
    src: url("/assets/fonts/roboto/roboto-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-display: swap;
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400 900;
    src: url("/assets/fonts/roboto/roboto-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-display: swap;
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400 900;
    src: url("/assets/fonts/roboto/roboto-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-display: block;
    font-family: "bootstrap-icons";
    src: url("/assets/fonts/bootstrap-icons/bootstrap-icons.woff2") format("woff2"),
         url("/assets/fonts/bootstrap-icons/bootstrap-icons.woff") format("woff");
}

.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    display: inline-block;
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    vertical-align: -0.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bi-award-fill::before { content: "\f153"; }
.bi-book::before { content: "\f194"; }
.bi-book-half::before { content: "\f193"; }
.bi-box-arrow-in-right::before { content: "\f1be"; }
.bi-building-fill::before { content: "\f876"; }
.bi-buildings-fill::before { content: "\f87c"; }
.bi-cash-coin::before { content: "\f632"; }
.bi-check-circle-fill::before { content: "\f26a"; }
.bi-chevron-left::before { content: "\f284"; }
.bi-chevron-right::before { content: "\f285"; }
.bi-clock-history::before { content: "\f292"; }
.bi-database-fill::before { content: "\f8be"; }
.bi-envelope-check-fill::before { content: "\f68b"; }
.bi-envelope-fill::before { content: "\f32c"; }
.bi-geo-alt-fill::before { content: "\f3e7"; }
.bi-globe-europe-africa-fill::before { content: "\f91e"; }
.bi-globe2::before { content: "\f3ef"; }
.bi-house-door-fill::before { content: "\f422"; }
.bi-mortarboard-fill::before { content: "\f6fd"; }
.bi-people-fill::before { content: "\f4cf"; }
.bi-person-heart::before { content: "\f77a"; }
.bi-person-plus-fill::before { content: "\f4dc"; }
.bi-piggy-bank-fill::before { content: "\f649"; }
.bi-rocket-takeoff-fill::before { content: "\f844"; }
.bi-search::before { content: "\f52a"; }
.bi-telegram::before { content: "\f5b3"; }
.bi-telephone-fill::before { content: "\f5b4"; }
.bi-unlock-fill::before { content: "\f5ff"; }
.bi-x-lg::before { content: "\f659"; }
.bi-zoom-in::before { content: "\f62c"; }

.bg-primary {
    background: var(--primary);
    color: #fff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    margin: 0;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--page);
    color: var(--ink);
    line-height: 1.55;
}

body.popup-open,
body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(52, 89, 230, 0.34);
}

.container {
    width: min(100% - 40px, 1240px);
    margin: 0 auto;
}

.narrow {
    width: min(100% - 40px, 980px);
}

.section {
    padding: 92px 0;
    position: relative;
}

.soft-section {
    background: #ffffff;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2,
.registration-copy h2,
.site-footer h2,
.popup-dialog h2 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.section-heading p,
.registration-copy p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.section-heading a {
    color: var(--action);
    font-weight: 700;
    text-decoration-color: rgba(62, 75, 130, 0.35);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--header-height);
    background: rgba(247, 248, 252, 0.84);
    border-bottom: 1px solid rgba(52, 89, 230, 0.1);
    backdrop-filter: blur(14px);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 26px rgba(52, 89, 230, 0.1);
}

.header-inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--heading);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 14px;
}

.brand-text {
    font-size: 15px;
}

.site-nav {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    padding: 10px 9px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.site-nav .guide-admin-link {
    color: #b42318;
}

.site-nav .guide-admin-link:hover,
.site-nav .guide-admin-link:focus-visible {
    background: #fee4e2;
    color: #912018;
}

.login-trigger,
.menu-toggle,
.slider-controls button,
.popup-close,
.demo-lightbox-close {
    border: 0;
    cursor: pointer;
}

.login-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(52, 89, 230, 0.12);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--heading);
}

.hero {
    min-height: calc(100vh - var(--header-height));
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(247, 248, 252, 0.98) 0%, rgba(247, 248, 252, 0.88) 42%, rgba(247, 248, 252, 0.18) 100%),
        var(--hero-image) center right / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 112px;
    background: linear-gradient(180deg, rgba(247, 248, 252, 0), var(--page));
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
    gap: 48px;
    align-items: center;
    padding: 64px 0 78px;
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    margin: 0;
    max-width: 780px;
    color: var(--heading);
    font-size: clamp(42px, 6vw, 74px);
    line-height: 0.98;
}

.hero-subtitle {
    margin: 22px 0 0;
    max-width: 560px;
    color: var(--ink);
    font-size: clamp(19px, 2.4vw, 26px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 26px rgba(52, 89, 230, 0.24);
}

.button-secondary {
    background: #fff;
    color: var(--primary-dark);
    border-color: rgba(52, 89, 230, 0.2);
}

.button-disabled {
    opacity: 0.58;
    cursor: default;
}

.button-disabled:hover {
    transform: none;
}

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.hero-panel div {
    position: relative;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(247, 249, 255, 0.94);
}

.hero-panel i {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--primary);
    font-size: 22px;
}

.hero-panel strong {
    display: block;
    color: var(--primary);
    font-size: 24px;
    line-height: 1.15;
}

.hero-panel span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.slider {
    --visible: 1;
    --slider-arrow-offset: 0px;
    --slider-arrow-size: 46px;
    --slider-card-safe-x: calc(var(--slider-arrow-size) * 2);
    position: relative;
}

.slider-viewport {
    overflow: hidden;
    touch-action: pan-y;
}

.slider-track {
    display: flex;
    gap: 18px;
    transition: transform 320ms ease;
    will-change: transform;
}

.slider-track > * {
    flex: 0 0 calc((100% - (18px * (var(--visible) - 1))) / var(--visible));
}

.slider-controls {
    position: absolute;
    left: var(--slider-arrow-offset);
    right: var(--slider-arrow-offset);
    top: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.slider-controls button {
    display: grid;
    place-items: center;
    width: var(--slider-arrow-size);
    height: var(--slider-arrow-size);
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    pointer-events: auto;
    box-shadow: 0 14px 28px rgba(52, 89, 230, 0.24);
}

.slider-controls button:disabled {
    opacity: 0.38;
    cursor: default;
}

.slider-dots {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.slider-dots button {
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
}

.info-card,
.guide-card,
.benefit-card,
.registration-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.media-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(12, 20, 42, 0.86) 0%, rgba(12, 20, 42, 0.72) 44%, rgba(12, 20, 42, 0.28) 100%),
        var(--card-bg) center / cover no-repeat;
    color: #fff;
}

.media-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 18%, rgba(52, 89, 230, 0.32), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.42));
    pointer-events: none;
}

.media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: rgba(15, 23, 42, 0.36);
    pointer-events: none;
}

.media-card > * {
    position: relative;
    z-index: 1;
}

.info-card {
    --info-card-min-height: 310px;
    --info-card-icon-top: calc((var(--info-card-min-height) - var(--slider-arrow-size)) / 2 - 52px);
    min-height: var(--info-card-min-height);
    padding: 0;
}

.info-card h3 {
    position: absolute;
    top: calc(var(--info-card-icon-top) + 52px + var(--slider-arrow-size));
    left: var(--slider-card-safe-x);
    right: var(--slider-card-safe-x);
    margin: 0;
    color: var(--heading);
    font-size: clamp(21px, 2vw, 26px);
    line-height: 1.12;
}

.info-card.media-card h3,
.guide-card.media-card h3 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.guide-card.media-card p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.34);
}

.card-icon {
    position: absolute;
    top: var(--info-card-icon-top);
    left: var(--slider-card-safe-x);
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    font-size: 24px;
    box-shadow: 0 12px 26px rgba(52, 89, 230, 0.2);
}

.tone-1:not(.media-card) {
    background: #ffffff;
}

.tone-2:not(.media-card) {
    background: #f0f4ff;
}

.tone-3:not(.media-card) {
    background: #eefaf5;
}

.tone-4:not(.media-card) {
    background: #f7f2ff;
}

.guide-card {
    --guide-card-min-height: 420px;
    --guide-card-icon-top: calc((var(--guide-card-min-height) - var(--slider-arrow-size)) / 2 - 70px);
    min-height: var(--guide-card-min-height);
    padding: 0;
}

.guide-card div {
    position: absolute;
    top: calc(var(--guide-card-icon-top) + 70px + var(--slider-arrow-size));
    left: var(--slider-card-safe-x);
    right: var(--slider-card-safe-x);
    max-width: 100%;
    margin: 0;
}

.guide-icon {
    position: absolute;
    top: var(--guide-card-icon-top);
    left: var(--slider-card-safe-x);
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    font-size: 28px;
}

.guide-card h3 {
    margin: 0 0 12px;
    color: var(--heading);
    font-size: 30px;
}

.guide-card p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.benefit-card {
    min-height: 190px;
    padding: 26px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(52, 89, 230, 0.16);
}

.benefit-card span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    font-size: 22px;
}

.benefit-card h3 {
    margin: 24px 0 0;
    color: var(--heading);
    font-size: 21px;
    line-height: 1.25;
}

.useful-section {
    background: linear-gradient(180deg, #f7f8fc 0%, #eef2ff 100%);
}

.useful-section .section-heading {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.useful-copy {
    text-align: center;
}

.useful-copy p {
    margin: 0 auto;
    max-width: 840px;
    color: var(--heading);
    font-size: clamp(21px, 3vw, 30px);
    line-height: 1.35;
}

.academic-divider {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 26px 0;
    border: 0;
    border-radius: 50%;
}

.demo-card {
    position: relative;
    cursor: zoom-in;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(52, 89, 230, 0.11);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.demo-card:hover {
    transform: scale(1.025);
    box-shadow: 0 18px 42px rgba(52, 89, 230, 0.18);
}

.demo-card img {
    width: 100%;
    aspect-ratio: 2363 / 2835;
    object-fit: contain;
    border-radius: var(--radius);
    background: #f0f1f1;
}

.demo-zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    box-shadow: 0 12px 24px rgba(52, 89, 230, 0.26);
}

.registration-section {
    background:
        linear-gradient(135deg, rgba(52, 89, 230, 0.12), rgba(47, 179, 128, 0.08)),
        #f7f8fc;
}

.registration-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(450px, 500px);
    gap: 36px;
    align-items: start;
}

.registration-copy {
    position: sticky;
    top: calc(var(--header-height) + 28px);
}

.registration-form {
    width: 100%;
    padding: clamp(22px, 4vw, 34px);
}

.registration-consent {
    grid-template-columns: auto 1fr;
    align-items: start;
    margin-top: 18px;
}

.registration-consent + .registration-consent {
    margin-top: 9px;
}

.registration-consent input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.registration-consent span {
    font-weight: 500;
    line-height: 1.5;
}

.registration-consent a {
    color: var(--primary);
    font-weight: 700;
}

.registration-consent .field-error {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
}

label span {
    color: var(--heading);
    font-size: 14px;
    font-weight: 800;
}

label b {
    color: var(--primary);
}

input,
select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid rgba(52, 89, 230, 0.22);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
}

.has-field-error input,
.has-field-error select {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.field-error {
    margin: 0;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.city-field {
    position: relative;
}

.city-suggest {
    position: absolute;
    z-index: 12;
    top: calc(100% - 17px);
    right: 0;
    left: 0;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(52, 89, 230, 0.18);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.city-suggest.is-open {
    display: block;
}

.city-option {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(52, 89, 230, 0.08);
    background: #fff;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.city-option:last-child {
    border-bottom: 0;
}

.city-option:hover,
.city-option:focus {
    background: var(--mist);
    outline: none;
}

.city-option strong {
    display: block;
    color: var(--heading);
}

.city-option-country {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.city-country {
    min-height: 18px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.verification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
}

.registration-submit[hidden] {
    display: none;
}

.verification-row .button {
    width: 100%;
    min-height: 48px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 14px;
    white-space: nowrap;
}

.code-boxes {
    display: grid;
    grid-template-columns: repeat(6, 32px);
    gap: 4px;
}

.code-boxes input {
    min-height: 48px;
    padding: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
}

.form-note,
.forgot-code,
.demo-access-note {
    margin: 14px 0;
    color: var(--muted);
    font-size: 14px;
}

.demo-access-note {
    padding: 10px 12px;
    border: 1px solid rgba(47, 179, 128, 0.28);
    border-radius: var(--radius);
    background: rgba(47, 179, 128, 0.08);
    color: #116345;
}

.demo-access-note strong {
    font-weight: 900;
}

.form-note[data-state="success"] {
    color: #18764f;
    font-weight: 700;
}

.form-note[data-state="error"] {
    color: #b42318;
    font-weight: 700;
}

.form-note[data-state="pending"] {
    color: var(--primary-dark);
    font-weight: 700;
}

.site-footer {
    background: #1b2440;
    color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.site-footer h2 {
    color: #fff;
    font-size: 24px;
}

.site-footer p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
}

.site-footer span {
    color: #8ea2ff;
}

.popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.popup.is-open {
    opacity: 1;
    pointer-events: auto;
}

.popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(51, 51, 51, 0.46);
}

.popup-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 32px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(51, 51, 51, 0.24);
    transform: translateY(12px);
    transition: transform 180ms ease;
}

.popup.is-open .popup-dialog {
    transform: translateY(0);
}

.popup-dialog h2 {
    padding-right: 34px;
    font-size: 28px;
}

.popup-dialog form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: #f2f4f4;
    color: var(--heading);
    font-size: 28px;
    line-height: 1;
}

.login-code-section[hidden],
.login-submit[hidden] {
    display: none;
}

.login-code-section {
    display: grid;
    gap: 8px;
}

.login-code-label {
    color: var(--heading);
    font-weight: 800;
}

.login-code-boxes {
    grid-template-columns: repeat(6, minmax(32px, 1fr));
    gap: 8px;
}

.login-submit {
    min-width: 132px;
}

.login-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.forgot-code-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(52, 89, 230, 0.24);
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--action);
    cursor: pointer;
    font-weight: 800;
}

.forgot-code-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.demo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.demo-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.demo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.demo-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(100%, 1020px);
    max-height: calc(100vh - 44px);
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

.demo-lightbox-dialog img {
    max-height: calc(100vh - 112px);
    width: auto;
    border-radius: var(--radius);
    object-fit: contain;
}

.demo-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 1199px) {
    .info-card {
        --info-card-min-height: 390px;
    }

    .info-card h3 {
        font-size: 19px;
        line-height: 1.16;
    }

    .header-inner {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: grid;
        justify-items: start;
        gap: 0;
        padding: 14px 20px 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 20px 40px rgba(52, 89, 230, 0.14);
        transform: translateY(-130%);
        transition: transform 200ms ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
    }

    .site-nav a {
        width: 100%;
        padding: 13px 10px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        background:
            linear-gradient(90deg, rgba(247, 248, 252, 0.98) 0%, rgba(247, 248, 252, 0.86) 65%, rgba(247, 248, 252, 0.42) 100%),
            var(--hero-image) center right / cover no-repeat;
    }

    .hero-panel {
        max-width: 620px;
    }

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

    .registration-copy {
        position: static;
    }
}

@media (max-width: 959px) {
    .registration-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .registration-copy {
        max-width: 620px;
        text-align: center;
    }

    .registration-form {
        max-width: 500px;
        text-align: left;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 66px;
    }

    .container,
    .narrow {
        width: min(100% - 28px, 1240px);
    }

    .section {
        padding: 64px 0;
    }

    .header-inner {
        gap: 10px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text {
        max-width: 128px;
        white-space: normal;
        font-size: 13px;
        line-height: 1.15;
    }

    .login-trigger {
        min-height: 38px;
        padding: 0 11px;
    }

    .login-trigger span:last-child {
        display: none;
    }

    .slider {
        --slider-arrow-offset: 0px;
        --slider-arrow-size: 40px;
    }

    .hero {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(247, 248, 252, 0.98) 0%, rgba(247, 248, 252, 0.86) 62%, rgba(247, 248, 252, 0.58) 100%),
            var(--hero-image) center top / cover no-repeat;
    }

    .hero-grid {
        padding: 52px 0 58px;
    }

    .hero h1 {
        font-size: clamp(39px, 13vw, 56px);
    }

    .hero-actions,
    .verification-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .registration-form {
        max-width: none;
        justify-self: stretch;
    }

    .button {
        width: 100%;
    }

    .verification-row .button {
        white-space: normal;
    }

    .code-boxes {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        justify-content: stretch;
    }

    .login-actions {
        flex-direction: column;
    }

    .login-actions .forgot-code-button {
        width: 100%;
    }

    .guide-card {
        --guide-card-min-height: 620px;
    }

    .info-card {
        --info-card-min-height: 410px;
    }

    .info-card h3 {
        font-size: 18px;
        line-height: 1.15;
    }

    .media-card {
        background:
            linear-gradient(180deg, rgba(12, 20, 42, 0.86) 0%, rgba(12, 20, 42, 0.74) 54%, rgba(12, 20, 42, 0.48) 100%),
            var(--card-bg) center / cover no-repeat;
    }

    .guide-card h3 {
        margin-bottom: 9px;
        font-size: 22px;
        line-height: 1.14;
    }

    .guide-card p {
        font-size: 14px;
        line-height: 1.35;
    }

    .benefit-grid,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .code-boxes {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .popup-dialog {
        padding: 26px 18px 22px;
    }

    .popup-dialog h2 {
        font-size: 24px;
    }

    .demo-lightbox {
        padding: 12px;
    }

    .demo-lightbox-dialog {
        padding: 10px;
        max-height: calc(100vh - 24px);
    }

    .demo-lightbox-dialog img {
        max-height: calc(100vh - 64px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
    }
}

/* Authenticated guide */
.guide-app {
    background: var(--page);
}

.guide-main {
    padding: 44px 0 68px;
}

.guide-app .row {
    display: flex;
    flex-wrap: wrap;
    margin: calc(var(--guide-gutter, 24px) / -2);
}

.guide-app .row > * {
    width: 100%;
    padding: calc(var(--guide-gutter, 24px) / 2);
}

.guide-app .g-2 { --guide-gutter: 12px; }
.guide-app .g-3 { --guide-gutter: 16px; }
.guide-app .g-4 { --guide-gutter: 24px; }
.guide-app .col,
.guide-app .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.guide-app .row-cols-1 > * { flex: 0 0 100%; max-width: 100%; }
.guide-app .row-cols-2 > * { flex: 0 0 50%; max-width: 50%; }
.guide-app .d-flex { display: flex; }
.guide-app .d-grid { display: grid; }
.guide-app .flex-column { flex-direction: column; }
.guide-app .flex-wrap { flex-wrap: wrap; }
.guide-app .align-items-center { align-items: center; }
.guide-app .align-items-start { align-items: flex-start; }
.guide-app .align-items-stretch { align-items: stretch; }
.guide-app .justify-content-between { justify-content: space-between; }
.guide-app .gap-2 { gap: 8px; }
.guide-app .gap-3 { gap: 14px; }
.guide-app .gap-4 { gap: 24px; }
.guide-app .h-100 { height: 100%; }
.guide-app .w-100 { width: 100%; }
.guide-app .mb-0 { margin-bottom: 0; }
.guide-app .mb-1 { margin-bottom: 4px; }
.guide-app .mb-2 { margin-bottom: 8px; }
.guide-app .mb-3 { margin-bottom: 16px; }
.guide-app .mb-4 { margin-bottom: 24px; }
.guide-app .mb-5 { margin-bottom: 42px; }
.guide-app .mt-1 { margin-top: 4px; }
.guide-app .mt-3 { margin-top: 16px; }
.guide-app .mt-4 { margin-top: 24px; }
.guide-app .p-3 { padding: 16px; }
.guide-app .p-4 { padding: 24px; }
.guide-app .px-4 { padding-left: 24px; padding-right: 24px; }

.guide-app .display-5,
.guide-app .display-6 {
    margin-top: 0;
    color: var(--heading);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
}

.guide-app .display-6 {
    font-size: clamp(30px, 3vw, 42px);
}

.guide-app .lead { font-size: 18px; }
.guide-app .h5 { margin: 0; font-size: 18px; }
.guide-app .fs-5 { font-size: 20px; }
.guide-app .fw-semibold { font-weight: 800; }
.guide-app .small { font-size: 13px; }
.guide-app .text-uppercase { text-transform: uppercase; }
.guide-app .text-secondary,
.guide-app .rug-muted { color: var(--muted); }

.guide-app .rug-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 58%, #eaf8f2 100%);
    box-shadow: var(--shadow);
}

.guide-app .rug-card,
.guide-app .rug-compact-group,
.guide-app .rug-stat {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 12px 30px rgba(52, 89, 230, 0.08);
}

.guide-app .rug-card-featured {
    border-color: rgba(47, 179, 128, 0.42);
    background: linear-gradient(180deg, rgba(47, 179, 128, 0.09), #fff 70%);
}

.guide-app .rug-section-title {
    margin: 0;
    color: var(--heading);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
}

.guide-app .rug-book-section {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.guide-app .rug-book-frame {
    overflow: hidden;
    height: min(78vh, 740px);
    min-height: 560px;
    border: 1px solid rgba(52, 89, 230, 0.14);
    border-radius: var(--radius);
    background: #eef2ff;
}

.guide-app .rug-book-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.guide-app .rug-kicker {
    margin: 0;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.guide-app .rug-list-link {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guide-app .rug-list-link:hover,
.guide-app .rug-list-link:focus {
    border-color: rgba(52, 89, 230, 0.36);
    box-shadow: 0 12px 28px rgba(52, 89, 230, 0.12);
    transform: translateY(-1px);
}

.guide-app .rug-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(52, 89, 230, 0.16);
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.guide-app .rug-featured-badge {
    border-color: rgba(47, 179, 128, 0.36);
    background: rgba(47, 179, 128, 0.12);
    color: #116345;
}

.guide-app .rug-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--muted);
    font-size: 14px;
}

.guide-app .rug-map-wrap {
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.guide-app .rug-russia-map {
    display: block;
    width: 100%;
    height: auto;
}

.guide-app .rug-russia-map .rug-map-region {
    fill: var(--district-fill, #dce8f5);
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 1.15;
    cursor: pointer;
    transition: fill 160ms ease, opacity 160ms ease;
    vector-effect: non-scaling-stroke;
}

.guide-app .rug-russia-map .rug-map-region--active {
    fill: var(--district-hover, #3459e6);
    outline: none;
}

.guide-app .rug-russia-map .rug-map-region--unmapped {
    fill: #eef2f6;
    stroke: #d6dee8;
    cursor: default;
    opacity: 0.65;
}

.guide-app .rug-map-district-link--active,
.guide-app .rug-map-district-link:hover {
    border-color: rgba(52, 89, 230, 0.42);
    background: #eef2ff;
}

.guide-app .rug-map-legend-swatch {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid rgba(52, 89, 230, 0.2);
    border-radius: 50%;
}

.guide-app .rug-map-note {
    color: var(--muted);
    font-size: 13px;
}

.guide-app .rug-compact-group {
    height: 100%;
    padding: 18px;
}

.guide-app .rug-group-letter {
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 900;
}

.guide-app .rug-divider {
    height: 1px;
    margin: 10px 0 16px;
    background: linear-gradient(90deg, var(--primary), rgba(52, 89, 230, 0.08));
}

.guide-app .rug-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guide-app .rug-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
}

.guide-app .rug-chip-link:hover {
    border-color: rgba(52, 89, 230, 0.36);
    background: var(--mist);
}

.guide-app .rug-chip-meta {
    color: var(--muted);
    font-size: 12px;
}

.guide-app .rug-stat {
    height: 100%;
    padding: 18px;
}

.guide-app .rug-stat strong {
    display: block;
    color: var(--heading);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
}

.guide-app .form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(52, 89, 230, 0.18);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
}

.guide-app .form-control-lg {
    min-height: 54px;
    font-size: 16px;
}

.guide-app .btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
}

.guide-app .btn-lg { min-height: 54px; }
.guide-app .btn-primary { background: var(--action); color: #fff; }

.guide-breadcrumbs {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.guide-breadcrumbs ol,
.guide-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.guide-breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: rgba(91, 100, 114, 0.55);
}

.guide-breadcrumbs a {
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.guide-pagination a {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.guide-pagination a.is-active {
    background: var(--primary);
    color: #fff;
}

.guide-footer {
    padding: 0 0 40px;
}

.guide-footer-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@media (min-width: 768px) {
    .guide-app .col-md { flex: 1 0 0; max-width: 100%; }
    .guide-app .col-md-auto { flex: 0 0 auto; width: auto; }
}

@media (min-width: 992px) {
    .guide-app .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .guide-app .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .guide-app .col-lg-8 { flex: 0 0 66.667%; max-width: 66.667%; }
    .guide-app .row-cols-lg-5 > * { flex: 0 0 20%; max-width: 20%; }
    .guide-app .flex-lg-row { flex-direction: row; }
    .guide-app .align-items-lg-end { align-items: flex-end; }
    .guide-app .p-lg-4 { padding: 24px; }
    .guide-app .p-lg-5 { padding: 40px; }
}

@media (min-width: 1200px) {
    .guide-app .col-xl-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .guide-app .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
    .guide-app .col-xl-8 { flex: 0 0 66.667%; max-width: 66.667%; }
}

@media (max-width: 760px) {
    .guide-main {
        padding-top: 28px;
    }

    .guide-app .row-cols-2 > * {
        flex-basis: 100%;
        max-width: 100%;
    }

    .guide-app .rug-book-section {
        padding: 16px;
    }

    .guide-app .rug-book-frame {
        height: 620px;
        min-height: 620px;
    }

    .guide-footer-line {
        flex-direction: column;
    }
}
