/* =========================
    Root Variables & Base
========================= */
:root {
    --primary-color: #3498db; /* Синий акцент */
    --secondary-color: #2C3E50; /* Темно-серый */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-white: #fff; /* Добавлено для явного указания белого фона */
    --border-color: #e5e7eb; /* Добавлено для единообразия с skill-card */
    --transition: all 0.3s ease; /* Добавлено для единообразия с skill-card */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg-white); /* Используем переменную */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
  display: block;
  margin-top: 0;
}

/* =========================
    Headings & Text
========================= */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.2em;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: -30px auto 60px auto;
}


h1, h2, h3 {
    color: var(--secondary-color);
}

section { padding: 80px 0; }


/* =========================
    Buttons
========================= */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    text-align: center; /* Центрируем текст внутри кнопки */
}

.btn:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary-outline { /* Новый стиль для кнопки с обводкой */
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 13px 28px; /* Немного меньше padding, чтобы компенсировать border */
    
}

.btn-secondary-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* =========================
    Header Navigation
========================= */
.site-header {
    background-color: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
}

.main-nav {
    display: block; /* По умолчанию навигация видна на десктопе */
}
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 35px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none; /* Скрываем кнопку мобильного меню на десктопе */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}
.hamburger { /* Стили для иконки гамбургера, которые показываются только при display: block у родителя */
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--secondary-color);
    left: 0;
    transition: all 0.3s;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }


/* =========================
    Hero Section (Main Page)
========================= */
.hero-main {
    background-color: var(--bg-light);
    padding: 100px 0; /* Большой вертикальный отступ */
    overflow: hidden; /* Важно для скрытия частей изображений */
}

.hero-main .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки: текст и изображение */
    gap: 40px;
    align-items: center;
}

.hero-main .hero-content {
    text-align: left;
}

.hero-main h1 {
    font-size: 56px; /* Более крупный заголовок */
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.hero-main .subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #555;
    max-width: 100%; /* Убираем max-width, чтобы текст занимал всю ширину колонки */
    margin: 0 0 40px 0; /* Убираем auto центрирование */
}

.hero-main .hero-buttons {
    display: flex; /* Кнопки в ряд */
    gap: 20px; /* Расстояние между кнопками */
    justify-content: flex-start; /* Выравнивание по левому краю */
}

.hero-main .hero-image {
    display: flex;
    justify-content: center; /* Центрируем изображение */
    align-items: center;
}

.hero-main .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px; /* Закругленные углы */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Выраженная тень */
}

/* Стиль для текстовой версии Hero Section (без изображения) */
.hero-main-text-only {
    text-align: center; /* ЦЕНТРУЄ ВЕСЬ КОНТЕНТ В ЦІЙ СЕКЦІЇ */
}

.hero-main-text-only .hero-content {
    max-width: 800px; /* Обмежує ширину тексту для кращої читабельності */
    margin: 0 auto;   /* ЦЕНТРУЄ БЛОК КОНТЕНТУ по горизонталі */
    text-align: center; /* ЦЕ КРИТИЧНО ВАЖЛИВО: ЦЕНТРУЄ ТЕКСТ (h1, p) ВСЕРЕДИНІ ЦЬОГО БЛОКУ */
}

.hero-main-text-only .hero-buttons {
    justify-content: center; /* ЦЕНТРУЄ КНОПКИ ВСЕРЕДИНІ ЦЬОГО БЛОКУ */
}


/* =========================
    Why Me Section (Main Page)
========================= */
.why-me-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    text-align: center; /* Добавлено, чтобы центрировать h2 и p */
}

.why-me-section .text-center {
    /* Мы можем убрать display: flex; с этого div, если он вызывает конфликт. */
    /* Вместо этого, будем центрировать саму кнопку через margin: auto; */
    margin-top: 50px; /* Отступ от карточек */
    width: 100%; /* Убедимся, что родительский div занимает всю ширину для центрирования кнопки */
    /* text-align: center; уже на родительском why-me-section, этого должно быть достаточно для кнопки */
}

