:root {
    --primary: #6d9886;
    --primary-strong: #527565;
    --accent: #e87532;
    --accent-strong: #c95c20;
    --ink: #212121;
    --ink-soft: #2d332f;
    --bg: #f6f6f6;
    --surface: #ffffff;
    --surface-soft: #edf1ef;
    --line: #d9dfdc;
    --text: #212121;
    --muted: #66706b;
    --danger: #a33b2b;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 20px 50px rgba(33, 33, 33, 0.09);
    --shadow-hover: 0 24px 60px rgba(33, 33, 33, 0.14);
    --max: 1220px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.is-nav-open {
    overflow: hidden;
}

a {
    color: inherit;
}

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

.container {
    width: calc(100% - 2rem);
    max-width: var(--max);
    margin-inline: auto;
}

.section {
    padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section.compact {
    padding: clamp(2.8rem, 5vw, 4.5rem) 0;
}

.section.white {
    background: var(--surface);
}

.section.light {
    background: var(--bg);
}

.section.dark {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--bg);
}

.section.dark::before {
    position: absolute;
    top: -20rem;
    left: -10rem;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    background: rgba(109, 152, 134, 0.16);
    content: "";
    filter: blur(10px);
    pointer-events: none;
}

.section.dark > .container {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 {
    max-width: 960px;
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 5vw, 4.65rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.8rem, 3.5vw, 3.1rem);
    letter-spacing: -0.045em;
}

h3,
h4,
p {
    margin-bottom: 0;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stack-lg {
    gap: 1.25rem;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge-label {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.small-muted {
    color: var(--muted);
    font-size: 0.88rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.72rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(232, 117, 50, 0.24);
}

.btn.primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 14px 30px rgba(232, 117, 50, 0.32);
    transform: translateY(-2px);
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
}

.btn.ghost:hover {
    border-color: #fff;
}

.btn.outline {
    border-color: var(--line);
    background: transparent;
    color: var(--text);
}

.btn.outline:hover {
    border-color: var(--primary);
    background: rgba(109, 152, 134, 0.08);
    color: var(--primary-strong);
}

.btn.small {
    min-height: 38px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
}

.topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(33, 33, 33, 0.94);
    backdrop-filter: blur(16px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 1rem;
}

.logo {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.current {
    color: #fff;
}

.site-nav a.current::after {
    position: absolute;
    right: 0;
    bottom: -0.55rem;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    content: "";
}

.phone-link {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 8rem) 0 clamp(4.5rem, 8vw, 7rem);
    background: radial-gradient(circle at 12% 18%, rgba(109, 152, 134, 0.28), transparent 34%), radial-gradient(circle at 90% 8%, rgba(109, 152, 134, 0.12), transparent 30%), linear-gradient(135deg, #212121, #252a27 58%, #303b36);
    color: var(--bg);
}

.hero.compact {
    padding: clamp(3.2rem, 6vw, 5rem) 0;
}

.hero::after {
    position: absolute;
    right: -8rem;
    bottom: -13rem;
    width: 22rem;
    height: 22rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, 0.02), 0 0 0 7rem rgba(255, 255, 255, 0.015);
    content: "";
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-grid,
.split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 1.5rem;
}

.split {
    grid-template-columns: 0.8fr 1.2fr;
}

.hero p,
.section.dark > .container > p {
    max-width: 800px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
}

.breadcrumbs a {
    text-decoration: none;
}

.metrics,
.cards-2,
.cards-3,
.cards-4 {
    display: grid;
    gap: 1rem;
}

.metrics {
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    margin-top: 1.5rem;
}

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

.cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
}

.metric-card strong {
    display: block;
    color: #fff;
    font-size: 1.08rem;
}

.metric-card span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
}

.panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-content {
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.panel.dark {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(33, 33, 33, 0.72);
    color: #fff;
    backdrop-filter: blur(18px);
}

.quick-form {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.quick-form h3 {
    margin-bottom: 0.25rem;
}

.quick-form > p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.quick-form .form-note {
    margin: 0.85rem 0 0;
    font-size: 0.76rem;
}

.form-grid {
    display: grid;
    gap: 0.68rem;
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 0.78rem 0.86rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-size: 0.9rem;
}

.textarea {
    min-height: 105px;
    resize: vertical;
}

.quick-form.dark .input,
.quick-form.dark .textarea,
.quick-form.dark .select {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.quick-form.dark .input::placeholder,
.quick-form.dark .textarea::placeholder {
    color: rgba(255, 255, 255, 0.66);
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(109, 152, 134, 0.22);
}

.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.76rem;
}

.consent input {
    margin-top: 0.22rem;
    accent-color: var(--accent);
}

.consent a {
    text-decoration: underline;
}

.form-loading {
    display: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    text-align: center;
}

.category-card,
.info-card,
.step-card,
.doc-card,
.contact-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
}

.category-card-image {
    display: block;
    overflow: hidden;
    margin: -1rem -1rem 1rem;
    padding: 0.75rem;
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.category-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.035);
}

.category-card .small-muted {
    flex-grow: 1;
}

.category-card::before {
    position: absolute;
    top: 0;
    left: 1rem;
    width: 3rem;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: var(--primary);
    content: "";
    transition: width 0.24s ease;
}

.category-card:hover {
    border-color: rgba(109, 152, 134, 0.55);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.category-card:hover::before {
    width: calc(100% - 2rem);
}

.category-tag {
    color: var(--muted);
    font-size: 0.74rem;
}

.section.dark .info-card,
.hero .info-card {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    backdrop-filter: blur(8px);
}

.section.dark .info-card .small-muted,
.hero .info-card .small-muted {
    color: rgba(255, 255, 255, 0.7);
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(33, 33, 33, 0.04);
}

.table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
    text-align: left;
    vertical-align: middle;
}

.table th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.table tbody tr:hover td {
    background: rgba(109, 152, 134, 0.08);
}

.table .mark {
    font-weight: 700;
}

.price {
    color: var(--primary-strong);
    font-weight: 800;
    white-space: nowrap;
}

.table-meta {
    margin-top: 0.65rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    background: linear-gradient(120deg, #212121, #2b302d 66%, #35463f);
    color: var(--bg);
}

.strip p {
    color: rgba(255, 255, 255, 0.86);
}

.strip .btn {
    background: #fff;
}

.sidebar-stack {
    display: grid;
    gap: 1rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.32rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav a {
    display: block;
    padding: 0.58rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 0.85rem;
    text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.current {
    border-color: var(--primary);
    background: rgba(109, 152, 134, 0.08);
    color: var(--primary-strong);
}

.faq {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-btn {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.95rem 0.2rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    text-align: left;
}

.faq-icon {
    color: var(--primary);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    transition: max-height 0.2s ease;
}

.faq-item.open .faq-content {
    max-height: 300px;
    padding-bottom: 0.85rem;
}

.legal-content {
    max-width: 900px;
    margin-inline: auto;
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.legal-content h1 {
    font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.legal-content h2 {
    margin-top: 2.2rem;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.legal-content p,
.legal-content li {
    margin-bottom: 0.75rem;
}

.legal-notice {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid rgba(232, 117, 50, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(232, 117, 50, 0.08);
}

.details-list {
    display: grid;
    grid-template-columns: minmax(160px, 0.35fr) 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
}

.details-list dt {
    color: var(--muted);
}

.details-list dd {
    margin: 0;
    font-weight: 600;
}

.footer {
    padding: 3rem 0 1.6rem;
    border-top: 1px solid rgba(109, 152, 134, 0.5);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1.25rem;
}

.footer h4 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.footer-company {
    gap: 0.5rem;
}

.footer-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    text-decoration: none;
}

.footer-list a:hover,
.footer-legal a:hover {
    color: #fff;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
}

.footer-bottom a {
    color: inherit;
}

.center-card {
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms !important;
    }
}

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

    .cards-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
        order: 3;
    }

    .site-nav {
        position: fixed;
        top: 74px;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 74px);
        padding: 1rem;
        overflow: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        background: var(--ink);
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 0.6rem 0;
    }

    .site-nav a.current::after {
        display: none;
    }

    .desktop-only {
        display: none;
    }

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

@media (max-width: 620px) {
    .section {
        padding: 3rem 0;
    }

    .cards-2,
    .cards-3,
    .cards-4,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4.5rem 0 3.5rem;
    }

    .row-actions .btn,
    .quick-form .btn {
        width: 100%;
    }

    .details-list {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .details-list dd {
        margin-bottom: 0.8rem;
    }
}
