* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ВАЖНО:
   гарантированно скрывает form/success через hidden */
[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f0;
    color: #151515;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid #e2e2dd;

    z-index: 1000;
}

.header-inner {
    position: relative;

    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: #e5a900;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: #555;

    font-size: 14px;
}

.nav a:hover {
    color: #151515;
}

.header-call {
    padding: 12px 18px;

    background: #f5b800;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;
}

.menu-button {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: white;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 2px;

    background: #111;
}


/* =========================
   GENERAL
========================= */

.button {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    border: none;
    border-radius: 9px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: #f5b800;
    color: #111;
}

.button-primary:hover {
    background: #ffc824;
}

.button-light {
    background: #fff;

    border: 1px solid #ddd;
}

.button-dark {
    background: #151515;
    color: #fff;
}

.section-kicker {
    margin-bottom: 12px;

    color: #c99100;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}


/* =========================
   HERO
========================= */

.hero {
    padding: 150px 0 90px;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(245, 184, 0, 0.25),
            transparent 30%
        ),
        #f5f5f0;
}

.hero-grid {
    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 80px;
}

.badge {
    display: inline-block;

    margin-bottom: 22px;

    padding: 8px 12px;

    background: #fff3bf;

    border: 1px solid #f2d65c;
    border-radius: 999px;

    color: #7e6000;

    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    max-width: 700px;

    margin-bottom: 24px;

    font-size: clamp(50px, 6.4vw, 88px);
    line-height: 0.94;

    letter-spacing: -5px;
}

.hero h1 span {
    color: #e5a900;
}

.hero-text {
    max-width: 600px;

    margin-bottom: 32px;

    color: #646464;

    font-size: 18px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    margin-bottom: 34px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;

    gap: 20px;

    color: #555;

    font-size: 14px;
}


/* =========================
   HERO PANEL
========================= */

.hero-panel {
    padding: 40px;

    background: #f5b800;

    border-radius: 24px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.12);
}

.hero-panel-top {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 40px;

    font-weight: 700;
}

.electric-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #151515;

    border-radius: 50%;

    font-size: 23px;
}

.hero-panel h2 {
    margin-bottom: 18px;

    font-size: 38px;
    line-height: 1.05;

    letter-spacing: -2px;
}

.hero-panel > p {
    margin-bottom: 36px;

    color: #5d4b00;

    line-height: 1.7;
}

.hero-stat {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin-bottom: 32px;
}

.hero-stat div {
    padding-top: 18px;

    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.hero-stat strong {
    display: block;

    font-size: 27px;
}

.hero-stat span {
    color: #5b4b0e;

    font-size: 13px;
}


/* =========================
   SERVICES
========================= */

.services {
    padding: 110px 0;

    background: #fff;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 55px;
}

.section-head h2,
.prices-title h2,
.advantages-title,
.faq h2,
.contact-copy h2 {
    max-width: 720px;

    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.05;

    letter-spacing: -3px;
}

.section-head > p {
    max-width: 420px;

    color: #777;

    line-height: 1.7;
}

.service-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.service-card {
    min-height: 300px;

    display: flex;
    flex-direction: column;

    padding: 28px;

    background: #f6f6f2;

    border: 1px solid #e3e3de;
    border-radius: 16px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    border-color: #f5b800;
}

.service-icon {
    margin-bottom: 45px;

    color: #bb8b00;

    font-size: 13px;
    font-weight: 800;
}

.service-card h3 {
    margin-bottom: 14px;

    font-size: 22px;
}

.service-card p {
    margin-bottom: 28px;

    color: #737373;

    line-height: 1.7;
}

.service-card strong {
    margin-top: auto;
}

.accent-card {
    background: #181818;
    color: #fff;

    border-color: #181818;
}

.accent-card p {
    color: #aaa;
}

.accent-card .service-icon {
    font-size: 24px;
}


/* =========================
   PRICES
========================= */

.prices {
    padding: 110px 0;

    background: #171717;
    color: #fff;
}

.prices-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 90px;
}

.prices-title {
    position: sticky;

    top: 120px;

    align-self: start;
}

.prices-title p:not(.section-kicker) {
    max-width: 450px;

    margin: 22px 0;

    color: #999;

    line-height: 1.7;
}

.text-link {
    color: #f5b800;

    font-weight: 700;
}

.price-list {
    border-top: 1px solid #3b3b3b;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 27px 0;

    border-bottom: 1px solid #3b3b3b;
}

.price-row span {
    color: #ccc;
}

.price-row strong {
    color: #f5b800;
}


/* =========================
   ADVANTAGES
========================= */

.advantages {
    padding: 110px 0;

    background: #f5f5f0;
}

.advantages-title {
    margin-bottom: 55px;
}

.advantages-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.advantage {
    padding-top: 22px;

    border-top: 2px solid #151515;
}

