/* Базові стилі */
:root {
    --primary-color: #3f51b5;
    --secondary-color: #f50057;
    --tertiary-color: #00bcd4;
    --text-color: #333333;
    --light-text: #666666;
    --very-light-text: #999999;
    --background-color: #ffffff;
    --light-background: #f5f5f5;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --container-width: 1200px;
    --header-height: 80px;
    --footer-background: #263238;
    --footer-text: #eceff1;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Montserrat', sans-serif;
}

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

.btn-primary:hover {
    background-color: #303f9f;
    color: white;
}

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

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

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

.btn-tertiary:hover {
    background-color: var(--light-background);
}

/* Хедер */
header {
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo img {
    max-height: 60px;
    width: auto;
}

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

.main-nav {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.main-nav a:hover:after, .main-nav a.active:after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-color);
}

/* Блок "Цей день в історії" */
.history-block {
    background-color: var(--light-background);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.history-block h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.history-date {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.history-text {
    margin-bottom: 0;
}

/* Герой секція */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
    background-image: linear-gradient(rgba(63, 81, 181, 0.8), rgba(63, 81, 181, 0.8)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Основний контент */
main {
    padding: 2rem 0 4rem;
}

.blog-posts {
    flex: 1;
}

.blog-posts h2 {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.blog-posts h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

.post-card {
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.post-image {
    overflow: hidden;
}

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

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

.post-content {
    padding: 1.5rem;
    background-color: white;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: var(--light-text);
    font-size: 0.875rem;
}

.post-meta span {
    margin-right: 1.5rem;
}

.post-content h3 {
    margin-bottom: 0.75rem;
}

.post-content h3 a {
    color: var(--text-color);
}

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

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Сайдбар */
.sidebar {
    width: 300px;
    margin-left: 2rem;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
}

.widget h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style-type: none;
    padding-left: 0;
}

.widget ul li {
    margin-bottom: 0.75rem;
}

.widget ul li a {
    color: var(--text-color);
}

.widget ul li a:hover {
    color: var(--primary-color);
}

.popular-post, .related-post {
    display: flex;
    margin-bottom: 1rem;
}

.popular-post img, .related-post img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: var(--border-radius);
}

.popular-post h4, .related-post h4 {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Футер */
footer {
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo, .footer-links, .footer-contact {
    margin-bottom: 2rem;
}

.footer-logo img {
    margin-bottom: 1rem;
}

.footer-logo p {
    font-style: italic;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3:after, .footer-contact h3:after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

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

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

.footer-links ul li a {
    color: var(--footer-text);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact address {
    margin-bottom: 1rem;
    font-style: normal;
}

.footer-contact a {
    color: var(--footer-text);
}

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

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--footer-text);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Cookie плашка */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

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

.cookie-content p {
    margin-bottom: 1rem;
    flex: 1 1 100%;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cookie-more-info {
    font-size: 0.8rem;
    opacity: 0.8;
}

.cookie-more-info a {
    color: var(--footer-text);
    text-decoration: underline;
}

/* Сторінка блогу */
.container.blog-post-container {
    display: flex;
    gap: 2rem;
}

.blog-post {
    flex: 1;
}

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

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

.post-content {
    margin-bottom: 2rem;
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
}

.post-content img {
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
}

.post-share {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
}

.post-share p {
    margin-bottom: 0;
    margin-right: 1rem;
    font-weight: 600;
}

.social-share {
    display: flex;
    gap: 0.75rem;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-text);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

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

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

.prev-post, .next-post {
    max-width: 45%;
}

.prev-post a, .next-post a {
    display: block;
    padding: 1rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.prev-post a:hover, .next-post a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Сторінка Про нас */
.about-intro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-image {
    flex: 1 1 400px;
}

.about-text {
    flex: 1 1 400px;
}

.mission-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission-card {
    flex: 1 1 300px;
    padding: 1.5rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    text-align: center;
}

.mission-icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-member h3 {
    margin-bottom: 0.25rem;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

.value-item {
    padding: 1.5rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial {
    flex: 1 1 300px;
    padding: 1.5rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial:before {
    content: '"';
    position: absolute;
    top: 0;
    left: 1rem;
    font-size: 4rem;
    line-height: 1;
    font-family: 'Playfair Display', serif;
    color: rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1rem;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.contact-us-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
}

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

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

/* Сторінка Контакти */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-form-section {
    flex: 2 1 500px;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    color: var(--primary-color);
}

.contact-text h3 {
    margin-bottom: 0.25rem;
}

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

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: var(--transition);
}

.social-icon svg {
    margin-bottom: 0.5rem;
}

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

.contact-form {
    background-color: var(--light-background);
    padding: 2rem;
    border-radius: var(--border-radius);
}

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

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.map-container {
    height: 450px;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-list {
    margin-bottom: 3rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
}

.faq-item h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.faq-item p {
    margin-bottom: 0;
}

/* Модальне вікно з подякою */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    max-width: 500px;
    margin: 15% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.thank-you-message {
    text-align: center;
}

.thank-you-message svg {
    margin: 0 auto 1.5rem;
}

.thank-you-message h2 {
    margin-bottom: 1rem;
}

.thank-you-message p {
    margin-bottom: 1.5rem;
}

/* Адаптивність */
@media (max-width: 992px) {
    .container.blog-post-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 3rem;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .prev-post, .next-post {
        max-width: 100%;
    }
    
    .about-intro-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .main-nav {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: var(--box-shadow);
        padding: 1rem 0;
        display: none;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav li {
        margin: 0;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

/* Компонентне розширення */
.container {
    display: flex;
    flex-wrap: wrap;
}

main.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.blog-posts {
    width: calc(70% - 1rem);
}

.sidebar {
    width: 30%;
}

@media (max-width: 992px) {
    .blog-posts, .sidebar {
        width: 100%;
    }
    
    .sidebar {
        margin-top: 2rem;
    }
}

.post-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.post-meta span {
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
}

.post-meta span:last-child {
    margin-right: 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.widget {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.about-widget p {
    margin-bottom: 0;
}

.categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget ul li {
    margin-bottom: 0.75rem;
}

.categories-widget ul li a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.categories-widget ul li a:hover {
    color: var(--primary-color);
}

.popular-posts-widget .popular-post {
    display: flex;
    margin-bottom: 1.25rem;
}

.popular-posts-widget .popular-post:last-child {
    margin-bottom: 0;
}

.popular-posts-widget .popular-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.popular-posts-widget .popular-post h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.popular-posts-widget .popular-post a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.popular-posts-widget .popular-post a:hover {
    color: var(--primary-color);
}

.blog-post-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.blog-post {
    flex: 1 1 65%;
}

.blog-post-container .sidebar {
    flex: 1 1 30%;
    margin-left: 0;
}

@media (max-width: 992px) {
    .blog-post, .blog-post-container .sidebar {
        flex: 1 1 100%;
    }
}

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

.post-header h1 {
    margin-bottom: 1rem;
}

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

.post-content {
    margin-bottom: 2rem;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.post-share {
    display: flex;
    align-items: center;
    margin: 2.5rem 0;
    padding: 1.25rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
}

.post-share p {
    margin-right: 1rem;
    margin-bottom: 0;
    font-weight: 600;
}

.social-share {
    display: flex;
    gap: 0.75rem;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-share a:hover {
    background-color: var(--secondary-color);
}

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

.prev-post a, .next-post a {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.prev-post a:hover, .next-post a:hover {
    background-color: var(--primary-color);
    color: white;
}

.related-posts-widget .related-post {
    display: flex;
    margin-bottom: 1.25rem;
}

.related-posts-widget .related-post:last-child {
    margin-bottom: 0;
}

.related-posts-widget .related-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.related-posts-widget .related-post h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.related-posts-widget .related-post a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.related-posts-widget .related-post a:hover {
    color: var(--primary-color);
}

/* Стили для страницы "О нас" */
.about-container h1 {
    margin-bottom: 2rem;
}

.about-intro {
    margin-bottom: 4rem;
}

.about-intro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-image {
    flex: 1 1 40%;
}

.about-image img {
    border-radius: var(--border-radius);
}

.about-text {
    flex: 1 1 50%;
}

.our-mission {
    margin-bottom: 4rem;
}

.mission-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card {
    flex: 1 1 calc(33.333% - 2rem);
    padding: 2rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.mission-card p {
    margin-bottom: 0;
}

.our-team {
    margin-bottom: 4rem;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.our-values {
    margin-bottom: 4rem;
}

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

.value-item {
    padding: 2rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.value-item h3 {
    margin-bottom: 1rem;
}

.value-item p {
    margin-bottom: 0;
}

.testimonials {
    margin-bottom: 4rem;
}

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

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.testimonial {
    flex: 1 1 calc(33.333% - 2rem);
    padding: 2rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial:before {
    content: '"';
    position: absolute;
    top: 0;
    left: 1.5rem;
    font-size: 5rem;
    line-height: 1;
    color: rgba(0, 0, 0, 0.1);
    font-family: 'Playfair Display', serif;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    margin-bottom: 0;
    color: var(--light-text);
}

.our-partners {
    margin-bottom: 4rem;
    text-align: center;
}

.our-partners p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.partner-logo img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.contact-us-banner {
    background-color: var(--primary-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

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

.contact-banner-content p {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-banner-content .btn {
    background-color: white;
    color: var(--primary-color);
}

.contact-banner-content .btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Стили для страницы контактов */
.contact-container h1 {
    margin-bottom: 2rem;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info {
    flex: 1 1 35%;
}

.contact-form-section {
    flex: 1 1 55%;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    margin-bottom: 2rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 1.5rem;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
}

.contact-text p {
    margin-bottom: 0;
}

.social-links h3 {
    margin-bottom: 1.5rem;
}

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

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.social-icon svg {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.social-icon span {
    font-weight: 600;
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.social-icon:hover svg, .social-icon:hover span {
    color: white;
}

.contact-form {
    background-color: var(--light-background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

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

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox input {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.375rem;
}

.form-checkbox label {
    font-weight: normal;
}

.map-section {
    margin-bottom: 4rem;
}

.map-container {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 1.5rem;
}

.faq-section {
    margin-bottom: 4rem;
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
}

.faq-item h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.faq-item p {
    margin-bottom: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.thank-you-message {
    text-align: center;
}

.thank-you-message svg {
    margin-bottom: 1.5rem;
}

.thank-you-message h2 {
    margin-bottom: 1rem;
    color: var(--success-color);
}

.thank-you-message p {
    margin-bottom: 1.5rem;
}

.close-btn {
    display: inline-block;
    min-width: 150px;
}

@media (max-width: 1200px) {
    .mission-card, .testimonial {
        flex: 1 1 calc(50% - 2rem);
    }
}

@media (max-width: 992px) {
    .about-image, .about-text {
        flex: 1 1 100%;
    }
    
    .contact-info, .contact-form-section {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .mission-card, .testimonial {
        flex: 1 1 100%;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .social-icons-large {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}
