@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400;500;600;700;800&family=Roboto:wght@400;500&display=swap');

/* Полное отключение контура фокуса при клике мышкой */
*, *::before, *::after {
    outline: none !important;
    -webkit-tap-highlight-color: transparent; /* Убирает темную/синюю вспышку при тапе на смартфонах */
}

/* Если хотите сохранить доступность с клавиатуры (Tab), оставьте это: */
:focus-visible {
    outline: none;
}

:target {
    outline: none;
    box-shadow: none;
}

/* Блокировка скролла без исчезновения полосы прокрутки */
body.modal-open {
    overflow: hidden;
    /* Возвращает видимость полосы, предотвращая сдвиг контента */
    overflow-y: scroll;
}

button:focus,
.btn:focus,
a:focus {
    outline: none;
}

:root{
    --blue: #00519b;
    --blue-bright: #0B7AFF;
    --blue-hero-bg: rgba(11, 122, 255, 0.7);
    --orange: #f08024;
    --orange-dark: #d96b12;
    --gray-bg: #ebebeb;
    --text: #1a1a1a;
    --white: #ffffff;
    --max-width: 1200px;
}

*{ box-sizing: border-box; margin:0; padding:0; }

html{ scroll-behavior: smooth; }

body{
    font-family: 'Wix Madefor Display', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
}

