/* =========================================================
   ЮРИДИЧЕСКАЯ ЗАЩИТА «СТРАЖА»
   Основной фирменный стиль сайта
   ========================================================= */

:root {
    --navy-950: #0b1821;
    --navy-900: #132733;
    --navy-850: #1a303c;
    --navy-800: #263f4c;
    --navy-700: #385563;

    --graphite: #29353c;
    --graphite-soft: #53616a;

    --silver-50: #f7f8f8;
    --silver-100: #eef1f2;
    --silver-150: #e7ebed;
    --silver-200: #dce2e5;
    --silver-300: #c6ced2;
    --silver-400: #a8b2b8;
    --silver-500: #7f8d95;

    --gold: #b49a65;
    --gold-light: #d0ba89;
    --gold-dark: #8d7547;

    --white: #ffffff;
    --text: #17242c;
    --text-soft: #5e6a71;

    --line: rgba(40, 58, 68, 0.13);
    --shadow: 0 18px 45px rgba(15, 30, 39, 0.10);
    --shadow-strong: 0 24px 60px rgba(8, 22, 30, 0.18);

    --container: 1220px;
    --radius: 3px;

    --noise-overlay: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.58'/%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #f8f5ee;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    background: var(--navy-800);
    color: var(--white);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.section-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.section-label::before,
.eyebrow::before {
    content: "";
    width: 38px;
    height: 1px;
    background: currentColor;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

h2 {
    margin-bottom: 24px;
    color: var(--navy-950);
    font-size: clamp(34px, 4.3vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 27px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

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

.btn-primary {
    color: var(--white);
    background: var(--navy-800);
    border-color: var(--navy-800);
    box-shadow: 0 12px 28px rgba(15, 37, 49, 0.18);
}

.btn-primary:hover {
    background: var(--navy-700);
    border-color: var(--navy-700);
}

.btn-outline {
    color: var(--navy-900);
    background: rgba(255,255,255,0.38);
    border-color: rgba(32, 58, 73, 0.28);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.75);
    border-color: var(--gold);
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(34, 55, 66, 0.12);
    background: rgba(246, 248, 249, 0.94);
    box-shadow: 0 4px 22px rgba(11, 27, 37, 0.04);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 13px;
}

.brand img {
    width: 50px;
    height: 58px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    color: var(--navy-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.13em;
}

.brand-subtitle {
    margin-top: 5px;
    color: var(--silver-500);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(17px, 2.1vw, 32px);
}

.nav a {
    position: relative;
    padding: 30px 0;
    color: #40515b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.nav a::after {
    position: absolute;
    right: 0;
    bottom: 21px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.login-button {
    flex-shrink: 0;
    padding: 10px 18px;
    border: 1px solid rgba(27, 51, 64, 0.28);
    color: var(--navy-900);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: 0.25s ease;
}

.login-button:hover {
    color: var(--white);
    background: var(--navy-800);
    border-color: var(--navy-800);
}


/* =========================================================
   HERO — СТАЛЬНОЙ СИНЕ-ГРАФИТОВЫЙ ФОН
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: var(--white);
    background:
        var(--noise-overlay),
        radial-gradient(
            ellipse 130% 105% at 50% 45%,
            transparent 42%,
            rgba(3, 10, 22, 0.52) 100%
        ),
        radial-gradient(
            circle at 74% 32%,
            rgba(140, 178, 230, 0.20),
            transparent 26%
        ),
        radial-gradient(
            circle at 13% 78%,
            rgba(180, 154, 101, 0.10),
            transparent 26%
        ),
        linear-gradient(
            125deg,
            #051b36 0%,
            #07274d 43%,
            #09356a 68%,
            #031223 100%
        );
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.42;
    background:
        repeating-linear-gradient(
            112deg,
            rgba(255,255,255,0.018) 0,
            rgba(255,255,255,0.018) 1px,
            transparent 1px,
            transparent 7px
        ),
        repeating-linear-gradient(
            18deg,
            rgba(0,0,0,0.025) 0,
            rgba(0,0,0,0.025) 1px,
            transparent 1px,
            transparent 11px
        );
}

.hero::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at center,
            transparent 35%,
            rgba(8, 22, 30, 0.06) 67%,
            rgba(7, 20, 28, 0.22) 100%
        );
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    align-items: center;
    gap: 70px;
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero-copy {
    max-width: 760px;
}

.hero .eyebrow {
    color: var(--gold-light);
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 28px;
    color: var(--white);
    font-size: clamp(52px, 6.1vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;
    color: #e6ebed;
}

.hero-text {
    max-width: 660px;
    margin-bottom: 34px;
    color: rgba(244, 248, 249, 0.80);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 55px;
}

.hero .btn-primary {
    color: var(--navy-950);
    background: linear-gradient(135deg, #d7c597, #b49a65);
    border-color: rgba(255,255,255,0.16);
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #e1d2aa, #c0a872);
}

.hero .btn-outline {
    color: var(--white);
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.30);
}

.hero .btn-outline:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.55);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,0.16);
}

.hero-feature {
    padding: 20px 23px 0 0;
}

.hero-feature + .hero-feature {
    padding-left: 23px;
    border-left: 1px solid rgba(255,255,255,0.13);
}

.hero-feature-number {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
}

.hero-feature-title {
    color: rgba(255,255,255,0.88);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-emblem {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-emblem::before {
    position: absolute;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(212, 190, 140, 0.16);
    border-radius: 50%;
    content: "";
    background: radial-gradient(circle, rgba(180, 154, 101, 0.10), transparent 68%);
    box-shadow:
        0 0 0 34px rgba(255,255,255,0.018),
        0 0 0 68px rgba(255,255,255,0.012),
        0 0 60px 14px rgba(180, 154, 101, 0.07);
}

.hero-emblem img {
    position: relative;
    z-index: 2;
    width: min(390px, 92%);
    filter: drop-shadow(0 28px 32px rgba(0,0,0,0.32));
}

.hero-emblem-caption {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    color: rgba(230, 237, 240, 0.66);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-align: center;
    text-transform: uppercase;
}

.hero-emblem-caption strong {
    display: block;
    margin-top: 7px;
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 400;
    letter-spacing: 0.20em;
}/* =========================================================
   SERVICES — УСЛУГИ СТРАЖА
   Все 6 карточек в единой фирменной стилистике
   ========================================================= */

.services {
    position: relative;
    overflow: hidden;
    padding: 70px 0 80px;
    background:
        var(--noise-overlay),
        radial-gradient(
            circle at 10% 15%,
            rgba(61, 91, 106, 0.055),
            transparent 27%
        ),
        radial-gradient(
            circle at 90% 75%,
            rgba(180, 154, 101, 0.07),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #f8f5ee 0%,
            #ece5d5 52%,
            #f7f3ea 100%
        );
}

.services::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.30;
    background:
        repeating-linear-gradient(
            115deg,
            rgba(25, 48, 60, 0.018) 0,
            rgba(25, 48, 60, 0.018) 1px,
            transparent 1px,
            transparent 9px
        );
}

.services .container {
    position: relative;
    z-index: 2;
}

.services-heading {
    max-width: 790px;
    margin-bottom: 55px;
}

.services-heading p {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 17px;
}

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

/*
   ВАЖНО:
   все карточки, включая ранее выделенную .featured,
   получают одинаковое оформление.
*/

.service-card,
.service-card.featured {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 34px 32px 31px;
    border: 2px solid #8f8b87;
    border-radius: var(--radius);
    color: var(--text);
    background:
        linear-gradient(
            135deg,
            #d7c597 0%,
            #c3ac78 45%,
            #b49a65 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        inset 0 -1px 0 rgba(70,58,32,0.22),
        0 14px 34px rgba(18, 38, 49, 0.14);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
}

.service-card::before,
.service-card.featured::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 115px;
    height: 115px;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(
            225deg,
            rgba(255,255,255,0.30),
            transparent 68%
        );
}

.service-card::after,
.service-card.featured::after {
    position: absolute;
    right: -36px;
    bottom: -52px;
    width: 145px;
    height: 145px;
    border: 1px solid rgba(90, 88, 85, 0.24);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.service-card:hover,
.service-card.featured:hover {
    border-color: #b7b2ac;
    background:
        linear-gradient(
            135deg,
            #e1d2aa 0%,
            #cdb681 45%,
            #c0a872 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(70,58,32,0.24),
        0 23px 48px rgba(18, 38, 49, 0.20);
    transform: translateY(-6px);
}

.service-number,
.service-card.featured .service-number {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 31px;
    color: var(--navy-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    letter-spacing: 0.08em;
}

.service-card h3,
.service-card.featured h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
    color: var(--navy-950);
    font-size: 25px;
    line-height: 1.18;
}

.service-card p,
.service-card.featured p {
    position: relative;
    z-index: 2;
    margin-bottom: 28px;
    color: rgba(11, 24, 33, 0.72);
    font-size: 14px;
    line-height: 1.75;
}

.service-link,
.service-card.featured .service-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: var(--navy-900);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.service-link::after,
.service-card.featured .service-link::after {
    content: "→";
    color: var(--navy-900);
    font-size: 17px;
    transition: transform 0.25s ease;
}

.service-card:hover .service-link::after {
    transform: translateX(5px);
}


/* =========================================================
   PROTECTION — СИСТЕМА ПРАВОВОЙ ЗАЩИТЫ
   ========================================================= */

.protection {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    color: var(--white);
    background:
        var(--noise-overlay),
        radial-gradient(
            ellipse 130% 105% at 50% 50%,
            transparent 42%,
            rgba(3, 10, 22, 0.48) 100%
        ),
        radial-gradient(
            circle at 18% 46%,
            rgba(140, 178, 230, 0.16),
            transparent 29%
        ),
        radial-gradient(
            circle at 85% 18%,
            rgba(200, 220, 255, 0.06),
            transparent 23%
        ),
        radial-gradient(
            circle at 75% 85%,
            rgba(180, 154, 101, 0.06),
            transparent 23%
        ),
        linear-gradient(
            120deg,
            #051d35 0%,
            #093058 52%,
            #031323 100%
        );
}

.protection::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.40;
    background:
        repeating-linear-gradient(
            108deg,
            rgba(255,255,255,0.018) 0,
            rgba(255,255,255,0.018) 1px,
            transparent 1px,
            transparent 8px
        ),
        repeating-linear-gradient(
            24deg,
            rgba(0,0,0,0.025) 0,
            rgba(0,0,0,0.025) 1px,
            transparent 1px,
            transparent 13px
        );
}

.protection::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at center,
            transparent 25%,
            rgba(7, 20, 28, 0.16) 100%
        );
}

.protection-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 90px;
}

.protection-emblem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.protection-emblem::before {
    position: absolute;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 30px rgba(255,255,255,0.015),
        0 0 0 60px rgba(255,255,255,0.010);
}

.protection-emblem img {
    position: relative;
    z-index: 2;
    width: min(330px, 88%);
    filter: drop-shadow(0 24px 30px rgba(0,0,0,0.30));
}

.protection-content .section-label {
    color: var(--gold-light);
}

.protection-content h2 {
    max-width: 760px;
    color: var(--white);
}

.protection-lead {
    max-width: 720px;
    margin-bottom: 40px;
    color: rgba(238, 244, 246, 0.76);
    font-size: 17px;
    line-height: 1.8;
}

.protection-list {
    border-top: 1px solid rgba(255,255,255,0.15);
}

.protection-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.13);
}

