:root {
    --purple: #392869;
    --purple-dark: #101030;
    --purple-deep: #17112b;
    --purple-soft: #f3f0fa;
    --yellow: #ffee00;
    --yellow-deep: #f7d913;
    --ink: #171717;
    --muted: #666377;
    --line: #e9e6ef;
    --surface: #ffffff;
    --surface-soft: #f7f7f8;
    --danger: #b42318;
    --success: #147a44;
    --shadow-sm: 0 8px 30px rgba(16, 16, 48, 0.08);
    --shadow-lg: 0 30px 80px rgba(16, 16, 48, 0.2);
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 36px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: "Open Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--purple-dark); line-height: 1.15; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.2rem; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 104px 0; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 16px;
    color: var(--purple-dark); background: var(--yellow); border-radius: 8px; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: relative; z-index: 50; height: 92px; background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(57,40,105,.1); backdrop-filter: blur(18px);
}
.site-header--solid { position: sticky; top: 0; }
.site-header.is-scrolled { position: sticky; top: 0; box-shadow: 0 8px 30px rgba(16,16,48,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 26px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; }
.brand img { width: 185px; max-height: 58px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a { position: relative; color: #3f3b4d; font-size: .92rem; font-weight: 700; }
.main-nav a::after {
    position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; content: "";
    background: var(--yellow-deep); transform: scaleX(0); transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-link {
    display: grid; width: 39px; height: 39px; place-items: center; color: var(--purple);
    border: 1px solid var(--line); border-radius: 50%; font-size: .78rem; font-weight: 800;
}
.phone-link {
    display: flex; align-items: center; gap: 9px; padding: 12px 17px; color: var(--purple-dark);
    background: var(--yellow); border-radius: 999px; font-size: .9rem; font-weight: 800;
}
.menu-toggle {
    display: none; width: 44px; height: 44px; place-items: center; background: transparent;
    border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}

.hero {
    position: relative; min-height: 720px; overflow: hidden; color: #fff;
    background: radial-gradient(circle at 72% 25%, rgba(92,67,156,.7), transparent 30%), linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 72%);
}
.hero::before {
    position: absolute; inset: 0; content: ""; opacity: .16;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 54px 54px; mask-image: linear-gradient(90deg, #000, transparent 82%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(1px); }
.hero-glow--one { top: -180px; right: -120px; width: 530px; height: 530px; background: rgba(255,238,0,.13); }
.hero-glow--two { bottom: -340px; left: -230px; width: 600px; height: 600px; border: 90px solid rgba(255,255,255,.04); }
.hero-grid { position: relative; display: grid; min-height: 720px; align-items: center; grid-template-columns: 1.1fr .9fr; gap: 70px; padding-block: 90px; }
.hero-copy { max-width: 690px; }
.eyebrow, .section-kicker, .admin-kicker {
    margin-bottom: 14px; color: var(--purple); font-size: .76rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase;
}
.hero .eyebrow, .page-hero .eyebrow { color: var(--yellow); }
.hero h1 { margin-bottom: 18px; color: #fff; font-size: clamp(3.2rem, 6.4vw, 6rem); }
.hero-accent { margin-bottom: 10px; color: var(--yellow); font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 900; }
.hero-description { max-width: 560px; margin-bottom: 31px; color: rgba(255,255,255,.78); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.button {
    display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border: 0; border-radius: 999px; font-weight: 800; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(247,217,19,.7); outline-offset: 3px; }
.button--yellow { color: var(--purple-dark); background: var(--yellow); box-shadow: 0 14px 36px rgba(255,238,0,.2); }
.button--dark { color: #fff; background: var(--purple-dark); box-shadow: 0 12px 30px rgba(16,16,48,.14); }
.button--full { width: 100%; }
.hero-phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.hero-phone i { color: var(--yellow); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 38px; color: rgba(255,255,255,.67); font-size: .84rem; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { color: var(--yellow); }
.hero-visual { position: relative; display: grid; min-height: 510px; place-items: center; }
.gem-orbit { position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.gem-orbit--outer { width: 470px; height: 470px; }
.gem-orbit--inner { width: 340px; height: 340px; border-style: dashed; animation: rotate 28s linear infinite; }
.gem-card {
    position: relative; display: flex; width: 270px; height: 330px; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden; color: var(--purple-dark); background: linear-gradient(145deg, #fffbd2, var(--yellow) 72%);
    border: 1px solid rgba(255,255,255,.65); border-radius: 130px 130px 34px 34px; box-shadow: 0 36px 90px rgba(0,0,0,.34); transform: rotate(4deg);
}
.gem-card::after { position: absolute; inset: 14px; content: ""; border: 1px solid rgba(16,16,48,.18); border-radius: inherit; }
.gem-card i { margin-bottom: 18px; font-size: 5.2rem; }
.gem-card strong { font-size: 3.4rem; line-height: 1; }
.gem-card span:last-child { margin-top: 7px; font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.gem-card__shine { position: absolute; top: -55%; left: -80%; width: 60%; height: 210%; background: rgba(255,255,255,.45); transform: rotate(27deg); }
.floating-note {
    position: absolute; display: flex; align-items: center; gap: 9px; padding: 13px 17px; color: #fff;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.23); border-radius: 999px; box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); font-size: .84rem; font-weight: 800;
}
.floating-note i { color: var(--yellow); }
.floating-note--top { top: 65px; right: 10px; }
.floating-note--bottom { bottom: 65px; left: 0; }
@keyframes rotate { to { transform: rotate(360deg); } }

.flash-wrap { position: relative; z-index: 4; margin-top: 24px; }
.flash { display: flex; align-items: flex-start; gap: 11px; padding: 14px 17px; border-radius: 12px; font-size: .92rem; font-weight: 700; }
.flash--success { color: #0d6034; background: #e9f8ef; border: 1px solid #bce8ca; }
.flash--error { color: #8f1e15; background: #fff0ee; border: 1px solid #f2c5c0; }
.admin-auth__card > .flash-wrap, .admin-auth__card > .container.flash-wrap { width: 100%; margin: 0 0 18px; }

.section-heading { max-width: 780px; margin-bottom: 52px; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading--split { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin-bottom: 0; }
.benefits { background: #fff; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit-card {
    position: relative; min-height: 260px; padding: 30px; overflow: hidden; background: var(--surface-soft);
    border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .22s ease, box-shadow .22s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.benefit-number { position: absolute; top: 20px; right: 22px; color: #d8d3e4; font-size: .75rem; font-weight: 900; }
.icon-circle { display: grid; width: 78px; height: 78px; margin-bottom: 48px; place-items: center; color: var(--purple-dark); background: var(--yellow); border-radius: 50%; font-size: 2rem; }
.benefit-card h3 { max-width: 210px; margin: 0; font-size: 1.18rem; }

.application { color: #fff; background: var(--purple); }
.application-grid { display: grid; align-items: center; grid-template-columns: .82fr 1.18fr; gap: 84px; }
.application-copy h2 { color: #fff; }
.application-copy > p:not(.section-kicker) { max-width: 440px; color: rgba(255,255,255,.7); font-size: 1.08rem; }
.section-kicker--light { color: var(--yellow); }
.application-facts { display: flex; flex-direction: column; gap: 13px; margin-top: 32px; color: rgba(255,255,255,.82); font-weight: 700; }
.application-facts span { display: flex; align-items: center; gap: 10px; }
.application-facts i { width: 20px; color: var(--yellow); text-align: center; }
.application-form { position: relative; padding: 38px; color: var(--ink); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #3e394d; font-size: .82rem; font-weight: 800; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
    width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: #fbfbfc;
    border: 1px solid #dedbe6; border-radius: 10px; outline: none;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(57,40,105,.1); }
.password-control { position: relative; width: 100%; }
.password-control input { padding-right: 58px; }
.password-toggle {
    position: absolute; z-index: 2; top: 50%; right: 8px; display: grid; width: 38px; height: 38px; padding: 0;
    place-items: center; color: var(--purple); background: rgba(57,40,105,.07); border: 0; border-radius: 10px;
    cursor: pointer; font-size: .9rem; line-height: 1; transform: translateY(-50%); transition: background .18s ease, color .18s ease;
}
.password-toggle:hover { color: var(--purple-dark); background: rgba(57,40,105,.14); }
.password-toggle:focus-visible { outline: 3px solid rgba(247,217,19,.7); outline-offset: 1px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 22px; color: var(--muted); font-size: .78rem; cursor: pointer; }
.consent input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--purple); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.conditions { background: var(--surface-soft); }
.condition-list { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(2, 1fr); gap: 18px; list-style: none; }
.condition-list li { display: flex; min-height: 140px; align-items: center; gap: 24px; padding: 28px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 1.05rem; font-weight: 800; }
.condition-number { display: grid; width: 54px; height: 54px; flex: 0 0 auto; place-items: center; color: var(--purple-dark); background: var(--yellow); border-radius: 50%; font-size: .84rem; font-weight: 900; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-weight: 800; }
.contract-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.document-card { display: flex; min-height: 310px; flex-direction: column; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.document-icon { display: grid; width: 68px; height: 68px; margin-bottom: 45px; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 16px; font-size: 2rem; }
.document-card h3 { margin-bottom: 24px; font-size: 1.25rem; }
.document-card a { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--purple); font-weight: 900; }

.about { color: #fff; background: var(--purple-dark); }
.about-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: 86px; }
.about-intro { position: sticky; top: 125px; align-self: start; }
.about-intro h2 { color: #fff; }
.about-intro > p:not(.section-kicker) { color: rgba(255,255,255,.7); }
.license-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 16px; color: var(--purple-dark); background: var(--yellow); border-radius: 999px; font-size: .82rem; font-weight: 900; }
.about-points { display: flex; flex-direction: column; }
.about-points article { display: grid; padding: 27px 0; border-top: 1px solid rgba(255,255,255,.14); grid-template-columns: 54px 1fr; gap: 22px; }
.about-points article > span { color: var(--yellow); font-size: .82rem; font-weight: 900; }
.about-points h3 { margin-bottom: 8px; color: #fff; }
.about-points p { margin: 0; color: rgba(255,255,255,.65); }

.contacts { background: var(--yellow); }
.contacts-grid { display: grid; align-items: start; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.contact-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.contact-items > * { display: flex; min-height: 94px; align-items: center; gap: 17px; padding: 20px; background: rgba(255,255,255,.84); border-radius: 16px; font-weight: 800; }
.contact-items i { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--purple); border-radius: 50%; }
.contact-items a > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.contact-items small { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-item--whatsapp i { background: #159447; font-size: 1.25rem; }
.contact-item--hours { grid-column: 1 / -1; }

.site-footer { padding-top: 70px; color: rgba(255,255,255,.7); background: #0d0d25; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .75fr 1fr 1.25fr; gap: 50px; padding-bottom: 55px; }
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { max-width: 280px; }
.site-footer h2 { margin-bottom: 20px; color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a, .site-footer span { display: block; margin-bottom: 10px; font-size: .88rem; }
.site-footer .footer-contact-link { display: flex; align-items: center; gap: 9px; }
.site-footer .footer-contact-link i { width: 17px; color: var(--yellow); text-align: center; }
.floating-contacts {
    position: fixed; z-index: 60; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom));
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.floating-contacts__actions { display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.floating-contact, .floating-contacts__toggle {
    display: grid; width: 56px; height: 56px; padding: 0; place-items: center; color: #fff;
    border: 0; border-radius: 50%; box-shadow: 0 12px 30px rgba(16,16,48,.26); cursor: pointer;
}
.floating-contact {
    opacity: 0; transform: translateY(16px) scale(.78); transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
.floating-contact--phone { background: var(--purple); }
.floating-contact--whatsapp { background: #159447; font-size: 1.35rem; transition-delay: .04s; }
.floating-contacts__toggle { color: var(--purple-dark); background: var(--yellow); font-size: 1.2rem; transition: transform .2s ease, box-shadow .2s ease; }
.floating-contacts.is-open .floating-contacts__actions { pointer-events: auto; }
.floating-contacts.is-open .floating-contact { opacity: 1; transform: translateY(0) scale(1); }
.floating-contact:hover, .floating-contacts__toggle:hover { box-shadow: 0 15px 34px rgba(16,16,48,.34); transform: translateY(-2px); }
.floating-contacts.is-open .floating-contacts__toggle { transform: rotate(90deg); }
.site-footer a:hover { color: var(--yellow); }
.site-footer p { font-size: .88rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom > span, .footer-bottom > a { margin: 0; font-size: .77rem; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 7px; }

.page-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 85%); }
.page-hero::after { position: absolute; top: -180px; right: -80px; width: 500px; height: 500px; content: ""; border: 85px solid rgba(255,238,0,.08); border-radius: 50%; }
.page-hero__inner { position: relative; z-index: 1; display: grid; min-height: 410px; align-items: center; grid-template-columns: 1fr 220px; gap: 60px; padding-block: 80px; }
.page-hero h1 { margin-bottom: 20px; color: #fff; font-size: clamp(2.8rem, 6vw, 5rem); }
.page-hero p:not(.eyebrow) { max-width: 700px; margin: 0; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.back-link { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 35px; color: rgba(255,255,255,.72); font-size: .84rem; font-weight: 800; }
.page-hero__icon { display: grid; width: 190px; height: 190px; place-items: center; color: var(--purple-dark); background: var(--yellow); border-radius: 50%; box-shadow: var(--shadow-lg); font-size: 4.8rem; }
.reports-section { background: var(--surface-soft); }
.year-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.year-filter { padding: 10px 18px; color: var(--purple-dark); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; font-weight: 800; cursor: pointer; }
.year-filter.is-active { background: var(--yellow); border-color: var(--yellow); }
.report-years { display: flex; flex-direction: column; gap: 60px; }
.report-year.is-hidden { display: none; }
.report-year__heading { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.report-year__heading > span { display: grid; width: 58px; height: 58px; place-items: center; color: var(--purple-dark); background: var(--yellow); border-radius: 50%; font-size: .8rem; font-weight: 900; }
.report-year__heading h2 { margin: 0; font-size: 1.7rem; }
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.report-card { display: grid; min-height: 155px; align-items: center; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; grid-template-columns: 64px 1fr 46px; gap: 20px; }
.report-card__icon { display: grid; width: 64px; height: 64px; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 15px; font-size: 1.9rem; }
.file-type { display: inline-block; margin-bottom: 7px; color: var(--purple); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.report-card h3 { margin-bottom: 6px; font-size: 1.06rem; }
.report-card p { margin: 0; overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.report-download { display: grid; width: 46px; height: 46px; place-items: center; color: var(--purple-dark); background: var(--yellow); border-radius: 50%; }

.error-screen { display: grid; min-height: 100vh; padding: 30px; place-items: center; background: var(--purple-soft); }
.error-screen__card { width: min(100%, 560px); padding: 50px; text-align: center; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.error-screen__card img { width: 190px; margin-bottom: 30px; }
.error-screen__card > span { display: block; color: var(--yellow-deep); font-size: 5rem; font-weight: 900; line-height: 1; }

/* Administrator */
.admin-page { background: #f5f4f8; }
.admin-auth-page { background: radial-gradient(circle at 20% 10%, rgba(255,238,0,.16), transparent 28%), linear-gradient(135deg, #f4f2fa, #fff); }
.admin-auth { display: grid; min-height: 100vh; padding: 34px 20px; place-items: center; }
.admin-auth__card { width: min(100%, 510px); padding: 42px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); }
.admin-auth__card > a:first-child { display: inline-flex; margin-bottom: 30px; }
.admin-auth__card > a img { width: 180px; }
.admin-auth__icon { display: grid; width: 58px; height: 58px; margin-bottom: 22px; place-items: center; color: var(--purple-dark); background: var(--yellow); border-radius: 16px; font-size: 1.4rem; }
.admin-auth h1 { margin-bottom: 12px; font-size: 2rem; }
.admin-auth__card > p:not(.admin-kicker) { color: var(--muted); font-size: .9rem; }
.admin-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.field-help { margin: -5px 0 0; color: var(--muted); font-size: .74rem; }
.admin-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.admin-header { position: sticky; z-index: 20; top: 0; height: 78px; background: #fff; border-bottom: 1px solid var(--line); }
.admin-header__inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.admin-header img { width: 158px; }
.admin-header__actions { display: flex; align-items: center; gap: 20px; }
.admin-header__actions a, .admin-header__actions button { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); background: none; border: 0; font-size: .82rem; font-weight: 800; cursor: pointer; }
.admin-shell { display: grid; width: min(100%, 1450px); min-height: calc(100vh - 78px); margin-inline: auto; grid-template-columns: 235px 1fr; }
.admin-sidebar { position: sticky; top: 78px; display: flex; height: calc(100vh - 78px); flex-direction: column; gap: 7px; padding: 38px 22px; background: var(--purple-dark); }
.admin-sidebar__label { margin: 0 14px 12px; color: rgba(255,255,255,.4); font-size: .68rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.admin-sidebar a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: rgba(255,255,255,.72); border-radius: 10px; font-size: .84rem; font-weight: 700; }
.admin-sidebar a:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-sidebar a > i { width: 18px; color: var(--yellow); text-align: center; }
.admin-sidebar a > span { display: grid; min-width: 22px; height: 22px; margin-left: auto; place-items: center; color: var(--purple-dark); background: var(--yellow); border-radius: 50%; font-size: .67rem; }
.admin-content { min-width: 0; padding: 42px; }
.admin-content > .flash-wrap, .admin-content > .container.flash-wrap { width: 100%; margin: 0 0 25px; }
.admin-section { scroll-margin-top: 110px; }
.admin-section + .admin-section { margin-top: 30px; }
.admin-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-section__heading h1 { margin: 0; font-size: 2.3rem; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; color: var(--success); background: #eaf8f0; border-radius: 999px; font-size: .75rem; font-weight: 900; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stats-grid article { display: grid; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; grid-template-columns: 45px 1fr; gap: 3px 15px; }
.stats-grid i { display: grid; width: 45px; height: 45px; grid-row: span 2; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 12px; }
.stats-grid span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.stats-grid strong { color: var(--purple-dark); font-size: 1.75rem; line-height: 1.2; }
.admin-panel { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.admin-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.admin-panel__heading h2 { margin: 0; font-size: 1.55rem; }
.admin-panel__heading > i { display: grid; width: 52px; height: 52px; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 14px; }
.upload-form { display: grid; padding: 24px; background: #f8f7fa; border-radius: 16px; grid-template-columns: 1fr 1fr 150px 220px; gap: 16px; }
.file-field { display: flex; grid-column: 1 / -1; cursor: pointer; }
.file-field > span { display: flex; width: 100%; min-height: 72px; align-items: center; justify-content: center; gap: 9px; color: var(--purple); background: #fff; border: 1px dashed #bbb4cd; border-radius: 12px; font-size: .82rem; font-weight: 800; }
.file-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-table-wrap { margin-top: 28px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.admin-table th { padding: 12px 14px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table a { display: inline-flex; max-width: 260px; align-items: center; gap: 8px; color: var(--purple); font-weight: 700; overflow-wrap: anywhere; }
.table-title { display: block; color: var(--purple-dark); font-weight: 800; }
.admin-table small { display: block; color: var(--muted); }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.icon-button--danger, .text-button--danger { color: var(--danger); }
.message-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.message-card { padding: 20px; background: #f8f7fa; border: 1px solid var(--line); border-radius: 15px; }
.message-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.message-card__head strong, .message-card__head time { display: block; }
.message-card__head time { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.message-card__head > span { padding: 4px 7px; color: var(--purple); background: var(--purple-soft); border-radius: 6px; font-size: .62rem; font-weight: 900; }
.message-card__contacts { display: flex; flex-wrap: wrap; gap: 12px; margin: 15px 0; }
.message-card__contacts a { display: inline-flex; align-items: center; gap: 7px; color: var(--purple); font-size: .76rem; font-weight: 800; }
.message-card > p { color: #4f4b5a; font-size: .82rem; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; background: none; border: 0; font-size: .74rem; font-weight: 800; cursor: pointer; }
.empty-state { padding: 45px; text-align: center; background: #f8f7fa; border-radius: 16px; }
.empty-state > i { margin-bottom: 12px; color: var(--purple); font-size: 2.2rem; }
.empty-state h3 { margin-bottom: 5px; }
.empty-state p { margin: 0; color: var(--muted); font-size: .82rem; }
.password-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.password-form .button { justify-self: start; }
.security-notes { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 25px; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: .75rem; font-weight: 700; }
.security-notes span { display: inline-flex; align-items: center; gap: 7px; }
.security-notes i { color: var(--success); }

@media (max-width: 1080px) {
    .main-nav { gap: 16px; }
    .main-nav a { font-size: .83rem; }
    .phone-link span { display: none; }
    .phone-link { width: 44px; height: 44px; justify-content: center; padding: 0; }
    .hero-grid { grid-template-columns: 1fr .72fr; gap: 35px; }
    .gem-orbit--outer { width: 380px; height: 380px; }
    .gem-orbit--inner { width: 290px; height: 290px; }
    .gem-card { width: 220px; height: 285px; }
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .application-grid, .about-grid { gap: 48px; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / -1; }
    .upload-form { grid-template-columns: repeat(2, 1fr); }
    .admin-shell { grid-template-columns: 205px 1fr; }
    .admin-content { padding: 30px; }
}

@media (max-width: 820px) {
    .section { padding: 78px 0; }
    .site-header { background: #fff; backdrop-filter: none; }
    .menu-toggle { display: grid; margin-left: auto; }
    .main-nav {
        position: absolute; z-index: 100; top: 100%; right: 0; left: 0; display: none;
        width: 100%; height: calc(100dvh - 92px); margin: 0; padding: 18px 20px 32px;
        flex-direction: column; align-items: flex-start; gap: 0; overflow-y: auto;
        color: var(--purple-dark); background-color: #fff; border-top: 1px solid var(--line);
        box-shadow: 0 24px 48px rgba(16,16,48,.18); opacity: 1; isolation: isolate;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a {
        display: flex; width: 100%; min-height: 58px; align-items: center; padding: 16px 6px;
        color: var(--purple-dark); background-color: #fff; border-bottom: 1px solid var(--line); font-size: 1rem;
    }
    .main-nav a::after { display: none; }
    .header-actions { gap: 8px; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 75px; }
    .hero-visual { display: none; }
    .hero { min-height: auto; }
    .hero-copy { max-width: 760px; }
    .application-grid, .about-grid, .contacts-grid { grid-template-columns: 1fr; }
    .application-copy { max-width: 620px; }
    .about-intro { position: static; }
    .contract-grid { grid-template-columns: 1fr; }
    .document-card { min-height: 240px; }
    .condition-list, .report-grid { grid-template-columns: 1fr; }
    .contact-items { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: auto; }
    .page-hero__inner { grid-template-columns: 1fr; }
    .page-hero__icon { display: none; }
    .admin-shell { display: block; }
    .admin-sidebar { position: static; display: flex; width: 100%; height: auto; flex-direction: row; overflow-x: auto; padding: 12px 20px; }
    .admin-sidebar__label { display: none; }
    .admin-sidebar a { flex: 0 0 auto; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid article:last-child { grid-column: 1 / -1; }
    .message-list { grid-template-columns: 1fr; }
    .password-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .site-header { height: 78px; }
    .brand img { width: 145px; }
    .main-nav { height: calc(100dvh - 78px); }
    .language-link { width: 36px; height: 36px; }
    .phone-link { width: 38px; height: 38px; }
    .hero-grid { padding-block: 62px; }
    .hero h1 { font-size: 3rem; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-trust { flex-direction: column; gap: 10px; }
    .benefit-grid { grid-template-columns: 1fr; }
    .benefit-card { min-height: 220px; }
    .application-form { padding: 24px; border-radius: 24px; }
    .field-grid { grid-template-columns: 1fr; }
    .field--full { grid-column: auto; }
    .condition-list li { min-height: 120px; padding: 22px; }
    .section-heading--split { align-items: flex-start; flex-direction: column; }
    .contact-items { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
    .report-card { padding: 18px; grid-template-columns: 52px 1fr 40px; gap: 12px; }
    .report-card__icon { width: 52px; height: 52px; }
    .page-hero__inner { min-height: 360px; padding-block: 55px; }
    .admin-auth__card { padding: 28px; }
    .admin-header__actions a { display: none; }
    .admin-content { padding: 22px 14px; }
    .admin-panel { padding: 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-grid article:last-child { grid-column: auto; }
    .upload-form { padding: 16px; grid-template-columns: 1fr; }
    .file-field { grid-column: auto; }
    .admin-section__heading { align-items: flex-start; flex-direction: column; }
    .floating-contacts { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
    .floating-contact, .floating-contacts__toggle { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
