:root {
    --navy: #0e2038;
    --navy-2: #132b4a;
    --navy-3: #1b3757;
    --ink: #101826;
    --slate: #46566b;
    --muted: #5b6c82;
    --line: #d9e2ec;

    --bg: #f5f8fc;
    --bg-alt: #edf2f9;
    --bg-cool: #e3ecf7;
    --surface: #ffffff;

    --gold: #c9a86a;
    --gold-2: #e9d3a0;
    --gold-hover: #d8b87e;
    --gold-deep: #8a6a38;

    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #065f46;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --error-text: #991b1b;

    --shadow-sm: 0 4px 20px rgba(14, 32, 56, 0.06);
    --shadow-md: 0 20px 40px rgba(14, 32, 56, 0.08);
    --shadow-gold: 0 14px 30px rgba(201, 168, 106, 0.25);

    --radius-lg: 24px;
    --radius-md: 16px;
    --container: 1200px;

    --ease-lux: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.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: absolute;
    left: -999px;
    top: 10px;
    z-index: 100;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
}

.skip-link:focus {
    left: 10px;
}

/* ============================================================
   HEADER - премиальный sticky с размытием
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 23, 39, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.4s var(--ease-lux), background 0.4s var(--ease-lux);
}

.site-header.scrolled {
    background: rgba(11, 23, 39, 0.97);
    box-shadow: 0 4px 30px rgba(11, 23, 39, 0.25);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Бренд - золото с плавными переходами */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    color: var(--gold);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--gold);
    transition: color 0.4s var(--ease-lux), transform 0.4s var(--ease-lux);
}

.brand-mark svg {
    display: block;
    width: 32px;
    height: 32px;
}

.brand-mark img {
    display: block;
    width: 36px;
    height: 27px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-text strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--gold);
    transition: color 0.4s var(--ease-lux);
}

.brand-text span {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    transition: color 0.4s var(--ease-lux);
}

.brand:hover .brand-mark,
.brand:hover .brand-text strong,
.brand:hover .brand-text span,
.brand:focus-visible .brand-mark,
.brand:focus-visible .brand-text strong,
.brand:focus-visible .brand-text span {
    color: var(--gold-hover);
}

.brand:hover .brand-mark {
    transform: translateY(-1px) rotate(-2deg);
}

.brand:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 6px;
    border-radius: 8px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.3s var(--ease-lux);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-lux);
}

.main-nav a:hover,
.main-nav a:focus {
    color: #fff;
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.main-nav a.active {
    color: #fff;
}

.nav-cta {
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy) !important;
    font-weight: 700;
    transition: background 0.3s var(--ease-lux), transform 0.3s var(--ease-lux), box-shadow 0.3s var(--ease-lux);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--gold-hover);
    color: var(--navy) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: 0.3s var(--ease-lux);
}

.nav-toggle-bar {
    top: 21px;
}

.nav-toggle-bar::before {
    top: -7px;
    left: 0;
}

.nav-toggle-bar::after {
    top: 7px;
    left: 0;
}

/* ============================================================
   HERO - улучшенный с градиентным свечением
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 120px;
    background:
        radial-gradient(circle at 85% 15%, rgba(200, 164, 92, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 15% 85%, rgba(11, 23, 39, 0.04) 0%, transparent 40%),
        linear-gradient(135deg, #f8fafc 0%, #eef2f7 52%, #e8edf4 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -120px -160px auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(11, 23, 39, 0.05);
    filter: blur(10px);
}

/* Декоративная тонкая золотая линия в hero */
.hero::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -50px;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
    transform: translateY(-50%) rotate(-30deg);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}

/* Eyebrow - премиальный стиль */
.eyebrow {
    margin: 0 0 20px;
    color: var(--gold-deep);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    position: relative;
    padding-left: 32px;
}

.eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    height: 1px;
    background: var(--gold);
    transform: translateY(-50%);
}