/* Конкретное правило для кнопки "Дізнатися більше про мене" на странице "Про мене" */
.why-me-section .text-center .btn {
    display: block; /* Делаем кнопку блочной */
    margin: 0 auto; /* Отцентрируем блочный элемент */
    max-width: 300px; /* Ограничим максимальную ширину, чтобы она не растягивалась слишком сильно */
    /* Убедитесь, что эта кнопка все еще выглядит как кнопка. */
    /* Если она стала слишком большой, уменьшите max-width */
}

/* Остальные стили для why-me-grid и why-me-item остаются без изменений */
.why-me-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 4 колонки, адаптируются */
    gap: 40px;
    margin-bottom: 50px; /* Отступ от кнопки "Дізнатися більше" */
}

.why-me-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 4 колонки, адаптируются */
    gap: 40px;
    margin-bottom: 50px; /* Отступ от кнопки "Дізнатися більше" */
}

.why-me-item {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-light); /* Светлый фон для элементов */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.why-me-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.why-me-item .icon-wrapper {
    margin-bottom: 20px;
    color: var(--primary-color);
}
.why-me-item .icon-wrapper svg {
    width: 55px; /* Размер иконки */
    height: 55px;
}

.why-me-item h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.why-me-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    flex-grow: 1; /* Чтобы текст занимал всю высоту */
}

/* =========================
    Services Preview (Main Page)
========================= */
.services-preview-home {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.services-preview-home .text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    width: 100%; /* Убедимся, что div.text-center занимает всю ширину */
}

.services-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 колонки */
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 30px;
}

.service-card-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    height: 100%; /* Чтобы карточки были одной высоты */
    box-sizing: border-box; /* Для корректного подсчета высоты с padding */
}

.service-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card-home .icon-wrapper {
    margin-bottom: 20px;
    color: var(--primary-color);
}
.service-card-home .icon-wrapper svg {
    width: 50px;
    height: 50px;
}

.service-card-home h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card-home p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    flex-grow: 1; /* Чтобы текст занимал всю высоту */
}

/* =========================
    Cases Preview (Main Page)
========================= */
.cases-preview-home {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.cases-preview-home .text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    width: 100%; /* Убедимся, что div.text-center занимает всю ширину */
}

.cases-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 колонки */
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 30px;
}

.case-card-home {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.case-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.case-card-home .case-card-image {
    width: 100%;
    height: 220px; /* Фиксированная высота для изображений кейсов */
    overflow: hidden;
}
.case-card-home .case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-card-home .case-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.case-card-home .case-card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.case-card-home h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}

.case-card-home p {
    font-size: 15px;
    margin: 0 0 20px 0;
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
}

.case-card-home .case-card-date { /* Для "Кейс-стаді" подписи */
    font-size: 14px;
    color: #999;
    margin-top: auto;
}

/* =========================
    Blog Preview (Main Page)
========================= */
.blog-preview-home {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.blog-preview-home .text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    width: 100%; /* Убедимся, что div.text-center занимает всю ширину */
}

.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 колонки */
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 30px;
}

.blog-card-home { /* Используем те же стили, что и для .blog-card */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-card-home .blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
}
.blog-card-home .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-home .blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
.blog-card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.blog-card-content h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}
.blog-card-content p {
    font-size: 15px;
    margin: 0 0 20px 0;
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
}
.blog-card-date {
    font-size: 14px;
    color: #999;
    margin-top: auto;
}

/* =========================
    Final CTA Section (Main Page)
========================= */
.cta-final-home {
    background-color: var(--bg-light); /* Изменено на светло-серый фон */
    color: var(--text-color); /* Изменено на основной цвет текста */
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--border-color); /* Добавляем легкую границу сверху для отделения */
}

.cta-final-home h2 {
    font-size: 38px;
    color: var(--secondary-color); /* Цвет заголовка - как у других заголовков */
    margin-bottom: 25px;
    line-height: 1.3;
}

.cta-final-home p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    color: #555; /* Цвет текста */
    opacity: 1;
}

.cta-final-home .btn {
    background-color: var(--primary-color); /* Основной синий цвет кнопки */
    border: 2px solid var(--primary-color); /* Рамка в цвет кнопки */
    color: var(--bg-white); /* Белый текст на кнопке */
}

