/* 
 * Main Stylesheet for domain.com
 * Color Palette:
 * - Background: #101820 (ночной уголь)
 * - Primary Accent: #F2AA4C (медово-золотой)
 * - Secondary Accent: #9FEDD7 (свежая мята)
 * - Text: #FFFFFF and #D4D4D4
 */

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Add offset for anchor links */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #101820;
    color: #D4D4D4;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #F2AA4C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #9FEDD7;
}

h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

/* Alternating section backgrounds */
.section:nth-child(odd) {
    background-color: #101820;
}

.section:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #F2AA4C;
    margin: 0.5rem auto 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: #F2AA4C;
    color: #101820;
}

.btn-primary:hover {
    background-color: #fff;
    color: #101820;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 170, 76, 0.3);
}

.btn-secondary {
    background-color: #9FEDD7;
    color: #101820;
}

.btn-secondary:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(159, 237, 215, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #F2AA4C;
    color: #F2AA4C;
}

.btn-outline:hover {
    background-color: #F2AA4C;
    color: #101820;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* --- Header & Navigation --- */
.main-header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background-color: #101820;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 0.75rem;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    color: #F2AA4C;
}

.main-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav .nav-menu li {
    margin-left: 1.5rem;
}

.main-nav .nav-menu a {
    color: #FFFFFF;
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.main-nav .nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F2AA4C;
    transition: width 0.3s ease;
}

.main-nav .nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 10px;
}

.menu-icon span:nth-child(3) {
    top: 20px;
}

/* --- Hero Section --- */
.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(16, 24, 32, 0.85), rgba(16, 24, 32, 0.85)), url('./img/YUrrCX.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #D4D4D4;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #F2AA4C;
}

.about-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #F2AA4C;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #F2AA4C;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(242, 170, 76, 0.2);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(242, 170, 76, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #F2AA4C;
    font-size: 2rem;
}

/* --- Contact Form Section --- */
.contact-section {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: #FFFFFF;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #F2AA4C;
    box-shadow: 0 0 0 2px rgba(242, 170, 76, 0.3);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F2AA4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    background-color: rgba(242, 170, 76, 0.1);
    border: 1px solid #F2AA4C;
    color: #FFFFFF;
    font-weight: 500;
}

.form-select option {
    background-color: #101820;
    color: #FFFFFF;
    padding: 10px;
}

.form-select option:checked,
.form-select option:hover {
    background-color: #F2AA4C;
    color: #101820;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 3px;
}

.form-check-label {
    font-size: 0.9rem;
}

/* --- FAQ Section --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #F2AA4C;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #9FEDD7;
}

.faq-answer {
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

/* --- Footer --- */
.main-footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(16, 24, 32, 0.9) 100%), 
                url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F2AA4C' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #101820, #F2AA4C, #9FEDD7, #F2AA4C, #101820);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-col h3 {
    color: #F2AA4C;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #9FEDD7;
    bottom: -8px;
    left: 0;
}

.contact-list, .legal-links {
    list-style: none;
    padding: 0;
}

.contact-list li, .legal-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.active {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0 1rem 0 0;
    flex: 1;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .main-nav .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        background-color: #101820;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        opacity: 0;
    }
    
    .main-nav .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .menu-toggle:checked ~ .nav-menu {
        height: auto;
        opacity: 1;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg);
        top: 10px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg);
        top: 10px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .contact-section {
        padding: 2rem 1rem;
    }
} 