/* ==========================================
   CSS RESET AND BASE STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Учитываем высоту фиксированного хедера */
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FAF3DD;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   COLORS (CSS VARIABLES)
   ========================================== */

:root {
    --primary-bg: #FAF3DD;
    --accent-blue: #3C4CAD;
    --accent-coral: #F25C54;
    --heading-color: #2D3142;
    --block-bg: #9FD8CB;
    --text-color: #333;
    --white: #ffffff;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-coral);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-coral);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(242, 92, 84, 0.3);
}

.btn-primary:hover {
    background-color: #e04e47;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 92, 84, 0.4);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background-color: var(--accent-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* ==========================================
   NAVBAR
   ========================================== */

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-coral);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* CSS-only mobile navigation */
.nav-toggle-checkbox {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.nav-toggle-label span {
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation */
.nav-toggle-checkbox:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle-checkbox:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle-checkbox:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #f0e7c7 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInLeft 1s ease 0.2s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.highlight {
    color: var(--accent-coral);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-coral);
    animation: expandWidth 1s ease 1.5s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    animation: fadeInLeft 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInLeft 1s ease 0.6s both;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.8s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* ==========================================
   SECTION STYLES
   ========================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    animation: fadeInLeft 0.8s ease;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-coral);
    font-weight: bold;
}

