:root {
    --bg-main: #1B120B;
    --bg-secondary: #2E1B0F;
    --bg-card: rgba(46, 27, 15, 0.72);

    --accent: #FF9330;
    --accent-secondary: #FFC46B;
    --accent-strong: #F2740D;

    --text-main: #FFFBF5;
    --text-muted: #E4CDB7;

    --border: rgba(255, 147, 48, 0.24);
    --border-strong: rgba(255, 147, 48, 0.48);

    --shadow: 0 12px 28px rgba(242, 116, 13, 0.22);

    --header-height: 84px;

    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
    color-scheme: dark;
}

body {
    font-family: "Inter", "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 999;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 12px 18px;
    background: var(--accent);
    color: #221204;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    z-index: 1000;
}

::selection {
    background: rgba(255, 147, 48, 0.32);
    color: var(--text-main);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 3px;
}

/* ===== ФОН: ОРАНЖЕВЫЕ ЗВЁЗДЫ И СВЕЧЕНИЕ ===== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(46, 27, 15, 0.92) 0%,
            rgba(27, 18, 11, 0.55) 45%,
            var(--bg-main) 75%
        ),
        radial-gradient(circle at 10% 18%, rgba(255, 147, 48, 0.8) 1px, transparent 2px),
        radial-gradient(circle at 88% 12%, rgba(255, 196, 107, 0.75) 1px, transparent 2px),
        radial-gradient(circle at 28% 68%, rgba(255, 147, 48, 0.65) 1.5px, transparent 2.5px),
        radial-gradient(circle at 72% 82%, rgba(242, 116, 13, 0.7) 1px, transparent 2px),
        radial-gradient(circle at 48% 38%, rgba(255, 196, 107, 0.65) 1px, transparent 2px),
        radial-gradient(circle at 82% 58%, rgba(255, 147, 48, 0.55) 1.5px, transparent 2.5px),
        radial-gradient(circle at 18% 82%, rgba(242, 116, 13, 0.6) 1px, transparent 2px),
        radial-gradient(circle at 64% 22%, rgba(255, 196, 107, 0.7) 1.2px, transparent 2px);
    background-size:
        100% 100%,
        300px 300px,
        350px 350px,
        400px 400px,
        450px 450px,
        320px 320px,
        380px 380px,
        420px 420px,
        280px 280px;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: twinkle 4s ease-in-out infinite alternate;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(255, 147, 48, 0.9) 2px, transparent 3px),
        radial-gradient(circle at 85% 70%, rgba(255, 196, 107, 0.8) 1.5px, transparent 2.5px),
        radial-gradient(circle at 45% 65%, rgba(242, 116, 13, 0.7) 2px, transparent 3px),
        radial-gradient(circle at 75% 25%, rgba(255, 147, 48, 0.8) 1.5px, transparent 2.5px),
        radial-gradient(circle at 25% 75%, rgba(255, 196, 107, 0.6) 2px, transparent 3px),
        radial-gradient(circle at 60% 40%, rgba(242, 116, 13, 0.7) 1.5px, transparent 2.5px);
    background-size:
        500px 500px,
        600px 600px,
        550px 550px,
        650px 650px,
        700px 700px,
        450px 450px;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.18;
    }

    50% {
        opacity: 0.55;
    }
}

main,
.site-header,
.site-footer {
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 147, 48, 0.14);
    background: linear-gradient(
        180deg,
        rgba(27, 18, 11, 0.78),
        rgba(27, 18, 11, 0.86)
    );
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(27, 18, 11, 0.92);
    border-bottom-color: rgba(255, 147, 48, 0.22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.menu-open .site-header {
    background: rgba(27, 18, 11, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 22px;
}

.nav-list a {
    display: block;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.nav-list a:hover {
    color: var(--accent-secondary);
    background: rgba(255, 147, 48, 0.1);
    border-color: rgba(255, 147, 48, 0.24);
    transform: translateY(-1px);
}

.header-cta {
    min-height: 48px;
    padding: 12px 18px;
}

.nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(46, 27, 15, 0.65);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    z-index: 120;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== КНОПКИ ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--accent-strong),
        var(--accent) 52%,
        var(--accent-secondary)
    );
    color: #221204;
    box-shadow: 0 12px 28px rgba(242, 116, 13, 0.32);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(242, 116, 13, 0.42);
}

.btn-secondary {
    color: var(--text-main);
    border-color: rgba(255, 147, 48, 0.42);
    background: rgba(255, 147, 48, 0.08);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 147, 48, 0.16);
    border-color: rgba(255, 147, 48, 0.62);
    color: var(--accent-secondary);
}

/* ===== HERO ===== */

