/* 
   Основные стили для блога о программном обеспечении для отслеживания расходов
   Expense Tracking Software | 2024
*/

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c6ecb;
    --primary-dark: #1c56a8;
    --primary-light: #4a89e8;
    --secondary-color: #35b37f;
    --secondary-dark: #2a8f65;
    --secondary-light: #5ac99a;
    --accent-color: #ff7a45;
    --dark-color: #1c2330;
    --gray-dark: #3e4a5b;
    --gray-medium: #7a8699;
    --gray-light: #d1d6e0;
    --gray-ultra-light: #f6f8fa;
    --white-color: #ffffff;
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    font-size: 62.5%; /* 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.8rem;
}

h4 {
    font-size: 2.2rem;
}

h5 {
    font-size: 1.8rem;
}

h6 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1.6rem;
}

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

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

ul, ol {
    margin-bottom: 1.6rem;
    padding-left: 2.4rem;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
}

input, textarea, select {
    font-family: var(--font-body);
    font-size: 1.6rem;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1.6rem;
    line-height: 1.5;
    border: 2px solid transparent;
}

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

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

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

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

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

.tertiary-btn:hover {
    background-color: var(--gray-ultra-light);
    border-color: var(--gray-medium);
}

/* Хедер и навигация */
header {
    position: sticky;
    top: 0;
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1.6rem 0;
}

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

.logo img {
    height: 5rem;
    width: auto;
}

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

.nav-links li {
    margin: 0 1.6rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--gray-dark);
    position: relative;
    padding: 0.8rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

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

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

.language-switch {
    position: relative;
}

.language-switch button {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--gray-dark);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem;
}

.language-switch button i {
    margin-left: 0.8rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: none;
    min-width: 12rem;
    z-index: 100;
}

.language-switch:hover .language-dropdown {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 1rem 2rem;
    color: var(--gray-dark);
    transition: background-color var(--transition-fast);
}

.language-dropdown a:hover {
    background-color: var(--gray-ultra-light);
}

.language-dropdown a.active {
    background-color: var(--primary-light);
    color: var(--white-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--gray-dark);
    margin: 5px;
    transition: all var(--transition-normal);
}

/* Герой-секция */
.hero {
    padding: 8rem 0 4rem;
    background-color: var(--gray-ultra-light);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 60%;
}

.hero h1 {
    margin-bottom: 2.4rem;
    font-size: 4.8rem;
    line-height: 1.2;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 3.2rem;
    color: var(--gray-medium);
}

.hero-buttons {
    display: flex;
    gap: 1.6rem;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Секция особенностей */
.features {
    padding: 8rem 0;
    background-color: var(--white-color);
}

.section-title {
    text-align: center;
    margin-bottom: 4.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3.2rem;
}

.feature-card {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 3.2rem;
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--gray-light);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 4.8rem;
    color: var(--primary-color);
    margin-bottom: 2.4rem;
}

.feature-card h3 {
    margin-bottom: 1.6rem;
    font-size: 2.2rem;
}

.feature-card p {
    color: var(--gray-medium);
}

/* Временная шкала */
.timeline {
    padding: 8rem 0;
    background-color: var(--gray-ultra-light);
}

.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--primary-light);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 6.4rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -12px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

.timeline-content {
    background-color: var(--white-color);
    padding: 2.4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

/* Отзывы клиентов */
.testimonials {
    padding: 8rem 0;
    background-color: var(--white-color);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide:first-child {
    display: block;
}

.testimonial-content {
    background-color: var(--gray-ultra-light);
    padding: 4rem;
    border-radius: var(--radius-lg);
    position: relative;
    margin-bottom: 4rem;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50px;
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: var(--gray-ultra-light) transparent;
}

.testimonial-content p {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-left: 3.2rem;
}

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

.testimonial-author h4 {
    margin-bottom: 0.4rem;
    font-size: 1.8rem;
}

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

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 3.2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--gray-light);
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Последние посты */
.recent-posts {
    padding: 8rem 0;
    background-color: var(--gray-ultra-light);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3.2rem;
    margin-bottom: 4.8rem;
}

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

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

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

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

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

.post-content {
    padding: 2.4rem;
}

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

.post-content p {
    color: var(--gray-medium);
    margin-bottom: 1.6rem;
}

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

.read-more i {
    margin-left: 0.8rem;
    transition: transform var(--transition-fast);
}

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

.center-btn {
    text-align: center;
}

/* Секция призыва к действию */
.cta {
    padding: 8rem 0;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--white-color);
    margin-bottom: 2.4rem;
}