.eyebrow.light {
    color: var(--gold-2);
}

.eyebrow.light::before {
    background: var(--gold-2);
}

/* Заголовки - сжатая типографика (премиум) */
h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--navy);
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.02em;
}

h1.light,
h2.light,
h3.light {
    color: #fff;
}

h1 {
    font-size: clamp(44px, 5.5vw, 76px);
    margin-bottom: 28px;
    font-weight: 500;
}

h2 {
    font-size: clamp(34px, 4.2vw, 54px);
    margin-bottom: 22px;
    font-weight: 500;
}

h3 {
    font-size: 22px;
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lead {
    font-size: 19px;
    color: var(--slate);
    max-width: 720px;
    margin: 0 0 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

/* ============================================================
   КНОПКИ - плавные, с премиальными эффектами
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.3s var(--ease-lux), box-shadow 0.3s var(--ease-lux), background 0.3s var(--ease-lux), color 0.3s var(--ease-lux);
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 14px 30px rgba(11, 23, 39, 0.18);
}

.btn-primary:hover {
    background: var(--navy-3);
    box-shadow: 0 18px 36px rgba(11, 23, 39, 0.25);
}

.btn-secondary {
    background: #fff;
    color: var(--navy);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.btn-light {
    background: #fff;
    color: var(--navy);
}

.btn-light:hover {
    box-shadow: var(--shadow-gold);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   HERO STATS - улучшенная типографика
   ============================================================ */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding-top: 32px;
    border-top: 1px solid rgba(11, 23, 39, 0.08);
}

.hero-stats dt {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-stats dd {
    margin: 0;
    font-weight: 600;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.4;
}

/* ============================================================
   ИЗОБРАЖЕНИЯ - кинематографичный эффект
   ============================================================ */
.img-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
    border: 1px dashed rgba(100, 116, 139, 0.45);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(11, 23, 39, 0.04), rgba(200, 164, 92, 0.08)),
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.55),
            rgba(255, 255, 255, 0.55) 12px,
            rgba(248, 250, 252, 0.75) 12px,
            rgba(248, 250, 252, 0.75) 24px);
    color: var(--slate);
    font-weight: 700;
    line-height: 1.6;
    box-shadow: var(--shadow-sm);
}

.img-placeholder span {
    max-width: 320px;
}

.img-placeholder.portrait {
    aspect-ratio: 4 / 5;
}

.img-placeholder.landscape {
    aspect-ratio: 16 / 10;
}

.img-placeholder.wide {
    aspect-ratio: 16 / 9;
}

.img-placeholder.small {
    min-height: 260px;
}

.content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Кинематографичный оверлей для фото */
.img-overlay {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.img-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 23, 39, 0.15) 0%, rgba(11, 23, 39, 0.05) 50%, rgba(200, 164, 92, 0.08) 100%);
    pointer-events: none;
}

.img-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-lux);
}

.img-overlay:hover img {
    transform: scale(1.02);
}

/* ============================================================
   TRUST STRIP - премиальный блок доверия
   ============================================================ */
.trust-strip {
    background: var(--navy);
    color: #fff;
    padding: 26px 0;
    border-top: 1px solid rgba(200, 164, 92, 0.15);
    border-bottom: 1px solid rgba(200, 164, 92, 0.15);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex: 0 0 auto;
    box-shadow: 0 0 12px rgba(200, 164, 92, 0.6);
}

/* ============================================================
   СЕКЦИИ - больше воздуха, мягкие градиенты
   ============================================================ */
.section {
    padding: 130px 0;
}

.section-alt {
    background:
        radial-gradient(circle at 90% 10%, rgba(200, 164, 92, 0.04) 0%, transparent 40%),
        var(--bg-alt);
}

.section-cool {
    background:
        radial-gradient(circle at 10% 90%, rgba(200, 164, 92, 0.04) 0%, transparent 40%),
        var(--bg-cool);
}