.cta-final-home .btn:hover {
    background-color: #2563eb; /* Чуть темнее синий при наведении */
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


/* =========================
    Footer
========================= */
.site-footer {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-text p {
    margin: 5px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 1;
}

/* =========================
    Modal Window
========================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.is-visible .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-content h3 {
    text-align: center;
    margin-top: 0;
    font-size: 24px;
}

.modal-content p {
    text-align: center;
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #2563eb;
}

/* =========================
    Animation
========================= */
.animated-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animated-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
    Page "Послуги"
========================= */
.services-page-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.services-grid-page { /* Обертка для всех карточек услуг */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 50px; /* Отступ от нижнего CTA блока */
}

.service-card-item { /* Стиль для каждой отдельной карточки услуги */
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем содержимое по горизонтали */
    text-align: center; /* Центрируем текст внутри карточки */
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px; /* Внутренние отступы */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-decoration: none; /* Убираем подчеркивание для a, если карточка-ссылка */
    color: inherit; /* Наследуем цвет текста */
    transition: var(--transition);
    height: 100%; /* Чтобы все карточки были одной высоты в сетке */
    box-sizing: border-box; /* Включаем padding и border в ширину/высоту */
    cursor: pointer; /* Для open-modal */
}

.service-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card-item .icon-wrapper {
    margin-bottom: 20px;
    color: var(--primary-color); /* Цвет иконки */
}
.service-card-item .icon-wrapper svg {
    width: 50px; /* Размер SVG иконки */
    height: 50px;
}

.service-card-item h2 { /* Заголовок услуги */
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    border-bottom: none; /* Убираем подчеркивание, если оно осталось от service-block */
    padding-bottom: 0;
}

.service-card-item p { /* Основной текст описания */
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1; /* Чтобы параграф занимал доступное пространство */
}

.service-card-item .service-features-list { /* Список преимуществ/деталей */
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Выравнивание списка по левому краю внутри карточки */
    width: 100%; /* Занимает всю ширину */
}

.service-card-item .service-features-list li {
    position: relative;
    padding-left: 25px; /* Отступ для галочки */
    margin-bottom: 8px;
    color: #444;
    line-height: 1.4;
    font-size: 15px;
}

.service-card-item .service-features-list li span { /* Стиль для галочки (✓) */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1em;
    top: 0;
}

/* Стили для нижнего CTA блока на странице услуг */
.cta-section-bottom {
    background-color: var(--bg-light); /* Светлый фон */
    padding: 60px 40px; /* Внутренние отступы */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center; /* Центрируем содержимое */
    margin-top: 40px; /* Отступ от предыдущего блока */
}

.cta-section-bottom h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.cta-section-bottom p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section-bottom .btn {
    /* Используем стандартный btn */
}

/* =========================
    Page "Кейси" (Catalog)
========================= */
.case-study-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.case-study-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.case-study {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.case-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.case-problem h3, .case-actions h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
}
.case-actions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.case-actions li { padding: 4px 0; }
.case-actions li span {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: 700;
}
.case-results h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 25px;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}
.result-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}
.result-item span {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    opacity: 0.8;
}
.result-item p {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* =========================
    Page "Статті-кейсу"
========================= */
.case-article-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-white);
}

.case-article-header {
    text-align: center;
    margin-bottom: 50px;
}
.case-article-category {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9em;
}
.case-article-header h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
.case-article-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}
.case-article-main-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 50px;
}
.case-article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}
.blog-post-content h2, .blog-post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
}
.blog-post-content p {
    margin-bottom: 20px;
}
.blog-post-content ul, .blog-post-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}
.blog-post-content li {
    margin-bottom: 10px;
}
.blog-post-content strong {
    font-weight: 700;
    color: var(--secondary-color);
}
blockquote {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 20px 30px;
    margin: 40px 0;
    font-style: italic;
    color: #555;
    border-radius: 5px;
}
blockquote p {
    margin-bottom: 10px;
    line-height: 1.7;
}
blockquote footer {
    text-align: right;
    font-size: 1em;
    color: #777;
    margin-top: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px 0;
    border-radius: 10px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.case-article-back-link {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.case-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}
.case-problem h3, .case-solution-highlight h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.case-main-content {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.case-main-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.case-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
    Page "Контакти"
========================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}
.contact-info h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
}
.contact-info p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: #444;
}
.contact-list li:last-child {
    margin-bottom: 0;
}
.contact-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}
.contact-list a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.contact-list strong {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 3px;
    color: var(--secondary-color);
}
.contact-list .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 24px;
    height: 24px;
}


