:root {
    --primary: #0f2a4e;
    --primary-light: #1a3c6e;
    --primary-dark: #081a33;
    --accent: #d4a017;
    --accent-hover: #b8860b;
    --accent-light: #f0c040;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(15, 42, 78, 0.08);
    --shadow-lg: 0 20px 40px -12px rgba(15, 42, 78, 0.18);
    --shadow-xl: 0 30px 60px -15px rgba(15, 42, 78, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 6px 30px rgba(0,0,0,0.35);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo:hover { transform: scale(1.02); }

.logo img {
    height: 52px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-text span { color: var(--accent-light); }

.header-contacts {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-contacts a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.header-contacts a:hover { color: var(--accent-light); }

.btn-header {
    background: var(--accent) !important;
    color: var(--primary-dark) !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.35);
}

.btn-header:hover {
    background: var(--accent-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.5);
}

/* --- Hero --- */
.hero {
    padding: 170px 0 90px;
    background: linear-gradient(135deg, #f8fafc 0%, #e8eef6 50%, #dde5f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(15, 42, 78, 0.06) 0%, transparent 65%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.07) 0%, transparent 65%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-align: center;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 160, 23, 0.55);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 42, 78, 0.25);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--white);
    padding: 44px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.8);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary-light) 100%);
    border-radius: 20px 20px 0 0;
}

.hero-card h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--primary);
    font-weight: 700;
}

.hero-card ul { list-style: none; }

.hero-card ul li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.hero-card ul li:last-child { border-bottom: none; }

.check-icon {
    width: 26px;
    height: 26px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

/* --- Services --- */
.services { padding: 80px 0; background: var(--white); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 620px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(15, 42, 78, 0.25);
}

.service-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.35;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-price {
    font-size: 21px;
    font-weight: 800;
    color: var(--accent);
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.service-price small {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
}

/* --- How it works --- */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #eef2f7 100%);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step {
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: block;
    width: 56px;
    height: 56px;
    line-height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 22px;
    box-shadow: 0 8px 20px rgba(15, 42, 78, 0.3);
}

.step h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
}

.step p { font-size: 14px; color: var(--text-light); }

/* --- CTA --- */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.15) 0%, transparent 60%);
    border-radius: 50%;
}

.cta .container { position: relative; z-index: 2; }

.cta h2 {
    font-size: 38px;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.4);
    font-weight: 800;
}

.cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 160, 23, 0.55);
}

/* --- Contacts --- */
.contacts { padding: 80px 0; background: var(--white); }

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.contact-info h3 {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 800;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 12px;
    transition: all 0.3s;
}

.contact-item:hover {
    background: var(--bg-light);
    transform: translateX(6px);
}

.contact-item .icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(15, 42, 78, 0.2);
}

.contact-item .text a {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item .text a:hover { color: var(--accent); }

.contact-item .text span {
    font-size: 13px;
    color: var(--text-light);
}

.contact-form {
    background: linear-gradient(135deg, var(--bg-light) 0%, #eef2f7 100%);
    padding: 48px 42px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 28px;
    font-weight: 800;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* Подсветка невалидных полей */
.form-group input.input-error,
.form-group textarea.input-error {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

.form-status {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    min-height: 20px;
    transition: all 0.3s;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

/* --- Honeypot (скрытое поле для отлова ботов) --- */
.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* --- Чекбокс согласия на обработку ПД --- */
.form-consent {
    margin-top: 6px;
    margin-bottom: 18px;
}

.form-group label.consent-label,
label.consent-label,
.consent-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0;
    user-select: none;
}

.form-group label.consent-label input[type="checkbox"],
.consent-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0;
}

.consent-label input[type="checkbox"]:hover {
    border-color: var(--accent);
}

.consent-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-color: var(--accent);
}

.consent-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-label span {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-light);
    font-weight: 500;
}

.consent-label a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color 0.2s;
}

.consent-label a:hover {
    color: var(--accent-hover);
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 50px 0 30px;
    text-align: center;
    font-size: 14px;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover { color: var(--accent-light); }

/* --- Scroll to top button --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(212, 160, 23, 0.6);
}

/* --- Animations on scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Страница политики ПД --- */
.privacy-page {
    padding: 140px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.privacy-content h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.privacy-content .privacy-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.privacy-content h2 {
    font-size: 20px;
    color: var(--primary);
    margin: 32px 0 14px;
    font-weight: 700;
}

.privacy-content p,
.privacy-content li {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 12px;
}

.privacy-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.privacy-content ul li {
    margin-bottom: 8px;
}

.privacy-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-content a:hover {
    color: var(--accent-hover);
}

.privacy-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.privacy-back:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero p { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .contacts-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 38px; }
    .section-title h2 { font-size: 34px; }
}

@media (max-width: 640px) {
    .hero { padding: 140px 0 60px; }
    .hero h1 { font-size: 30px; }
    .section-title h2 { font-size: 28px; }
    .header-contacts a:not(.btn-header) { display: none; }
    .services, .how-it-works, .contacts { padding: 60px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 30px 24px; }
    .cta h2 { font-size: 28px; }
    .scroll-top { bottom: 20px; right: 20px; width: 48px; height: 48px; }
    .header-inner { height: 70px; }
    .logo img { height: 42px; }

    .privacy-content {
        padding: 30px 22px;
    }
    .privacy-content h1 { font-size: 24px; }
    .privacy-content h2 { font-size: 18px; }
    .privacy-page { padding: 110px 0 50px; }
}