:root {
    --bg-0: #faf7f2;
    --bg-1: #ffffff;
    --bg-2: #f6efe6;
    --bg-dark: #181410;

    --text-1: #1e1a18;
    --text-2: #4d433e;
    --text-3: #7a6b63;
    --text-disabled: #b4a79f;

    --border-1: #e7ded6;
    --border-2: rgba(30, 26, 24, 0.12);

    --gold-800: #7a4a07;
    --gold-700: #9b5c0a;
    --gold-500: #d79616;
    --gold-400: #f0b52a;
    --gold-300: #ffd864;

    --danger-500: #e11002;
    --tg-500: #2aabee;
    --wa-500: #25d366;

    --radius-lg: 22px;
    --radius-md: 14px;
    --shadow-soft: 0 16px 36px rgba(30, 26, 24, 0.08);
}

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

[v-cloak] {
    opacity: 0;
    pointer-events: none;
}

[data-form-app] {
    transition: opacity 240ms ease;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Trebuchet MS", "Lucida Sans", "Segoe UI", sans-serif;
    color: var(--text-1);
    background-color: var(--bg-0);
    background-image: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-2) 100%);
    line-height: 1.45;
}

a {
    color: var(--gold-800);
    text-decoration-color: rgba(122, 74, 7, 0.42);
    text-underline-offset: 2px;
}

a:hover {
    color: var(--gold-700);
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 216, 100, 0.55);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Trebuchet MS", "Lucida Sans", "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-1);
}

.page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 24px 16px 40px;
}

.page-glow {
    position: absolute;
    inset: -120px auto auto -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at center, rgba(215, 150, 22, 0.11) 0%, rgba(215, 150, 22, 0) 72%);
    pointer-events: none;
}

.shell,
.container {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.site-header {
    position: relative;
    z-index: 30;
    margin-bottom: 24px;
    padding: 10px 0 18px;
    border-bottom: 1px solid rgba(215, 150, 22, 0.35);
}

.site-header__row {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.brand-link__name {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--text-1);
}

.main-nav {
    flex: 1;
    min-width: 0;
}

.main-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav__item {
    position: relative;
}

.main-nav__dropdown {
    position: relative;
}

.main-nav__dropdown > summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--border-1);
    background: var(--bg-1);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-2);
    box-shadow: var(--shadow-soft);
}

.main-nav__dropdown > summary::-webkit-details-marker {
    display: none;
}

.main-nav__dropdown[open] > summary {
    border-color: rgba(155, 92, 10, 0.4);
    background: var(--bg-2);
}

.main-nav__dropdown ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 8px;
    position: absolute;
    left: 0;
    min-width: 260px;
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    z-index: 120;
}

.main-nav__dropdown li + li {
    margin-top: 4px;
}

.main-nav__dropdown a {
    display: block;
    text-decoration: none;
    color: var(--text-2);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.92rem;
}

.main-nav__dropdown a:hover,
.main-nav__dropdown a.is-active {
    background: rgba(215, 150, 22, 0.1);
    color: var(--gold-700);
}

.locale-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid var(--border-1);
    background: var(--bg-1);
    padding: 4px;
}

.locale-switch__btn {
    border: 0;
    background: transparent;
    color: var(--text-2);
    border-radius: 999px;
    padding: 5px 10px;
    font: inherit;
    font-size: 0.84rem;
    cursor: pointer;
}

.locale-switch__btn.is-active {
    background: var(--gold-500);
    color: var(--text-1);
    font-weight: 700;
}

.home-hero,
.home-placeholder,
.home-categories,
.service-placeholder,
.story,
.form-card {
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.home-hero,
.home-placeholder,
.home-categories,
.service-placeholder,
.story {
    padding: clamp(22px, 3vw, 34px);
}

.home-placeholder,
.home-categories {
    margin-top: 20px;
}

.home-categories h2,
.home-placeholder h2,
.service-placeholder h2 {
    margin-bottom: 10px;
}

.category-grid {
    margin-top: 12px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    background: var(--bg-2);
    padding: 12px;
}

.category-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.category-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.category-card li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--bg-1);
    padding: 8px 10px;
    text-decoration: none;
    color: var(--text-2);
    font-size: 0.92rem;
}

.category-card li a:hover {
    border-color: rgba(155, 92, 10, 0.28);
    background: rgba(255, 255, 255, 0.94);
}