.cta p {
    margin-bottom: 3.2rem;
    font-size: 1.8rem;
    opacity: 0.9;
}

.cta .btn {
    background-color: var(--white-color);
    color: var(--primary-color);
    font-size: 1.8rem;
    padding: 1.6rem 3.2rem;
}

.cta .btn:hover {
    background-color: var(--gray-ultra-light);
}

/* Футер */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 6.4rem 0 0;
}

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

.footer-logo img {
    height: 5rem;
    margin-bottom: 1.6rem;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links h4 {
    color: var(--white-color);
    margin-bottom: 2.4rem;
    position: relative;
    padding-bottom: 1.2rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

.footer-links a {
    color: var(--gray-light);
    transition: color var(--transition-fast);
}

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

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

.footer-contact p i {
    margin-right: 1.6rem;
    width: 20px;
    color: var(--primary-light);
}

.social-icons {
    display: flex;
    gap: 1.6rem;
    margin-top: 2.4rem;
}

.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%;
    color: var(--white-color);
    transition: background-color var(--transition-fast);
}

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

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

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
    font-size: 1.4rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 2.4rem;
    z-index: 9999;
    display: flex;
    justify-content: center;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
}

.cookie-content h3 {
    color: var(--white-color);
    margin-bottom: 1.2rem;
}

.cookie-content p {
    margin-bottom: 2.4rem;
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    gap: 1.6rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}

.cookie-content a {
    color: var(--primary-light);
    text-decoration: underline;
    font-size: 1.4rem;
}

/* Страница Блога */
.page-header {
    padding: 8rem 0 4rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.page-header h1 {
    color: var(--white-color);
    margin-bottom: 1.6rem;
}

.page-header p {
    font-size: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-section {
    padding: 6.4rem 0;
}

.blog-grid {
    display: grid;
    gap: 4.8rem;
}

.blog-post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.2rem;
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blog-post .post-image {
    height: 100%;
}

.blog-post .post-content {
    padding: 3.2rem;
}

.blog-post .post-meta {
    display: flex;
    gap: 1.6rem;
    margin-bottom: 1.6rem;
    color: var(--gray-medium);
    font-size: 1.4rem;
}

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

.blog-post .post-meta i {
    margin-right: 0.8rem;
}

.blog-post h2 {
    font-size: 2.8rem;
    margin-bottom: 1.6rem;
}

.blog-post h2 a {
    color: var(--dark-color);
    transition: color var(--transition-fast);
}

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

.blog-post p {
    margin-bottom: 2.4rem;
}

/* Подписка */
.subscribe {
    padding: 6.4rem 0;
    background-color: var(--gray-ultra-light);
}

.subscribe-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.subscribe h2 {
    margin-bottom: 1.6rem;
}

.subscribe p {
    margin-bottom: 3.2rem;
    font-size: 1.8rem;
    color: var(--gray-medium);
}

.subscribe-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 1.6rem;
}

.subscribe-form input {
    flex: 1;
    padding: 1.2rem 2rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1.6rem;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Страница отдельного поста */
.blog-post-header {
    padding: 8rem 0 4rem;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.blog-post-header .container {
    max-width: 1000px;
}

.blog-post-header .post-meta {
    display: flex;
    gap: 2.4rem;
    margin-bottom: 2.4rem;
    font-size: 1.6rem;
}

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

.blog-post-header .post-meta i {
    margin-right: 0.8rem;
}

.blog-post-header h1 {
    color: var(--white-color);
    font-size: 4.2rem;
    max-width: 900px;
}

.blog-post-content {
    padding: 6.4rem 0;
}

.post-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 4.8rem;
}

.post-main {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-image {
    height: 400px;
}

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

.post-text {
    padding: 4.8rem;
}

.post-text .intro {
    font-size: 1.8rem;
    color: var(--gray-dark);
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 3.2rem;
}

.post-text h2 {
    margin-top: 4.8rem;
    margin-bottom: 2.4rem;
    font-size: 3rem;
}

.post-text h3 {
    margin-top: 3.2rem;
    margin-bottom: 1.6rem;
    font-size: 2.4rem;
}

.post-text h4 {
    margin-top: 2.4rem;
    margin-bottom: 1.2rem;
    font-size: 2rem;
}

.post-text ul, .post-text ol {
    margin-bottom: 2.4rem;
}

.post-text li {
    margin-bottom: 0.8rem;
}

.post-text img {
    border-radius: var(--radius-md);
    margin: 3.2rem 0;
}

.post-text .info-box {
    background-color: var(--gray-ultra-light);
    padding: 2.4rem;
    border-radius: var(--radius-md);
    margin: 3.2rem 0;
    border-left: 4px solid var(--primary-color);
}

.post-text .info-box h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.post-text .info-box p:last-child {
    margin-bottom: 0;
}

.table-responsive {
    overflow-x: auto;
    margin: 3.2rem 0;
}

.post-text table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--gray-light);
}

.post-text table th {
    background-color: var(--gray-ultra-light);
    padding: 1.2rem;
    text-align: left;
    border: 1px solid var(--gray-light);
}

.post-text table td {
    padding: 1.2rem;
    border: 1px solid var(--gray-light);
}

.post-text table tr:nth-child(even) {
    background-color: var(--gray-ultra-light);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 4.8rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--gray-light);
}

