/* 
   Main Stylesheet
   Color Palette:
   - #023047 (Dark Blue) - Background elements
   - #FB8500 (Orange-Amber) - Accent
   - #FFB703 (Bright Yellow) - Buttons
   - #8ECAE6 (Sky Blue) - Decorative gradients
   - #FFFFFF (White) - Text and background
   - #264653 (Graphite) - Text
*/

/* ---------- Reset & Base Styles ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --dark-blue: #023047;
    --amber: #FB8500;
    --yellow: #FFB703;
    --sky-blue: #8ECAE6;
    --white: #FFFFFF;
    --graphite: #264653;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px; /* Добавляем отступ для якорных ссылок */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--graphite);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--amber);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--amber);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--amber);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--yellow);
    color: var(--dark-blue);
}

.btn-secondary:hover {
    background-color: var(--amber);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ---------- Header ---------- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--amber);
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--amber);
    transition: width 0.3s ease;
}

.main-nav a:hover:after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-blue);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* ---------- Main Content ---------- */
main {
    margin-top: 80px; /* Header height + some space */
    min-height: calc(100vh - 400px); /* Минимальная высота контента */
}

/* Hero Section */
.hero {
    color: var(--white);
    padding: 8rem 0 5rem; /* Увеличиваем верхний отступ */
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .btn {
    animation: fadeIn 1s ease 0.6s both;
}

/* Introduction Section */
.intro {
    padding: 5rem 0;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.intro-text p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border-radius: 50%;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.price {
    font-weight: 700;
    color: var(--amber);
    margin: 1rem 0;
}

/* Why Us Section */
.why-us {
    padding: 5rem 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-us-item {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background-color: var(--white);
}

.why-us-item h3 {
    color: var(--amber);
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Form Section */
.contact {
    padding: 5rem 0;
}

form {
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-blue);
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: inherit;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(142, 202, 230, 0.3);
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin-right: 10px;
}

.checkbox label {
    margin: 0;
    font-weight: normal;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--dark-blue);
    color: var(--white);
}

.testimonials h2 {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial cite {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--yellow);
}

/* ---------- Footer - Обновленный дизайн с центрированием ---------- */
.site-footer {
    background-color: var(--dark-blue);
    padding: 5rem 0 2rem;
    color: var(--white);
    position: relative;
    text-align: center;
}

.site-footer:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--amber), var(--yellow), var(--sky-blue));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    justify-items: center;
    text-align: center;
}

.footer-info {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
    background-color: var(--white);
    padding: 12px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.footer-description {
    max-width: 500px;
    color: var(--sky-blue);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-contact address {
    font-style: normal;
    line-height: 2;
    color: #f1f1f1;
    text-align: center;
}

.footer-contact p {
    margin-bottom: 0.7rem;
}

.footer-contact a, .footer-links a, .footer-legal a {
    color: var(--sky-blue);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 5px;
}

.footer-contact a:hover, .footer-links a:hover, .footer-legal a:hover {
    color: var(--yellow);
    padding-left: 8px;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
    padding-left: 0;
    display: inline-block;
    text-align: left;
}

.footer-links li, .footer-legal li {
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 20px;
}

.footer-links li:before, .footer-legal li:before {
    content: "›";
    color: var(--yellow);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sky-blue);
    font-size: 0.9rem;
}

.footer-content h3 {
    color: var(--white);
    margin-bottom: 1.8rem;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.footer-content h3:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--amber), var(--yellow));
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* ---------- Policy Pages Styles ---------- */
.policy-page {
    padding-top: 130px; /* Увеличиваем отступ сверху для всех страниц политики */
    padding-bottom: 5rem;
    background-color: #f9f9f9;
}

.policy-page h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-blue);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.policy-page h1:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--amber), var(--yellow));
    border-radius: 2px;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.policy-content h2 {
    text-align: left;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
    font-size: 1.8rem;
    padding-bottom: 10px;
}

.policy-content h2:after {
    left: 0;
    transform: none;
    width: 60px;
    height: 3px;
    bottom: 0;
}

.policy-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.policy-content ul {
    margin-bottom: 2rem;
    margin-left: 1.8rem;
}

.policy-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.policy-content address {
    margin-top: 2rem;
    font-style: normal;
    line-height: 1.8;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--amber);
}

.policy-content a {
    color: var(--amber);
    font-weight: 500;
    transition: all 0.3s ease;
}

.policy-content a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Стили для страницы благодарности */
.thankyou {
    padding-top: 130px; /* Такой же отступ как и для страниц политики */
    padding-bottom: 5rem;
}

.thankyou-content {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.thankyou-actions {
    margin-top: 2rem;
    text-align: center;
}

.thankyou-actions .btn {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    color: var(--dark-blue);
    background-color: var(--yellow);
    border: 2px solid var(--amber);
}

.thankyou-actions .btn:hover {
    background-color: var(--amber);
    color: var(--white);
}

/* ---------- Cookie Popup ---------- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 1rem;
    z-index: 9999;
    display: none;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-popup.show {
    display: block;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0 1rem 0 0;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Media Queries ---------- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 6rem 0 4rem; /* Корректируем отступы для мобильных */
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-cta {
        display: none;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .main-nav.show {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-nav li {
        margin: 0;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cookie-content {
        justify-content: center;
    }
    
    .cookie-content p {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .policy-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .policy-page {
        padding-top: 110px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content > div {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .intro, .services, .why-us, .gallery, .contact, .testimonials {
        padding: 3rem 0;
    }
    
    .service-card, .why-us-item, .testimonial {
        padding: 1.5rem;
    }
    
    .policy-content h2 {
        font-size: 1.4rem;
    }
    
    .policy-content {
        padding: 1.5rem;
    }
} 