/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Компенсация высоты sticky header */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1C1C1C;
    background-color: #F1FAF5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #1C1C1C;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #FFFFFF 0%, #F1FAF5 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(23, 73, 77, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #17494D;
    transition: color 0.3s ease;
}

.logo:hover .logo-text {
    color: #F94144;
}

/* Navigation */
.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #17494D;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #F94144;
    background: rgba(249, 65, 68, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F94144, #F9C74F);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #17494D;
    cursor: pointer;
}

.mobile-menu-checkbox {
    display: none;
}

/* Main Content */
.main {
    min-height: calc(100vh - 120px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(23, 73, 77, 0.9), rgba(11, 44, 45, 0.9)), url('./img/aufxvK.jpg') center/cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    scroll-margin-top: 100px; /* Компенсация высоты sticky header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(23, 73, 77, 0.1), rgba(249, 65, 68, 0.1));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #17494D, #0B2C2D);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 73, 77, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #F94144, #F9C74F);
}

.btn-secondary:hover {
    box-shadow: 0 5px 15px rgba(249, 65, 68, 0.4);
}

/* Sections */
.section {
    padding: 4rem 0;
    scroll-margin-top: 100px; /* Компенсация высоты sticky header для якорных ссылок */
}

.section-alt {
    background: linear-gradient(135deg, #FFFFFF 0%, #F1FAF5 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #F94144, #F9C74F);
    transform: translateX(-50%);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(23, 73, 77, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F94144, #F9C74F);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(23, 73, 77, 0.2);
}

.card-icon {
    font-size: 3rem;
    color: #17494D;
    margin-bottom: 1rem;
}

.card-title {
    color: #17494D;
    margin-bottom: 1rem;
}

.card-price {
    font-size: 2rem;
    color: #F94144;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #17494D, #0B2C2D);
    color: white;
    border-radius: 50%;
    line-height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(23, 73, 77, 0.3);
}

.step-title {
    color: #17494D;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.testimonials-image {
    position: relative;
}

.testimonials-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(23, 73, 77, 0.2);
}

.testimonials-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonial {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(23, 73, 77, 0.1);
    position: relative;
    margin-bottom: 1rem;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #F94144;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.testimonial-author {
    font-weight: bold;
    color: #17494D;
}

/* Form */
.form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(23, 73, 77, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #17494D;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #17494D;
    box-shadow: 0 0 0 3px rgba(23, 73, 77, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #17494D;
    margin-top: 2px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.form-checkbox a {
    color: #17494D;
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #17494D, #0B2C2D);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 73, 77, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #17494D, #0B2C2D);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #F9C74F;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #B0D4D7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #F9C74F;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-contact {
    margin-bottom: 0.5rem;
}

.footer-contact strong {
    color: white !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(176, 212, 215, 0.3);
    color: white;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(23, 73, 77, 0.2);
    z-index: 10000;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s ease;
}

.cookie-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-popup-content {
    margin-bottom: 1rem;
}

.cookie-popup-text {
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.9rem;
}

.cookie-popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-popup-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-popup-btn-accept {
    background: linear-gradient(135deg, #17494D, #0B2C2D);
    color: white;
}

.cookie-popup-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(23, 73, 77, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 120px; /* Увеличенная компенсация для мобильного header */
    }
    
    .section,
    .hero {
        scroll-margin-top: 120px; /* Увеличенная компенсация для мобильного header */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 20px;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .mobile-menu-checkbox:checked ~ .nav {
        max-height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .testimonials-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-photo {
        height: 250px;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .cookie-popup-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .card,
    .form {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .form-checkbox {
        flex-direction: column;
        gap: 5px;
    }
    
    .form-checkbox input[type="checkbox"] {
        align-self: flex-start;
        width: 20px;
        height: 20px;
        margin-top: 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: #17494D;
}

.text-secondary {
    color: #F94144;
}

.text-accent {
    color: #F9C74F;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 5px 20px rgba(23, 73, 77, 0.1);
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

.p-3 {
    padding: 3rem;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #c62828;
    animation: fadeInUp 0.5s ease-out;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #2e7d32;
}

.info-message {
    background: #e3f2fd;
    color: #1565c0;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #1565c0;
} 