* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* Modern Reset & Variables */
:root {
    --primary: #0f2b3d;
    --primary-dark: #091e2c;
    --secondary: #c49a6c;
    --secondary-light: #e2c2a2;
    --accent: #d4af7a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.02);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --radius-xl: 1.5rem;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--gray-600);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 50;
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 1.5rem;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--gray-800);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fef9f1 0%, #ffffff 100%);
    padding: 4rem 1.5rem;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    background-color: var(--secondary-light);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin: 1.5rem 0 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-light);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* About */
.about-flex {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
}

.about-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-list i {
    color: var(--secondary);
    font-size: 1.25rem;
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.advantage-item i {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    border-left: 4px solid var(--secondary);
}

.review-text {
    font-style: italic;
    margin: 1rem 0;
    color: var(--gray-600);
}

.review-author {
    font-weight: 700;
    margin-top: 1rem;
}

/* Contact */
.contact-grid {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.contact-info {
    flex: 1;
}

.contact-details {
    margin: 2rem 0;
}

.contact-details p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.25rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.2);
}

footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Privacy */
.policy-section {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.policy-header {
    margin-bottom: 2rem;
}

.policy-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.policy-header p {
    color: var(--gray-600);
    border-left: 3px solid var(--secondary);
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.policy-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.policy-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--primary);
}

.policy-content h2:first-of-type {
    margin-top: 0;
}

.policy-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: var(--gray-800);
}

.policy-content p,
.policy-content li {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.policy-content ul,
.policy-content ol {
    margin: 0.75rem 0 1rem 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

.policy-content strong {
    color: var(--primary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.2s;
}

.back-link:hover {
    gap: 0.75rem;
    color: var(--primary);
}

/* Кнопка "Наверх" */
.scrollup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0;
    /* скрываем текст "Наверх" */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scrollup::before {
    content: "\f077";
    /* иконка стрелки вверх (Font Awesome) */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
}

.scrollup:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.scrollup.show {
    opacity: 1;
    visibility: visible;
}



/* Компенсация фиксированной шапки при якорных переходах */
html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 85px;
}

/* --- Настройка внешнего вида Yandex SmartCaptcha --- */
/* Исправление обрезания капчи */
.smart-captcha,
#captcha-container {
    height: auto !important;
    min-height: 85px;
    overflow: visible;
    margin: 15px 0;
}

.smart-captcha iframe {
    margin-bottom: 1px;
}

.contact-form,
.form-group {
    overflow: visible;
}

/* Стили сообщений формы */
#form-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s;
}

#form-message.success {
    background-color: #e6f7e6;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
    display: block;
}

#form-message.error {
    background-color: #ffe6e6;
    color: #c62828;
    border-left: 4px solid #c62828;
    display: block;
}

#form-message.info {
    background-color: #e6f3ff;
    color: #0f2b3d;
    border-left: 4px solid var(--secondary);
    display: block;
}

.field-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.field-error {
    border-color: #c62828 !important;
    background-color: #ffe6e6;
}

.error-message {
    color: #c62828;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}


/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 1.5rem 0;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-grid {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-grid {
        padding: 1.5rem;
    }

    .policy-content {
        padding: 1.25rem;
    }

    .scrollup {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .scrollup::before {
        font-size: 1.2rem;
    }

    section[id] {
        scroll-margin-top: 100px;
    }

}

@media (max-width: 428px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .about-flex {
        display: block;
    }
}

/* animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}