/* Основные стили для FinAnalyst */

/* Переменные */
:root {
    --primary-color: #0056b3;
    --primary-color-dark: #004494;
    --primary-color-light: #e6f2ff;
    --secondary-color: #28a745;
    --secondary-color-dark: #218838;
    --accent-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray-color: #e9ecef;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --white-color: #ffffff;
    --black-color: #000000;
    
    --font-family-sans: 'Roboto', 'Arial', sans-serif;
    --font-family-serif: 'Georgia', 'Times New Roman', serif;
    --font-family-mono: 'Courier New', monospace;
    
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-large: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    
    --border-radius: 4px;
    --border-radius-large: 8px;
    
    --container-max-width: 1200px;
    --container-padding: 0 20px;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Контейнер */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Кнопки */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

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

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

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

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

.outline-btn {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Шапка */
header {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
}

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

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

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

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

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

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

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

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Главный герой */
.hero {
    padding: 6rem 0;
    background-color: var(--primary-color-light);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Что вы узнаете здесь */
.what-you-learn {
    padding: 5rem 0;
    background-color: var(--white-color);
}

.what-you-learn h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.feature-card {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.feature-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

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

.feature-card p {
    margin-bottom: 0;
    color: var(--gray-color);
}

/* Последние публикации */
.latest-posts {
    padding: 5rem 0;
    background-color: var(--light-gray-color);
}

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

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

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

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

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

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

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

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

.post-date {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.post-excerpt {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

.read-more {
    font-weight: 500;
    color: var(--primary-color);
}

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

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

/* Совет дня */
.tip-of-the-day {
    padding: 5rem 0;
    background-color: var(--white-color);
}

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

.tip-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.tip-box {
    display: flex;
    background-color: var(--primary-color-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tip-icon {
    margin-right: 1.5rem;
    color: var(--primary-color);
}

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

/* Рассылка */
.newsletter {
    padding: 5rem 0;
    background-color: var(--dark-color);
    color: var(--white-color);
}

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

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

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
}

/* Подвал */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 5rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--light-gray-color);
    opacity: 0.8;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    margin-bottom: 1.5rem;
    color: var(--white-color);
    font-size: 1.25rem;
}

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

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

.footer-links ul li a {
    color: var(--light-gray-color);
    opacity: 0.8;
    transition: var(--transition);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--light-gray-color);
    opacity: 0.8;
}

.footer-contact p svg {
    margin-right: 0.5rem;
}

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

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

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

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

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

.cookie-content {
    padding: 1.5rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

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

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

.cookie-link {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.cookie-link a {
    text-decoration: underline;
}

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

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

.page-header p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    font-size: 1.25rem;
    opacity: 0.8;
}

.blog-content {
    padding: 5rem 0;
}

.blog-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray-color);
}

.search-box {
    display: flex;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray-color);
    border-right: none;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.search-box button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    cursor: pointer;
}

.categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.categories span {
    font-weight: 500;
}

.categories ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.categories ul li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray-color);
    color: var(--dark-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.categories ul li a:hover,
.categories ul li a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.post-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.post-item .post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-category {
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
}

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

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

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

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.pagination a {
    background-color: var(--light-gray-color);
    color: var(--dark-color);
}

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

.pagination span.current {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.pagination span.dots {
    background-color: transparent;
}

.pagination a.next {
    width: auto;
    padding: 0 1rem;
}

/* Страница отдельного поста */
.blog-post {
    padding: 5rem 0;
}

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

.post-header h1 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.post-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

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

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 500;
    color: var(--dark-color);
}

.author-title {
    font-size: 0.875rem;
    color: var(--gray-color);
}

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

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

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

.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

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

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

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

.post-quote {
    padding: 2rem;
    margin: 2rem 0;
    background-color: var(--primary-color-light);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

.post-quote p {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.post-quote cite {
    font-style: normal;
    font-weight: 500;
    font-size: 0.875rem;
}

.post-content .post-image {
    margin: 2rem 0;
    height: auto;
}

.image-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-top: 0.5rem;
}

.formula {
    background-color: var(--light-gray-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    text-align: center;
    font-family: var(--font-family-mono);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray-color);
}

.post-tags span {
    margin-right: 1rem;
    font-weight: 500;
}

.post-tags a {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-gray-color);
    color: var(--dark-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

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

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

.post-nav-prev,
.post-nav-next {
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.post-nav-next {
    text-align: right;
    align-items: flex-end;
}

.post-navigation span {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.post-navigation a {
    font-weight: 500;
    color: var(--dark-color);
}

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

.post-navigation a.disabled {
    color: var(--gray-color);
    cursor: not-allowed;
}

.related-posts {
    margin-top: 4rem;
}

.related-posts h3 {
    margin-bottom: 2rem;
    text-align: center;
}

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

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

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

.related-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

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

/* Страница о нас */
.about-intro {
    padding: 5rem 0;
}

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

.about-text h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.about-text ul {
    margin-bottom: 2rem;
}

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

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

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.team {
    padding: 5rem 0;
    background-color: var(--light-color);
}

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

.team .section-subtitle {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray-color);
}

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

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

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-large);
}

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

.team-member h3,
.team-member p {
    padding: 0 1.5rem;
}

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

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

.team-member p:last-of-type {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.member-social {
    display: flex;
    padding: 0 1.5rem 1.5rem;
    gap: 0.75rem;
}

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

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

.values {
    padding: 5rem 0;
}

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

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

.value-item {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

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

.value-item p {
    margin-bottom: 0;
    color: var(--gray-color);
}

.testimonials {
    padding: 5rem 0;
    background-color: var(--primary-color-light);
}

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

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

.testimonial {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: none;
}

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

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

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

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

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

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

.testimonial-author p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.cta {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

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

.cta-content p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

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

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

/* Страница контактов */
.contact-info {
    padding: 5rem 0;
    background-color: var(--light-color);
}

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

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

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

.contact-card p {
    margin-bottom: 0;
    color: var(--gray-color);
}

.contact-card p a {
    color: var(--gray-color);
}

.contact-card p a:hover {
    color: var(--primary-color);
}

.contact-form-section {
    padding: 5rem 0;
}

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

.contact-form-container h2,
.contact-map h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.contact-form-container p {
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray-color);
    border-radius: var(--border-radius);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

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

.office-info h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.office-info p {
    margin-bottom: 0.5rem;
    color: var(--gray-color);
}

.faq {
    padding: 5rem 0;
    background-color: var(--light-color);
}

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

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

.faq-item {
    margin-bottom: 1.5rem;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    font-weight: 500;
    cursor: pointer;
}

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

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

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

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

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

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

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

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--success-color);
    color: var(--white-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

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

.modal-content p {
    margin-bottom: 2rem;
    color: var(--gray-color);
}

/* Адаптивность */
@media (max-width: 992px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        transition: var(--transition);
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 1.5rem;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features,
    .posts-grid,
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-item {
        grid-template-columns: 1fr;
    }
    
    .post-item .post-image {
        height: 200px;
    }
    
    .blog-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .categories {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .modal-content {
        padding: 2rem;
    }
}