.section-gradient {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.section-dark {
    background:
        radial-gradient(circle at 20% 20%, rgba(200, 164, 92, 0.12), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(200, 164, 92, 0.08), transparent 40%),
        linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
}

.section-head {
    max-width: 780px;
    margin-bottom: 64px;
}

.section-head p {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
    line-height: 1.7;
}

.muted-light {
    color: rgba(255, 255, 255, 0.74) !important;
}

.about-grid,
.global-grid,
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-copy p,
.global-copy p {
    color: var(--slate);
    font-size: 17px;
    line-height: 1.75;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: grid;
    gap: 14px;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    color: var(--slate);
    font-weight: 500;
    line-height: 1.5;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(200, 164, 92, 0.15);
}

/* ============================================================
   КАРТОЧКИ УСЛУГ - премиальный вид (без дешёвых цифр)
   ============================================================ */
.services-grid,
.approach-grid,
.sectors-grid,
.mandates-grid {
    display: grid;
    gap: 28px;
}

.services-grid {
    grid-template-columns: repeat(2, 1fr);
}

.service-card,
.approach-step,
.mini-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux), border-color 0.4s var(--ease-lux);
    position: relative;
}

.service-card:hover,
.approach-step:hover,
.mini-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 164, 92, 0.4);
}

/* Премиальный акцент - золотая линия вместо цифры */
.card-icon {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-bottom: 24px;
    font-size: 0;
    overflow: hidden;
}

.service-card h3,
.approach-step h3,
.mini-card h3 {
    margin-bottom: 14px;
}

.service-card p,
.approach-step p,
.mini-card p,
.sector-card p {
    color: var(--muted);
    margin: 0 0 18px;
    line-height: 1.65;
}

.service-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--slate);
}

.service-card ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.approach-grid {
    grid-template-columns: repeat(4, 1fr);
}

.step-number {
    display: inline-block;
    font-family: "Playfair Display", serif;
    font-size: 38px;
    color: var(--gold-deep);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* ============================================================
   СЕКТОРА (темные карточки) - премиальный вид
   ============================================================ */
.sectors-grid {
    grid-template-columns: repeat(4, 1fr);
}

.sector-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    min-height: 230px;
    transition: transform 0.4s var(--ease-lux), border-color 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux), background 0.4s var(--ease-lux);
}

.sector-card:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 164, 92, 0.45);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.sector-card h3 {
    position: relative;
    padding-top: 22px;
    margin-bottom: 16px;
    color: #ffffff !important;
    min-height: 2.4em;
}

.sector-card h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--gold-2);
}

.sector-card p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    line-height: 1.7;
    font-size: 15px;
}

/* ============================================================
   GLOBAL NETWORK - chips с золотом
   ============================================================ */
.jurisdiction-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0 22px;
}

.jurisdiction-chips span {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.3s var(--ease-lux), color 0.3s var(--ease-lux), transform 0.3s var(--ease-lux);
    letter-spacing: 0.01em;
}

.jurisdiction-chips span:hover {
    border-color: var(--gold);
    color: var(--gold-deep);
    transform: translateY(-1px);
}

.small-note {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
}

.mandates-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   CTA SECTION - улучшенная
   ============================================================ */
.cta-section {
    background:
        radial-gradient(circle at 80% 20%, rgba(200, 164, 92, 0.18), transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(200, 164, 92, 0.08), transparent 35%),
        linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    padding: 110px 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px 64px;
    align-items: center;
}

.cta-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 720px;
}

.cta-actions {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
}

.cta-media {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.cta-copy h2 {
    color: #fff;
}

.cta-copy p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
    margin: 0;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 60%);
}

.contact-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.contact-panel h3 {
    margin-bottom: 26px;
}

.info-item {
    margin-bottom: 22px;
}