.protection-item span {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
}

.protection-item strong {
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}


/* =========================================================
   ABOUT — О СТРАЖЕ
   ========================================================= */

.about {
    position: relative;
    overflow: hidden;
    padding: 65px 0;
    background:
        var(--noise-overlay),
        radial-gradient(
            circle at 85% 30%,
            rgba(46, 78, 94, 0.055),
            transparent 27%
        ),
        radial-gradient(
            circle at 12% 80%,
            rgba(180, 154, 101, 0.06),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #f8f5ee 0%,
            #ece5d5 100%
        );
}

.about::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.30;
    background:
        repeating-linear-gradient(
            115deg,
            rgba(25, 48, 60, 0.018) 0,
            rgba(25, 48, 60, 0.018) 1px,
            transparent 1px,
            transparent 9px
        );
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.78fr);
    gap: 85px;
    align-items: center;
}

.about-copy p {
    max-width: 710px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.85;
}

.about-panel {
    position: relative;
    padding: 42px;
    border: 1px solid rgba(49, 73, 85, 0.17);
    border-top: 3px solid var(--gold);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.90),
            rgba(226,232,235,0.90)
        );
    box-shadow: var(--shadow);
}

.about-panel::after {
    position: absolute;
    right: 20px;
    bottom: 15px;
    color: rgba(29, 54, 67, 0.055);
    content: "СТРАЖА";
    font-family: Georgia, "Times New Roman", serif;
    font-size: 47px;
    letter-spacing: 0.12em;
}

