/* 
 * Geo USA Paint School - Основные стили
 * Современный дизайн для школы живописи с географическим уклоном на США
 */

/* ===== БАЗОВЫЕ СТИЛИ ===== */
:root {
    /* Основные цвета */
    --primary-color: #2c6e78;  /* Голубовато-зеленый */
    --secondary-color: #dd6b20;  /* Оранжевый */
    --accent-color: #5a3c80;  /* Пурпурный */
    --light-color: #f7f9fa;
    --dark-color: #2d3748;
    --text-color: #333333;
    --muted-color: #718096;
    --background-color: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --error-color: #e53e3e;
    
    /* Шрифты */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Размеры и отступы */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 6px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .btn {
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-color);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ===== ЗАГОЛОВКИ СТРАНИЦ ===== */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 3rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== НАВИГАЦИЯ ===== */
header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a.active {
    color: var(--primary-color);
    font-weight: 700;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
.hero {
    background: linear-gradient(rgba(44, 110, 120, 0.8), rgba(44, 110, 120, 0.8)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) ease;
    border: none;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--dark-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
    background-color: var(--primary-color);
}

.btn.outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.center {
    text-align: center;
    margin: 2rem 0;
}

/* ===== БЛОКИ ПРЕИМУЩЕСТВ ===== */
.features {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted-color);
    margin-bottom: 0;
}

/* ===== БЛОК ПОСТОВ ===== */
.latest-posts {
    padding: 5rem 0;
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.post-content p {
    color: var(--muted-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 500;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.read-more::after {
    content: '→';
    margin-left: 0.3rem;
    transition: transform var(--transition-speed) ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* ===== БЛОК ПРИЗЫВА К ДЕЙСТВИЮ ===== */
.cta {
    background-color: var(--accent-color);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-list {
    list-style: none;
    margin: 0 auto 2rem;
    max-width: 600px;
    text-align: left;
    display: inline-block;
}

.cta-list li {
    margin-bottom: 0.7rem;
    position: relative;
    padding-left: 1.5rem;
}

.cta-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.cta .btn {
    background-color: var(--secondary-color);
    padding: 1rem 2.5rem;
}

.cta .btn:hover {
    background-color: white;
    color: var(--secondary-color);
}

/* ===== БЛОГ ===== */
.blog-content {
    padding: 3rem 0 5rem;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blog-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 100%;
    min-height: 250px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-text {
    padding: 1.5rem 2rem 1.5rem 0;
}

.blog-text .date {
    color: var(--muted-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-text p {
    margin-bottom: 1.5rem;
}

/* ===== СТАТЬЯ БЛОГА ===== */
.blog-post {
    padding: 3rem 0 5rem;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--muted-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.post-meta span {
    margin: 0 0.5rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.post-content .post-image {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-content .caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted-color);
    margin-top: 0.5rem;
}

.post-list {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.post-list li {
    margin-bottom: 0.7rem;
}

.post-list.numbered {
    list-style-type: decimal;
}

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.prev-post, .next-post, .back-to-blog {
    display: inline-block;
    padding: 0.5rem 0;
    max-width: 45%;
}

.prev-post, .back-to-blog {
    text-align: left;
}

.next-post {
    text-align: right;
}

.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h4 {
    padding: 1rem;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ===== О НАС ===== */
.about-story {
    padding: 3rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-mission {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about-mission h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.mission-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.mission-card .icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.mission-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.mission-card p {
    color: var(--muted-color);
    margin-bottom: 0;
}

.team {
    padding: 5rem 0;
}

.team h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.team-member h3 {
    padding: 1.2rem 1.2rem 0.3rem;
    margin-bottom: 0.2rem;
    font-size: 1.3rem;
}

.team-member p {
    padding: 0 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--muted-color);
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    padding: 0 1.2rem 1.2rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.methodology {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.methodology h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.methodology-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.methodology-content p {
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-left: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.feature-list .icon {
    color: var(--success-color);
    margin-right: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.methodology-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.achievements {
    padding: 5rem 0;
}

.achievements h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.achievement-card p {
    color: var(--muted-color);
    margin-bottom: 0;
}

.testimonials {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.quote {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: var(--primary-color);
}

.testimonial-card p {
    margin: 2rem 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin: 0;
    font-style: normal;
    color: var(--muted-color);
    font-size: 0.9rem;
}

/* ===== КОНТАКТЫ ===== */
.contact-section {
    padding: 3rem 0 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2, .contact-form-container h2 {
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    margin-bottom: 2rem;
}

.info-card .icon {
    color: var(--primary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-content p, .info-content a {
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.info-content a:hover {
    color: var(--primary-color);
}

.hours-list {
    list-style: none;
    margin-left: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.social-block {
    margin-top: 3rem;
}

.social-block h3 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-container p {
    margin-bottom: 2rem;
    color: var(--muted-color);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 110, 120, 0.1);
}

.required {
    color: var(--error-color);
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.submit-btn {
    padding: 1rem;
    width: 100%;
}

.map-section {
    padding: 3rem 0;
    background-color: var(--light-color);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-section {
    padding: 5rem 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-header {
    background-color: white;
    padding: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed) ease;
}

.accordion-header:hover {
    background-color: var(--light-color);
}

.accordion-header h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.accordion-icon {
    transition: transform var(--transition-speed) ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease, padding var(--transition-speed) ease;
}

.accordion-item.active .accordion-content {
    padding: 0 1.2rem 1.2rem;
    max-height: 500px;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.thank-you-modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted-color);
}

.modal-icon {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 2rem;
}

.modal-content .btn {
    padding: 0.8rem 2rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info {
    grid-column: span 2;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
}

.registration {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 2rem;
}

.footer-contact h3, .footer-links h3, .footer-social h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-contact svg {
    margin-right: 0.8rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-links ul {
    list-style: none;
    margin-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: white;
}

.footer-social .social-icons {
    margin-top: 1rem;
}

.footer-social .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-social .social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    padding: 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* ===== МЕДИА-ЗАПРОСЫ ===== */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 1.3rem;
    }
    
    .about-grid, .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .blog-card {
        grid-template-columns: 1fr;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-text {
        padding: 1.5rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: auto;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }
    
    body {
        font-size: 15px;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    nav ul {
        justify-content: center;
        width: 100%;
    }
    
    nav li {
        margin: 0 0.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .feature-grid, .post-grid, .mission-grid, .team-grid, .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        grid-column: auto;
    }
}
