:root {
    --ink: #121a24;
    --ink-soft: #3d4a58;
    --paper: #f6f2eb;
    --paper-deep: #efe8dd;
    --navy: #12273a;
    --gold: #bc8b3d;
    --line: #d6c8b6;
    --accent: #8f2e23;
    --accent-soft: #a8422f;
    --white: #fffdf9;
    --shadow-soft: 0 20px 60px rgba(18, 23, 32, 0.1);
    --shadow-strong: 0 28px 90px rgba(9, 18, 30, 0.35);
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 16% 10%, #f5f0e7 0, #ece3d6 40%, #dcd0bf 100%);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(22, 34, 49, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 34, 49, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1480px;
    margin: 0 auto;
    padding: 22px 26px 42px;
}

.masthead {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    animation: fade-in 0.65s ease both;
}

.masthead-label,
.masthead-edition {
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    color: var(--ink-soft);
}

.masthead-title {
    justify-self: center;
    font-family: "Bodoni Moda", serif;
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    letter-spacing: 0.04em;
}

.hero {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    border: 1px solid rgba(220, 208, 189, 0.8);
    border-radius: 22px;
    background: linear-gradient(130deg, #f8f4ed, #ede5da);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-main {
    padding: 42px 40px 36px;
    border-right: 1px solid rgba(213, 197, 175, 0.8);
    animation: rise 0.7s ease both;
}

.hero-side {
    padding: 30px;
    background: linear-gradient(160deg, rgba(18, 39, 58, 0.97), rgba(30, 52, 71, 0.94));
    color: #edf2f6;
    animation: rise 0.8s ease both;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2f4152;
    margin-bottom: 14px;
}

.hero h1 {
    font-family: "Bodoni Moda", serif;
    font-size: clamp(2.8rem, 5.3vw, 5rem);
    line-height: 0.98;
    letter-spacing: 0.01em;
    max-width: 900px;
}

.hero-lead {
    margin-top: 18px;
    font-size: 1.12rem;
    color: #2d3c4a;
    max-width: 820px;
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.side-title {
    font-family: "Bodoni Moda", serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #f5dfc6;
}

.metric + .metric {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.metric strong {
    display: block;
    font-size: 1.35rem;
    color: #f8e5cb;
}

.metric span {
    font-size: 0.95rem;
    color: #d9e3ea;
}

.layout {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
}

.offer {
    border: 1px solid rgba(212, 196, 173, 0.88);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    padding: 28px 28px 20px;
}

.offer-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.offer h2 {
    font-family: "Bodoni Moda", serif;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    letter-spacing: 0.01em;
}

.date {
    color: var(--ink-soft);
    margin-top: 6px;
    font-size: 0.98rem;
}

.clause {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(245, 238, 227, 0.86));
    border: 1px solid rgba(215, 200, 177, 0.95);
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 12px;
    animation: rise 0.5s ease both;
}

.clause:nth-of-type(1) { animation-delay: 0.03s; }
.clause:nth-of-type(2) { animation-delay: 0.07s; }
.clause:nth-of-type(3) { animation-delay: 0.11s; }
.clause:nth-of-type(4) { animation-delay: 0.15s; }
.clause:nth-of-type(5) { animation-delay: 0.19s; }
.clause:nth-of-type(6) { animation-delay: 0.23s; }
.clause:nth-of-type(7) { animation-delay: 0.27s; }
.clause:nth-of-type(8) { animation-delay: 0.31s; }

.clause h3 {
    font-family: "Bodoni Moda", serif;
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.clause p,
.clause li {
    font-size: 1rem;
    color: #2f3d4b;
}

.clause ul {
    margin: 8px 0 0 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 8px;
}

th,
td {
    border: 1px solid #cdb89a;
    padding: 11px 9px;
    text-align: left;
}

th {
    background: var(--navy);
    color: #f4ece0;
    font-size: 0.95rem;
}

td {
    background: #fffaf2;
    font-size: 0.96rem;
}

.rail {
    display: grid;
    gap: 14px;
    align-content: start;
    position: sticky;
    top: 16px;
    height: fit-content;
}

.rail-card {
    border-radius: 16px;
    border: 1px solid rgba(212, 196, 173, 0.88);
    background: linear-gradient(180deg, #f7f1e9, #ece2d3);
    padding: 18px 16px;
    box-shadow: var(--shadow-soft);
    animation: rise 0.6s ease both;
}

.rail-card h2 {
    font-family: "Bodoni Moda", serif;
    font-size: 1.38rem;
    margin-bottom: 8px;
}

.rail-card p,
.rail-card li {
    color: #304150;
    font-size: 0.98rem;
}

.rail-card ol {
    margin-left: 20px;
}

.rail-card li + li {
    margin-top: 8px;
}

.rail-legal {
    background: linear-gradient(170deg, #132a3e, #243a4e);
    border-color: rgba(255, 255, 255, 0.14);
}

.rail-legal h2,
.rail-legal p {
    color: #f0f4f8;
}

.rail-cta .button {
    width: 100%;
    margin-top: 4px;
}

.rail-cta p {
    margin-top: 8px;
    color: #4a5a68;
    font-size: 0.9rem;
}

.bottom-cta {
    margin-top: 22px;
    border: 1px solid rgba(211, 191, 165, 0.95);
    border-radius: 16px;
    background: linear-gradient(120deg, #f5eee4, #eadfce);
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: var(--shadow-soft);
}

.bottom-cta p {
    font-family: "Bodoni Moda", serif;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.97rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
    color: var(--white);
    background: linear-gradient(145deg, var(--accent), var(--accent-soft));
    box-shadow: 0 14px 28px rgba(129, 38, 29, 0.3);
}

.button-primary:hover {
    box-shadow: 0 18px 32px rgba(129, 38, 29, 0.4);
}

.button-secondary {
    color: #2b3b49;
    border: 1px solid #bda686;
    background: rgba(255, 255, 255, 0.55);
}

footer {
    margin-top: 20px;
    text-align: center;
    color: #364655;
    font-size: 0.92rem;
}

.footer-note {
    margin-top: 3px;
    color: #607284;
    font-size: 0.84rem;
}

@keyframes fade-in {
    from {
        opacity: 0.75;
    }
    to {
        opacity: 1;
    }
}

@keyframes rise {
    from {
        opacity: 0.78;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-main {
        border-right: 0;
        border-bottom: 1px solid rgba(213, 197, 175, 0.8);
    }

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

    .rail {
        position: static;
    }
}

/* ── Новые секции ── */

.services-section {
    margin-top: 24px;
    border: 1px solid rgba(212, 196, 173, 0.88);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    padding: 28px 28px 24px;
}

.section-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.section-head h2 {
    font-family: "Bodoni Moda", serif;
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    letter-spacing: 0.01em;
}

.section-lead {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 1rem;
    max-width: 860px;
}

/* Тарифная сетка */
.tariff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.t-card {
    border: 1px solid rgba(215, 200, 177, 0.95);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(245, 238, 227, 0.86));
    padding: 20px 18px;
}

.t-card-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.t-card-name {
    font-family: "Bodoni Moda", serif;
    font-size: 1.55rem;
    letter-spacing: 0.01em;
}

.t-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    margin-top: 4px;
}

.t-card-ops {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-top: 3px;
}

.t-card-features {
    list-style: none;
    margin: 0;
}

.t-card-features li {
    padding: 5px 0 5px 18px;
    position: relative;
    font-size: 0.94rem;
    color: #2f3d4b;
}

.t-card-features li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--gold);
}

.t-card-note {
    margin-top: 12px;
    font-size: 0.84rem;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

/* Доп. параметры */
.extra-params {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.param-card {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(245, 238, 227, 0.8));
    border: 1px solid rgba(215, 200, 177, 0.95);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.94rem;
    color: #2f3d4b;
}

.param-price {
    font-weight: 700;
    color: var(--accent);
}

/* Подключаемые услуги */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.addon-card {
    border: 1px solid rgba(215, 200, 177, 0.95);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(245, 238, 227, 0.86));
    padding: 18px 16px;
}

.addon-name {
    font-family: "Bodoni Moda", serif;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.addon-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 10px;
}

.addon-desc {
    font-size: 0.91rem;
    color: #3d4a58;
    line-height: 1.5;
}

.addon-legal {
    background: linear-gradient(170deg, #132a3e, #243a4e);
    border-color: rgba(255, 255, 255, 0.12);
}

.addon-legal .addon-name,
.addon-legal .addon-desc {
    color: #e8f0f6;
}

.addon-legal .addon-price {
    color: #f8c97a;
}

/* Разовые работы */
.onetime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.onetime-card {
    border: 1px solid rgba(215, 200, 177, 0.95);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(245, 238, 227, 0.8));
    padding: 16px 14px;
}

.onetime-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a2a38;
    margin-bottom: 4px;
}

.onetime-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.onetime-desc {
    font-size: 0.86rem;
    color: #4a5a68;
    line-height: 1.45;
}

/* Как работаем */
.how-section {
    background: linear-gradient(170deg, #132a3e, #243a4e);
    border-color: rgba(255, 255, 255, 0.1);
}

.how-section .section-head {
    border-color: rgba(255, 255, 255, 0.15);
}

.how-section .section-head h2,
.how-section .section-lead {
    color: #f0f4f8;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.how-step {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 18px 16px;
    color: #e0eaf3;
}

.how-step-num {
    font-family: "Bodoni Moda", serif;
    font-size: 2.2rem;
    color: #f8c97a;
    margin-bottom: 8px;
    line-height: 1;
}

.how-step p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Операции */
.ops-section {
    background: linear-gradient(135deg, #f0e9de, #e5dace);
}

.ops-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.ops-example {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(215, 200, 177, 0.8);
    border-radius: 10px;
    padding: 14px;
    font-size: 0.93rem;
    color: #2f3d4b;
    line-height: 1.5;
}

.ops-example strong {
    display: block;
    color: var(--accent);
    margin-bottom: 4px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ops-note {
    margin-top: 16px;
    font-size: 0.95rem;
    color: #3d4a58;
}

.section-subhead {
    font-family: "Bodoni Moda", serif;
    font-size: 1.3rem;
    margin: 20px 0 12px;
    color: var(--ink);
}

@media (max-width: 900px) {
    .tariff-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .masthead,
    .hero-main,
    .hero-side,
    .clause,
    .rail-card {
        animation: none;
    }

    .container {
        padding: 12px 10px 20px;
    }

    .masthead {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4px;
    }

    .hero-main,
    .hero-side {
        padding: 22px 16px;
    }

    .hero h1 {
        font-size: clamp(2rem, 11vw, 2.7rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .offer {
        padding: 18px 14px 12px;
    }

    .offer h2 {
        font-size: 2rem;
    }

    .clause h3 {
        font-size: 1.2rem;
    }

    .bottom-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}
