:root {
    --bg-light: #f5f5f5;
    --grass-green: #27ae60;
    --salad-bg: #e8f7e8;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin: 0;
    padding: 0;
    background: #f4f4f4; /* Основной фон страницы */
    color: #1a1a1a;

}

/* ГЛАВНЫЙ КОНТЕЙНЕР ДЛЯ ВСЕГО САЙТА */
.main-wrapper {
    max-width: 1000px;    /* Было 1200px, теперь как на turovseminar */
    margin: 40px auto;
    border-radius: 12px;
    padding: 0 15px;      /* Небольшие отступы по бокам для мобилок */
}

/* ШАПКА */
.topbar {
    margin-bottom: 50px;  /* Расстояние между шапкой и блоком с карточками */
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ebebeb;
    padding: 20px 30px;   /* Уменьшили внутренние отступы */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}




.v-divider { width: 1px; height: 60px; background: #ccc; margin: 0 10px; }

/* ДАТА */
.date-block { flex: 1; text-align: center; }
.date {
    color: var(--grass-green);
    font-weight: 900;
    font-size: 32px;
    line-height: 1;
}
.city { color: #666; font-size: 20px; font-weight: 600; }

/* ТЕЛЕФОН */
.phone-block { flex: 1; text-align: center; }
.phone-block a {
    text-decoration: none;
    color: #000;
    font-weight: 800;
    font-size: 22px;
}

/* ИКОНКА МАКС */
.max-icon-btn {
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: contain;
}

.max-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.max-link:hover .max-icon-btn {
    transform: scale(1.1);
}

/* БЛОК С КОНТЕНТОМ */
.hero-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px; /* Чтобы контент не прилипал к низу */
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 470px;
    width: auto;
}


.hero-info-card {
    background: #fff;
    padding: 22px 30px;
    border-radius: 12px;
    font-size: 24px; /* Базовый размер для обычных карточек */
    font-weight: 700;
    border-left: 14px solid var(--grass-green);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.hero-info-card-main {
    background: var(--grass-green); /* Зеленый фон */
    color: #fff;                   /* Белый текст */
    font-size: 36px;               /* Увеличенный шрифт */
    line-height: 1.2;
    padding: 40px 40px;            /* Увеличенные отступы */
    border-left: none;             /* Убираем полоску, так как весь блок яркий */
    box-shadow: 0 12px 35px rgba(39, 174, 96, 0.3); /* Цветная тень для глубины */
}


/* ФОТО - увеличено и адаптивно */
.hero-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    max-height: 470px;
    width:auto;
}

.hero-portrait {
    width: auto;    
    max-height: 470px;
    border-radius: 20px;
    display: block;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    object-fit: cover;
}


.logo-text {
    font-weight: 900;
    font-size: 16px;
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-text span {
    display: block;   /* Перенос на новую строку */
    font-size: 32px;  /* Крупный размер */
    color: var(--grass-green);
}

.warning-strip {
      width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
    background-color: var(--grass-green); /* Насыщенный красный цвет */
    color: #ffffff;            /* Белый текст */
    text-align: center;        /* Центрирование текста */
    padding: 15px 20px;        /* Отступы сверху и снизу */
    font-weight: 800;          /* Жирный шрифт */
    font-size: 44px;           /* Размер шрифта */
   /* text-transform: uppercase; /* Все буквы заглавные */
    margin-bottom: 30px;
    margin-top: 30px;/* Отступ до следующего контента */
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.2); /* Мягкая красная тень */
    letter-spacing: 0.5px;     /* Небольшой межбуквенный интервал */
}

.pricing-section {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: #fff;
    width: 100%;
    max-width: 6000px;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.price-header {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
}

.price-value {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    flex-wrap: wrap;  
    gap: 15px;    
    font-size: 38px;
    font-weight: 900;
    color: #333;
    margin-bottom: 30px;


    gap: 10px;
}

.price-text{
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
}

.price-num {
    color: var(--grass-green, #27ae60); /* Использует вашу переменную или зеленый по умолчанию */
    font-size: 38px;        /* Сделал числа чуть крупнее, как на макете */
    font-weight: 700;
}
.price-row {
    display: flex;
    align-items: baseline;  /* Выравнивание текста по низу цифр */
    justify-content: center;/* Центрируем содержимое внутри каждой строки */
    gap: 10px;
    font-size: 30px;        /* Размер для слова "руб." */
    font-weight: 600;
    color: #333;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    text-align: left;
    max-width: 350px;
}

.price-features li {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-features li span {
    color: var(--grass-green);
    font-weight: 900;
}

.btn-register {
    display: inline-block;
    background: var(--grass-green);
    color: #fff;
    text-decoration: none;
    padding: 22px 50px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
    border: none;
    cursor: pointer;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.4);
}

.price-note {
    margin-top: 20px;
    font-size: 14px;
    color: #999;
    font-weight: 500;
}


.program-section {
    margin: 80px 0;
}

.program-title {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.program-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ПРОГРАММА СЕМИНАРА - БЕЗ АККОРДЕОНА */
.program-row {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.program-row:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.program-topic {
    background: var(--grass-green);
    color: #fff;
    padding: 25px 30px;
    font-size: 20px;
    font-weight: 800;
}

.program-desc {
    padding: 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    font-weight: 500;
    background: #fff;
}

.results-section {
    margin: 80px 0;
    padding: 60px 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.results-main-title {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.results-main-title span {
    color: var(--grass-green);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 колонки */
    gap: 30px;
}

.result-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: var(--salad-bg); /* Светло-зеленый фон из ваших переменных */
    border-radius: 15px;
    transition: background 0.3s;
}

.result-card:hover {
    background: #d4f0d4;
}

.result-icon {
    font-size: 48px;
    font-weight: 900;
    color: var(--grass-green);
    opacity: 0.5;
    line-height: 1;
}

.result-content h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}

.result-content p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #444;
    font-weight: 500;
}/* Блок на всю ширину экрана */
/* Блок на всю ширину экрана */
.location-fullwidth {
    background-color:#ebebeb;
    width: 100%;
    padding: 80px 0;
    margin: 50px 0;
    box-sizing: border-box;
}

.location-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.location-columns {
    display: flex;
    justify-content: space-between;
    /* ЦЕНТРИРУЕМ КАРТИНКУ ПО ВЫСОТЕ ТЕКСТА */
    align-items: center;
    gap: 50px;
}

.location-text-side {
    flex: 1.1; /* Текст занимает чуть больше места */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Все элементы внутри прижаты к левому краю */
}

.location-main-title {
    font-size: 31px;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 40px;
    margin-top: 0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon-img {
    width: 32px;
    height: auto;
    flex-shrink: 0;
}

.info-text {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
}

.btn-action {
    margin-top: 20px;
    background-color: var(--grass-green);
    color: #fff;
    border: none;
    padding: 20px 45px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease;
}
.phone-link {
    color: inherit;
    text-decoration: none;
}

.btn-red-action:hover {
    background-color: var(--grass-green);
    transform: scale(1.02);
}

.location-image-side {
    flex: 1;
}

.hall-photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    object-fit: cover;
}

/* Адаптив для мобильных */
@media (max-width: 850px) {
    .location-columns {
        flex-direction: column;
        text-align: center;
    }
    .location-text-side {
        align-items: center; /* Центрируем текст на мобилках */
    }
    .info-row {
        text-align: left;
    }

    .hall-photo {
        max-width: 100%;
    }
}

/* ========== ПОДВАЛ САЙТА ========== */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

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

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--grass-green);
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Социальные сети */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecf0f1;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.social-link:hover {
    background: var(--grass-green);
    color: #fff;
    transform: translateY(-3px);
}

/* Контакты */
.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.footer-contacts svg {
    flex-shrink: 0;
    color: var(--grass-green);
}

.footer-contacts a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: var(--grass-green);
}

/* Ссылки */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--grass-green);
    transform: translateX(5px);
}

