/* Base Styles */
:root {
    --color-primary: #193549;    /* кобальтовый синий */
    --color-accent: #B4DD7F;     /* лаймово-зелёный */
    --color-secondary: #BFA36F;  /* золотистый серый */
    --color-bg: #F5F3ED;         /* теплый светло-бежевый */
    --color-text: #111111;       /* почти чёрный */
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --content-width: 1280px;
    --header-height: 80px; /* Высота шапки для отступов */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Фикс для внутренних страниц, чтобы шапка не перекрывала контент */
section:first-of-type:not(.hero), 
.policy-content, 
.thank-you {
    padding-top: calc(var(--header-height) + 40px);
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* Header */
.site-header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(245, 243, 237, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    height: var(--header-height);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.logo svg {
    margin-right: 10px;
}

.main-nav .nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: rgba(245, 243, 237, 0.95);
        flex-direction: column;
        padding: 20px;
        clip-path: circle(0px at top right);
        transition: clip-path 0.4s ease;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(5px);
    }
    
    .nav-toggle-label {
        display: block;
    }
    
    .nav-toggle:checked ~ .nav-menu {
        clip-path: circle(1000px at top right);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(25, 53, 73, 0.8), rgba(25, 53, 73, 0.8)), url('./img/ABtF4v.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding-top: 80px;
    text-align: center;  /* Центрирование текста */
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;  /* Центрирование блока */
}

.hero h1, .hero h2, .hero p {
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;  /* Центрирование кнопок */
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.services-image {
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-height: 300px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent);
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 20px 0;
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-us-image {
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-height: 300px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.why-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 2rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--color-primary);
    color: white;
}

.testimonials h2 {
    color: white;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}

.testimonial-text {
    position: relative;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    left: -15px;
    top: -20px;
    opacity: 0.3;
}

.testimonial-author {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.testimonial-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-name {
    font-weight: 600;
    color: var(--color-accent);
}

/* Contact Form Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-info {
    padding: 40px;
    background-color: var(--color-primary);
    color: white;
    height: 100%;
}

.contact-info h3 {
    margin-bottom: 30px;
    color: white;
}

.contact-method {
    margin-bottom: 20px;
}

.contact-method p {
    opacity: 0.9;
}

.contact-method a {
    color: var(--color-accent);
}

.contact-method a:hover {
    color: white;
    text-decoration: underline;
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(180, 221, 127, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.checkbox-group input {
    margin-top: 5px;
    margin-right: 10px;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-submit {
    width: 100%;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-form, .contact-info {
        padding: 30px;
    }
}

/* FAQ Section */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    position: relative;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-item.active .faq-question:after {
    content: '-';
}

/* PHP-версия FAQ */
.faq-toggle-form {
    margin: 0;
    padding: 0;
}

.faq-toggle-form .faq-question {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-info {
    margin-bottom: 20px;
}

.footer-description {
    margin-top: 20px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links h4, .footer-legal h4, .footer-contact h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links a, .footer-legal a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--color-accent);
}

.footer-contact address {
    font-style: normal;
    line-height: 1.8;
}

.footer-contact address p {
    margin-bottom: 10px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(25, 53, 73, 0.95);
    color: white;
    padding: 15px 0;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-banner button {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 500;
    transition: var(--transition);
}

.cookie-banner button:hover {
    background-color: white;
}

@media (max-width: 576px) {
    .cookie-banner .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-banner button {
        width: 100%;
    }
}

/* Policy Pages */
.policy-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 100px;
    margin-bottom: 40px;
}

.policy-content h1 {
    margin-bottom: 30px;
}

.policy-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.policy-content ul, .policy-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content ul li, .policy-content ol li {
    margin-bottom: 10px;
}

/* Thank You Page */
.thank-you {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 30px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.6s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    .animate {
        animation: none;
    }
} 