.post-tags span {
    font-weight: 600;
    color: var(--gray-dark);
}

.post-tags a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--gray-ultra-light);
    border-radius: var(--radius-sm);
    color: var(--gray-dark);
    font-size: 1.4rem;
    transition: all var(--transition-fast);
}

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

.post-author {
    display: flex;
    gap: 2.4rem;
    padding: 3.2rem 4.8rem;
    background-color: var(--gray-ultra-light);
    border-top: 1px solid var(--gray-light);
}

.author-avatar {
    flex-shrink: 0;
}

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

.author-bio h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--gray-medium);
}

.author-bio h4 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.author-bio p {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.share-post {
    padding: 3.2rem 4.8rem;
    border-top: 1px solid var(--gray-light);
}

.share-post h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.social-share a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    color: var(--white-color);
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.social-share a:hover {
    opacity: 0.9;
}

.social-share a i {
    margin-right: 1rem;
}

.social-share .facebook {
    background-color: #1877F2;
}

.social-share .twitter {
    background-color: #1DA1F2;
}

.social-share .linkedin {
    background-color: #0A66C2;
}

.social-share .telegram {
    background-color: #0088cc;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 3.2rem 4.8rem;
    border-top: 1px solid var(--gray-light);
    align-items: center;
}

.back-to-blog {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.back-to-blog i {
    margin-right: 0.8rem;
}

.nav-links {
    display: flex;
    gap: 2.4rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.prev-post i {
    margin-right: 0.8rem;
}

.next-post i {
    margin-left: 0.8rem;
}

.post-sidebar {
    align-self: start;
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    margin-bottom: 3.2rem;
    box-shadow: var(--shadow-md);
}

.sidebar-widget h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid var(--gray-light);
}

.sidebar-widget.recent-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget.recent-posts li {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-light);
}

.sidebar-widget.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget.recent-posts a {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.sidebar-widget.recent-posts a:hover {
    color: var(--primary-color);
}

.sidebar-widget.recent-posts .post-date {
    font-size: 1.4rem;
    color: var(--gray-medium);
}

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

.sidebar-widget.categories li {
    margin-bottom: 1.2rem;
}

.sidebar-widget.categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-dark);
    transition: color var(--transition-fast);
}

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

.sidebar-widget.categories span {
    background-color: var(--gray-ultra-light);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    color: var(--gray-medium);
}

.sidebar-widget.cta-widget {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 3.2rem 2.4rem;
}