.about-stat {
    position: relative;
    z-index: 2;
    padding: 20px 0;
    border-bottom: 1px solid rgba(41, 65, 77, 0.12);
}

.about-stat:first-child {
    padding-top: 0;
}

.about-stat:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.about-stat strong {
    display: block;
    margin-bottom: 5px;
    color: var(--navy-800);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
}

.about-stat span {
    color: var(--text-soft);
    font-size: 13px;
}/* =========================================================
   AI — ИИ-ЮРИСТ СТРАЖА
   ========================================================= */

.ai-section {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    color: var(--white);
    background:
        var(--noise-overlay),
        radial-gradient(
            ellipse 130% 105% at 50% 50%,
            transparent 42%,
            rgba(3, 10, 22, 0.48) 100%
        ),
        radial-gradient(
            circle at 82% 30%,
            rgba(140, 178, 230, 0.15),
            transparent 28%
        ),
        radial-gradient(
            circle at 12% 82%,
            rgba(180, 154, 101, 0.07),
            transparent 25%
        ),
        linear-gradient(
            125deg,
            #061b39 0%,
            #0a2b5c 55%,
            #041227 100%
        );
}

.ai-section::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.38;
    background:
        repeating-linear-gradient(
            112deg,
            rgba(255,255,255,0.018) 0,
            rgba(255,255,255,0.018) 1px,
            transparent 1px,
            transparent 9px
        );
}