.about-image {
    animation: fadeInRight 0.8s ease;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   BENEFITS SECTION
   ========================================== */

.benefits {
    padding: 80px 0;
    background-color: var(--block-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-card:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.4s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.6s;
}

.benefit-icon {
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--heading-color);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: var(--primary-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-coral);
    font-weight: bold;
}

/* ==========================================
   PRICING SECTION
   ========================================== */

.pricing {
    padding: 80px 0;
    background-color: var(--block-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.price-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

.price-card:nth-child(2) {
    animation-delay: 0.2s;
}

.price-card:nth-child(3) {
    animation-delay: 0.4s;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.price-card.featured {
    border: 3px solid var(--accent-coral);
    transform: scale(1.05);
}

.popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-coral);
    color: var(--white);
    padding: 0.5rem 2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price-header h3 {
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--accent-coral);
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0.5rem;
}

.period {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.price-features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-coral);
    font-weight: bold;
}

.price-description {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */

.testimonials {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--primary-bg);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.4s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.author-info h4 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.author-info p {
    color: var(--accent-blue);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact {
    padding: 80px 0;
    background-color: var(--block-bg);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(242, 92, 84, 0.1);
}

.form-checkboxes {
    margin: 2rem 0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Form errors styling */
.form-errors {
    background-color: #ffebee;
    border: 2px solid var(--accent-coral);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: slideInDown 0.5s ease;
}

.form-errors h4 {
    color: var(--accent-coral);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-errors ul {
    margin: 0;
    padding-left: 1.5rem;
}

.form-errors li {
    color: var(--accent-coral);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: var(--heading-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.legal-links,
.services-links {
    list-style: none;
}

.legal-links li,
.services-links li {
    margin-bottom: 0.5rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   COOKIE POPUP
   ========================================== */

.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    z-index: 10000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s ease;
    max-width: 500px;
}

.cookie-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-accept {
    background-color: var(--accent-coral);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background-color: #e04e47;
}

.btn-more {
    color: var(--accent-blue);
    font-size: 0.9rem;
    text-decoration: underline;
}

/* ==========================================
   LEGAL PAGES
   ========================================== */

.legal-page {
    padding: 120px 0 80px;
    background-color: var(--white);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

.legal-content h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    font-size: 1.8rem;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.last-updated {
    background-color: var(--block-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--primary-bg);
    border-radius: 8px;
    overflow: hidden;
}

.cookies-table th,
.cookies-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cookies-table th {
    background-color: var(--accent-blue);
    color: var(--white);
    font-weight: 600;
}

.legal-actions {
    margin-top: 3rem;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================
   THANKS PAGE
   ========================================== */

.thanks-page {
    padding: 120px 0 80px;
    background-color: var(--primary-bg);
    text-align: center;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

.thanks-icon {
    margin-bottom: 2rem;
    animation: zoomIn 0.8s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thanks-content h1 {
    margin-bottom: 1.5rem;
    color: var(--accent-coral);
}

.thanks-message {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.thanks-info,
.contact-reminder,
.additional-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.next-steps {
    list-style: none;
}

.next-steps li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.next-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--accent-coral);
    color: var(--white);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.next-steps {
    counter-reset: step-counter;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.thanks-actions {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.info-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* CSS-only Navigation */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-toggle-checkbox:checked ~ .nav-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: flex;
    }

    .nav-toggle-label {
        display: flex;
    }

    /* Закрытие меню при клике на ссылку */
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
        display: block;
        width: 100%;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Автоматическое закрытие меню при клике на любой элемент (CSS hack) */
    .nav-menu .nav-link:focus {
        animation: closeMenu 0.1s ease 0.2s forwards;
    }

    @keyframes closeMenu {
        to {
            pointer-events: none;
        }
    }

    /* Улучшение для мобильных устройств */
    @media (max-width: 768px) {
        .nav-toggle-checkbox:checked ~ .nav-menu .nav-link:active {
            animation: autoClose 0.1s ease forwards;
        }

        @keyframes autoClose {
            100% {
                opacity: 0;
                pointer-events: none;
            }
        }
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Sections */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card.featured {
        transform: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Form */
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .thanks-actions {
        flex-direction: column;
    }

    .legal-actions {
        flex-direction: column;
    }

    .info-links {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-accept {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .benefit-card,
    .service-card {
        margin: 0 1rem;
    }

    .price-card {
        margin: 0 1rem;
    }

    .contact-form {
        margin: 0 1rem;
    }
}

/* ==========================================
   ANIMATIONS AND TRANSITIONS
   ========================================== */

/* CSS-only animations на основе задержек */
@media (prefers-reduced-motion: no-preference) {
    .benefit-card,
    .service-card,
    .price-card,
    .testimonial-card {
        animation: fadeInUpDelayed 0.8s ease both;
    }

    .benefit-card:nth-child(1) { animation-delay: 0.1s; }
    .benefit-card:nth-child(2) { animation-delay: 0.3s; }
    .benefit-card:nth-child(3) { animation-delay: 0.5s; }
    .benefit-card:nth-child(4) { animation-delay: 0.7s; }

    .service-card:nth-child(1) { animation-delay: 0.2s; }
    .service-card:nth-child(2) { animation-delay: 0.4s; }
    .service-card:nth-child(3) { animation-delay: 0.6s; }

    .price-card:nth-child(1) { animation-delay: 0.1s; }
    .price-card:nth-child(2) { animation-delay: 0.3s; }
    .price-card:nth-child(3) { animation-delay: 0.5s; }

    .testimonial-card:nth-child(1) { animation-delay: 0.2s; }
    .testimonial-card:nth-child(2) { animation-delay: 0.4s; }
    .testimonial-card:nth-child(3) { animation-delay: 0.6s; }

    @keyframes fadeInUpDelayed {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Button hover effects */
.btn:active {
    transform: scale(0.98);
}

/* Image hover effects */
img {
    transition: all 0.3s ease;
}

/* Enhanced focus styles for accessibility */
*:focus {
    outline: 3px solid rgba(242, 92, 84, 0.5);
    outline-offset: 2px;
}

/* Улучшенные состояния полей формы */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(242, 92, 84, 0.15);
    transform: translateY(-1px);
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #4CAF50;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: var(--accent-coral);
    background-color: rgba(242, 92, 84, 0.05);
}

/* Улучшенные hover эффекты */
.nav-link:hover,
.nav-link:focus {
    color: var(--accent-coral);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Кнопка с состояниями loading */
.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(242, 92, 84, 0.3);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .nav-link::after {
        height: 3px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .cookie-popup,
    .footer {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    .hero {
        background: white;
    }
} 