/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a3c40;
    --accent: #1b376f; /*#4d8b7d;*/
    --secondary: #1b376f; /*#d9534f;*/
    --light: #f5f5f5;
    --dark: #000764; /*#1a3c40;*/
    --text: #333;
    --gray: #6c757d;
    --nature-green: #264794; /*#2d5a4a;*/
    --nature-blue: #8fd1f4; /*#3a7ca5;*/
    --mountain: #8a9a5b;
    --snow: #e8f4f8;
}

body {
    color: var(--text);
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

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

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s;
}

.btn:hover {
    background: #1b376f; /*#3a7a6d;*/
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn:hover:before {
    left: 100%;
}

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

.btn-secondary:hover {
    background: #c9302c;
}

/* Параллакс эффекты */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Анимации появления */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.flip-in {
    opacity: 0;
    transform: perspective(1000px) rotateY(90deg);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.flip-in.visible {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg);
}

/* Header styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.98);
}

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

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

.logo-icon {
    font-size: 36px;
    color: var(--accent);
    margin-right: 15px;
}

/* Раньше здесь были селекторы .logo-text h1 и .logo-text p. Название сайта выводилось
   тегом <h1>, из-за чего на главной оказывалось два <h1>: название сайта и заголовок
   секции Hero. Теперь название сайта — <p class="site-title">, и единственный <h1>
   на главной даёт секция Hero (на внутренних страницах — заголовок записи или
   страницы). Классы взяты те же, что перечислены в add_theme_support('custom-logo')
   в functions.php: 'site-title' и 'site-description'. */
.logo-text .site-title {
    font-size: 24px;
    margin-bottom: 5px;
}

.logo-text .site-description {
    font-size: 14px;
    color: var(--gray);
}

/* nav делаем flex-контейнером: внутри него теперь не только меню, но и кнопка
   «Регистрация» в шапке. Настройки кнопки — в разделе «Кнопка в шапке». */
nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Кнопка «Регистрация» в шапке. Она меньше основной кнопки .btn, чтобы не
   растягивать шапку по высоте, и не переносится по словам. */
.header-btn {
    padding: 10px 24px;
    font-size: 15px;
    white-space: nowrap;
}

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

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

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

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

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

/* Hero section */
.hero {
    background: linear-gradient(rgba(26, 60, 64, 0.7), rgba(26, 60, 64, 0.7)) no-repeat center center/cover;
    color: white;
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, #f9f9f9);
    z-index: 1;
}

/* Затемнение поверх фоновой фотографии hero: тот же градиент, что раньше стоял
   в инлайновом стиле секции. Идёт сразу после слоя фона и ниже декоративного
   :before (у него z-index 1) и содержимого (z-index 2). */
.hero-shade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background: linear-gradient(rgba(39, 70, 150, 0.3), rgba(39, 70, 150, 0.7));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.location-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.location-tag i {
    margin-right: 8px;
}

/* About section */
.about {
    background: white;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

/* Stats section */
.stats {
    background: linear-gradient(rgba(34,73,148, 0.8), rgba(34,73,148, 0.8)) no-repeat center center/cover;
    color: white;
    /* position: relative и overflow: hidden здесь обязательны: слой фона выше
       секции на 30%, и без обрезки он заезжает на предыдущий блок. Именно это
       произошло 24.09.2026, когда строка потерялась при правке правил слоя:
       секция статистики стала закрывать низ блока «О конференции».
       У hero и блока регистрации overflow: hidden есть в их правилах, поэтому
       там наложения не было. */
    position: relative;
    overflow: hidden;
    /* Отступы меньше общего для секций (100px 0): содержимое у статистики
       компактное, и блок выглядел слишком высоким. Правится только здесь,
       остальные секции не затрагиваются. */
    padding: 70px 0;
}
/* Слой фоновой картинки: у статистики, у hero и у блока регистрации.
   Слой выходит за границы секции на 30% её высоты сверху и снизу — этот запас
   позволяет скрипту двигать фон для параллакса и не открывать пустое место.
   Запас задан в процентах, потому что секции разной высоты: у hero она большая,
   у статистики меньше, а движение должно быть заметно у всех.
   overflow: hidden у секций не даёт слою вылезти наружу. */
.stats-bg,
.hero-bg,
.registration-cta-bg {
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: 0;
    right: 0;
    z-index: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
}

/* Затемнение поверх фона. До 24.09.2026 у этого блока не было ни одного правила
   в стилях: он выводился пустым div нулевой высоты и ничего не затемнял, поэтому
   настройка «Цвет оверлея» ни на что не влияла. Теперь правила есть, цвет приходит
   из настроек (по умолчанию rgba(44, 62, 80, 0.35)).
   pointer-events: none — чтобы слой не перехватывал нажатия по содержимому. */
.stats-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Содержимое секции должно быть НАД слоем фона: у слоя z-index 0, и без
   собственного z-index контейнер оказался бы под ним. */
.stats > .container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 32px;
}

.stat-item {
    text-align: center;
    padding: 26px 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 3.1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.event-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 22px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-details {
    display: flex;
    gap: 40px;
}

.event-detail {
    display: flex;
    align-items: center;
}

.event-detail i {
    font-size: 28px;
    color: white;
    margin-right: 15px;
}

.event-detail div {
    color: white;
}

/* Speakers section */
.speakers {
    background: white;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.speaker-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.speaker-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.speaker-card:hover .speaker-image img {
    transform: scale(1.1);
}

.speaker-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: white;
}

.speaker-body {
    padding: 20px;
}

.speaker-session {
    color: var(--accent);
    font-weight: 500;
    margin-top: 10px;
}

/* Sessions Section */
.sessions-section {
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)) no-repeat center center/cover;
}

