:root {
    --bg: #10110f;
    --surface: #181a17;
    --surface-strong: #20221e;
    --text: #f7f7f2;
    --muted: #a9aca3;
    --yellow: #ffc107;
    --yellow-soft: #ffe56b;
    --line: rgba(255, 255, 255, 0.1);
    --line-yellow: rgba(255, 193, 7, 0.34);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --radius-lg: 28px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 78% 12%, rgba(255, 193, 7, 0.09), transparent 27rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(16, 17, 15, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.logo-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--yellow);
    color: #11120f;
    font-size: 23px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-main {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    color: #d7d9d2;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms ease;
}

.nav a:hover {
    color: var(--yellow);
}

.nav-phone,
.btn {
    border: 0;
    cursor: pointer;
    transition: transform 150ms var(--ease-out), background-color 180ms ease, border-color 180ms ease;
}

.nav-phone:active,
.btn:active,
.vk-badge:active,
.service-card:active {
    transform: scale(0.97);
}

.nav-phone {
    padding: 11px 18px;
    border-radius: 12px;
    background: var(--yellow);
    color: #11120f;
    font-size: 14px;
    font-weight: 800;
}

.burger-menu {
    z-index: 1001;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--yellow);
    transition: transform 180ms var(--ease-out), opacity 120ms ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding: 140px 24px 82px;
}

.hero-layout {
    display: grid;
    width: min(1180px, 100%);
    margin: 0 auto;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: clamp(48px, 8vw, 104px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--yellow);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 22px;
    height: 2px;
    background: currentColor;
    content: "";
}