.info-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.info-item p {
    margin: 0;
    color: var(--navy);
    font-weight: 600;
    line-height: 1.5;
}

.contact-media {
    margin-top: 26px;
}

.form-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-field.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color 0.3s var(--ease-lux), box-shadow 0.3s var(--ease-lux);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 164, 92, 0.15);
}

textarea {
    resize: vertical;
    min-height: 170px;
}

.consent-field {
    align-items: start;
}

.checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-weight: 500;
    color: var(--slate);
    margin: 0;
}

.checkbox-label input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--navy);
}

.checkbox-label a {
    color: var(--navy);
    text-decoration: underline;
}

.alert {
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 24px;
}

.alert h3 {
    margin-top: 0;
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

/* ============================================================
   FOOTER - премиальный с тонкими разделителями
   ============================================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.76);
    padding: 88px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.1fr 1fr;
    gap: 44px;
    padding-bottom: 56px;
}

.footer-grid>div+div {
    position: relative;
    padding-left: 44px;
}

.footer-grid>div+div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: linear-gradient(180deg, rgba(200, 164, 92, 0.4), rgba(255, 255, 255, 0.08));
}

.brand-footer .brand-mark svg {
    width: 48px;
    height: 48px;
}

.brand-footer .brand-text strong {
    font-size: 20px;
}

.footer-brand p {
    margin: 24px 0 0;
    max-width: 420px;
    line-height: 1.7;
}

.site-footer h3 {
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 22px;
    font-weight: 600;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.footer-list a:hover {
    color: var(--gold-2);
    text-decoration: none;
}

.footer-links li {
    line-height: 1.45;
}

.footer-list.footer-links a {
    display: inline-block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.3s var(--ease-lux), transform 0.3s var(--ease-lux);
}

.footer-list.footer-links a:hover {
    color: var(--gold-2);
    transform: translateX(2px);
}

.social-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 26px;
}

.social-row a {
    position: relative;
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s var(--ease-lux);
}

.social-row a::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
}

.social-row a:hover,
.social-row a:focus-visible {
    color: var(--gold);
}

.social-row a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.social-row svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    display: grid;
    gap: 12px;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.45);
    max-width: 900px;
    line-height: 1.6;
}

.footer-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-list li a {
    color: rgba(255, 255, 255, 0.86);
}

.info-item p a {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease-lux), color 0.3s var(--ease-lux);
}

.info-item p a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ============================================================
   PROSE - страницы типа Privacy
   ============================================================ */
.prose {
    max-width: 880px;
}

.prose h1 {
    font-size: clamp(38px, 4.5vw, 56px);
    margin-bottom: 24px;
}

.prose h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.prose p {
    color: var(--slate);
    margin-bottom: 16px;
    line-height: 1.75;
}

/* ============================================================
   АНИМАЦИИ - улучшенный reveal
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-lux), transform 0.8s var(--ease-lux);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Stagger-эффект для карточек */
.services-grid .service-card,
.approach-grid .approach-step,
.sectors-grid .sector-card,
.mandates-grid .mini-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-lux), transform 0.8s var(--ease-lux);
}

.services-grid.visible .service-card,
.approach-grid.visible .approach-step,
.sectors-grid.visible .sector-card,
.mandates-grid.visible .mini-card {
    opacity: 1;
    transform: none;
}

.services-grid .service-card:nth-child(1),
.approach-grid .approach-step:nth-child(1),
.sectors-grid .sector-card:nth-child(1),
.mandates-grid .mini-card:nth-child(1) {
    transition-delay: 0.05s;
}

.services-grid .service-card:nth-child(2),
.approach-grid .approach-step:nth-child(2),
.sectors-grid .sector-card:nth-child(2),
.mandates-grid .mini-card:nth-child(2) {
    transition-delay: 0.15s;
}

.services-grid .service-card:nth-child(3),
.approach-grid .approach-step:nth-child(3),
.sectors-grid .sector-card:nth-child(3),
.mandates-grid .mini-card:nth-child(3) {
    transition-delay: 0.25s;
}