.sessions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

/* Настройка «Количество колонок» в секции сессий.
   Класс sessions-columns-N выводился в разметку с самого начала, но правила для
   него лежат в sessions.css, который в тему не подключён (его подключение
   закомментировано, а стили секции перенесены сюда). Из-за этого настройка не
   работала. Значение задаёт верхнюю границу числа колонок: размер дорожки не может
   стать меньше, чем (ширина контейнера − промежутки) / N, поэтому auto-fit
   сохраняется и на узких экранах колонки сами схлопываются в одну.
   Если браузер не понимает max() внутри minmax(), правило отбрасывается целиком
   и остаётся базовая сетка выше — то есть вёрстка не ломается. */
.sessions-columns-1 {
    grid-template-columns: 1fr;
}

.sessions-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(max(500px, calc((100% - 30px) / 2)), 1fr));
}

.session-detail-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-left: 5px solid var(--accent);
}

.session-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.session-header {
    display: flex;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--nature-green) 0%, var(--nature-blue) 100%);
    color: white;
}

.session-icon {
    font-size: 32px;
    margin-right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-title {
    flex: 1;
}

.session-title h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.session-duration {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.session-body {
    padding: 25px;
}

.session-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.7;
}

.session-topics {
    margin-bottom: 25px;
}

.session-topics h4 {
    color: var(--nature-green);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.session-topics ul {
    list-style: none;
    padding-left: 0;
}

.session-topics li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.session-topics li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.session-speakers h4 {
    color: var(--nature-green);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.speakers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.session-speaker {
    display: flex;
    align-items: center;
    background: var(--light);
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.session-speaker:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.session-speaker img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--accent);
}

/* Program section */
.program {
    background: linear-gradient(rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0.9)) no-repeat center center/cover;
}

.program-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.program-item:hover {
    transform: translateX(10px);
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--nature-green);
    color: white;
}

.program-time {
    font-weight: bold;
    font-size: 1.1rem;
}

.program-body {
    padding: 20px;
}

.session-speakers {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.session-speaker {
    display: flex;
    align-items: center;
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    width: calc(50% - 10px);
    transition: transform 0.3s ease;
}

.session-speaker:hover {
    transform: scale(1.03);
}

.session-speaker-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--accent);
}

.session-speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Organizers section */
.organizers {
    background: white;
}

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

/* Настройка «Количество колонок» у организаторов (organizers_columns).
   Как и у сессий, значение задаёт верхнюю границу числа колонок: дорожка не может
   стать уже, чем (ширина контейнера − промежутки) / N. Поэтому auto-fit сохраняется —
   одинокая карточка организатора по-прежнему растягивается на всю ширину,
   вид при значении по умолчанию такой же, как был до подключения настройки. */
.organizers-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(max(250px, calc((100% - 30px) / 2)), 1fr));
}

.organizers-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(max(250px, calc((100% - 60px) / 3)), 1fr));
}

.organizers-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(max(250px, calc((100% - 90px) / 4)), 1fr));
}

.organizer-card {
    /* Карточка бывает не только <div>, но и <a>, когда у организатора задана
       ссылка на сайт. display: block и снятое подчёркивание нужны именно для
       ссылки: у <div> эти свойства ничего не меняют. color: inherit перебивает
       синий цвет ссылки по умолчанию. */
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 40px 30px;
    background: var(--light);
    border-radius: 10px;
    transition: all 0.4s ease;
}