.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}
.contact-form-wrapper h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}
.contact-form-wrapper p {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 17px;
    box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button.btn {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    margin-top: 15px;
}


/* =========================
    Page "Blog" - Catalog
========================= */
.blog-catalog-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
.blog-card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.blog-card-content h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}
.blog-card-content p {
    font-size: 15px;
    margin: 0 0 20px 0;
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
}
.blog-card-date {
    font-size: 14px;
    color: #999;
    margin-top: auto;
}

/* =========================
    Page "Blog Post" - Article
========================= */
.blog-post-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-white);
}

.blog-post-header {
    text-align: center;
    margin-bottom: 50px;
}
.blog-post-category {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9em;
}
.blog-post-header h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
.blog-post-meta {
    font-size: 16px;
    color: #999;
}
.blog-post-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.blog-post-image.wide-image {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.blog-post-image small {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}
.blog-post-content h2, .blog-post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
}
.blog-post-content p {
    margin-bottom: 20px;
}
.blog-post-content ul, .blog-post-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}
.blog-post-content li {
    margin-bottom: 10px;
}
.blog-post-content strong {
    font-weight: 700;
    color: var(--secondary-color);
}
blockquote {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 20px 30px;
    margin: 40px 0;
    font-style: italic;
    color: #555;
    border-radius: 5px;
}
blockquote p {
    margin-bottom: 10px;
    line-height: 1.7;
}
blockquote footer {
    text-align: right;
    font-size: 1em;
    color: #777;
    margin-top: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px 0;
    border-radius: 10px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.case-article-back-link {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.case-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}
.case-problem h3, .case-solution-highlight h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.case-main-content {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.case-main-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.case-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
    Page "Контакти"
========================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}
.contact-info h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
}
.contact-info p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: #444;
}
.contact-list li:last-child {
    margin-bottom: 0;
}
.contact-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}
.contact-list a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.contact-list strong {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 3px;
    color: var(--secondary-color);
}
.contact-list .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 24px;
    height: 24px;
}


.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}
.contact-form-wrapper h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}
.contact-form-wrapper p {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 17px;
    box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button.btn {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    margin-top: 15px;
}


/* =========================
    Page "Blog" - Catalog
========================= */
.blog-catalog-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
.blog-card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.blog-card-content h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}
.blog-card-content p {
    font-size: 15px;
    margin: 0 0 20px 0;
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
}
.blog-card-date {
    font-size: 14px;
    color: #999;
    margin-top: auto;
}

/* =========================
    Page "Blog Post" - Article
========================= */
.blog-post-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-white);
}

.blog-post-header {
    text-align: center;
    margin-bottom: 50px;
}
.blog-post-category {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9em;
}
.blog-post-header h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
.blog-post-meta {
    font-size: 16px;
    color: #999;
}
.blog-post-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.blog-post-image.wide-image {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.blog-post-image small {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}
.blog-post-content h2, .blog-post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
}
.blog-post-content p {
    margin-bottom: 20px;
}
.blog-post-content ul, .blog-post-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}
.blog-post-content li {
    margin-bottom: 10px;
}
.blog-post-content strong {
    font-weight: 700;
    color: var(--secondary-color);
}
blockquote {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 20px 30px;
    margin: 40px 0;
    font-style: italic;
    color: #555;
    border-radius: 5px;
}
blockquote p {
    margin-bottom: 10px;
    line-height: 1.7;
}
blockquote footer {
    text-align: right;
    font-size: 1em;
    color: #777;
    margin-top: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px 0;
    border-radius: 10px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.case-article-back-link {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.case-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}
.case-problem h3, .case-solution-highlight h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.case-main-content {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.case-main-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.case-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
    Page "Контакти"
========================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}
.contact-info h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
}
.contact-info p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: #444;
}
.contact-list li:last-child {
    margin-bottom: 0;
}
.contact-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}
.contact-list a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.contact-list strong {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 3px;
    color: var(--secondary-color);
}
.contact-list .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 24px;
    height: 24px;
}