.hero {
    position: relative;
    padding: calc(var(--header-height) + 72px) 0 90px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(255, 147, 48, 0.2),
            transparent 32%
        ),
        radial-gradient(
            circle at 12% 78%,
            rgba(242, 116, 13, 0.16),
            transparent 30%
        );
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 147, 48, 0.08);
    color: var(--accent-secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: 62px;
    line-height: 1.04;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
    color: var(--accent-secondary);
    background: linear-gradient(
        90deg,
        var(--text-main) 15%,
        var(--accent-secondary) 85%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content > p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.hero-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-points li {
    position: relative;
    padding-left: 22px;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--accent),
        var(--accent-secondary)
    );
    box-shadow: 0 0 12px rgba(255, 147, 48, 0.75);
}

.hero-visual {
    position: relative;
    min-height: 460px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 196, 107, 0.95),
        rgba(242, 116, 13, 0.28) 58%,
        transparent 74%
    );
    box-shadow: 0 0 70px rgba(255, 147, 48, 0.25);
    filter: blur(0.3px);
}

.orb-1 {
    width: 230px;
    height: 230px;
    top: 6%;
    right: 6%;
    animation: float 7s ease-in-out infinite alternate;
}

.orb-2 {
    width: 120px;
    height: 120px;
    right: 36%;
    bottom: 12%;
    animation: float 5.5s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    width: 74px;
    height: 74px;
    top: 38%;
    right: 56%;
    animation: float 4.5s ease-in-out infinite alternate;
}

.hero-panel {
    position: absolute;
    inset: 8% 0 8% 8%;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 16px;
    align-content: center;
    transform: rotate(-2deg);
}

.hero-panel span {
    position: relative;
    padding: 20px 16px;
    border-radius: 22px;
    background: rgba(46, 27, 15, 0.72);
    border: 1px solid rgba(255, 147, 48, 0.2);
    backdrop-filter: blur(12px);
    font-weight: 700;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.hero-panel span:nth-child(even) {
    transform: translateY(14px);
}

@keyframes float {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-18px);
    }
}

/* ===== СЕКЦИИ ===== */

