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

:root {
    --color-primary: #f4b41a;
    --color-primary-light: #ffc738;
    --color-primary-muted: rgba(244, 180, 26, 0.1);
    --color-text: #1a1a1a;
    --color-text-secondary: #4a4a4a;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f7f5;
    --color-border: #e5e5e5;
    --color-dark: #1f1f1f;
    --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Unbounded', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Scroll animations */
.animate-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scroll.animate-fade {
    transform: translateY(0);
}

.animate-scroll.animate-fade.animate-out {
    opacity: 0;
    transform: translateY(30px);
}

.animate-scroll.animate-fade.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-scroll.animate-slide-left {
    transform: translateX(-40px);
}

.animate-scroll.animate-slide-left.animate-out {
    opacity: 0;
    transform: translateX(-40px);
}

.animate-scroll.animate-slide-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-scroll.animate-slide-right {
    transform: translateX(40px);
}

.animate-scroll.animate-slide-right.animate-out {
    opacity: 0;
    transform: translateX(40px);
}

.animate-scroll.animate-slide-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-scroll.animate-scale {
    transform: scale(0.95);
}

.animate-scroll.animate-scale.animate-out {
    opacity: 0;
    transform: scale(0.95);
}

.animate-scroll.animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Header */
.header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-text);
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

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

.header-phone {
    text-align: right;
}

.header-phone a {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.header-phone a:hover {
    color: var(--color-primary);
}

.header-schedule {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-light);
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Hero */
.hero {
    position: relative;
    padding: 100px 0 120px;
    background: var(--color-bg-alt);
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    z-index: 1;
}

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

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    color: var(--color-text);
}

.hero-lead {
    font-size: 20px;
    line-height: 1.45;
    color: var(--color-text);
    margin-bottom: 24px;
}

.hero-logos-top {
    display: none;
}

.hero-logos {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-30deg);
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    overflow: hidden;
}

.hero-marquee {
    position: relative;
    overflow: visible;
    padding: 30px 0;
}

.hero-marquee::before,
.hero-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.hero-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-alt) 0%, var(--color-bg-alt) 30%, transparent 100%);
}

.hero-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-alt) 0%, var(--color-bg-alt) 30%, transparent 100%);
}

.hero-marquee-track {
    display: flex;
    gap: 80px;
    animation: marquee-right 25s linear infinite;
    width: fit-content;
}

.hero-marquee-reverse .hero-marquee-track {
    animation: marquee-left 25s linear infinite;
}

