/* Основные переменные */
:root {
    --primary-color: #5364ff;
    --secondary-color: #00ccb4;
    --accent-color: #ff3d7f;
    --text-color: #2c3e50;
    --background-color: #ffffff;
    --light-gray: #f5f7fa;
    --dark-gray: #566573;
    --border-color: #e5e8ed;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

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

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

/* Общие классы */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.2rem;
}

ul, ol {
    margin-left: 1.2rem;
    margin-bottom: 1.2rem;
}

button, .button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

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

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

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

/* Header */
header {
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

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

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

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

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

nav li {
    margin-left: 30px;
}

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

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

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,0 100,20 0,60" fill="rgba(255,255,255,0.05)"/><polygon points="0,40 100,80 100,100 0,100" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100% 100%;
    opacity: 0.7;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Main Content Layout */
main {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 40px;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
}

/* Blog Posts */
.blog-posts {
    margin-bottom: 40px;
}

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-image {
    flex: 0 0 350px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.post-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.post-date {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .post-card {
        flex-direction: column;
    }
    
    .post-image {
        flex: auto;
    }
}

/* Sidebar */
.sidebar-widget {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
}

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

.categories, .recent-posts {
    list-style: none;
    margin-left: 0;
}

.categories li, .recent-posts li {
    margin-bottom: 10px;
}

.categories a, .recent-posts a {
    color: var(--text-color);
}

.categories a:hover, .recent-posts a:hover {
    color: var(--primary-color);
}

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

.subscribe-form button {
    align-self: flex-start;
}

/* Glossary Section */
.glossary-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 30px;
    margin-top: 30px;
}

.glossary-item {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    transition: var(--transition);
}

.glossary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.glossary-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.8rem;
    margin-left: 8px;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 200px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    background-color: var(--dark-gray);
    color: white;
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-gray) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.tooltip:hover::before, .tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    color: #ecf0f1;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column p, .footer-column address {
    color: #bdc3c7;
    font-style: normal;
}

.footer-column ul {
    list-style: none;
    margin-left: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #bdc3c7;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.footer-column svg {
    margin-right: 8px;
    vertical-align: middle;
}

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

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

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Cookie Notice */
.cookie-notice {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 20px;
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

.cookie-btn {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.cookie-btn.reject {
    background-color: var(--error-color);
    color: white;
}

.cookie-btn.customize {
    background-color: var(--dark-gray);
    color: white;
}

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

/* Page Styles for About Page */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 15px;
}

.about-section {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

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

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

.team-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.team-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.team-card h3 {
    margin: 20px 15px 5px;
    font-size: 1.2rem;
}

.team-card p {
    margin: 5px 15px 20px;
    color: var(--dark-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 30px;
    margin: 40px 0;
}

.value-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

/* Contact Page Styles */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .contact-section {
        grid-template-columns: 1fr;
    }
}

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

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

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

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form-container {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

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

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

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

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

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    width: 100%;
}

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

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

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

.faq-section {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
}

.faq-container {
    margin-top: 30px;
}

.faq-item {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: var(--background-color);
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    color: var(--dark-gray);
    cursor: pointer;
}

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

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

.modal-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 30px;
    margin-top: 20px;
}

/* Blog Post Page Styles */
.post-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    align-items: flex-end;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}

.post-header .container {
    position: relative;
    z-index: 1;
    padding-bottom: 50px;
}

.post-header h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
}

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

.post-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.post-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content h4 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.post-content ul, .post-content ol {
    margin-bottom: 25px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 25px 0;
    background-color: var(--light-gray);
    font-style: italic;
}

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

.share-buttons {
    display: flex;
    gap: 10px;
}

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

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

.related-posts {
    list-style: none;
    margin-left: 0;
}

.related-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.related-posts li:last-child {
    border-bottom: none;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

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

.cta-form input {
    flex: 1;
    margin-bottom: 0;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.cta-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--accent-color);
}

.case-study {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
}

.case-info {
    background-color: var(--background-color);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 15px;
}

.case-info p {
    margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .post-header h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .cta-form {
        flex-direction: column;
    }
    
    .cta-form input, .cta-form button {
        border-radius: var(--border-radius);
    }
    
    .cta-form input {
        margin-bottom: 15px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