.organizer-card:hover {
    background: var(--nature-green);
    color: white;
    transform: translateY(-10px);
}

.organizer-logo {
    width: 150px;
    height: 100px;
    margin: 0 auto 20px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 40px;
    color: var(--nature-green);
    transition: all 0.4s ease;
}

.organizer-card:hover .organizer-logo {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Partners section */
.partners {
    background: linear-gradient(rgba(58, 124, 165, 0.9), rgba(58, 124, 165, 0.9)) no-repeat center center/cover;
    color: white;
}

.partners .section-title {
    color: white;
}

.partners .section-title:after {
    background: white;
}

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

/* Настройка «Количество колонок» у партнёров (partners_columns).
   Класс partners-grid-N выводился в разметку с самого начала, но ни одного правила
   для него в теме не было — то есть настройка не работала ни при каком значении.
   Здесь те же правила, что у организаторов: значение ограничивает число колонок
   сверху, auto-fit и адаптивность сохраняются. Вариантов у партнёров больше —
   от 2 до 6, поэтому классов тоже пять. */
.partners-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(max(200px, calc((100% - 30px) / 2)), 1fr));
}

.partners-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(max(200px, calc((100% - 60px) / 3)), 1fr));
}

.partners-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(max(200px, calc((100% - 90px) / 4)), 1fr));
}

.partners-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(max(200px, calc((100% - 120px) / 5)), 1fr));
}

.partners-grid-6 {
    grid-template-columns: repeat(auto-fit, minmax(max(200px, calc((100% - 150px) / 6)), 1fr));
}

.partner-logo {
    height: 120px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* Registration CTA section */
.registration-cta {
    background: linear-gradient(135deg, var(--nature-green) 0%, var(--nature-blue) 100%);
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.registration-cta:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Локальный градиент вместо стоковой фотографии Unsplash (заменено 23.09.2026).
       Раньше здесь стояла картинка с images.unsplash.com, и она загружалась при каждом
       открытии страницы. Мягкие световые пятна сохраняют замысел декоративного слоя
       и не требуют внешних запросов. Своё изображение можно подставить сюда же. */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 55%),
                radial-gradient(circle at 70% 75%, rgba(255, 255, 255, 0.25), transparent 50%);
    opacity: 0.1;
    /* Явный z-index: над слоем фоновой фотографии (z-index 0) и под содержимым
       (z-index 2). Раньше z-index не задавался, и слой фотографии его перекрыл бы. */
    z-index: 1;
    animation: rotate 60s linear infinite;
}

.registration-cta-content {
    position: relative;
    z-index: 2;
}

.registration-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.registration-cta p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.price-info {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.discount {
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Строка с датой и строка про срок скидки оформлены одинаково: это «пилюли»
   с короткой справкой. Дата проведения добавлена 24.09.2026 по просьбе владельца. */
.discount-date,
.event-date {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

/* Registration form section */
.registration-form {
    background: white;
    padding: 100px 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.form-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--nature-green), var(--nature-blue));
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(77, 139, 125, 0.2);
    outline: none;
}

.form-note {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 20px;
    text-align: center;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--nature-green), var(--nature-blue));
}

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

.footer-column h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

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

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--accent);
}

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

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

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-icon {
    font-size: 30px;
    color: var(--accent);
    margin-right: 10px;
}

/* Анимации */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

/* Responsive styles */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Кнопка в шапке уходит под меню: в одну строку с меню ей на узком экране тесно. */
    nav {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px 10px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .event-info {
        flex-direction: column;
        text-align: center;
    }
    
    .event-details {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .session-speaker {
        width: 100%;
    }
    
    .sessions-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .event-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .registration-cta h2 {
        font-size: 2.2rem;
    }
    
    .sessions-container {
        grid-template-columns: 1fr;
    }
    
    .session-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .session-icon {
        margin-right: 0;
    }
}

/* ==========================================================================
   ВНУТРЕННИЕ СТРАНИЦЫ: страница, запись, поиск, архив, 404
   Добавлено 24.09.2026. Все правила ниже относятся к новым классам
   (.entry-*, .not-found), которых на посадочной странице нет, поэтому её вид
   они не затрагивают.
   ========================================================================== */

/* Общая обёртка страницы. Секции темы имеют отступ 100px сверху и снизу —
   для страницы с текстом это много, поэтому уменьшаем. */
.entry-section {
    padding: 120px 0 80px;
}

/* Ширина строки: длинный текст читается плохо, если растянуть его на 1200px. */
.entry-content {
    max-width: 780px;
    margin: 0 auto;
    color: var(--text);
}

.entry-title {
    font-size: 2.4rem;
    line-height: 1.25;
    word-wrap: break-word;
}

.entry-meta {
    color: var(--gray);
    font-size: 0.95rem;
}

.search-query {
    color: var(--accent);
}

/* Содержимое, которое выводит WordPress: абзацы, заголовки, списки, цитаты,
   таблицы, картинки. Без этих правил всё это слипается в один поток. */
.entry-content > * + * {
    margin-top: 1.2em;
}

.entry-content h2 {
    font-size: 1.7rem;
    line-height: 1.3;
    color: var(--dark);
    margin-top: 2em;
}

.entry-content h3 {
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--dark);
    margin-top: 1.8em;
}

