/* Global Styles */
:root {
    --primary-color: #0C1B33;
    --secondary-color: #FFD43B;
    --bg-color: #F4F5F7;
    --text-color: #2B2E3A;
    --white: #FFFFFF;
    --gray-light: #E1E3E8;
    --gray: #B0B5BD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

/* Якорные секции с отступом для учета фиксированного хедера */
section[id] {
    scroll-margin-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

section {
    padding: 4rem 0;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    font-weight: 600;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover:after {
    width: 100%;
}

/* Banner Section */
.banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
}

.banner .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.banner-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.banner-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Education Section */
.education {
    background-color: var(--bg-color);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.education-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    background-color: var(--white);
}

.services-table {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    font-weight: 700;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    border-bottom: 1px solid var(--gray-light);
}

.service-col {
    padding: 1rem;
}

.service-col h3 {
    margin-bottom: 0.5rem;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.testimonial-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-image img {
    transform: scale(1.05);
}

.testimonial-content {
    position: relative;
    padding: 1rem 0;
    flex-grow: 1;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-content:before {
    content: '"';
    font-size: 4rem;
    color: var(--gray-light);
    position: absolute;
    top: -20px;
    left: -15px;
    z-index: 0;
    opacity: 0.5;
}

.testimonial-author {
    margin-top: 1rem;
    border-top: 1px solid var(--gray-light);
    padding-top: 1rem;
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.faq-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Order Form Section */
.order {
    background-color: var(--bg-color);
}

.order-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h3 {
    color: var(--white);
    font-size: 1.3rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.contact-list,
.legal-links {
    list-style-type: none;
    padding: 0;
}

.contact-list li,
.legal-links li {
    margin-bottom: 0.5rem;
}

.legal-links a {
    color: var(--gray-light);
}

.legal-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .banner .container,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        order: 1;
    }
    
    .banner-image {
        order: 0;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .education-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .service-header,
    .service-row {
        grid-template-columns: 1fr;
    }
    
    .service-header div:not(:first-child) {
        display: none;
    }
    
    .service-col {
        padding: 0.75rem;
    }
    
    .service-row .service-col:not(:first-child) {
        border-top: 1px solid var(--gray-light);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    /* Скрываем всё навигационное меню в мобильной версии */
    .main-nav {
        display: none;
    }
    
    /* Скрываем кнопку "Commander" в мобильной версии */
    .header .btn {
        display: none;
    }
    
    /* Скрываем ссылки на политики в мобильной версии */
    .header .main-nav li:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
} 

/* Стили для страниц политик */
.policy-section h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.policy-content h1 {
    text-align: center;
    margin-bottom: 2rem;
} 