.ai-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 80px;
    align-items: center;
}

.ai-section .section-label {
    color: var(--gold-light);
}

.ai-section h2 {
    color: var(--white);
}

.ai-copy p {
    max-width: 690px;
    color: rgba(239, 245, 247, 0.76);
    font-size: 17px;
    line-height: 1.8;
}

.ai-panel {
    position: relative;
    overflow: hidden;
    padding: 42px;
    border: 1px solid rgba(255,255,255,0.16);
    border-top: 3px solid var(--gold);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.10),
            rgba(255,255,255,0.035)
        );
    box-shadow: 0 28px 55px rgba(0,0,0,0.17);
    backdrop-filter: blur(8px);
}

.ai-panel::after {
    position: absolute;
    right: -35px;
    bottom: -60px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(208, 186, 137, 0.14);
    border-radius: 50%;
    content: "";
}

.ai-badge {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-bottom: 25px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ai-panel h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 17px;
    color: var(--white);
    font-size: 31px;
}

.ai-panel p {
    position: relative;
    z-index: 2;
    color: rgba(240,245,247,0.72);
    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   CONSULTATION
   ========================================================= */

.consultation {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background:
        var(--noise-overlay),
        radial-gradient(
            circle at 82% 40%,
            rgba(47, 80, 96, 0.06),
            transparent 27%
        ),
        radial-gradient(
            circle at 15% 70%,
            rgba(180, 154, 101, 0.06),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #f8f5ee 0%,
            #eae3d1 55%,
            #f7f3ea 100%
        );
}

.consultation::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.28;
    background:
        repeating-linear-gradient(
            115deg,
            rgba(25, 48, 60, 0.018) 0,
            rgba(25, 48, 60, 0.018) 1px,
            transparent 1px,
            transparent 9px
        );
}