.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}
.contact-form-wrapper h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}
.contact-form-wrapper p {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 17px;
    box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button.btn {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    margin-top: 15px;
}


/* =========================
    Page "Blog" - Catalog
========================= */
.blog-catalog-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
.blog-card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.blog-card-content h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}
.blog-card-content p {
    font-size: 15px;
    margin: 0 0 20px 0;
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
}
.blog-card-date {
    font-size: 14px;
    color: #999;
    margin-top: auto;
}

/* =========================
    Page "Blog Post" - Article
========================= */
.blog-post-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-white);
}

.blog-post-header {
    text-align: center;
    margin-bottom: 50px;
}
.blog-post-category {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9em;
}
.blog-post-header h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
.blog-post-meta {
    font-size: 16px;
    color: #999;
}
.blog-post-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.blog-post-image.wide-image {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.blog-post-image small {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}
.blog-post-content h2, .blog-post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
}
.blog-post-content p {
    margin-bottom: 20px;
}
.blog-post-content ul, .blog-post-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}
.blog-post-content li {
    margin-bottom: 10px;
}
.blog-post-content strong {
    font-weight: 700;
    color: var(--secondary-color);
}
blockquote {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 20px 30px;
    margin: 40px 0;
    font-style: italic;
    color: #555;
    border-radius: 5px;
}
blockquote p {
    margin-bottom: 10px;
    line-height: 1.7;
}
blockquote footer {
    text-align: right;
    font-size: 1em;
    color: #777;
    margin-top: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px 0;
    border-radius: 10px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.case-article-back-link {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.case-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}
.case-problem h3, .case-solution-highlight h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.case-main-content {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.case-main-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.case-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
    Page "Контакти"
========================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}
.contact-info h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
}
.contact-info p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: #444;
}
.contact-list li:last-child {
    margin-bottom: 0;
}
.contact-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}
.contact-list a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.contact-list strong {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 3px;
    color: var(--secondary-color);
}
.contact-list .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 24px;
    height: 24px;
}


.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}
.contact-form-wrapper h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}
.contact-form-wrapper p {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 17px;
    box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button.btn {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    margin-top: 15px;
}


/* =========================
    Page "Blog" - Catalog
========================= */
.blog-catalog-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
.blog-card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.blog-card-content h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}
.blog-card-content p {
    font-size: 15px;
    margin: 0 0 20px 0;
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
}
.blog-card-date {
    font-size: 14px;
    color: #999;
    margin-top: auto;
}

/* =========================
    Page "Blog Post" - Article
========================= */
.blog-post-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-white);
}

.blog-post-header {
    text-align: center;
    margin-bottom: 50px;
}
.blog-post-category {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9em;
}
.blog-post-header h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
.blog-post-meta {
    font-size: 16px;
    color: #999;
}
.blog-post-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.blog-post-image.wide-image {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.blog-post-image small {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}
.blog-post-content h2, .blog-post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
}
.blog-post-content p {
    margin-bottom: 20px;
}
.blog-post-content ul, .blog-post-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}
.blog-post-content li {
    margin-bottom: 10px;
}
.blog-post-content strong {
    font-weight: 700;
    color: var(--secondary-color);
}
blockquote {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 20px 30px;
    margin: 40px 0;
    font-style: italic;
    color: #555;
    border-radius: 5px;
}
blockquote p {
    margin-bottom: 10px;
    line-height: 1.7;
}
blockquote footer {
    text-align: right;
    font-size: 1em;
    color: #777;
    margin-top: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px 0;
    border-radius: 10px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.case-article-back-link {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.case-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}
.case-problem h3, .case-solution-highlight h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.case-main-content {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.case-main-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.case-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
    Page "Контакти"
========================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}
.contact-info h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
}
.contact-info p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: #444;
}
.contact-list li:last-child {
    margin-bottom: 0;
}
.contact-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}
.contact-list a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.contact-list strong {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 3px;
    color: var(--secondary-color);
}
.contact-list .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 24px;
    height: 24px;
}