.services-grid .service-card:nth-child(4),
.approach-grid .approach-step:nth-child(4),
.sectors-grid .sector-card:nth-child(4) {
    transition-delay: 0.35s;
}

.services-grid .service-card:nth-child(5) {
    transition-delay: 0.45s;
}

.services-grid .service-card:nth-child(6) {
    transition-delay: 0.55s;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 1024px) {

    /* На планшетах горизонтальное меню не помещается рядом с кнопкой темы
       и выталкивало её за экран - переключаемся на бургер уже с 1024px */
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .main-nav {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        background: rgba(11, 23, 39, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        transform: translateY(-130%);
        transition: transform 0.3s var(--ease-lux);
        box-shadow: var(--shadow-md);
        z-index: 40;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav a {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-cta {
        text-align: center;
    }

    .hero-grid,
    .about-grid,
    .global-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services-grid,
    .approach-grid,
    .sectors-grid,
    .mandates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }

    .footer-grid>div:nth-child(3) {
        padding-left: 0;
    }

    .footer-grid>div:nth-child(3)::before {
        display: none;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(var(--container), calc(100% - 32px));
    }

    .section,
    .hero,
    .cta-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-stats,
    .services-grid,
    .approach-grid,
    .sectors-grid,
    .mandates-grid,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid>div+div {
        padding-left: 0;
        margin-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 32px;
    }

    .footer-grid>div+div::before {
        display: none;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(36px, 9vw, 52px);
    }

    .lead {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .services-grid .service-card,
    .approach-grid .approach-step,
    .sectors-grid .sector-card,
    .mandates-grid .mini-card {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   КНОПКА ПЕРЕКЛЮЧЕНИЯ ТЕМЫ
   ============================================================ */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-2);
    cursor: pointer;
    flex: 0 0 auto;
    transition: border-color 0.3s var(--ease-lux), background 0.3s var(--ease-lux), transform 0.3s var(--ease-lux);
}

.theme-toggle:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 106, 0.12);
    transform: translateY(-1px);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* ============================================================
   ТЁМНАЯ ТЕМА
   ============================================================ */
:root {
    color-scheme: light;
}

[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e9eff7;
    --slate: #b9c6d8;
    --muted: #93a5bb;
    --line: rgba(255, 255, 255, 0.14);
    --bg: #0e2038;
    --bg-alt: #102542;
    --bg-cool: #0c1c33;
    --surface: #142c4a;
    --gold-deep: #e9d3a0;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    color: #eef4fb;
}

[data-theme="dark"] .site-header {
    background: rgba(10, 24, 45, 0.92);
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(10, 24, 45, 0.97);
}

[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(201, 168, 106, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        linear-gradient(135deg, #0e2038 0%, #102542 52%, #0c1c33 100%);
}

[data-theme="dark"] .hero::before {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .hero-stats {
    border-top-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .hero-stats dd {
    color: #eef4fb;
}

[data-theme="dark"] .trust-strip {
    background: #0a1830;
}

[data-theme="dark"] .section-dark {
    border-top: 1px solid rgba(201, 168, 106, 0.15);
    border-bottom: 1px solid rgba(201, 168, 106, 0.15);
}

[data-theme="dark"] .btn-primary {
    background: var(--gold);
    color: #0e2038;
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--gold-hover);
    color: #0e2038;
}

[data-theme="dark"] .btn-secondary {
    background: var(--surface);
    color: #eef4fb;
    border-color: var(--line);
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #0f2440;
    color: var(--ink);
    border-color: var(--line);
}

[data-theme="dark"] label {
    color: #eef4fb;
}

[data-theme="dark"] .contact-page {
    background: linear-gradient(180deg, #0e2038 0%, #102542 60%);
}

[data-theme="dark"] .info-item p,
[data-theme="dark"] .info-item p a {
    color: #eef4fb;
}

[data-theme="dark"] .checkbox-label a {
    color: #eef4fb;
}

[data-theme="dark"] .jurisdiction-chips span {
    background: var(--surface);
    color: #eef4fb;
    border-color: var(--line);
}

[data-theme="dark"] .jurisdiction-chips span:hover {
    color: var(--gold-2);
}

[data-theme="dark"] .img-placeholder {
    border-color: rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(201, 168, 106, 0.08)),
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 12px,
            rgba(14, 32, 56, 0.4) 12px,
            rgba(14, 32, 56, 0.4) 24px);
    color: var(--slate);
}

[data-theme="dark"] .alert-success {
    background: rgba(6, 95, 70, 0.18);
    border-color: rgba(167, 243, 208, 0.35);
    color: #a7f3d0;
}

[data-theme="dark"] .alert-error {
    background: rgba(153, 27, 27, 0.18);
    border-color: rgba(254, 202, 202, 0.35);
    color: #fecaca;
}

[data-theme="dark"] .site-footer {
    background: #0a1830;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .skip-link {
    background: var(--gold);
    color: #0e2038;
}

[data-theme="dark"] .main-nav {
    background: rgba(10, 24, 45, 0.98);
}

/* ============================================================
   FULL-BLEED HERO - фото во весь экран, текст поверх
   ============================================================ */
.hero-full {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 92vh;
    padding: 180px 0 110px;
    background: var(--navy);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Тёмный градиент поверх фото для читаемости текста */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 24, 45, 0.94) 0%, rgba(10, 24, 45, 0.82) 45%, rgba(10, 24, 45, 0.42) 100%),
        linear-gradient(0deg, rgba(10, 24, 45, 0.6) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.lead.light {
    color: rgba(255, 255, 255, 0.82);
}

.btn-gold {
    background: var(--gold);
    color: #0e2038;
    font-weight: 700;
}

.btn-gold:hover {
    background: var(--gold-hover);
    color: #0e2038;
    box-shadow: var(--shadow-gold);
}

.hero-stats.on-dark {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.hero-stats.on-dark dt {
    color: rgba(255, 255, 255, 0.62);
}

.hero-stats.on-dark dd {
    color: #ffffff;
}

@media (max-width: 900px) {
    .hero-full {
        min-height: 0;
        padding: 150px 0 90px;
    }

    .hero-bg::after {
        background:
            linear-gradient(180deg, rgba(10, 24, 45, 0.88) 0%, rgba(10, 24, 45, 0.74) 55%, rgba(10, 24, 45, 0.86) 100%);
    }
}

/* ============================================================
   ЗОЛОТАЯ РАМКА СО СМЕЩЕНИЕМ для фото в секциях
   ============================================================ */
.img-frame {
    position: relative;
}

/* Плотная панель позади фото — явная геометрия, а не "съехавшая" линия */
.img-frame::before {
    content: "";
    position: absolute;
    inset: 44px -44px -44px 44px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    z-index: 0;
    pointer-events: none;
}

.img-frame .img-overlay {
    position: relative;
    z-index: 1;
}

/* Золотая волосяная линия по самому фото — связывает слои */
.img-frame .img-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(201, 168, 106, 0.65);
    border-radius: var(--radius-lg);
    z-index: 3;
    pointer-events: none;
}

[data-theme="dark"] .img-frame::before {
    background: linear-gradient(135deg, rgba(201, 168, 106, 0.2), rgba(201, 168, 106, 0.06));
    border: 1px solid rgba(201, 168, 106, 0.4);
}

@media (max-width: 1024px) {
    .img-frame::before {
        inset: 24px -12px -24px 12px;
    }
}

/* Увеличиваем фото в about и global - только на десктопе,
   иначе базовое правило перебивает мобильную одну колонку */
@media (min-width: 1025px) {
    .about-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 72px;
    }

    .global-grid {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 72px;
    }
}

.img-overlay.landscape img {
    aspect-ratio: 4 / 3;
}

.img-overlay.wide img {
    aspect-ratio: 16 / 10;
}

/* ============================================================
   МАЯКИ - боковая навигация точками для путешествия по сайту
   ============================================================ */
.beacons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.beacons a {
    position: relative;
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    background: transparent;
    transition: background 0.3s var(--ease-lux), transform 0.3s var(--ease-lux), box-shadow 0.3s var(--ease-lux);
}

.beacons a:hover {
    transform: scale(1.35);
    background: rgba(201, 168, 106, 0.45);
}

.beacons a.active {
    background: var(--gold);
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(201, 168, 106, 0.18);
}

/* Подпись-название секции при наведении */
.beacons a::after {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-lux), transform 0.25s var(--ease-lux);
    box-shadow: var(--shadow-sm);
}

.beacons a:hover::after,
.beacons a:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 760px) {
    .beacons {
        display: none;
    }
}

/* ============================================================
   SERVICES - заголовок секции рядом с фото
   ============================================================ */
.services-head-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
    align-items: center;
    margin-bottom: 64px;
}