.consultation-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 60px;
    align-items: center;
}

.consultation h2 {
    max-width: 790px;
    margin-bottom: 17px;
}

.consultation p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 16px;
}

.consultation-action {
    display: flex;
    align-items: center;
}


/* =========================================================
   CONTACTS
   ========================================================= */

.contacts {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    color: var(--white);
    background:
        var(--noise-overlay),
        radial-gradient(
            ellipse 130% 105% at 50% 50%,
            transparent 42%,
            rgba(3, 10, 22, 0.48) 100%
        ),
        radial-gradient(
            circle at 18% 45%,
            rgba(140, 178, 230, 0.14),
            transparent 28%
        ),
        linear-gradient(
            125deg,
            #041931 0%,
            #072952 58%,
            #031021 100%
        );
}

.contacts::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.35;
    background:
        repeating-linear-gradient(
            108deg,
            rgba(255,255,255,0.016) 0,
            rgba(255,255,255,0.016) 1px,
            transparent 1px,
            transparent 9px
        );
}

.contacts-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
    gap: 80px;
    align-items: center;
}

.contacts .section-label {
    color: var(--gold-light);
}

.contacts h2 {
    color: var(--white);
}

.contacts-copy p {
    max-width: 650px;
    color: rgba(239,245,247,0.73);
}

.contact-card {
    padding: 37px;
    border: 1px solid rgba(255,255,255,0.15);
    border-top: 3px solid var(--gold);
    background: rgba(255,255,255,0.055);
    box-shadow: 0 25px 50px rgba(0,0,0,0.14);
}

