/* 
   Главный файл стилей для блога ИнвестПортфель
   Тема: Построение инвестиционного портфеля
   Версия: 1.0
   Год: 2024
*/

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

:root {
    /* Основная палитра цветов */
    --primary-color: #3a5a78;
    --primary-dark: #2a4054;
    --primary-light: #5c7a9a;
    --accent-color: #e2a040;
    --accent-hover: #c98c30;
    --light-color: #f7f9fb;
    --dark-color: #2c3e50;
    --grey-light: #eef2f5;
    --grey-medium: #a9b5c0;
    --grey-dark: #546e7a;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    
    /* Типографика */
    --font-primary: 'Roboto', Arial, sans-serif;
    --font-secondary: 'Playfair Display', Georgia, serif;
    
    /* Размеры шрифта */
    --fs-xs: 0.75rem;    /* 12px */
    --fs-sm: 0.875rem;   /* 14px */
    --fs-md: 1rem;       /* 16px */
    --fs-lg: 1.125rem;   /* 18px */
    --fs-xl: 1.25rem;    /* 20px */
    --fs-2xl: 1.5rem;    /* 24px */
    --fs-3xl: 1.75rem;   /* 28px */
    --fs-4xl: 2rem;      /* 32px */
    --fs-5xl: 2.5rem;    /* 40px */
    
    /* Радиусы скругления */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Тени */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    
    /* Размеры контейнеров */
    --container-width: 1200px;
    --container-padding: 1rem;
    
    /* Переходы */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

body {
    font-family: var(--font-primary);
    font-size: var(--fs-md);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

a:hover, a:focus {
    color: var(--accent-color);
}

ul, ol {
    list-style-position: inside;
}

button, .btn {
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: var(--fs-md);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    border: none;
    outline: none;
    background: var(--primary-color);
    color: white;
}

button:hover, .btn:hover {
    background: var(--accent-color);
}

input, textarea, select {
    font-family: var(--font-primary);
    font-size: var(--fs-md);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius-sm);
    outline: none;
    width: 100%;
    transition: border-color var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
}

/* Основной контейнер */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.logo a {
    display: flex;
    align-items: center;
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
}

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

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

nav ul li a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
}

nav ul li a.active, nav ul li a:hover {
    color: var(--accent-color);
}

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