.services-head-grid .section-head {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .services-head-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================================
   FINANCIAL INSTRUMENTS - тёмная секция с фото-подложкой
   ============================================================ */
.section-instruments {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(200, 164, 92, 0.12), transparent 30%),
        linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
}

.section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.section-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 24, 45, 0.78) 0%, rgba(10, 24, 45, 0.93) 100%);
}

.section-instruments .container,
.section-dark .container {
    position: relative;
    z-index: 1;
}

.section-dark {
    position: relative;
    overflow: hidden;
}

.section-dark .section-bg img {
    opacity: 0.16;
}

.section-dark .section-bg::after {
    background: linear-gradient(180deg, rgba(14, 32, 56, 0.86) 0%, rgba(14, 32, 56, 0.95) 100%);
}

.instruments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.instrument-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s var(--ease-lux), border-color 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux);
}

.instrument-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 106, 0.45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.instrument-media {
    position: relative;
    overflow: hidden;
}

.instrument-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-lux);
}

.instrument-card:hover .instrument-media img {
    transform: scale(1.03);
}

.instrument-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 24, 45, 0.55) 100%);
    pointer-events: none;
}

.instrument-body {
    padding: 32px;
}

.instrument-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 10px;
}

.instrument-card h3 {
    color: #fff;
    margin-bottom: 12px;
}