.contact-row {
    padding: 17px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.contact-row:first-child {
    padding-top: 0;
}

.contact-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-row span {
    display: block;
    margin-bottom: 5px;
    color: rgba(223,232,236,0.55);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-row a,
.contact-row strong {
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

/* =========================================================
   LEAD FORM (форма заявки в контактной карточке)
   ========================================================= */

.lead-form {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.lead-field {
    margin-bottom: 14px;
}

.lead-field label {
    display: block;
    margin-bottom: 6px;
    color: rgba(223,232,236,0.6);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead-field input,
.lead-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    color: var(--white);
    font-family: inherit;
    font-size: 14.5px;
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
    color: rgba(223,232,236,0.35);
}

.lead-field input:focus,
.lead-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.10);
}

.lead-field textarea { resize: vertical; }

.lead-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lead-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    color: var(--navy-950);
    background: linear-gradient(135deg, #d7c597, #b49a65);
}

.lead-submit:hover { background: linear-gradient(135deg, #e1d2aa, #c0a872); }
.lead-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.lead-status {
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    min-height: 0;
}

.lead-status-ok { color: #a9d9a9; }
.lead-status-error { color: #e3a3a3; }


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer,
.footer {
    position: relative;
    overflow: hidden;
    padding: 45px 0;
    color: rgba(222,230,234,0.62);
    background:
        var(--noise-overlay),
        radial-gradient(
            ellipse 130% 160% at 50% 0%,
            transparent 35%,
            rgba(2, 7, 15, 0.55) 100%
        ),
        radial-gradient(
            circle at 85% 10%,
            rgba(140, 178, 230, 0.06),
            transparent 26%
        ),
        #020d1a;
    border-top: 1px solid rgba(212, 190, 140, 0.14);
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

.footer-logo {
    width: 52px;
    height: 60px;
    object-fit: contain;
    opacity: 0.88;
}

.footer-info strong {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.86);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
}

.footer-info span {
    font-size: 11px;
    line-height: 1.7;
}

.footer-info div {
    font-size: 11px;
    line-height: 1.7;
}

.footer-info a {
    color: inherit;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    justify-self: center;
}

.footer-brand-top {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--silver-300);
}

.footer-logo-small {
    width: 26px;
    height: 30px;
    object-fit: contain;
    opacity: 0.88;
    margin: 3px 0;
}

.footer-brand-bottom {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.86);
}

.footer-copy {
    font-size: 11px;
    text-align: right;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 10px;
    }

    .hero-inner {
        grid-template-columns: 1.1fr 0.72fr;
        gap: 35px;
    }

    .hero-emblem::before {
        width: 350px;
        height: 350px;
    }

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

    .protection-inner,
    .about-inner,
    .ai-inner,
    .contacts-inner {
        gap: 50px;
    }
}


@media (max-width: 820px) {

    .container {
        width: min(calc(100% - 34px), var(--container));
    }

    .header-inner {
        min-height: 72px;
    }

    .nav {
        display: none;
    }

    .brand img {
        width: 43px;
        height: 50px;
    }

    .brand-name {
        font-size: 19px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 70px;
        padding-bottom: 75px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(48px, 11vw, 72px);
    }

    .hero-emblem {
        margin-top: 20px;
    }

    .hero-emblem img {
        width: min(330px, 75vw);
    }

    .hero-emblem::before {
        width: 320px;
        height: 320px;
    }

    .protection-inner,
    .about-inner,
    .ai-inner,
    .contacts-inner {
        grid-template-columns: 1fr;
    }

    .protection-emblem {
        order: 2;
    }

    .protection-content {
        order: 1;
    }

    .protection-emblem img {
        width: min(290px, 70vw);
    }

    .consultation-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-inner {
        grid-template-columns: auto 1fr;
    }

    .footer-copy {
        grid-column: 1 / -1;
        text-align: left;
    }
}


@media (max-width: 600px) {

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

    .login-button {
        padding: 9px 12px;
        font-size: 9px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-inner {
        padding-top: 55px;
        padding-bottom: 60px;
    }

    .hero h1 {
        margin-bottom: 23px;
        font-size: clamp(43px, 13vw, 60px);
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .hero-feature {
        padding: 17px 0;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .hero-feature + .hero-feature {
        padding-left: 0;
        border-left: 0;
    }

    .hero-emblem::before {
        width: 260px;
        height: 260px;
    }

    .services,
    .protection,
    .about,
    .ai-section,
    .consultation,
    .contacts {
        padding-top: 80px;
        padding-bottom: 80px;
    }

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

    .service-card,
    .service-card.featured {
        min-height: 295px;
        padding: 29px 26px;
    }

    .protection-inner {
        gap: 55px;
    }

    .protection-emblem::before {
        width: 260px;
        height: 260px;
    }

    .about-panel,
    .ai-panel,
    .contact-card {
        padding: 28px;
    }

    h2 {
        font-size: clamp(32px, 10vw, 45px);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-copy {
        grid-column: auto;
    }
}

/* Main screen composition */
.header .container, .hero .container {
    width: min(calc(100% - clamp(40px, 10vw, 144px)), var(--container));
}
.hero { min-height: 480px; }
.hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
    column-gap: clamp(36px, 5vw, 76px);
    row-gap: 44px;
    padding-block: 64px 38px;
}
.hero-copy { max-width: 650px; min-width: 0; }
.hero h1 { font-size: clamp(44px, 4.6vw, 66px); line-height: 1.08; letter-spacing: -.035em; }
.hero h1 span { font-size: .76em; margin-top: 12px; letter-spacing: -.025em; }
.hero-text { max-width: 600px; font-size: 17px; line-height: 1.75; }
.hero .eyebrow { font-size: 10px; letter-spacing: .15em; }
.hero .eyebrow::before { flex-shrink: 0; width: 28px; }
.hero-actions { margin-bottom: 0; }
.hero-actions .btn { padding-inline: 22px; font-size: 11px; }
.hero-emblem { min-width: 0; }
.hero-emblem img { width: min(420px, 100%); }
.hero-emblem::before { width: min(100%, 440px); height: auto; aspect-ratio: 1; }
.hero-features { grid-column: 1 / -1; }
.hero-feature { display: flex; align-items: center; gap: 18px; padding: 23px 28px 0; }
.hero-feature:first-child { padding-left: 0; }
.hero-feature-number { margin: 0; font-size: 22px; }
.hero-feature-title { font-size: 11px; letter-spacing: .07em; }
a:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 5px; }
.hero a:focus-visible { outline-color: var(--gold-light); }
section[id] { scroll-margin-top: 100px; }
@media (max-width: 1100px) and (min-width: 821px) {
    .header-inner { gap: 18px; flex-wrap: wrap; padding-block: 12px; }
    .nav { order: 3; width: 100%; justify-content: space-between; }
    .nav a { padding: 4px 0; }
    .nav a::after { bottom: 0; }
    section[id] { scroll-margin-top: 145px; }
}
@media (max-width: 820px) {
    .hero-inner { grid-template-columns: 1fr; padding-block: 44px 32px; gap: 32px; }
    .hero h1 { font-size: clamp(40px, 8vw, 62px); }
    .hero-emblem { margin-top: 0; }
    .hero-emblem img { width: min(300px, 70vw); }
    .hero-emblem::before { width: min(300px, 75vw); }
    .hero-features { grid-template-columns: repeat(3, 1fr); }
    .hero-feature { display: block; padding: 20px 12px 0; }
    .hero-feature + .hero-feature { padding-left: 12px; }
    .hero-feature-number { margin-bottom: 8px; }
    .hero-feature-title { font-size: 10px; }
}
@media (max-width: 600px) {
    .header-inner { gap: 10px; }
    .brand { gap: 8px; }
    .brand-name { font-size: 17px; }
    .brand img { width: 34px; height: 44px; }
    .login-button { letter-spacing: .02em; padding: 9px 8px; font-size: 9px; }
    .hero h1 span { font-size: .72em; }
    .hero-text { font-size: 16px; }
    .hero .eyebrow { font-size: 9px; gap: 10px; }
    .hero .eyebrow::before { width: 20px; }
    .hero-feature { border-bottom: 0; }
    .hero-feature + .hero-feature { border-left: 1px solid rgba(255,255,255,.13); }
    .hero-feature-title { font-size: 9px; letter-spacing: 0; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   SECTION KICKER / HEADING — был использован в HTML,
   но не был описан в стилях; добавлено для консистентности
   ========================================================= */

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 38px;
    height: 1px;
    background: currentColor;
}

.section-kicker.light {
    color: var(--gold-light);
}

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

.section-heading p {
    max-width: 640px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   ГЛАВНАЯ СТРАНИЦА — СТАРИННАЯ ЗОЛОТАЯ РАМКА ПО ПЕРИМЕТРУ
   Строгая, тонкая, цвет состаренного золота (--gold-dark)
   ========================================================= */

.page-framed::before,
.page-framed::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.page-framed::before {
    inset: 10px;
    border: 1px solid rgba(141, 117, 71, 0.88);
    box-shadow:
        0 0 0 1px rgba(20, 14, 4, 0.14),
        inset 0 0 0 1px rgba(20, 14, 4, 0.10);
}

.page-framed::after {
    inset: 16px;
    border: 1.5px solid rgba(141, 117, 71, 0.42);
}

@media (max-width: 640px) {
    .page-framed::before { inset: 6px; }
    .page-framed::after { inset: 10px; border-width: 1px; }
}