.container{
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a{ text-decoration: none; color: inherit; }
a,
a:visited,
a:active,
a:focus{
    color: inherit;
}
ul{ list-style: none; }

/* Buttons */
.btn{
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    font-family: inherit;
}
.btn:hover{ background: var(--orange-dark); transform: translateY(-2px); }

.btn--header{
    text-transform: none;
    font-size: 18px;
    padding: 8px 30px;
    white-space: nowrap;
}

.btn--orange{
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* HEADER */
.header{ position: sticky; top:0; z-index: 100; }
.header__topline{ height: 8px; background: var(--white); }
.header__main{
    background: var(--white);
    box-shadow: 0 4px 4px rgba(0,0,0,0.15);
}
.header__inner{
    max-width: 1600px;
    margin: 0 auto;
    padding: 12px 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo img{ height: 44px; display: block; }

.nav{
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: center;
}
.nav__link{
    color: var(--blue);
    font-weight: 800;
    font-size: 20px;
}
.nav .nav__link {
    color: var(--blue) !important;
    opacity: 1 !important;
    transition: opacity .2s ease;
}
.nav .nav__link:hover {
    opacity: .7 !important;
}

/* HERO */
.hero{
    min-height: 900px;
    background:
            url("./img/hero-bg.png") center/cover no-repeat,
            linear-gradient(135deg, #0b7aff 0%, #063d80 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* было center */
    padding: 80px 24px 250px 250px;  /* больше отступ слева */
    overflow: hidden;
}
.hero__wrap{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 640px;
    width: 100%;
    margin-right: auto;
}
.hero__card{
    background: rgba(11, 122, 255, 0.78);
    border-radius: 25px;
    padding: 30px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}
.hero__btn{
    margin-top: 24px;
    font-size: 18px;
    padding: 16px 36px;
}
.hero__date{
    font-size: clamp(90px, 6vw, 72px);
    font-weight: 400;
    color: var(--white);
    line-height: 1;
}
.hero__title{
    font-size: clamp(95px, 7vw, 84px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
    line-height: 1.1;
    margin-top: 15px;
}
.hero__subtitle{
    font-size: clamp(58px, 4vw, 40px);
    font-weight: 500;
    color: var(--white);
    margin-top: 10px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 16px 60px 16px;
        min-height: auto;
        height: 100vh;
        justify-content: center;
        align-items: center;
    }

    .hero__wrap {
        margin-right: 0;
        align-items: center;
    }

    .hero__card {
        padding: 24px 20px;
        align-items: center;
        text-align: center;
        border-radius: 16px;
    }

    .hero__date {
        font-size: clamp(48px, 12vw, 72px);
    }

    .hero__title {
        font-size: clamp(42px, 10vw, 64px);
        letter-spacing: 1px;
        margin-top: 10px;
    }

    .hero__subtitle {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 0;
    }

    .hero__btn {
        width: 100%;
        max-width: 320px;
        margin-top: 20px;
        font-size: 16px;
        padding: 14px 24px;
        text-align: center;
    }
}
/* Section titles */
.section-title{
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--blue-bright);
    text-transform: uppercase;
    margin-bottom: 36px;
}

/* ABOUT */
.about{ padding: 80px 0; background: var(--white); }
.about__grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.about__text p{ font-size: 20px; margin-bottom: 16px; }
.about__text p:last-child{ margin-bottom: 0; }
.about__photo{
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 20px;
    margin-top: 40px;
}

/* VENUE */
.venue{ padding: 80px 0; background: var(--gray-bg); }
.venue__grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.venue__text p{ font-size: 20px; margin-bottom: 16px; }
.venue__text .btn{ margin-top: 8px; }
.venue__map{
    width: 100%;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
}
.venue__map iframe{
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
}

/* PROGRAM */
.program{ padding: 80px 0; background: var(--white); }
.timeline{ display: flex; flex-direction: column; gap: 18px; }
.timeline__row{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
}
.timeline__time{ font-weight: 700; min-width: 160px; color: var(--blue); }
.timeline__desc{ flex: 1; min-width: 240px; }

/* TOUR */
.tour{ padding: 80px 0; background: var(--white); }
.tour__grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.tour__lead{ font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.tour__list{ display: flex; flex-direction: column; gap: 10px; }
.tour__list li{
    font-size: 19px;
    padding-left: 24px;
    position: relative;
}
.tour__list li::before{
    content: "•";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}
.tour__photo{
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

/* PRICE */
.price{ padding: 80px 0; background: var(--gray-bg); }
.price__grid{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}
.price__left{ display: flex; align-items: center; gap: 24px; }
.price__icon{ width: 150px; height: 150px; object-fit: contain; }
.price__amount{ font-size: 40px; font-weight: 700; }
.price__note{ font-size: 16px; margin-top: 8px; color: #444; }
.price__divider{ width: 4px; background: #0b7aff; height: 200px; border-radius: 10px; margin-right: 40px; }
.price__lead{ font-weight: 700; font-size: 22px; margin-bottom: 12px; }
.price__list{ font-size: 18px; line-height: 1.8; }

/* CONTACTS */
.contacts {
    position: relative;
    height: 550px;
    padding: 0;
    display: flex;
    align-items: center;
}
.address__map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}
.map-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}
.contacts__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}
.contacts__card {
    background: #009FE3;
    border-radius: 40px;
    padding: 50px 56px;
    color: var(--white);
    max-width: 460px;
    width: 100%;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.contacts__company{ font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.contacts__line{ font-size: 22px; margin-bottom: 4px; }
.contacts__label{ font-size: 22px; font-weight: 800; margin-top: 16px; }

@media (max-width: 767px) {
    .contacts {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }

    /* Верхняя часть: Карта */
    .address__map {
        position: relative;
        height: 50vh;
        width: 100%;
    }

    .map-blocker {
        height: 50vh;
    }

    .contacts__inner {
        position: relative;
        z-index: 3;
        display: block;
        background-color: #009FE3;
        width: 100%;
        pointer-events: auto;
    }

    .contacts__card {
        background-color: transparent;
        max-width: 100%;
        width: 100%;
        box-shadow: none;
        padding: 40px 20px;
        color: white;
    }

    .contacts__company {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .contacts__line,
    .contacts__label {
        font-size: 18px;
    }

    .contacts__company br {
        display: none;
    }
}

.modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.active{ display: flex; }

.modal{
    background: var(--white);
    padding: 40px;
    max-width: 460px;
    width: 100%;
    position: relative;
    animation: modalIn .25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal--wide{ max-width: 760px; }


@keyframes modalIn{
    from{ opacity: 0; transform: translateY(20px); }
    to{ opacity: 1; transform: translateY(0); }
}

.modal__close{
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}
.modal__close:hover{ color: var(--text); }

.modal__title{
    font-size: 26px;
    font-weight: 800;
    color: var(--blue-bright);
    text-transform: uppercase;
    margin-bottom: 28px;
}

.modal__form{ display: flex; flex-direction: column; gap: 20px; }

.modal__row{
    display: grid;
    gap: 20px;
}
.modal__row--3{ grid-template-columns: repeat(3, 1fr); }
.modal__row--2{ grid-template-columns: repeat(2, 1fr); }

.modal__form label{
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
}
.modal__form input{
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
}
.modal__form input:focus{
    outline: none;
    border-color: var(--blue-bright);
}

.modal__add{
    align-self: flex-start;
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
    text-transform: uppercase;
    font-weight: 700;
    padding: 12px 24px;
    font-size: 14px;
}
.modal__add:hover{
    background: var(--orange);
    color: var(--white);
}

.participant-block{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.participant-block__title{
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.modal__submit-row{
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.modal__submit{
    padding: 14px 40px;
}

.modal__success{
    display: none;
    margin-top: 20px;
    color: #1a7a3a;
    font-weight: 600;
    text-align: center;
}
.modal__success.active{ display: block; }
.modal__form.hidden{ display: none; }

/* Кнопка удаления: копируем размеры и поведение modal__add */
.modal__remove-btn {
    align-self: flex-start;
    background: transparent;
    color: #e04f4f;
    border: 2px solid #e04f4f;
    text-transform: uppercase;
    font-weight: 700;
    padding: 12px 24px;
    font-size: 14px;
    margin-top: 10px;
    border-radius: 4px; /* Чтобы скруглить углы как у базовой btn */
}

.modal__remove-btn:hover {
    background: #e04f4f;
    color: var(--white);
    transform: translateY(-2px);
}

/* Стили для линии-разделителя */
.participant-block__divider {
    height: 1px;
    background-color: #eee;
    margin-top: 25px;
    margin-bottom: 10px;
    width: 100%;
}

/* Корректировка для мобильных экранов */
@media (max-width: 700px) {
    .modal__remove-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 700px){
    .modal--wide{ max-width: 100%; }
    .modal__row--3, .modal__row--2{ grid-template-columns: 1fr; }
}
label.custom-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin: 12px 0 24px 0;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox__box {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #a3a6bc;
    border-radius: 6px;
    background-color: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox__text {
    font-size: 18px;
    color: #888888;
    font-weight: 400;
    white-space: nowrap;
}

.custom-checkbox__box::after {
    content: "";
    width: 6px;
    height: 11px;
    border: solid #888888;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
    margin-top: -1px;
}

.custom-checkbox:hover .custom-checkbox__box {
    border-color: var(--blue-bright);
}

.custom-checkbox input:checked ~ .custom-checkbox__box::after {
    transform: rotate(45deg) scale(1);
}

.custom-checkbox input:checked ~ .custom-checkbox__box {
    border-color: #888888;
}

/* Основная плашка — серая полоса на всю ширину экрана */
/* Основная плашка */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #f0f2f5;
    border-top: 1px solid #e1e4e8;
    padding: 15px 0;
    z-index: 9999;
    font-family: Arial, sans-serif;
    box-sizing: border-box;

    /* АНИМАЦИЯ: Изначально смещаем плашку полностью вниз (она скрыта под экраном) */
    transform: translateY(100%);
    /* Плавность движения: 0.4 секунды с мягким ускорением/замедлением */
    transition: transform 0.4s ease-in-out;
}

/* Класс, который JS добавит для красивого появления */
.cookie-banner.show {
    transform: translateY(0);
}

/* Класс, который JS добавит при нажатии на кнопку, чтобы плашка уползла вниз */
.cookie-banner.hide {
    transform: translateY(100%);
}

/* --- Остальные стили контента (остаются без изменений) --- */
.cookie-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-sizing: border-box;
}

.cookie-icon img {
    width: 45px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.cookie-text {
    font-size: 13px;
    line-height: 1.5;
    color: #333333;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.cookie-text a {
    color: #333333;
    text-decoration: underline;
}

.cookie-text a:hover {
    text-decoration: none;
}

.cookie-btn {
    background-color: #0b4da4;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 0;
}

.cookie-btn:hover {
    background-color: #083b7e;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .cookie-text {
        text-align: center;
    }
    .cookie-btn {
        width: 100%;
        padding: 12px;
    }
}

/* RESPONSIVE */
@media (max-width: 900px){
    .header__inner{ flex-wrap: wrap; justify-content: center; padding: 12px 16px; }
    .nav{ order: 3; width: 100%; justify-content: center; }
    .about__grid, .venue__grid, .tour__grid{ grid-template-columns: 1fr; }
    .price__grid{ grid-template-columns: 1fr; }
    .price__divider{ display: none; }
    .contacts__inner{ grid-template-columns: 1fr; }
    .contacts__card{ margin: 0 auto; max-width: 460px; width: 100%; }
    .hero__card{ padding: 32px; }
    .venue__photo, .tour__photo{ min-height: 220px; }
    .venue__map, .venue__map iframe{ min-height: 260px; }
}

@media (max-width: 520px){
    .nav{ gap: 20px; }
    .nav__link{ font-size: 16px; }
    .btn--header{ font-size: 15px; padding: 10px 18px; }
    .timeline__time{ min-width: 130px; font-size: 17px; }
    .timeline__desc{ font-size: 17px; }
}