/* Основные стили */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary-color: #0f172a;
    --secondary-light: #1e293b;
    --accent-color: #f97316;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #ffffff;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--secondary-color);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

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

section {
    padding: 4rem 0;
}

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

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

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

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

.btn-block {
    display: block;
    width: 100%;
}

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

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-bottom: 0;
}

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

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

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

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Секция Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

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

.hero .btn:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

/* Секция "Что вы узнаете здесь" */
.what-you-learn {
    background-color: var(--light-gray);
    text-align: center;
}

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

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

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

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

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Секция с постами */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.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.1);
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

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

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

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

/* Форма подписки */
.subscribe {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.subscribe h2 {
    color: white;
}

.subscribe p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

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

.subscribe-form input {
    flex-grow: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.subscribe-form .btn {
    background-color: var(--accent-color);
    color: white;
}

.subscribe-form .btn:hover {
    background-color: darken(var(--accent-color), 10%);
}

.subscribers-count {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

#subscribers {
    font-weight: bold;
}

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

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

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

.footer-logo .logo {
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social h4 {
    color: white;
    margin-bottom: 1.5rem;
}

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

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

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Баннер с куки */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 1.5rem;
    z-index: 999;
    display: none;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
    display: block;
}

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

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

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

.cookie-content a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-content a:hover {
    color: white;
}

/* О нас */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.page-header h2 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    padding: 4rem 0;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-intro h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.values-list {
    list-style: none;
}

.values-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.values-list li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

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

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

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

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

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

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

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

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

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

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

.company-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
    margin: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--text-light);
}

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

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

.certificate {
    text-align: center;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.certificate img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.certificate p {
    padding: 1.5rem;
    margin: 0;
    font-weight: 500;
}

.cta-section {
    background-color: var(--primary-light);
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.cta-section p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Контактная страница */
.contact-content {
    padding: 4rem 0;
}

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

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

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

.contact-details h3 {
    margin-bottom: 0.5rem;
}

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

.contact-details a {
    color: var(--text-light);
    transition: var(--transition);
}

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

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

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

.contact-form-container {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-form-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}

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

.checkbox-group input {
    width: auto;
}

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

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

.map-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

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

.working-hours h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.hours-item {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.day {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.time {
    color: var(--text-light);
}

/* Модальное окно благодарности */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--background-color);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

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

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

.thank-you-content {
    text-align: center;
}

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

.thank-you-content h3 {
    margin-bottom: 1rem;
    color: var(--success-color);
}

.thank-you-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Пост в блоге */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

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

.post-meta {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 1.5rem;
}

.post-meta svg {
    width: 18px;
    height: 18px;
    vertical-align: -4px;
    margin-right: 4px;
}

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

.post-content h2, 
.post-content h3, 
.post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

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

.post-content img {
    margin: 2rem auto;
    border-radius: var(--border-radius);
}

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

.post-content code {
    background-color: var(--light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

.post-content pre {
    background-color: var(--secondary-light);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.post-content th, 
.post-content td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

.post-content th {
    background-color: var(--light-gray);
    font-weight: 600;
}

.tags {
    margin-top: 3rem;
}

.tags span {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

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

.post-nav-link {
    width: 48%;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.post-nav-link:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
}

.post-nav-link.prev {
    text-align: left;
}

.post-nav-link.next {
    text-align: right;
}

.post-nav-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.post-nav-title {
    font-weight: 600;
    color: var(--secondary-color);
}

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

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

/* Адаптивный дизайн */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input, 
    .subscribe-form .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-nav-link {
        width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}