.instrument-card p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 16px;
    line-height: 1.65;
}

.instrument-card ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.72);
}

.instrument-card ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .instruments-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ФОТО-ДОПОЛНЕНИЯ: approach, cta, contact
   ============================================================ */
.approach-media {
    margin-top: 64px;
}

.approach-media .img-overlay img {
    aspect-ratio: 21 / 9;
}

.cta-media .img-overlay img {
    aspect-ratio: 4 / 5;
}

@media (max-width: 1024px) {
    .cta-grid {
        grid-template-columns: 1fr 280px;
        gap: 24px 40px;
    }
}

@media (max-width: 760px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .cta-media {
        display: none;
    }
}

.contact-media {
    display: grid;
    gap: 24px;
    margin-top: 0;
}

.contact-media .img-overlay img {
    aspect-ratio: 4 / 3;
}

.contact-media .img-overlay.accent img {
    aspect-ratio: 16 / 6;
}

/* ============================================================
   CTA-РЯДЫ ВНУТРИ СЕКЦИЙ И ПРИМЕЧАНИЯ
   ============================================================ */
.section-cta {
    margin-top: 48px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.services-note {
    margin-top: 40px;
    padding: 22px 28px;
    border-left: 2px solid var(--gold);
    background: var(--surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
}

.services-note p {
    margin: 0;
    color: var(--slate);
    line-height: 1.65;
}

.challenges {
    margin-top: 56px;
}

.challenges-title {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
    margin: 0 0 18px;
}

/* ============================================================
   МОБИЛЬНАЯ ПОЛИРОВКА (≤760px) И ХЕДЕР НА ПЛАНШЕТАХ (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .header-inner {
        gap: 12px;
    }

    /* Кнопка темы не должна "висеть" по центру -
       группируем её с бургером справа */
    .theme-toggle {
        margin-left: auto;
    }
}

@media (max-width: 760px) {
    .section {
        padding: 60px 0;
    }

    .cta-section {
        padding: 64px 0;
    }

    .hero-full {
        padding: 120px 0 70px;
    }

    /* Компактнее хедер - больше полезного вьюпорта */
    .header-inner {
        min-height: 66px;
    }

    .main-nav {
        top: 66px;
    }

    /* Типографика: заголовки не должны занимать 3-4 строки */
    h1 {
        font-size: clamp(31px, 8.5vw, 34px);
        margin-bottom: 20px;
    }

    h2 {
        font-size: 30px;
        margin-bottom: 16px;
    }

    h3 {
        font-size: 20px;
    }

    .eyebrow {
        letter-spacing: 0.14em;
        margin-bottom: 14px;
    }

    .lead {
        margin-bottom: 28px;
    }

    .section-head,
    .services-head-grid {
        margin-bottom: 40px;
    }

    .hero-actions {
        margin-bottom: 32px;
    }

    /* Кнопки на всю ширину - удобные tap-зоны */
    .hero-actions,
    .section-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .section-cta .btn {
        width: 100%;
    }

    /* Уменьшаем внутренние отступы карточек под узкий экран */
    .service-card,
    .approach-step,
    .mini-card,
    .contact-panel,
    .sector-card {
        padding: 24px 20px;
    }

    .sector-card {
        min-height: 0;
    }

    .instrument-body {
        padding: 22px 20px;
    }

    .approach-media {
        margin-top: 36px;
    }

    .approach-media .img-overlay img {
        aspect-ratio: 16 / 10;
    }

    .services-note {
        padding: 16px 18px;
    }

    .challenges {
        margin-top: 36px;
    }

    .img-frame::before {
        inset: 16px -8px -16px 8px;
    }
}

/* ============================================================
   КОМПАКТНЫЙ ЯРУС ДЛЯ УЗКИХ ЭКРАНОВ (≤380px):
   iPhone SE / 12 mini / 13 mini, Galaxy S8-S21, мелкие Android
   ============================================================ */
@media (max-width: 380px) {
    h1 {
        font-size: 31px;
        margin-bottom: 22px;
    }

    h2 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    h3 {
        font-size: 19px;
    }

    .lead {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .section {
        padding: 56px 0;
    }

    .hero-full {
        padding: 120px 0 64px;
    }

    .btn {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .service-card,
    .approach-step,
    .mini-card,
    .contact-panel,
    .sector-card {
        padding: 22px 18px;
    }

    .instrument-body {
        padding: 20px 18px;
    }

    .step-number {
        font-size: 28px;
    }

    .eyebrow {
        font-size: 11px;
        padding-left: 26px;
        margin-bottom: 14px;
    }

    .eyebrow::before {
        width: 18px;
    }

    .section-head,
    .services-head-grid {
        margin-bottom: 36px;
    }

    .jurisdiction-chips span {
        padding: 8px 14px;
        font-size: 13px;
    }

    .trust-item {
        font-size: 13px;
    }

    .info-item {
        margin-bottom: 16px;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .brand-text span {
        font-size: 10px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .approach-media {
        margin-top: 32px;
    }

    .services-note {
        padding: 16px;
    }

    .section-cta,
    .challenges {
        margin-top: 32px;
    }

    .img-frame::before {
        inset: 12px -6px -12px 6px;
    }
}