/* ============================================ */
/*              ОБЩИЕ СТИЛИ                   */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #F3F9F1;
    --accent-teal: #00B295;
    --accent-coral: #FF6B6B;
    --heading-color: #1A1A1A;
    --text-color: #444444;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #00B295 0%, #FF6B6B 100%);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* ============================================ */
/*              ТИПОГРАФИЯ                    */
/* ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-coral);
    transform: translateY(-2px);
}

/* ============================================ */
/*              КНОПКИ                        */
/* ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 178, 149, 0.3);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--accent-teal);
    border: 2px solid var(--accent-teal);
}

.btn-secondary:hover {
    background: var(--accent-teal);
    color: var(--white);
}

.btn-call {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-call:hover {
    background: white;
    color: var(--accent-teal);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

/* ============================================ */
/*              HEADER                        */
/* ============================================ */

.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: rotate(360deg);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: var(--bg-primary);
    transform: translateY(-2px);
}

/* ============================================ */
/*              MAIN CONTENT                  */
/* ============================================ */

.main-content {
    margin-top: 80px;
}

.section {
    padding: 4rem 0;
    scroll-margin-top: 100px; /* Отступ для якорей */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================ */
/*              HERO SECTION                  */
/* ============================================ */

.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/I8166U.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    background: var(--white);
    color: var(--accent-teal);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero .btn:hover {
    background: var(--bg-primary);
    transform: translateY(-3px) scale(1.05);
}

/* ============================================ */
/*              ABOUT SECTION                 */
/* ============================================ */

.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--accent-teal);
    margin-bottom: 1.5rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* ============================================ */
/*              ADVANTAGES SECTION            */
/* ============================================ */

.advantages {
    background: var(--bg-primary);
}

.advantages h2 {
    text-align: center;
    color: var(--accent-teal);
    margin-bottom: 3rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 178, 149, 0.2);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

/* ============================================ */
/*              SERVICES SECTION              */
/* ============================================ */

.services {
    background: var(--white);
}

.services h2 {
    text-align: center;
    color: var(--accent-coral);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 178, 149, 0.15);
}

.service-card h3 {
    color: var(--accent-teal);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-card p {
    position: relative;
    z-index: 2;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-coral);
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

/* ============================================ */
/*              PROCESS SECTION               */
/* ============================================ */

.process {
    background: var(--bg-primary);
}

.process h2 {
    text-align: center;
    color: var(--accent-teal);
    margin-bottom: 3rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.step:hover {
    transform: translateY(-5px);
}

.step h3 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.step p {
    line-height: 1.5;
    font-size: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* ============================================ */
/*              TESTIMONIALS SECTION          */
/* ============================================ */

.testimonials {
    background: var(--white);
}

.testimonials h2 {
    text-align: center;
    color: var(--accent-coral);
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    color: var(--accent-teal);
    font-weight: 600;
}

/* ============================================ */
/*              FORM SECTION                  */
/* ============================================ */

.contact-form {
    background: var(--gradient);
    color: var(--white);
}

.contact-form h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 2rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--heading-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-teal);
}

/* ============================================ */
/*              CUSTOM RADIO & CHECKBOX      */
/* ============================================ */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.service-radio-option {
    position: relative;
    display: block;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.service-radio-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-radio-option:hover {
    border-color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 178, 149, 0.15);
}

.service-radio-option:hover::before {
    opacity: 0.05;
}

.service-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-radio-option input[type="radio"]:checked + .service-radio-content {
    color: var(--heading-color);
}

.service-radio-option input[type="radio"]:checked + .service-radio-content .service-radio-indicator {
    background: var(--gradient);
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 178, 149, 0.2);
}

.service-radio-option input[type="radio"]:checked + .service-radio-content .service-radio-indicator::after {
    transform: scale(1);
    opacity: 1;
}

/* Современные браузеры с поддержкой :has() */
.service-radio-option:has(input[type="radio"]:checked) {
    border-color: var(--accent-teal);
    background: linear-gradient(135deg, var(--bg-primary) 0%, #e8f5f3 100%);
    box-shadow: 0 8px 30px rgba(0, 178, 149, 0.2);
    transform: translateY(-1px);
}

/* Альтернатива для старых браузеров */
.service-radio-option.checked {
    border-color: var(--accent-teal);
    background: linear-gradient(135deg, var(--bg-primary) 0%, #e8f5f3 100%);
    box-shadow: 0 8px 30px rgba(0, 178, 149, 0.2);
    transform: translateY(-1px);
}

.service-radio-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-radio-indicator {
    width: 24px;
    height: 24px;
    border: 3px solid #cbd5e0;
    border-radius: 50%;
    background: #ffffff;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-radio-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-radio-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--heading-color);
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.service-radio-price {
    font-weight: 700;
    color: var(--accent-coral);
    font-size: 1rem;
    margin-left: auto;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    border-color: var(--accent-teal);
    background: #f0f8f7;
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-option .checkmark-box {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 1rem;
    margin-top: 0.1rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-option input:checked ~ .checkmark-box {
    background-color: var(--accent-teal);
    border-color: var(--accent-teal);
}

.checkbox-option .checkmark-box:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-option input:checked ~ .checkmark-box:after {
    display: block;
}

.checkbox-option .checkbox-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #000000 !important; /* Черный цвет текста */
    cursor: pointer;
}

.checkbox-option .checkbox-text a {
    color: var(--accent-teal);
    text-decoration: underline;
}

.checkbox-option .checkbox-text a:hover {
    color: var(--accent-coral);
}

/* ============================================ */
/*              FOOTER                        */
/* ============================================ */

.footer {
    background: var(--heading-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.6;
}

.legal-links {
    list-style: none;
}

.legal-links li {
    margin-bottom: 0.5rem;
}

.legal-links a {
    color: var(--white);
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent-teal);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--accent-teal);
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

/* ============================================ */
/*              COOKIE BANNER                 */
/* ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    z-index: 10000;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-accept {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    transform: translateY(-2px);
}

.btn-info {
    color: var(--accent-teal);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent-teal);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: var(--accent-teal);
    color: var(--white);
}

/* ============================================ */
/*              ANIMATIONS                    */
/* ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================ */
/*              RESPONSIVE DESIGN             */
/* ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .advantages-grid,
    .services-grid,
    .process-steps,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-image {
        height: 150px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .form-container {
        margin: 0 1rem;
        padding: 2rem;
    }
    
    .service-radio-option {
        padding: 1rem;
    }
    
    .service-radio-text {
        font-size: 1rem;
    }
    
    .service-radio-price {
        font-size: 0.9rem;
    }
    
    .checkbox-option {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .section {
        padding: 3rem 0;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
        width: 100%;
    }
    
    .section {
        padding: 2rem 0;
        width: 100%;
    }
    
    .hero {
        padding: 3rem 0;
        width: 100%;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .btn, .btn-call {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: auto;
        max-width: 100%;
    }
    
    .form-container {
        margin: 0 0.5rem;
        padding: 1.5rem;
        width: calc(100% - 1rem);
        box-sizing: border-box;
    }
    
    .service-radio-option {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .service-radio-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .service-radio-indicator {
        order: -1;
        align-self: flex-start;
    }
    
    .service-radio-text {
        font-size: 1rem;
        order: 1;
    }
    
    .service-radio-price {
        font-size: 1.1rem;
        font-weight: 700;
        order: 2;
        margin-left: 0;
        color: var(--accent-coral);
    }
    
    .checkbox-option {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .nav-container {
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
} 