/* 
   Стили для сайта "Финансовое планирование и бизнес"
   Современный, чистый дизайн с финансовой тематикой
*/

/* Основные переменные */
:root {
    --primary-color: #2e5c87;
    --primary-light: #3d78b3;
    --primary-dark: #1c3955;
    --secondary-color: #fca311;
    --secondary-light: #fdb544;
    --secondary-dark: #e09000;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --text-color: #333333;
    --body-bg: #ffffff;
    --header-height: 80px;
    --footer-bg: #1a3a5f;
    --border-radius: 5px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --content-width: 1200px;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-bg);
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

ul {
    list-style: none;
}

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Кнопки */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

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

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

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

/* Шапка сайта */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Главная страница - Герой секция */
.hero {
    background: linear-gradient(rgba(46, 92, 135, 0.8), rgba(46, 92, 135, 0.8)), url('images/13.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Функции/Особенности */
.features {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.feature-item {
    flex: 0 0 calc(33.333% - 30px);
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-item h3 {
    margin-bottom: 15px;
}

/* Последние посты */
.latest-posts {
    padding: 80px 0;
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    flex: 0 0 calc(33.333% - 20px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: white;
    transition: var(--transition);
}

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

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

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-content {
    padding: 20px;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.post-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover:after {
    margin-left: 10px;
}

.centered {
    text-align: center;
    margin-top: 20px;
}

/* Отзывы */
.testimonials {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial-card {
    flex: 1 0 calc(50% - 15px);
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.testimonial-card.semi-transparent {
    background-color: rgba(255, 255, 255, 0.7);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
}

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

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Форма подписки */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(rgba(46, 92, 135, 0.9), rgba(46, 92, 135, 0.9)), url('images/12.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Подвал */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo {
    flex: 0 0 30%;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-links {
    flex: 0 0 20%;
}

.footer-links h3, .footer-contact h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-contact {
    flex: 0 0 25%;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact p svg {
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    display: flex;
    margin-bottom: 15px;
}

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Cookie баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 9999;
    display: none;
}

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

.cookie-content p {
    margin-bottom: 10px;
    flex: 1 0 100%;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-cookie {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-cookie.accept {
    background-color: var(--success-color);
    color: white;
}

.btn-cookie.settings {
    background-color: var(--gray-light);
    color: var(--dark-color);
}

.btn-cookie.reject {
    background-color: var(--danger-color);
    color: white;
}

.cookie-link {
    font-size: 0.9rem;
    margin-left: auto;
}

/* Страница Блог */
.page-header {
    background: linear-gradient(rgba(46, 92, 135, 0.8), rgba(46, 92, 135, 0.8)), url('images/14.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.blog-content {
    padding-bottom: 80px;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-card {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.blog-image {
    flex: 0 0 35%;
    height: 300px;
}

.blog-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-date, .blog-category {
    color: var(--gray-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.blog-category {
    background-color: var(--primary-light);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
}

.blog-text {
    flex: 0 0 65%;
    padding: 30px;
}

.blog-text h2 {
    margin-bottom: 15px;
}

.blog-text p {
    margin-bottom: 20px;
}

/* Страница отдельного поста */
.post-header {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    position: relative;
    margin-bottom: 50px;
}

.post-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.post-header .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.post-header h1 {
    color: white;
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.post-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.post-date, .post-author {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.post-content {
    padding-bottom: 80px;
}

.post-content .container {
    display: flex;
    gap: 40px;
}

.post-main {
    flex: 0 0 70%;
}

.post-intro {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--primary-dark);
}

.post-main h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.post-main h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.post-main ul, .post-main ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-main ul li, .post-main ol li {
    margin-bottom: 10px;
}

.post-image-full {
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.image-caption {
    text-align: center;
    font-style: italic;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 10px;
}

.post-quote {
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
}

.post-quote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 10px;
}

.post-quote cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

.post-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--gray-light);
    color: var(--dark-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.post-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
}

.post-share span {
    margin-right: 15px;
    font-weight: 600;
}

.post-share a {
    margin-right: 10px;
    color: var(--gray-color);
}

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

.post-sidebar {
    flex: 0 0 30%;
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

.author-widget .author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
}

.related-posts ul li {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 15px;
}

.related-posts ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.related-posts ul li a {
    display: flex;
    align-items: center;
}

.related-posts ul li a img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 15px;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
}

.sidebar-newsletter-form input {
    padding: 10px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.sidebar-newsletter-form button {
    width: 100%;
}

.post-navigation {
    padding: 30px 0;
    background-color: #f9f9f9;
}

.post-navigation .container {
    display: flex;
    justify-content: space-between;
}

.prev-post, .next-post {
    flex: 0 0 48%;
}

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

.nav-label {
    display: block;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: var(--primary-color);
}

/* Страница О нас */
.about-intro {
    padding: 50px 0 80px;
}

.about-intro .container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-content {
    flex: 0 0 60%;
}

.about-image {
    flex: 0 0 40%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    flex: 0 0 calc(50% - 15px);
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.value-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.team-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.team-member {
    flex: 0 0 calc(33.333% - 20px);
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h3 {
    margin: 20px 0 5px;
}

.team-member p {
    color: var(--gray-color);
    padding: 0 20px;
    margin-bottom: 15px;
}

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

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #f9f9f9;
    border-radius: 50%;
    margin: 0 5px;
    color: var(--dark-color);
    transition: var(--transition);
}

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

.stats-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    flex: 0 0 20%;
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 1.1rem;
}

.about-testimonials {
    background-color: white;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(46, 92, 135, 0.9), rgba(46, 92, 135, 0.9)), url('images/12.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

/* Страница Контакты */
.contact-content {
    padding: 0 0 80px;
}

.contact-grid {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 0 0 40%;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

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

.contact-details h3 {
    margin-bottom: 5px;
}

.contact-hours {
    margin-top: 30px;
}

.contact-hours ul li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.contact-hours ul li span {
    font-weight: 600;
}

.social-links-contact {
    display: flex;
    gap: 10px;
}

.contact-form-wrapper {
    flex: 0 0 55%;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

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

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

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.map-section {
    padding: 0 0 80px;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.faq-item {
    flex: 0 0 calc(50% - 15px);
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

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

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    text-align: center;
    position: relative;
}

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

.close-modal:hover {
    color: var(--dark-color);
}

.modal-icon {
    color: var(--success-color);
    margin-bottom: 15px;
}

.close-btn {
    margin-top: 20px;
}

/* Медиа запросы для адаптивности */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .feature-item, .post-card {
        flex: 0 0 calc(50% - 15px);
    }

    .team-member {
        flex: 0 0 calc(50% - 15px);
    }

    .stat-item {
        flex: 0 0 50%;
        margin-bottom: 20px;
    }

    .about-intro .container {
        flex-direction: column;
    }

    .about-content, .about-image {
        flex: 0 0 100%;
    }

    .post-content .container {
        flex-direction: column;
    }

    .post-main, .post-sidebar {
        flex: 0 0 100%;
    }

    .contact-grid {
        flex-direction: column;
    }

    .contact-info, .contact-form-wrapper {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .feature-item {
        flex: 0 0 100%;
    }

    .post-card {
        flex: 0 0 100%;
    }

    .testimonial-card {
        flex: 0 0 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: var(--border-radius);
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo, .footer-links, .footer-contact {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-image, .blog-text {
        flex: 0 0 100%;
    }

    .blog-image {
        height: 200px;
    }

    .team-member {
        flex: 0 0 100%;
    }

    .value-item {
        flex: 0 0 100%;
    }

    .faq-item {
        flex: 0 0 100%;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        transition: var(--transition);
        z-index: 999;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 0 0 20px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .stat-item {
        flex: 0 0 100%;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .btn-cookie {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }
}