.advantage strong {
    display: block;

    margin-bottom: 45px;

    color: #d29c00;
}

.advantage h3 {
    margin-bottom: 12px;

    font-size: 20px;
}

.advantage p {
    color: #777;

    line-height: 1.7;
}


/* =========================
   FAQ
========================= */

.faq {
    padding: 110px 0;

    background: #fff;
}

.faq-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 90px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 24px 0;

    background: none;
    border: none;

    text-align: left;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;
}

.faq-question span {
    font-size: 25px;
}

.faq-answer {
    max-height: 0;

    overflow: hidden;

    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 40px 24px 0;

    color: #777;

    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}


/* =========================
   CONTACTS
========================= */

.contacts {
    padding: 110px 0;

    background: #f5b800;
}

.contact-grid {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 90px;

    align-items: start;
}

/* Фиксируем колонки,
   чтобы success вставал туда же,
   где была форма */

.contact-copy {
    grid-column: 1;
    grid-row: 1;
}

.form,
.success {
    grid-column: 2;
    grid-row: 1;

    align-self: start;
}

.contact-copy > p:not(.section-kicker) {
    max-width: 500px;

    margin-top: 22px;

    color: #5c4d10;

    line-height: 1.7;
}

.contact-info {
    display: grid;

    gap: 22px;

    margin-top: 45px;
}

.contact-info div {
    padding-top: 18px;

    border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.contact-info small {
    display: block;

    margin-bottom: 5px;

    color: #695916;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.contact-info strong {
    font-size: 17px;
}


/* =========================
   FORM
========================= */

.form {
    display: grid;

    gap: 21px;

    padding: 38px;

    background: #fff;

    border-radius: 20px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.13);
}

.field {
    display: grid;

    gap: 8px;
}

.field label {
    font-size: 14px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;

    padding: 15px 16px;

    background: #f7f7f4;

    border: 1px solid #ddd;
    border-radius: 9px;

    outline: none;

    font-size: 15px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #d49d00;

    box-shadow:
        0 0 0 3px rgba(245, 184, 0, 0.15);
}

.field input.invalid,
.field select.invalid {
    border-color: #d94444;
}

.error {
    min-height: 15px;

    color: #c33;

    font-size: 12px;
}

.checkbox {
    display: flex;

    gap: 10px;

    color: #666;

    font-size: 13px;
}

.checkbox input {
    width: 17px;
    height: 17px;

    accent-color: #f5b800;
}

.submit-button {
    width: 100%;
}

.submit-button:disabled {
    cursor: wait;

    opacity: 0.65;
}

.submit-error {
    padding: 12px;

    background: #ffe8e8;

    border-radius: 8px;

    color: #a33;

    font-size: 13px;
}

.honeypot {
    position: absolute;

    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* =========================
   SUCCESS
========================= */

.success {
    padding: 60px 35px;

    background: white;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.13);
}

.success > div {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    background: #151515;
    color: #fff;

    border-radius: 50%;

    font-size: 28px;
}

.success h3 {
    margin-bottom: 10px;

    font-size: 30px;
}

.success p {
    margin-bottom: 25px;

    color: #777;
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 30px 0;

    background: #111;
    color: white;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-inner > div {
    text-align: right;
}

.footer p {
    color: #999;

    font-size: 13px;
}

.demo {
    margin-top: 4px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 950px) {

    .menu-button {
        display: flex;
    }

    .header-call {
        margin-left: auto;
    }

    .nav {
        position: absolute;

        top: 76px;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;

        padding: 15px;

        background: white;

        border: 1px solid #ddd;
        border-radius: 12px;

        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.12);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 10px;
    }

    .hero-grid,
    .prices-grid,
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .prices-title {
        position: static;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-copy,
    .form,
    .success {
        grid-column: auto;
        grid-row: auto;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 68px;
    }

    .header-call {
        display: none;
    }

    .nav {
        top: 68px;
    }

    .hero {
        padding: 115px 0 70px;
    }

    .hero-grid {
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(46px, 15vw, 64px);

        letter-spacing: -3px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .hero-points {
        flex-direction: column;

        gap: 9px;
    }

    .hero-panel {
        padding: 28px;
    }

    .hero-panel h2 {
        font-size: 31px;
    }

    .services,
    .prices,
    .advantages,
    .faq,
    .contacts {
        padding: 80px 0;
    }

    .section-head {
        align-items: flex-start;

        flex-direction: column;
    }

    .service-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 270px;
    }

    .form,
    .success {
        padding: 24px;
    }

    .field input,
    .field select,
    .field textarea {
        font-size: 16px;
    }

    .footer-inner {
        align-items: flex-start;

        flex-direction: column;
    }

    .footer-inner > div {
        text-align: left;
    }

}