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

:root {
    --bg: #f5f0e8;
    --bg-card: #faf8f4;
    --fg: #312c27;
    --fg-muted: #7a6e65;
    --border: #e3d9c4;
    --primary: #c97b4b;
    --primary-hover: #b36b3c;
    --primary-fg: #ffffff;
    --muted: #ece7db;
    --radius: 0.75rem;
    --radius-xl: 1rem;
    --shadow-sm: 0 1px 3px rgba(49, 44, 39, 0.08);
    --shadow-md: 0 4px 12px rgba(49, 44, 39, 0.1);
    --shadow-lg: 0 8px 24px rgba(49, 44, 39, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.serif {
    font-family: Georgia, 'Times New Roman', serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: 720px;
}

.container--form {
    max-width: 480px;
}


header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(227, 217, 196, 0.6);
    background-color: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.75;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg-muted);
    transition: color 0.2s;
}

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


footer {
    border-top: 1px solid var(--border);
    background-color: var(--bg-card);
    padding: 3rem 0;
}

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

.footer-brand .logo {
    display: block;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--fg-muted);
    line-height: 1.7;
}

.footer-col h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--fg);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col ul li {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

.footer-col ul li a {
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--fg);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--fg-muted);
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    border: none;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background-color: var(--primary);
    color: var(--primary-fg);
    box-shadow: 0 2px 8px rgba(201, 123, 75, 0.3);
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(201, 123, 75, 0.35);
}

.btn--lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: calc(var(--radius) + 2px);
}

.btn--full {
    width: 100%;
}


.section {
    padding: 5rem 0;
}

.section--alt {
    background-color: var(--bg-card);
}

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: normal;
    margin-bottom: 1rem;
    color: var(--fg);
    line-height: 1.3;
}

.section-header p {
    color: var(--fg-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}


.hero {
    padding: 4rem 0 6rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-text h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: normal;
    line-height: 1.2;
    color: var(--fg);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--fg-muted);
    line-height: 1.75;
    max-width: 440px;
}

.hero-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}


.for-whom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.for-whom-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
}

.for-whom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.objections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.objection h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--fg);
}

.objection p {
    color: var(--fg-muted);
    line-height: 1.7;
}


.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.gallery-item {
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item-image {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item-image img {
    transform: scale(1.04);
}

.gallery-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.gallery-item p {
    font-size: 0.875rem;
    color: var(--fg-muted);
}


.how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.how-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    order: -1;
}

.how-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.how-steps h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: normal;
    margin-bottom: 0.5rem;
    color: var(--fg);
    line-height: 1.3;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(201, 123, 75, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-body h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--fg);
}

.step-body p {
    font-size: 0.9375rem;
    color: var(--fg-muted);
    line-height: 1.65;
}


.form-section {
    padding: 6rem 0;
}

.form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
}

.form-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-card-header h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.4rem, 2.5vw, 1.875rem);
    font-weight: normal;
    margin-bottom: 0.75rem;
    color: var(--fg);
}

.form-card-header p {
    font-size: 0.9375rem;
    color: var(--fg-muted);
    line-height: 1.65;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg);
}

.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.9375rem;
    font-family: inherit;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder {
    color: var(--fg-muted);
    opacity: 0.7;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 123, 75, 0.15);
}

.form-group input.error {
    border-color: #d94f4f;
}

.form-error {
    font-size: 0.8rem;
    color: #d94f4f;
    margin-top: 0.2rem;
    display: none;
}

.form-error.visible {
    display: block;
}

.form-note {
    font-size: 0.75rem;
    color: var(--fg-muted);
    text-align: center;
    margin-top: 1rem;
}

.form-note a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-note a:hover {
    color: var(--fg);
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1.125rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(49, 44, 39, 0.08);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateY(120%);
    pointer-events: none;
}

.cookie-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.cookie-text {
    font-size: 0.875rem;
    color: var(--fg-muted);
    line-height: 1.6;
    padding-right: 2rem;
}

.cookie-text a {
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.cookie-text a:hover {
    color: var(--fg);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fg-muted);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cookie-close:hover {
    color: var(--fg);
}


.success-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 4rem 1.5rem;
}

.success-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.success-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(201, 123, 75, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 2rem;
    height: 2rem;
}

.success-card h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.875rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: var(--fg);
}

.success-card p {
    color: var(--fg-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}


.legal-page {
    padding: 4rem 0 6rem;
}

.legal-page h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: normal;
    margin-bottom: 0.5rem;
    color: var(--fg);
}

.legal-date {
    font-size: 0.875rem;
    color: var(--fg-muted);
    margin-bottom: 2.5rem;
}

.legal-body section {
    margin-bottom: 2rem;
}

.legal-body h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--fg);
}

.legal-body p {
    color: var(--fg-muted);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.legal-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--fg-muted);
    line-height: 1.75;
}

.legal-body ul li {
    margin-bottom: 0.4rem;
}

.legal-requisites {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 0.75rem;
}

.legal-requisites p {
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
}

.legal-requisites p:last-child {
    margin-bottom: 0;
}


.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


@media (min-width: 600px) {
    .cookie-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-close {
        position: static;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 5rem 0 8rem;
    }

    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }

    .for-whom-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .how-image {
        order: 0;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    }

    .form-card {
        padding: 3rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
}