.entry-content h4 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-top: 1.6em;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5em;
}

.entry-content li + li {
    margin-top: 0.4em;
}

.entry-content a {
    color: var(--accent);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--nature-green);
}

.entry-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.5em 0 0.5em 1.2em;
    color: var(--gray);
    font-style: italic;
}

.entry-content img,
.entry-content video,
.entry-content iframe {
    max-width: 100%;
    height: auto;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.entry-content th {
    background: var(--light);
}

.entry-content code {
    background: var(--light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
}

.entry-content pre {
    background: var(--light);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
}

/* Разбиение записи на страницы и служебные ссылки */
.entry-pages {
    margin-top: 1.5em;
    color: var(--gray);
}

.entry-tags {
    margin-top: 2em;
    color: var(--gray);
    font-size: 0.95rem;
}

.entry-edit-link {
    margin-top: 1.5em;
    font-size: 0.9rem;
}

.entry-back {
    max-width: 780px;
    margin: 40px auto 0;
}

/* Список записей: поиск и архивы */
.entry-list {
    max-width: 780px;
    margin: 0 auto;
}

.entry-list-item {
    background: white;
    border-radius: 10px;
    padding: 28px 30px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.entry-list-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.entry-list-title a {
    color: var(--dark);
    text-decoration: none;
}

.entry-list-title a:hover {
    color: var(--accent);
}

.entry-list-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.entry-list-excerpt p {
    margin-bottom: 0;
}

/* Постраничный вывод WordPress */
.pagination,
.navigation.pagination {
    max-width: 780px;
    margin: 30px auto 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background: white;
    color: var(--dark);
    text-decoration: none;
}

.pagination .page-numbers.current {
    background: var(--accent);
    color: white;
}

/* Форма поиска. Разметку даёт сам WordPress, поэтому оформляем по именам
   классов, которые он использует. */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 30px auto 0;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.search-form .search-submit {
    padding: 12px 24px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.search-form .search-submit:hover {
    background: var(--nature-green);
}

/* Страница 404 */
.not-found .entry-content {
    text-align: center;
}

.not-found .entry-back {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .entry-section {
        padding: 100px 0 60px;
    }

    .entry-title {
        font-size: 1.7rem;
    }

    .entry-content h2 {
        font-size: 1.4rem;
    }

    .entry-list-item {
        padding: 22px 20px;
    }

    .search-form {
        flex-direction: column;
    }
}

/* Cookie-баннер: полоса внизу экрана, показывается при первом визите.
   Настройки — в разделе «Cookie-баннер». Разметку выводит
   template-parts/components/cookie-banner.php, поведение — assets/js/cookie-banner.js. */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 16px 0;
    background-color: #1b376f;
    color: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-banner-text {
    flex: 1 1 420px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-banner-text a {
    color: #8fd1f4;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-banner .cookie-banner-accept {
    padding: 10px 26px;
    font-size: 15px;
}

.cookie-banner-decline {
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    background: transparent;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-banner-decline:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

/* Packages section — блок «Пакеты участия» (по ТЗ: три карточки с ценами
   и кнопками оплаты). Разметку выводит components/packages-customize.php. */
.packages {
    background: white;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.package-card {
    display: flex;
    flex-direction: column;
    padding: 35px 30px;
    background: #f8f9fa;
    border: 1px solid #e2e6ea;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.package-title {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: var(--dark);
}

.package-price {
    margin-bottom: 18px;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--accent);
}

/* Список «что входит» растягивается, чтобы кнопки в карточках стояли на одной
   высоте, даже если список у пакетов разной длины. */
.package-features {
    flex: 1 1 auto;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.package-features li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 24px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--gray);
}

.package-features li:before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.package-button {
    margin-top: auto;
    align-self: center;
}