.section {
    position: relative;
    z-index: 1;
    padding: 110px 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-tag {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 147, 48, 0.08);
    border: 1px solid var(--border);
    color: var(--accent-secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    color: var(--accent-secondary);
    background: linear-gradient(
        90deg,
        var(--text-main),
        var(--accent-secondary)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-head p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 680px;
}

/* ===== УСЛУГИ ===== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    min-height: 100%;
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(
        180deg,
        rgba(46, 27, 15, 0.88),
        rgba(27, 18, 11, 0.74)
    );
    border: 1px solid rgba(255, 147, 48, 0.18);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 147, 48, 0.18),
        transparent 42%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    top: -46px;
    right: -46px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 147, 48, 0.34),
        transparent 70%
    );
    opacity: 0.55;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 147, 48, 0.44);
    box-shadow:
        0 18px 38px rgba(242, 116, 13, 0.18),
        inset 0 0 32px rgba(255, 147, 48, 0.05);
}

.service-card:hover::before {
    opacity: 1;
}

.service-num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 7px 10px;
    margin-bottom: 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 147, 48, 0.2);
    background: rgba(255, 147, 48, 0.08);
    color: rgba(255, 196, 107, 0.88);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.service-card h3 {
    position: relative;
    z-index: 1;
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--accent-secondary);
}

.service-card p {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    font-size: 15px;
}

.services-cta {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px 28px;
    border-radius: 26px;
    background: rgba(46, 27, 15, 0.58);
    border: 1px solid rgba(255, 147, 48, 0.18);
    backdrop-filter: blur(10px);
}

.services-cta p {
    color: var(--text-muted);
    max-width: 720px;
}

.services-cta a {
    color: var(--accent-secondary);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.services-cta a:hover {
    color: var(--accent);
}

/* ===== КОНТАКТЫ ===== */

.contact {
    position: relative;
    z-index: 1;
    padding: 0 0 110px;
}

.contact-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 58px 30px;
    border-radius: var(--radius-xl);
    background: linear-gradient(
        180deg,
        rgba(46, 27, 15, 0.92),
        rgba(27, 18, 11, 0.82)
    );
    border: 1px solid rgba(255, 147, 48, 0.26);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.contact-card::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 147, 48, 0.3),
        transparent 68%
    );
    pointer-events: none;
}

.contact-card::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -140px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(242, 116, 13, 0.2),
        transparent 70%
    );
    pointer-events: none;
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-card h2 {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    color: var(--accent-secondary);
    background: linear-gradient(
        90deg,
        var(--text-main),
        var(--accent-secondary)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-card p {
    max-width: 680px;
    margin: 0 auto 28px;
    color: var(--text-muted);
    font-size: 18px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-note {
    margin-top: 18px;
    font-size: 14px;
    color: rgba(228, 205, 183, 0.8);
}

/* ===== FOOTER ===== */

.site-footer {
    padding: 38px 0 22px;
    border-top: 1px solid rgba(255, 147, 48, 0.14);
    background: rgba(18, 12, 7, 0.76);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.45fr 1.4fr;
    gap: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 147, 48, 0.12);
}

.footer-brand p {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 14px;
    max-width: 290px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    width: fit-content;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-secondary);
}

.footer-legal p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.footer-legal a {
    color: var(--accent-secondary);
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 18px;
    color: rgba(228, 205, 183, 0.72);
    font-size: 13px;
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1100px) {
    .hero h1 {
        font-size: 52px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .hero-points {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: calc(var(--header-height) + 12px);
        right: 20px;
        width: min(360px, calc(100vw - 40px));
        max-height: calc(100vh - var(--header-height) - 32px);
        overflow: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 24px;
        border-radius: var(--radius-lg);
        background: rgba(27, 18, 11, 0.96);
        border: 1px solid var(--border);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
        transform: translateX(120%);
        opacity: 0;
        visibility: hidden;
        transition:
            transform 0.35s ease,
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    .site-nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .nav-list a {
        background: rgba(255, 147, 48, 0.06);
        border-color: rgba(255, 147, 48, 0.16);
    }

    .header-cta {
        width: 100%;
    }

    .hero {
        padding: calc(var(--header-height) + 48px) 0 70px;
    }

    .section {
        padding: 84px 0;
    }

    .contact {
        padding-bottom: 84px;
    }

    .section-head h2,
    .contact-card h2 {
        font-size: 34px;
    }

    .services-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    html.no-js .site-nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: auto;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
    }

    html.no-js .nav-list {
        flex-direction: row;
        width: auto;
    }

    html.no-js .header-cta {
        display: none;
    }

    html.no-js .nav-toggle {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(1160px, calc(100% - 28px));
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .contact-actions .btn {
        width: 100%;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
        margin-top: 10px;
    }

    .orb {
        display: none;
    }

    .hero-panel {
        position: relative;
        inset: auto;
        transform: none;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hero-panel span:nth-child(even) {
        transform: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .section-head h2,
    .contact-card h2 {
        font-size: 30px;
    }

    .contact-card {
        padding: 38px 22px;
    }
}

@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;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}