.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}
.contact-form-wrapper h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}
.contact-form-wrapper p {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 17px;
    box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button.btn {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    margin-top: 15px;
}


/* =========================
    Page "Blog" - Catalog
========================= */
.blog-catalog-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
.blog-card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.blog-card-content h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}
.blog-card-content p {
    font-size: 15px;
    margin: 0 0 20px 0;
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
}
.blog-card-date {
    font-size: 14px;
    color: #999;
    margin-top: auto;
}

/* =========================
    Page "Blog Post" - Article
========================= */
.blog-post-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-white);
}

.blog-post-header {
    text-align: center;
    margin-bottom: 50px;
}
.blog-post-category {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9em;
}
.blog-post-header h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
.blog-post-meta {
    font-size: 16px;
    color: #999;
}
.blog-post-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.blog-post-image.wide-image {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.blog-post-image small {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}
.blog-post-content h2, .blog-post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
}
.blog-post-content p {
    margin-bottom: 20px;
}
.blog-post-content ul, .blog-post-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}
.blog-post-content li {
    margin-bottom: 10px;
}
.blog-post-content strong {
    font-weight: 700;
    color: var(--secondary-color);
}
blockquote {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 20px 30px;
    margin: 40px 0;
    font-style: italic;
    color: #555;
    border-radius: 5px;
}
blockquote p {
    margin-bottom: 10px;
    line-height: 1.7;
}
blockquote footer {
    text-align: right;
    font-size: 1em;
    color: #777;
    margin-top: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px 0;
    border-radius: 10px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.case-article-back-link {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.case-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}
.case-problem h3, .case-solution-highlight h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.case-main-content {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.case-main-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.case-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
    Page "Контакти"
========================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}
.contact-info h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
}
.contact-info p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: #444;
}
.contact-list li:last-child {
    margin-bottom: 0;
}
.contact-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}
.contact-list a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.contact-list strong {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 3px;
    color: var(--secondary-color);
}
.contact-list .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 24px;
    height: 24px;
}


.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}
.contact-form-wrapper h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}
.contact-form-wrapper p {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 17px;
    box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button.btn {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    margin-top: 15px;
}


/* =========================
    Page "Blog" - Catalog
========================= */
.blog-catalog-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
.blog-card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.blog-card-content h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}
.blog-card-content p {
    font-size: 15px;
    margin: 0 0 20px 0;
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
}
.blog-card-date {
    font-size: 14px;
    color: #999;
    margin-top: auto;
}

/* =========================
    Page "Blog Post" - Article
========================= */
.blog-post-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-white);
}

.blog-post-header {
    text-align: center;
    margin-bottom: 50px;
}
.blog-post-category {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9em;
}
.blog-post-header h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
.blog-post-meta {
    font-size: 16px;
    color: #999;
}
.blog-post-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.blog-post-image.wide-image {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.blog-post-image small {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}
.blog-post-content h2, .blog-post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
}
.blog-post-content p {
    margin-bottom: 20px;
}
.blog-post-content ul, .blog-post-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}
.blog-post-content li {
    margin-bottom: 10px;
}
.blog-post-content strong {
    font-weight: 700;
    color: var(--secondary-color);
}
blockquote {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 20px 30px;
    margin: 40px 0;
    font-style: italic;
    color: #555;
    border-radius: 5px;
}
blockquote p {
    margin-bottom: 10px;
    line-height: 1.7;
}
blockquote footer {
    text-align: right;
    font-size: 1em;
    color: #777;
    margin-top: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px 0;
    border-radius: 10px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.case-article-back-link {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.case-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}
.case-problem h3, .case-solution-highlight h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.case-main-content {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.case-main-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.case-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
    Page "Контакти"
========================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}
.contact-info h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
}
.contact-info p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: #444;
}
.contact-list li:last-child {
    margin-bottom: 0;
}
.contact-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}
.contact-list a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.contact-list strong {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 3px;
    color: var(--secondary-color);
}
.contact-list .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 24px;
    height: 24px;
}


.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}
.contact-form-wrapper h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}
.contact-form-wrapper p {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 17px;
    box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button.btn {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    margin-top: 15px;
}


/* =========================
    Page "Blog" - Catalog
========================= */
.blog-catalog-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
.blog-card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.blog-card-content h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}
.blog-card-content p {
    font-size: 15px;
    margin: 0 0 20px 0;
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
}
.blog-card-date {
    font-size: 14px;
    color: #999;
    margin-top: auto;
}