.hero h1 {
    max-width: 760px;
    margin: 24px 0;
    font-size: clamp(48px, 6.2vw, 82px);
    font-weight: 850;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.hero h1 span {
    color: var(--yellow);
}

.hero-description {
    max-width: 650px;
    color: #e3e4df;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.48;
}

.hero-subdescription {
    max-width: 590px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.btn-primary {
    background: var(--yellow);
    color: #11120f;
}

.btn-secondary {
    border: 1px solid var(--line-yellow);
    background: rgba(255, 193, 7, 0.06);
    color: var(--yellow-soft);
}

.btn-dark {
    width: 100%;
    margin-top: 24px;
    background: #11120f;
    color: var(--text);
}

.hero-panel {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border: 1px solid var(--line-yellow);
    border-radius: 34px;
    background: linear-gradient(145deg, #22241f 0%, #171815 100%);
}

.hero-panel::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 34%, rgba(255, 193, 7, 0.06) 34%, rgba(255, 193, 7, 0.06) 54%, transparent 54%);
    content: "";
}

.hero-panel-mark {
    position: absolute;
    top: -52px;
    right: -12px;
    color: rgba(255, 193, 7, 0.08);
    font-size: 230px;
    font-weight: 900;
    letter-spacing: -0.09em;
    line-height: 1;
}

.hero-panel-content {
    position: absolute;
    inset: auto 34px 34px;
}

.panel-kicker {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-panel h2 {
    max-width: 360px;
    margin: 12px 0 28px;
    font-size: 31px;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.hero-panel ul {
    display: grid;
    gap: 2px;
    list-style: none;
}

.hero-panel li {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    color: #d4d6cf;
}

.hero-panel li span {
    color: var(--yellow);
    font-size: 11px;
    font-weight: 800;
}

.section,
.advantages,
.contact-section {
    scroll-margin-top: 80px;
}

.section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 104px 0;
}

.section-heading {
    display: grid;
    max-width: 720px;
    margin-bottom: 52px;
    gap: 14px;
}

.section-heading--compact {
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.section-heading p {
    color: var(--muted);
    font-size: 18px;
}

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

.service-card {
    position: relative;
    grid-column: span 4;
    min-height: 290px;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform 200ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}

.service-card::after {
    position: absolute;
    inset: auto -42px -72px auto;
    width: 160px;
    height: 160px;
    border: 24px solid rgba(255, 193, 7, 0.055);
    border-radius: 50%;
    content: "";
}

.service-card--wide {
    grid-column: span 7;
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.13), var(--surface) 56%);
}

.service-card--compact {
    grid-column: span 5;
}

.service-card--urgent {
    border-color: var(--line-yellow);
}

.service-card-head {
    display: flex;
    min-height: 30px;
    align-items: center;
    justify-content: space-between;
}

.service-number {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.service-tag {
    padding: 6px 10px;
    border: 1px solid var(--line-yellow);
    border-radius: 999px;
    color: var(--yellow-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-card h3 {
    margin: 46px 0 14px;
    font-size: 29px;
    letter-spacing: -0.035em;
}

.service-card p {
    position: relative;
    z-index: 1;
    max-width: 560px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.service-card .service-lead {
    margin-bottom: 7px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.advantages {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 90px 0;
}

.advantages-grid {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    grid-template-columns: repeat(4, 1fr);
}

.advantage-item {
    min-width: 0;
    padding: 30px;
    border-right: 1px solid var(--line);
}

.advantage-item:last-child {
    border-right: 0;
}

.advantage-number {
    color: var(--yellow);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 1;
}

.advantage-text {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.contact-section {
    padding: 90px 24px 110px;
}

.contact-card {
    display: grid;
    width: min(1180px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 34px;
    background: var(--yellow);
    color: #11120f;
    grid-template-columns: 1.25fr 0.75fr;
}

.contact-copy,
.contact-info {
    padding: clamp(34px, 6vw, 72px);
}

.contact-copy .eyebrow {
    color: #11120f;
}

.contact-copy h2 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: -0.055em;
    line-height: 1;
}

.contact-copy p {
    max-width: 590px;
    color: rgba(17, 18, 15, 0.72);
    font-size: 18px;
}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.contact-meta span {
    padding: 8px 12px;
    border: 1px solid rgba(17, 18, 15, 0.2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.contact-info {
    align-self: stretch;
    border-left: 1px solid rgba(17, 18, 15, 0.16);
    background: rgba(255, 255, 255, 0.18);
}

.contact-label {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-info a {
    display: block;
    color: #11120f;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 850;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.contact-info p {
    margin-top: 14px;
    color: rgba(17, 18, 15, 0.7);
    font-size: 14px;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0;
    border-top: 1px solid var(--line);
    color: #777b72;
    font-size: 13px;
}

.vk-badge {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 4px solid var(--bg);
    border-radius: 50%;
    background: #0077ff;
    color: #fff;
    text-decoration: none;
    transition: transform 160ms var(--ease-out), background-color 160ms ease;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.modal.active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.modal-content {
    position: relative;
    width: min(460px, 100%);
    padding: 46px 34px 36px;
    border: 1px solid var(--line-yellow);
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    text-align: center;
    transform: translateY(12px) scale(0.97);
    transition: transform 220ms var(--ease-out);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.modal-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 18px;
    background: var(--yellow);
    color: #11120f;
    font-size: 28px;
}

.modal-content h3 {
    margin-bottom: 14px;
    font-size: 28px;
}

.modal-phone {
    display: block;
    color: var(--yellow);
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 850;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.modal-name {
    margin: 10px 0 22px;
    color: var(--text);
}

.modal-vk {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: #0077ff;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 150ms var(--ease-out), background-color 180ms ease;
}

.modal-vk span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 11px;
    letter-spacing: -0.04em;
}

.modal-vk:active {
    transform: scale(0.97);
}

.modal-content p {
    color: var(--muted);
    font-size: 14px;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}

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

@media (hover: hover) and (pointer: fine) {
    .nav-phone:hover,
    .btn-primary:hover {
        background: var(--yellow-soft);
    }

    .btn-secondary:hover {
        border-color: var(--yellow);
        background: rgba(255, 193, 7, 0.12);
    }

    .service-card:hover {
        border-color: var(--line-yellow);
        background-color: #1d1f1b;
        transform: translateY(-4px);
    }

    .vk-badge:hover {
        background: #1685ff;
        transform: translateY(-3px);
    }

    .modal-vk:hover {
        background: #1685ff;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
    }

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

    .hero-panel {
        min-height: 390px;
    }

    .service-card,
    .service-card--wide,
    .service-card--compact {
        grid-column: span 6;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-top: 1px solid rgba(17, 18, 15, 0.16);
        border-left: 0;
    }
}

@media (max-width: 720px) {
    .header {
        padding: 12px 18px;
    }

    .logo-sub {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .nav {
        position: fixed;
        inset: 67px 0 auto;
        display: grid;
        visibility: hidden;
        padding: 24px;
        border-bottom: 1px solid var(--line);
        background: rgba(16, 17, 15, 0.98);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
    }

    .nav.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .nav a,
    .nav-phone {
        width: 100%;
        text-align: center;
    }

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

    .hero {
        padding: 120px 18px 64px;
    }

    .hero h1 {
        font-size: clamp(43px, 13.2vw, 66px);
    }

    .hero-panel-content {
        inset: auto 24px 24px;
    }

    .section,
    .advantages {
        width: min(100% - 36px, 1180px);
        padding: 72px 0;
    }

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

    .service-card,
    .service-card--wide,
    .service-card--compact {
        grid-column: 1 / -1;
        min-height: 260px;
        padding: 24px;
    }

    .service-card h3 {
        margin-top: 34px;
    }

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

    .advantage-item:nth-child(2) {
        border-right: 0;
    }

    .advantage-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .contact-section {
        padding: 72px 18px 84px;
    }

    .footer {
        flex-direction: column;
        width: calc(100% - 36px);
    }

    .vk-badge {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 440px) {
    .logo-main {
        font-size: 16px;
    }

    .hero-panel {
        min-height: 360px;
    }

    .hero-panel h2 {
        font-size: 26px;
    }

    .cta-buttons,
    .btn {
        width: 100%;
    }

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

    .advantage-item,
    .advantage-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .advantage-item:last-child {
        border-bottom: 0;
    }
}

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

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