/* ========== КНОПКА "НАВЕРХ" ========== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--grass-green);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #229954;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* ========== АДАПТИВНОСТЬ ДЛЯ ПОДВАЛА ========== */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ========== УЛУЧШЕННАЯ АДАПТИВНОСТЬ ДЛЯ ВСЕГО САЙТА ========== */

/* Планшеты */
@media (max-width: 1024px) {
    .main-wrapper {
        max-width: 100%;
        margin: 20px auto;
        padding: 0 20px;
    }

    .topbar-inner {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 20px;
    }

    .v-divider {
        display: none;
    }

    .date {
        font-size: 24px;
    }

    .city {
        font-size: 16px;
    }

    .hero-container {
        flex-direction: column;
        gap: 30px;
    }

    .hero-portrait {
        max-width: 100%;
    }

    .hero-info-card {
        font-size: 20px;
        padding: 18px 25px;
    }

    .hero-info-card-main {
        font-size: 28px;
        padding: 30px 30px;
    }

    .program-title,
    .results-main-title {
        font-size: 32px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* Мобильные устройства */
@media (max-width: 640px) {
    .topbar-inner {
        flex-direction: column;
        text-align: center;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-text span {
        font-size: 24px;
    }

    .date {
        font-size: 20px;
    }

    .city {
        font-size: 14px;
    }

    .phone-block a {
        font-size: 18px;
    }

    .hero-info-card {
        font-size: 18px;
        padding: 16px 20px;
    }

    .hero-info-card-main {
        font-size: 24px;
        padding: 25px 20px;
    }

    .hero-portrait {
        max-width: 100%;
    }

    .warning-strip {
        font-size: 28px;
        padding: 12px 15px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .price-value {
        font-size: 56px;
    }

    .btn-register {
        padding: 18px 35px;
        font-size: 16px;
    }

    .program-title,
    .results-main-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .program-topic {
        font-size: 18px;
        padding: 20px;
    }

    .program-desc {
        font-size: 16px;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .result-icon {
        font-size: 36px;
    }

    .result-content h3 {
        font-size: 20px;
    }

    .result-content p {
        font-size: 16px;
    }

    .location-main-title {
        font-size: 24px;
    }

    .info-text {
        font-size: 16px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 375px) {
    .hero-info-card-main {
        font-size: 20px;
        padding: 20px 15px;
    }

    .warning-strip {
        font-size: 22px;
    }

    .price-value {
        font-size: 48px;
    }

    .program-title,
    .results-main-title {
        font-size: 22px;
    }
}

/* ========== МОДАЛЬНОЕ ОКНО РЕГИСТРАЦИИ ========== */
.registration-modal {
    border: none;
    border-radius: 20px;
    padding: 0;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: transparent;
}

.registration-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 45px 40px;
    border-radius: 20px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    text-align: center;
}

.modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 30px 0;
    text-align: center;
    font-weight: 500;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-group input {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--grass-green);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.btn-submit {
    background: var(--grass-green);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-submit:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-checkbox-group {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start; /* Чтобы текст не прыгал, если он длинный */
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-item input {
  margin-top: 3px; /* Выравнивание квадратика по первой строке текста */
  cursor: pointer;
}

.required {
  color: red;
}



/* ========== СТИЛИ ДЛЯ ОШИБОК ВАЛИДАЦИИ ========== */
.input-error {
    border-color: #e74c3c !important;
    background-color: #fff5f5 !important;
    animation: shake 0.3s ease-in-out;
}

.input-error:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Стили для чекбоксов с ошибками */
input[type="checkbox"].input-error {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
    background-color: transparent;
}

.checkbox-item.has-error {
    background-color: #fff5f5;
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #e74c3c;
}

.field-error-message {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.3s ease-out;
}

.field-error-message::before {
    content: "⚠";
    font-size: 14px;
}

/* Анимация тряски для полей с ошибками */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация исчезновения */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Анимация появления справа */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .modal-content {
        padding: 30px 25px;
    }

    .modal-title {
        font-size: 24px;
    }

    .form-group input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 15px 30px;
        font-size: 16px;
    }
}