/* =========================
    Page "Blog Post" - Article
========================= */
.blog-post-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-white);
}

.blog-post-header {
    text-align: center;
    margin-bottom: 50px;
}
.blog-post-category {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9em;
}
.blog-post-header h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
.blog-post-meta {
    font-size: 16px;
    color: #999;
}
.blog-post-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.blog-post-image.wide-image {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.blog-post-image small {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}
.blog-post-content h2, .blog-post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
}
.blog-post-content p {
    margin-bottom: 20px;
}
.blog-post-content ul, .blog-post-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}
.blog-post-content li {
    margin-bottom: 10px;
}
.blog-post-content strong {
    font-weight: 700;
    color: var(--secondary-color);
}
blockquote {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 20px 30px;
    margin: 40px 0;
    font-style: italic;
    color: #555;
    border-radius: 5px;
}
blockquote p {
    margin-bottom: 10px;
    line-height: 1.7;
}
blockquote footer {
    text-align: right;
    font-size: 1em;
    color: #777;
    margin-top: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px 0;
    border-radius: 10px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.case-article-back-link {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.case-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}
.case-problem h3, .case-solution-highlight h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.case-main-content {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.case-main-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.case-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
    Page "Контакти"
========================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}
.contact-info h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
}
.contact-info p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: #444;
}
.contact-list li:last-child {
    margin-bottom: 0;
}
.contact-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}
.contact-list a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.contact-list strong {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 3px;
    color: var(--secondary-color);
}
.contact-list .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 24px;
    height: 24px;
}