.hero-marquee img {
    height: 120px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

@keyframes marquee-right {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes marquee-left {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* Section common */
.section {
    padding: 80px 0;
}

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

.section-dark {
    background: var(--color-dark);
    color: #fff;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-dark .section-header h2 {
    color: #fff;
}

.section-header p {
    font-size: 16px;
    color: var(--color-text-secondary);
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.7);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    counter-reset: step;
}

.step-item {
    position: relative;
    padding: 24px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    counter-increment: step;
}

.step-item::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step-item h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-item p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-card {
    padding: 32px 28px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    transition: background var(--transition);
}

.advantage-card:hover {
    background: rgba(255,255,255,0.08);
}

.advantage-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    color: var(--color-primary-light);
}

.advantage-card h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.advantage-card p,
.advantage-card li {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.advantage-card ul {
    list-style: none;
    padding: 0;
}

.advantage-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.advantage-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-primary-light);
    border-radius: 50%;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.review-card {
    padding: 28px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.review-card blockquote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    font-size: 15px;
    font-weight: 600;
}

.review-role {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Contact */
.contact {
    padding: 80px 0;
    background: var(--color-primary);
}

.contact .section-header h2,
.contact .section-header p {
    color: #fff;
}

.contact .section-header p {
    opacity: 0.9;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.form-checkbox label {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

.contact-form .btn {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
}

.form-error {
    margin-top: 6px;
    font-size: 13px;
    color: #c62828;
}

.form-success {
    text-align: center;
    padding: 48px 32px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    max-width: 480px;
    margin: 0 auto;
}

.form-success p {
    font-size: 17px;
    color: var(--color-text);
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: #fff;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-links a:hover {
    color: #fff;
}

.footer-phone a {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.footer-phone a:hover {
    color: var(--color-primary-light);
}

.footer-copy {
    text-align: center;
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* Privacy page */
.privacy {
    padding: 80px 0;
}

.privacy h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
}

.privacy-content {
    max-width: 720px;
}

.privacy-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 12px;
}

.privacy-content p {
    margin-bottom: 12px;
    color: var(--color-text-secondary);
}

.privacy-content ul {
    margin: 12px 0 12px 24px;
    color: var(--color-text-secondary);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-logos {
        opacity: 0.3;
    }
    
    .features-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================================
   MOBILE-FIRST REDESIGN (max-width: 768px)
   =========================================== */
@media (max-width: 768px) {
    /* --- Header: компактный, удобный для пальцев --- */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--color-bg);
        box-shadow: var(--shadow-md);
    }
    
    .header-inner {
        flex-wrap: nowrap;
        justify-content: center;
        height: 60px;
        padding: 0;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .nav {
        display: none;
    }
    
    .header-phone {
        display: none;
    }
    
    body {
        padding-top: 60px;
    }
    
    /* --- Hero: полноэкранный с параллаксом --- */
    .hero {
        min-height: 100vh;
        height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
        scroll-snap-align: start;
        position: relative;
        overflow: hidden;
    }
    
    
    .hero .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        width: 100%;
        position: relative;
        z-index: 2;
    }
    
    .hero-logos-top {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        transform: rotate(12deg);
        width: 100%;
        gap: 16px;
        opacity: 0.3;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
    }
    
    .hero-logos-top .hero-marquee {
        padding: 12px 0;
    }
    
    .hero-logos-top .hero-marquee::before,
    .hero-logos-top .hero-marquee::after {
        width: 40px;
    }
    
    .hero-logos-top .hero-marquee-track {
        gap: 32px;
    }
    
    .hero-logos-top .hero-marquee img {
        height: 48px;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 20px;
        margin: 32px 0;
        position: relative;
        z-index: 2;
    }
    
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero-lead {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 24px;
        color: var(--color-text-secondary);
    }
    
    .hero-lead br {
        display: none;
    }
    
    .hero-content .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 32px;
        font-size: 16px;
        margin: 0 auto;
    }
    
    .hero-logos {
        position: absolute;
        bottom: 60px;
        left: 0;
        right: 0;
        transform: rotate(-12deg);
        width: 100%;
        gap: 16px;
        opacity: 0.3;
        z-index: 0;
        overflow: hidden;
    }
    
    .hero-marquee {
        padding: 12px 0;
    }
    
    .hero-marquee::before,
    .hero-marquee::after {
        width: 40px;
    }
    
    .hero-marquee-track {
        gap: 32px;
    }
    
    .hero-marquee img {
        height: 48px;
    }
    
    /* --- Секции: больше воздуха, крупнее тапы --- */
    .section {
        padding: 48px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
        padding: 0 8px;
    }
    
    .section-header h2 {
        font-size: 22px;
        line-height: 1.25;
    }
    
    .section-header p {
        font-size: 15px;
        margin-top: 8px;
    }
    
    /* --- Шаги: горизонтальный скролл --- */
    .steps-grid {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding: 0 20px 16px;
        margin: 0 -20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .steps-grid::-webkit-scrollbar {
        display: none;
    }
    
    .step-item {
        flex: 0 0 75vw;
        max-width: 280px;
        padding: 24px 20px;
        background: var(--color-bg);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }
    
    .step-item::before {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .step-item h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .step-item p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* --- Карточки: вертикальный стек --- */
    .features-grid,
    .advantages-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 4px;
    }
    
    .feature-card,
    .advantage-card {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }
    
    .feature-icon,
    .advantage-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }
    
    .feature-card h3,
    .advantage-card h4 {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .feature-card p,
    .advantage-card p {
        font-size: 14px;
        line-height: 1.55;
    }
    
    /* --- Отзывы: горизонтальный скролл --- */
    .reviews-grid {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding: 0 20px 16px;
        margin: 0 -20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .reviews-grid::-webkit-scrollbar {
        display: none;
    }
    
    .review-card {
        flex: 0 0 85vw;
        max-width: 320px;
        padding: 24px 20px;
    }
    
    .review-card blockquote {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    .review-author {
        font-size: 15px;
    }
    
    .review-role {
        font-size: 13px;
    }
    
    /* --- Форма: удобная для пальцев --- */
    .contact {
        padding: 48px 0;
    }
    
    .contact-form {
        padding: 24px 20px;
        margin: 0;
        border-radius: var(--radius-lg);
    }
    
    .form-input,
    .form-textarea {
        padding: 16px;
        font-size: 16px;
        border-radius: var(--radius-md);
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-checkbox {
        gap: 12px;
    }
    
    .form-checkbox label {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        margin-top: 8px;
    }
    
    /* --- Footer: компактный --- */
    .footer {
        padding: 32px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-logo {
        font-size: 16px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-phone a {
        font-size: 16px;
    }
    
    .footer-copy {
        font-size: 12px;
        margin-top: 20px;
    }
    
    /* --- Анимации: упрощённые для производительности --- */
    .animate-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===========================================
   SMALL PHONES (max-width: 380px)
   =========================================== */
@media (max-width: 380px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-lead {
        font-size: 15px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .step-item,
    .review-card {
        flex: 0 0 85vw;
    }
}