nav ul li a.active::after, nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    background-image: linear-gradient(rgba(58, 90, 120, 0.85), rgba(58, 90, 120, 0.85)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-family: var(--font-secondary);
    font-size: var(--fs-5xl);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: var(--fs-xl);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Specific Hero Pages */
.contact-hero, .about-hero {
    padding: 3rem 0;
}

.about-hero {
    background-image: linear-gradient(rgba(58, 90, 120, 0.85), rgba(58, 90, 120, 0.85)), url('/images/about-hero.jpg');
}

.contact-hero {
    background-image: linear-gradient(rgba(58, 90, 120, 0.85), rgba(58, 90, 120, 0.85)), url('/images/contact-hero.jpg');
}

/* Blog Posts Grid */
.blog-posts {
    padding: 3rem 0;
}

.blog-posts h2 {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: var(--fs-3xl);
    margin-bottom: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.blog-posts h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

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

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

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

.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: 1.5rem;
}

.post-content h3 {
    font-size: var(--fs-xl);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

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

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

.post-meta {
    color: var(--grey-dark);
    font-size: var(--fs-sm);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    margin-top: 1rem;
    color: var(--accent-color);
}

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

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

/* Testimonials Section */
.testimonials {
    background-color: var(--grey-light);
    padding: 4rem 0;
}

.testimonials h2 {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: var(--fs-3xl);
    margin-bottom: 3rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

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

.testimonial {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform var(--transition-normal);
}

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

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    left: -1rem;
    top: -1.5rem;
}

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

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

.testimonial-author h4 {
    font-weight: 600;
    margin: 0;
    font-size: var(--fs-md);
}

.testimonial-author p {
    color: var(--grey-dark);
    font-size: var(--fs-sm);
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background-color: var(--primary-light);
    color: white;
}

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

.newsletter h2 {
    font-family: var(--font-secondary);
    font-size: var(--fs-3xl);
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
    font-size: var(--fs-lg);
}

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

.newsletter input {
    flex: 1;
    border: none;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

.newsletter button {
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    background-color: var(--accent-color);
    font-weight: 600;
}

.newsletter button:hover {
    background-color: var(--accent-hover);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

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

.footer-about h3, .footer-nav h3, .footer-legal h3, .footer-contact h3, .footer-social h3 {
    font-size: var(--fs-lg);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-about p, .footer-nav p, .footer-legal p, .footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-nav ul, .footer-legal ul {
    list-style: none;
}

.footer-nav ul li, .footer-legal ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul li a, .footer-legal ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-nav ul li a:hover, .footer-legal ul li a:hover {
    color: var(--accent-color);
}

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

.footer-contact svg {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 1rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

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

.cookie-content p {
    flex: 1;
    font-size: var(--fs-sm);
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

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

.cookie-buttons button {
    padding: 0.5rem 1rem;
    font-size: var(--fs-sm);
}

.cookie-buttons button:nth-child(1) {
    background-color: var(--accent-color);
}

.cookie-buttons button:nth-child(2) {
    background-color: var(--grey-dark);
}

.cookie-buttons button:nth-child(3) {
    background-color: transparent;
    border: 1px solid white;
}

.cookie-buttons button:hover {
    opacity: 0.9;
}

/* About Page Specific Styles */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-family: var(--font-secondary);
    font-size: var(--fs-3xl);
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: var(--fs-lg);
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    opacity: 0.1;
    z-index: -1;
    border-radius: var(--border-radius-md);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

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

.about-values h2 {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: var(--fs-3xl);
    margin-bottom: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.about-values h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

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

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

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

.value-icon {
    margin: 0 auto 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--grey-light);
    border-radius: 50%;
    color: var(--primary-color);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

.value-card h3 {
    font-size: var(--fs-xl);
    margin-bottom: 1rem;
}

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

.team-section h2 {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: var(--fs-3xl);
    margin-bottom: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.team-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

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

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

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

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

.team-member h3 {
    font-size: var(--fs-lg);
    margin: 1.5rem 0 0.25rem;
    padding: 0 1rem;
}

.team-member p {
    color: var(--grey-dark);
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

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

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

.stats-section h2 {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: var(--fs-3xl);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.stats-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

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

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.stat-value {
    font-size: var(--fs-4xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.stat-description {
    font-size: var(--fs-lg);
}

.partners-section {
    padding: 3rem 0;
}

.partners-section h2 {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: var(--fs-3xl);
    margin-bottom: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.partners-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

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

.partner {
    width: 180px;
    opacity: 0.7;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.partner:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Contact Page Specific Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info h2, .contact-form h2, .contact-map h2, .contact-faq h2 {
    font-family: var(--font-secondary);
    font-size: var(--fs-2xl);
    margin-bottom: 2rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.contact-info h2::after, .contact-form h2::after, .contact-map h2::after, .contact-faq h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

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

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

.contact-text h3 {
    font-size: var(--fs-lg);
    margin-bottom: 0.5rem;
}

.contact-social h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

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

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

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

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

.checkbox-group input {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.form-actions {
    text-align: right;
}

.form-actions button {
    background-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: var(--fs-lg);
    transition: background-color var(--transition-fast);
}

.form-actions button:hover {
    background-color: var(--accent-color);
}

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

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

.faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.faq-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.faq-item h3 {
    font-size: var(--fs-lg);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Blog Post Page Specific Styles */
.post-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.post-header h1 {
    font-family: var(--font-secondary);
    font-size: var(--fs-4xl);
    margin-bottom: 1rem;
}

.post-header .post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

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

.post-header .post-meta .author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.post-header .post-meta .date {
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

.post-header .post-meta svg {
    margin-right: 0.5rem;
}

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

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

.post-body {
    font-size: var(--fs-lg);
    line-height: 1.7;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-size: var(--fs-2xl);
    margin: 2.5rem 0 1.5rem;
    color: var(--primary-dark);
}

.post-body h3 {
    font-size: var(--fs-xl);
    margin: 2rem 0 1.25rem;
    color: var(--primary-dark);
}

.post-body ul, .post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--grey-dark);
    margin: 2rem 0;
}

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

.post-share {
    margin: 3rem 0;
    text-align: center;
}

.post-share h3 {
    font-size: var(--fs-lg);
    margin-bottom: 1rem;
}

.post-tags {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    background-color: var(--grey-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: var(--fs-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

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

.post-related {
    margin: 4rem 0;
}

.post-related h2 {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: var(--fs-2xl);
    margin-bottom: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.post-related h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

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

/* Thank You Modal */
.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius-md);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: var(--fs-xl);
    margin: 0;
}

.close-modal {
    font-size: 1.75rem;
    color: white;
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    margin-bottom: 1.5rem;
    font-size: var(--fs-lg);
}

.modal-body button {
    background-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background-color var(--transition-fast);
}

.modal-body button:hover {
    background-color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --fs-5xl: 2.25rem;
        --fs-4xl: 1.75rem;
        --fs-3xl: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.75rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: var(--fs-4xl);
    }
    
    .hero p {
        font-size: var(--fs-lg);
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: var(--border-radius-md);
        margin-bottom: 1rem;
    }
    
    .newsletter button {
        border-radius: var(--border-radius-md);
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    :root {
        --fs-4xl: 1.5rem;
        --fs-3xl: 1.35rem;
        --fs-2xl: 1.25rem;
        --fs-xl: 1.125rem;
    }
    
    .posts-grid, .testimonials-grid, .values-grid, .stats-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header .post-meta {
        flex-direction: column;
    }
    
    .post-header .post-meta .date {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Print Styles */
@media print {
    header, footer, .newsletter, .cookie-notice {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    main {
        width: 100%;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}