.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}
.contact-form-wrapper h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}
.contact-form-wrapper p {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 17px;
    box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button.btn {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    margin-top: 15px;
}


/* =========================
    Responsive Overrides (Media Queries)
========================= */
@media (max-width: 900px) {
    /* General */
    .section-subtitle {
        margin-bottom: 40px;
    }

    /* Main Hero Section */
    .hero-main .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-main .hero-content {
        order: 2;
    }
    .hero-main .hero-image {
        order: 1;
        margin-bottom: 40px;
    }
    .hero-main h1 {
        font-size: 42px;
    }
    .hero-main .subtitle {
        font-size: 18px;
    }
    .hero-main .hero-buttons {
        justify-content: center;
    }

    /* Why Me Section */
    .why-me-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    .why-me-item {
        padding: 25px;
    }
    .why-me-item .icon-wrapper svg {
        width: 45px;
        height: 45px;
    }
    .why-me-item h3 {
        font-size: 20px;
    }

    /* Services Preview */
    .services-grid-home {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-card-home {
        padding: 30px;
    }
    .service-card-home .icon-wrapper svg {
        width: 45px;
        height: 45px;
    }
    .service-card-home h3 {
        font-size: 20px;
    }

    /* Cases Preview */
    .cases-grid-home {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .case-card-home .case-card-image {
        height: 180px;
    }
    .case-card-home .case-card-content {
        padding: 20px;
    }
    .case-card-home h4 {
        font-size: 16px;
    }

    /* Blog Preview */
    .blog-grid-home {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .blog-card-home .blog-card-image {
        height: 180px;
    }
    .blog-card-home .blog-card-content {
        padding: 20px;
    }
    .blog-card-home h4 {
        font-size: 16px;
    }
    
    /* Final CTA */
    .cta-final-home h2 {
        font-size: 32px;
    }
    .cta-final-home p {
        font-size: 16px;
    }

    /* Other Pages Media Queries - Combined from previous steps */
 .about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.about-photo img {
    max-width: 320px;
    width: 100%;
    border-radius: 16px;
    display: block;
}

@media (min-width: 992px) {
    .about-grid {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: left;
        gap: 60px;
    }
    .about-photo {
        flex: 0 0 auto;
    }
    .about-text {
        max-width: 600px;
    }
}

@media (min-width: 992px) {
    .about-grid {
        flex-direction: row; /* две колонки */
        justify-content: center;
        text-align: left;
        gap: 40px;
    }
   .about-photo {
    width: 100%;
    display: flex;
    justify-content: center; /* Центровка по горизонтали */
    margin-bottom: 30px;
}

.about-photo img {
    max-width: 320px;
    width: 100%;
    border-radius: 16px;
}
    .about-text {
        max-width: 600px;
    }
}

.about-photo img {
    max-width: 320px;
    width: 100%;
    border-radius: 16px;
    display: block;
}
.about-photo-wrapper {
    text-align: center; /* Это центрирует само фото внутри его ячейки */
}

.about-photo {
    width: 100%; /* Убедимся, что фото занимает всю доступную ширину своей колонки */
    max-width: 350px; /* Максимальная ширина фото, чтобы оно не было гигантским */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text {
    text-align: left; /* Убедимся, что текст в правой колонке выровнен по левому краю */
}
    .skills-cta-grid {
        text-align: center;
    }
    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-info {
        padding: 30px;
    }
    .contact-form-wrapper {
        padding: 30px;
    }

    /* Page "Послуги" */
    .service-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-block { padding: 30px; }
    .service-block h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .service-block h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .service-includes li {
        padding-left: 25px;
    }

    /* Page "Кейси" (Catalog) */
    .case-details { grid-template-columns: 1fr; }
    .case-study { padding: 30px; }
    .case-intro { grid-template-columns: 1fr; }

    /* Page "Blog Post" - Article */
    .blog-catalog-section .container .subtitle {
        margin-bottom: 40px !important;
    }
    .blog-grid {
        gap: 20px;
    }
    .blog-card-image {
        height: 180px;
    }
    .blog-card-content {
        padding: 20px;
    }
    .blog-card-content h4 {
        font-size: 16px;
    }
    .blog-card-content p {
        font-size: 14px;
    }
    .blog-post-header h1 {
        font-size: 32px;
    }
    .blog-post-content {
        font-size: 16px;
    }
    .blog-post-content h2 {
        font-size: 24px;
    }
    .blog-post-content h3 {
        font-size: 20px;
    }
    blockquote {
        margin: 30px 0;
        padding: 15px 20px;
    }
    .case-article-back-link {
        margin-top: 40px;
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) { /* Дополнительные стили для очень маленьких мобильных устройств */
    .hero-main h1 {
        font-size: 36px;
    }
    .hero-main .subtitle {
        font-size: 16px;
    }
    .hero-main .hero-buttons {
        flex-direction: column; /* Кнопки в столбик */
        gap: 15px;
    }
    .btn {
        width: 100%; /* Кнопки на всю ширину */
    }
    .section-title {
        font-size: 30px;
    }
    .section-subtitle {
        font-size: 0.9em;
    }
}
/* =========================
    Skills Section (Технології та інструменти)
========================= */
.skills-cta {
    background-color: var(--bg-light);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    display: flex; /* Делаем flex-контейнером */
    flex-direction: column; /* Элементы будут располагаться в столбец */
    align-items: center; /* Центрируем элементы по горизонтали */
    text-align: center; /* Для текста внутри элементов */
}

.skills-cta h2 { /* Убедимся, что заголовок внутри этой секции тоже центрируется */
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center; /* Явно центрируем заголовок */
}

.skills-cta p { /* Убедимся, что параграф внутри этой секции тоже центрируется */
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
    max-width: 800px; /* Ограничиваем ширину для читаемости */
    text-align: center; /* Явно центрируем параграф */
    margin-left: auto; /* Для центрирования блока параграфа */
    margin-right: auto;
}

.skills-cta .btn {
    display: inline-block; /* Убедимся, что кнопка отображается как inline-block */
    /* Ее родительский контейнер flexbox с align-items: center; должен ее центрировать */
}

.skills-cta h3 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.skills-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
}

.skill-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-card::before {
    content: attr(data-icon);
    display: block;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-card h4 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.skill-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .skills-cta h3 {
        font-size: 26px;
    }
    .skill-card {
        padding: 25px 15px;
    }
}
.cta-wrapper {
    margin-top: 50px;
    text-align: center; /* Центрируем заголовок, текст и кнопку */
}

.cta-wrapper h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-wrapper p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto; /* Чтобы текст тоже был по центру */
}

.cta-wrapper .btn {
    display: inline-block; /* Чтобы кнопка не растягивалась на всю ширину */
}
.about-hero.animated-section {
    opacity: 1 !important;
    transform: translateY(0) !important;
}