.eyebrow {
    margin: 0;
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    color: var(--gold-800);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

h1 {
    margin-top: 14px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    max-width: 18ch;
}

.lead {
    margin: 16px 0 0;
    color: var(--text-2);
    max-width: 60ch;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.cta-row {
    margin-top: 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    border-radius: 12px;
    border: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.btn-primary,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--gold-500);
    color: var(--text-1);
    font-weight: 700;
    border: 1px solid rgba(155, 92, 10, 0.36);
    box-shadow: 0 8px 20px rgba(155, 92, 10, 0.18);
}

.btn-primary:hover,
.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--gold-400);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid var(--gold-700);
    background: transparent;
    color: var(--gold-800);
    font-weight: 700;
}

.btn-secondary:hover {
    background: rgba(215, 150, 22, 0.1);
}

.meta {
    color: var(--text-3);
    font-size: 0.92rem;
}

.benefits {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.benefits li {
    position: relative;
    padding-left: 22px;
    color: var(--text-2);
}

.benefits li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--gold-700), var(--gold-500));
    position: absolute;
    left: 0;
    top: 8px;
}

.steps {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px dashed var(--border-2);
}

.steps h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.steps ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-2);
    display: grid;
    gap: 9px;
}

.form-card {
    position: sticky;
    top: 20px;
    padding: 0;
    overflow: hidden;
}

.form-head {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-2);
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
}

.form-head h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.form-head p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.9rem;
}

.lead-form {
    padding: 16px 20px 20px;
    max-height: min(78vh, 980px);
    overflow: auto;
}

.lead-form::-webkit-scrollbar {
    width: 10px;
}

.lead-form::-webkit-scrollbar-track {
    background: var(--bg-2);
}

.lead-form::-webkit-scrollbar-thumb {
    background: rgba(122, 107, 99, 0.5);
    border-radius: 999px;
}

.lead-form::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 92, 10, 0.45);
}

.group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-2);
}

.group:last-of-type {
    border-bottom: 0;
    padding-bottom: 10px;
}

.group h3 {
    font-size: 1.16rem;
    margin-bottom: 14px;
}

.field {
    display: block;
    margin-bottom: 12px;
}

.label {
    display: inline-block;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--text-1);
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--border-1);
    border-radius: 11px;
    padding: 10px 12px;
    color: var(--text-1);
    background: var(--bg-1);
    font: inherit;
    transition: border-color 130ms ease, box-shadow 130ms ease, background-color 130ms ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-3);
}

textarea {
    resize: vertical;
    min-height: 88px;
    max-height: 200px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold-700);
    box-shadow: 0 0 0 4px rgba(255, 216, 100, 0.45);
}

input:disabled,
select:disabled,
textarea:disabled {
    color: var(--text-disabled);
    background: var(--bg-2);
    border-color: var(--border-1);
    cursor: not-allowed;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--gold-700);
}

.choices {
    display: grid;
    gap: 8px;
}

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

.choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid var(--border-1);
    border-radius: 10px;
    padding: 8px 10px;
    background: var(--bg-2);
    cursor: pointer;
    font-size: 0.93rem;
    color: var(--text-2);
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.choice:hover {
    border-color: var(--gold-700);
    background: rgba(215, 150, 22, 0.1);
}

.choice:has(input:checked) {
    border-color: var(--gold-700);
    background: rgba(215, 150, 22, 0.1);
    box-shadow: inset 0 0 0 1px rgba(155, 92, 10, 0.22);
}

.choice input {
    margin-top: 3px;
}

.hint {
    display: block;
    margin-top: 6px;
    color: var(--text-3);
    font-size: 0.82rem;
}

.error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: var(--text-2);
    font-size: 0.82rem;
}

.error::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--danger-500);
    flex-shrink: 0;
}

.field:has(.error) input[type="text"],
.field:has(.error) input[type="email"],
.field:has(.error) input[type="date"],
.field:has(.error) select,
.field:has(.error) textarea {
    border-color: var(--danger-500);
    box-shadow: 0 0 0 3px rgba(225, 16, 2, 0.16);
}

.person-block {
    margin-top: 16px;
    border: 1px solid var(--border-1);
    border-radius: 14px;
    padding: 12px;
    background: var(--bg-2);
}

.person-block h4 {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.person-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
    font-size: 0.93rem;
    color: var(--text-2);
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.warning {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--danger-500);
    border-left-width: 3px;
    background: rgba(225, 16, 2, 0.08);
    color: var(--text-2);
}

.warning p {
    margin: 0 0 7px;
    font-weight: 700;
    color: var(--text-1);
}

.warning ul {
    margin: 0;
    padding-left: 18px;
}

.btn-submit {
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
}