.sidebar-widget.cta-widget h3 {
    color: var(--white-color);
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-widget.cta-widget p {
    margin-bottom: 2.4rem;
    opacity: 0.9;
}

.sidebar-widget.cta-widget .btn {
    background-color: var(--white-color);
    color: var(--primary-color);
    width: 100%;
}

.sidebar-widget.cta-widget .btn:hover {
    background-color: var(--gray-ultra-light);
}

.related-posts {
    padding: 6.4rem 0;
    background-color: var(--gray-ultra-light);
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 4.8rem;
}

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

.related-post {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.related-post .post-image {
    height: 200px;
}

.related-post h3 {
    padding: 2.4rem 2.4rem 1.2rem;
    font-size: 1.8rem;
}

.related-post p {
    padding: 0 2.4rem 2.4rem;
    margin: 0;
    color: var(--gray-medium);
}

/* Страница О нас */
.about-story {
    padding: 6.4rem 0;
}

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

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

.about-content p {
    margin-bottom: 2.4rem;
}

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

.about-values {
    padding: 6.4rem 0;
    background-color: var(--gray-ultra-light);
}

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

.value-card {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 3.2rem;
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    font-size: 4.8rem;
    color: var(--primary-color);
    margin-bottom: 2.4rem;
}

.value-card h3 {
    margin-bottom: 1.6rem;
}

.team-section {
    padding: 6.4rem 0;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: -3.2rem auto 4.8rem;
    font-size: 1.8rem;
    color: var(--gray-medium);
}

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

.team-member {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-normal);
}

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

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

.team-member h3 {
    margin: 2.4rem 2.4rem 0.8rem;
    font-size: 2rem;
}

.team-member p {
    padding: 0 2.4rem;
    margin-bottom: 1.6rem;
}

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

.member-social {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    padding: 0 2.4rem 2.4rem;
}

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

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

.milestones {
    padding: 6.4rem 0;
    background-color: var(--gray-ultra-light);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3.2rem;
    text-align: center;
}

.stat-card {
    padding: 2.4rem;
}

.stat-number {
    font-size: 4.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.8rem;
    opacity: 0.9;
}

.partners {
    padding: 6.4rem 0;
    background-color: var(--white-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3.2rem;
    align-items: center;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    padding: 2rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-normal);
}

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

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
}

/* Страница контактов */
.contact-section {
    padding: 6.4rem 0;
}

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

.contact-info {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 3.2rem;
    box-shadow: var(--shadow-md);
}

.contact-info h2 {
    margin-bottom: 3.2rem;
}

.info-item {
    display: flex;
    margin-bottom: 2.4rem;
}

.info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--primary-light);
    border-radius: 50%;
    margin-right: 1.6rem;
    color: var(--white-color);
    font-size: 2.4rem;
}

.info-icon i {
    margin-top: 1.6rem;
}

.info-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
}

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

.info-content a {
    color: var(--gray-medium);
    transition: color var(--transition-fast);
}

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

.social-contact {
    margin-top: 3.2rem;
}

.social-contact h3 {
    font-size: 1.8rem;
    margin-bottom: 1.6rem;
}

.contact-form-container {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 3.2rem;
    box-shadow: var(--shadow-md);
}

.contact-form-container h2 {
    margin-bottom: 3.2rem;
}

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

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    background-color: var(--gray-ultra-light);
    transition: border-color var(--transition-fast);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 1.6rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.4rem;
    margin-right: 1.2rem;
}

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

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

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 450px;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.faq-item {
    margin-bottom: 1.6rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background-color: var(--white-color);
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
    padding-right: 2rem;
}

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

.faq-toggle i {
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 2rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

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

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.4rem;
    color: var(--gray-medium);
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.thank-you-content i {
    font-size: 6.4rem;
    color: var(--success-color);
    margin-bottom: 2.4rem;
}

.thank-you-content h2 {
    margin-bottom: 1.6rem;
}

.thank-you-content p {
    margin-bottom: 3.2rem;
    font-size: 1.8rem;
}

/* Адаптивность */
@media (max-width: 1200px) {
    html {
        font-size: 58%;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 56%;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 4.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .post-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 54%;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3.2rem;
        background-color: var(--white-color);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
        z-index: 2000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .language-switch button {
        padding-right: 0;
    }
    
    .language-dropdown {
        position: static;
        display: none;
        width: 100%;
        margin-top: 1.2rem;
        box-shadow: none;
        background-color: var(--gray-ultra-light);
    }
    
    .language-switch:hover .language-dropdown {
        display: block;
    }
    
    .burger {
        display: block;
        z-index: 2001;
    }
    
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .blog-post .post-image {
        height: 250px;
    }
    
    .timeline-wrapper::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 18px !important;
        right: auto !important;
    }
    
    .features-grid, 
    .values-grid, 
    .posts-grid, 
    .team-grid, 
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 52%;
    }
    
    .hero {
        padding: 6.4rem 0 3.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1.6rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .post-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 2.4rem;
    }
    
    .back-to-blog {
        margin-bottom: 1.6rem;
    }
    
    .nav-links {
        width: 100%;
    }
    
    .social-share {
        flex-direction: column;
    }
    
    .social-share a {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
