/* Основные переменные и сброс стилей */
:root {
    --primary-color: #3c3fd1; /* Основной фиолетово-синий цвет */
    --primary-dark: #2d2e97;
    --primary-light: #7074e8;
    --secondary-color: #16dbb0; /* Бирюзовый акцент */
    --secondary-dark: #11a485;
    --secondary-light: #44f6cf;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-dark: #111827;
    --background-color: #ffffff;
    --background-light: #f9fafb;
    --background-dark: #e5e7eb;
    --error-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --footer-bg: #1f2937;
}

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

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

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

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

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

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

/* Хедер */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px;
    position: relative;
}

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

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

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

/* Секция героя */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Секция заголовка страниц */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Основная секция */
main {
    padding: 60px 0;
}

/* Секция с постами блога */
.blog-posts {
    margin-bottom: 40px;
}

.blog-posts h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

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

.post-preview {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.post-image {
    flex: 0 0 300px;
}

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

.post-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

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

.post-content p {
    flex: 1;
    margin-bottom: 20px;
    color: var(--gray-600);
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination .current-page {
    padding: 10px 20px;
    background-color: var(--gray-200);
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* О нас страница */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.about-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-intro p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.team-section {
    margin-bottom: 60px;
}

.team-section h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.team-section h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

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

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

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.team-member h3, .team-member p {
    padding: 0 20px;
}

.team-member h3 {
    font-size: 1.3rem;
    margin-top: 15px;
    margin-bottom: 5px;
}

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

.team-member p:last-child {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.our-approach {
    max-width: 800px;
    margin: 0 auto;
}

.our-approach h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.our-approach p {
    margin-bottom: 20px;
}

.our-approach ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.our-approach li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.our-approach li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Контактная страница */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
}

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

.info-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.info-icon {
    margin-right: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-card p {
    color: var(--gray-600);
}

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

.social-contact h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

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

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

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

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

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

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(60, 63, 209, 0.2);
    outline: none;
}

.consent-checkbox {
    display: flex;
    align-items: center;
}

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

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

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.map-section {
    margin-bottom: 40px;
}

.map-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.map-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

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

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

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

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.modal-body {
    padding: 40px 20px;
    text-align: center;
}

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

.modal-body h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-body p {
    color: var(--gray-600);
    margin-bottom: 25px;
}

.modal-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.modal-button:hover {
    background-color: var(--primary-dark);
}

/* Страница поста */
.blog-post {
    max-width: 800px;
}

.post-header {
    margin-bottom: 40px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.post-meta {
    color: var(--gray-600);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-featured-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 20px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-summary {
    margin: 40px 0;
    padding: 20px;
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.post-summary h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.post-summary p {
    margin-bottom: 0;
}

.post-tags {
    margin: 30px 0;
}

.post-tags span {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--gray-200);
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.post-footer {
    margin-top: 60px;
    border-top: 1px solid var(--gray-200);
    padding-top: 40px;
}

.share-buttons h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.social-share {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-200);
    color: var(--gray-800);
    border-radius: 50%;
    transition: var(--transition);
}

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

.related-posts h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.related-post img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.related-post h4 {
    padding: 15px;
    font-size: 1rem;
    line-height: 1.4;
}

/* Футер */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-info h3, .footer-links h3, .social-media h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
}

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

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-links ul {
    margin-top: 15px;
}

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

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer .social-icons {
    margin-top: 20px;
}

.footer .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

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

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

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

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

.cookie-btn {
    padding: 8px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

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

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

.cookie-btn.customize {
    background-color: var(--gray-200);
    color: var(--text-color);
}

.cookie-btn.customize:hover {
    background-color: var(--gray-300);
}

.cookie-btn.decline {
    background-color: var(--gray-100);
    color: var(--gray-600);
}

.cookie-btn.decline:hover {
    background-color: var(--gray-200);
}

.cookie-more-info {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Адаптивный дизайн */
@media (max-width: 992px) {
    .post-preview {
        flex-direction: column;
    }
    
    .post-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .post-image img {
        aspect-ratio: 16/9;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding-bottom: 10px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 15px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 10px;
    }
}