.btn-submit:disabled {
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    color: var(--text-disabled);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.status {
    margin: 10px 0 0;
    font-size: 0.9rem;
}

.status.ok {
    color: var(--gold-700);
}

.status.error {
    color: var(--danger-500);
}

.submit-success {
    padding: 22px 20px 20px;
    display: grid;
    gap: 14px;
}

.submit-success__badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.14);
    color: #15803d;
    font-size: 1.3rem;
    font-weight: 700;
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.submit-success__title {
    font-size: 1.45rem;
}

.submit-success__lead {
    margin: 0;
    color: var(--text-2);
}

.submit-success__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.submit-success__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 160ms ease, filter 160ms ease;
}

.submit-success__link:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
    color: #fff;
    text-decoration: none;
}

.submit-success__link--telegram {
    background: linear-gradient(135deg, #229ed9, var(--tg-500));
    border-color: rgba(34, 158, 217, 0.45);
}

.submit-success__link--whatsapp {
    background: linear-gradient(135deg, #1fa855, var(--wa-500));
    border-color: rgba(37, 211, 102, 0.45);
}

.submit-success__deal {
    margin: 0;
    font-size: 0.96rem;
    color: var(--text-2);
}

.submit-success__deal strong {
    color: var(--text-1);
    font-size: 1rem;
}

.submit-success__notes {
    margin: 0;
    padding-left: 18px;
    color: var(--text-2);
    display: grid;
    gap: 6px;
    font-size: 0.92rem;
}

.submit-success__notes a {
    font-weight: 700;
}

.submit-success__again {
    width: 100%;
}

.submit-success__signoff {
    margin: 0;
    color: var(--text-3);
    font-size: 0.9rem;
}

.consultant {
    margin: 16px 20px 20px;
    border-top: 1px solid var(--border-2);
    padding-top: 14px;
    display: flex;
    gap: 12px;
}

.avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    flex-shrink: 0;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.avatar::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger-500);
    border: 1px solid var(--bg-1);
    right: 4px;
    top: 4px;
}

.consultant-copy strong {
    display: block;
}

.consultant-copy span {
    display: block;
    color: var(--text-3);
    font-size: 0.88rem;
}

.consultant-copy p {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: var(--text-2);
}

.site-footer {
    background: var(--bg-dark);
    color: #fff;
    margin-top: 36px;
}

.footer-middle {
    padding: 36px 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-col h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.2rem;
}

.footer-logo {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 50%;
}

.footer-note {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer-socials {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

.footer-socials a:hover {
    background: #e30613;
    border-color: #e30613;
}

.footer-col--links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-col--links a,
.footer-col--contacts a {
    color: #fff;
}

.footer-col--links a:hover,
.footer-col--contacts a:hover {
    color: #e30613;
}

.footer-col--contacts {
    font-style: normal;
}

.footer-locale {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.footer-locale p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.footer-locale .locale-switch {
    justify-self: center;
    width: max-content;
}

.cookie-open {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    cursor: pointer;
}

.cookie-open:hover {
    border-color: #e30613;
    color: #e30613;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

[data-cookie-banner][hidden] {
    display: none !important;
}

.cookie-banner__body h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.cookie-banner__body p {
    margin: 0;
    color: var(--text-2);
}

.cookie-banner__meta {
    margin-top: 8px;
    font-size: 0.9rem;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.reveal {
    animation: rise 0.55s ease both;
}

.story.reveal,
.home-placeholder.reveal {
    animation-delay: 40ms;
}

.form-card.reveal,
.home-categories.reveal {
    animation-delay: 120ms;
}

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

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

    .form-card {
        position: static;
    }

    .lead-form {
        max-height: none;
    }

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

    .site-header__row {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .page {
        padding: 18px 12px 24px;
    }

    .site-header__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav__list {
        justify-content: flex-start;
    }

    .main-nav__dropdown ul {
        position: static;
        min-width: 0;
        margin-top: 6px;
    }

    .choices-columns,
    .split,
    .person-grid,
    .category-grid,
    .footer-grid,
    .submit-success__actions,
    .cookie-banner {
        grid-template-columns: 1fr;
    }

    .story,
    .home-hero,
    .home-placeholder,
    .home-categories,
    .service-placeholder {
        padding: 20px 16px;
    }

    .form-head,
    .lead-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .consultant {
        margin-left: 16px;
        margin-right: 16px;
    }

    .cookie-banner {
        display: block;
    }

    .cookie-banner__actions {
        margin-top: 12px;
        flex-wrap: wrap;
    }
}
