/* Основные переменные и сброс стилей */
:root {
    --primary-color: #2c6e49;
    --secondary-color: #4c956c;
    --accent-color: #ffc971;
    --text-color: #333333;
    --light-text: #777777;
    --background-color: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
    --header-height: 80px;
}

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

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

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

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

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

ul {
    list-style: none;
}

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

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 20px;
}

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

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

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

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

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

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

/* Хедер и навигация */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

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

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

.menu {
    display: flex;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 10px 0;
    color: var(--text-color);
}

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

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero секция */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 150px 0 100px;
    margin-top: var(--header-height);
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Счетчик просмотров */
.counter-section {
    padding: 30px 0;
    background-color: var(--light-bg);
}

.counter-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.counter-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

.counter {
    text-align: center;
}

.counter span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

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

/* Секция блога */
.blog-section {
    padding: 80px 0;
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: white;
}

.post-card:hover {
    transform: translateY(-10px);
}

.post-image {
    height: 220px;
    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.1);
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

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

.read-more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Секция с ошибками новичков */
.mistakes-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.mistakes-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.mistake-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

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

.mistake-icon {
    font-size: 2.5rem;
    color: var(--danger-color);
    margin-bottom: 20px;
}

.mistake-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* CTA секция */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(44, 110, 73, 0.9), rgba(44, 110, 73, 0.9)), url('images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

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

.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.subscription-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

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

.subscription-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Футер */
footer {
    background-color: #333;
    color: #fff;
    padding: 70px 0 20px;
}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #bbb;
}

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

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

.footer-links ul li a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    color: #bbb;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

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

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

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

.footer-bottom p {
    color: #bbb;
    margin-bottom: 0;
}

/* Cookie уведомление */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 900px;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
}

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

.cookie-notice a {
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Страница поста */
.post-header {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 200px 0 100px;
    margin-top: var(--header-height);
    color: white;
    text-align: center;
}

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

.post-header .container {
    position: relative;
    z-index: 2;
}

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

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

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
}

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

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

article {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

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

article h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

article ul, article ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

article ul li, article ol li {
    margin-bottom: 10px;
}

article img {
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.image-caption {
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-top: -20px;
    margin-bottom: 30px;
}

blockquote {
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
}

blockquote p {
    margin-bottom: 0;
}

.tip-box, .warning-box {
    background-color: rgba(76, 149, 108, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 30px 0;
}

.tip-box h4, .warning-box h4 {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tip-box h4 i, .warning-box h4 i {
    margin-right: 10px;
}

.warning-box {
    background-color: rgba(220, 53, 69, 0.1);
}

.warning-box h4 {
    color: var(--danger-color);
}

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

.post-tags span {
    font-weight: 600;
}

.post-tags a {
    background-color: var(--light-bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.post-share {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-share span {
    font-weight: 600;
}

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

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

.post-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
}

.post-nav-prev, .post-nav-next {
    padding: 0 20px;
}

.post-nav-next {
    text-align: right;
    border-left: 1px solid var(--border-color);
}

.post-navigation span {
    display: block;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 5px;
}

.post-navigation h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-post img {
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.related-post h4 {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Сайдбар */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: 40px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 25px;
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.about-author .author-info {
    display: flex;
    gap: 15px;
}

.about-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

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

.author-bio p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.author-social a {
    margin-right: 10px;
    color: var(--light-text);
}

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

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

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

.popular-posts a {
    display: flex;
    gap: 15px;
}

.popular-posts img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.popular-posts h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.popular-posts span {
    font-size: 0.8rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.popular-posts span i {
    margin-right: 5px;
}

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

.categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.categories span {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    padding: 2px 8px;
}

.subscription form {
    display: flex;
    flex-direction: column;
}

.subscription input {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

/* Страница О нас */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 150px 0 60px;
    margin-top: var(--header-height);
    text-align: center;
}

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

.breadcrumbs {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
    color: white;
}

.about-intro {
    padding: 80px 0;
}

.about-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.our-values {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.our-values h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.value-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.our-team {
    padding: 80px 0;
}

.our-team h2, 
.our-team .section-intro {
    text-align: center;
}

.our-team .section-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

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

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

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

.team-member p {
    color: var(--light-text);
    margin-bottom: 15px;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

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

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

.our-approach {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

.approach-text ul {
    padding-left: 20px;
    margin-top: 20px;
}

.approach-text li {
    margin-bottom: 15px;
}

.testimonials {
    padding: 80px 0;
}

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

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
}

.testimonial::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: rgba(44, 110, 73, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

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

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

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    margin-bottom: 30px;
}

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

.info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(44, 110, 73, 0.1);
    border-radius: 50%;
    margin-right: 20px;
}

.info-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

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

.social-box {
    margin-top: 40px;
}

.social-box h3 {
    margin-bottom: 15px;
}

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

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

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

.contact-form-container h2 {
    margin-bottom: 20px;
}

.contact-form-container > p {
    margin-bottom: 30px;
}

.contact-form {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
}

.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(--border-color);
    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: center;
}

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

.checkbox-group label {
    margin-bottom: 0;
}

.map-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

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

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

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

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

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: 50%;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle i::before {
    content: '\f068';
}

/* Модальное окно успешной отправки */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

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

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

.modal-icon {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 25px;
}

/* Медиа-запросы */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .content-wrapper {
        grid-template-columns: 1.5fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .about-intro-content,
    .approach-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu li {
        margin: 0;
        margin-bottom: 20px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .post-header {
        padding: 150px 0 80px;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .subscription-form {
        flex-direction: column;
    }
    
    .subscription-form input {
        border-radius: var(--border-radius);
        margin-bottom: 15px;
    }
    
    .subscription-form .btn {
        border-radius: var(--border-radius);
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .post-nav-next {
        text-align: left;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .posts-grid,
    .mistakes-grid,
    .values-grid,
    .team-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
