/* === Variable Font (современные браузеры) === */
@supports (font-variation-settings: normal) {
    @font-face {
        font-family: 'Montserrat';
        src: url('../fonts/montserrat/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
        font-weight: 100 900;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'Montserrat';
        src: url('../fonts/montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype-variations');
        font-weight: 100 900;
        font-style: italic;
        font-display: swap;
    }
}

/* === Fallback для старых браузеров (static TTF) === */
@supports not (font-variation-settings: normal) {
    @font-face {
        font-family: 'Montserrat';
        src: url('../fonts/montserrat/static/Montserrat-Regular.ttf') format('truetype');
        font-weight: 400;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'Montserrat';
        src: url('../fonts/montserrat/static/Montserrat-Bold.ttf') format('truetype');
        font-weight: 700;
        font-style: normal;
        font-display: swap;
    }
}

html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
    display: block;
}
audio,
canvas,
progress,
video {
    display: inline-block;
}
audio:not([controls]) {
    display: none;
    height: 0;
}
progress {
    vertical-align: baseline;
}
template,
[hidden] {
    display: none;
}
a {
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}
a:active,
a:hover {
    outline-width: 0;
}
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}
b,
strong {
    font-weight: inherit;
    font-weight: bolder;
}
dfn {
    font-style: italic;
}
h1 {
    font-size: 2em;
    margin: 0.67em 0;
}
mark {
    background-color: #ff0;
    color: #000;
}
small {
    font-size: 80%;
}
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sub {
    bottom: -0.25em;
}
sup {
    top: -0.5em;
}
img {
    border-style: none;
}
svg:not(:root) {
    overflow: hidden;
}
code,
kbd,
pre,
samp {
    font-family: monospace,monospace;
    font-size: 1em;
}
figure {
    margin: 1em 40px;
}
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}
button,
input,
select,
textarea {
    font: inherit;
    margin: 0;
}
optgroup {
    font-weight: 700;
}
button,
input {
    overflow: visible;
}
button,
select {
    text-transform: none;
}
button,
html [type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}
fieldset {
    border: 1px solid silver;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}
legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}
textarea {
    overflow: auto;
}
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}
[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}
::-webkit-input-placeholder {
    color: inherit;
    opacity: 0.54;
}
::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}
/*normalize css */
p,
figure,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
}
b,
strong {
    color: #2B2E35;
}
body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #2B2E35;
    font-size: 14px;
    font-weight: 400;
}
p {
    color: #2B2E35;
    line-height: 1.5;
    font-size: 14px;
}

* {
    box-sizing: border-box;
}

a[href^=tel] {
    color: inherit;
    text-decoration: none;
}

html,
body {
    height: 100%;
    background: #f5f7f9;
    position: relative;
}

input,
select,
textarea,
button {
    outline: 0;
}

.clearfix:after {
    content: "";
    clear: both;
    display: block;
}
.container {
    width: 1200px;
    margin: 0 auto;
}

.header {
    background: transparent;
    width: 100%;
    height: 120px;
    display: flex;
    position: absolute;
    left: 0;
    z-index: 1001;
    margin: 0;
    align-items: center;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.logo-text {
    max-width: 295px;
}

.logo-text-top {
    font-size: 11px;
    line-height: 130%;
    color: #ffffff;
    font-weight: 300;
}

.logo-text-bottom {
    font-weight: 300;
    font-size: 11px;
    line-height: 130%;
    color: #ffffff;
}

.logo img {
    height: 55px;
}

.logo img:first-child {
    margin-right: 5px;
}

.header-right {

}

.lang {
    text-transform: uppercase;
    background: transparent;
    color: #fff;
    font-weight: 600;
    display: inline-block;
    font-size: 14px;
    border-radius: 24px;
    padding: 12px 24px;
    border: 1px solid #FF56E4;
    margin-right: 10px;
}

.lang:last-child {
    margin-right: 0;
}

.lang:hover {
    background: linear-gradient(245deg, #ff56e4 0.27%, #6e00ff 100%);
}

.hero {
    background-color: #00002B;
    position: relative;
    /*background: url('../img/hero-bg.png') no-repeat center;*/
    background-size: cover;
    z-index: 1;
    min-height: 860px;
    position: relative;
    overflow: hidden;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.hero h1 {
    display: flex;
    position: relative;
    color: transparent;
    font-family: Montserrat;
    font-size: 58px;
    font-weight: 600;
    line-height: 110%;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5));
    z-index: 12;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    justify-content: center;
    align-items: center;
}

.hero .subtitle {
    font-weight: 700;
    font-size: 20px;
    line-height: 130%;
    text-transform: uppercase;
    text-align: center;
    color: #5f56ff;
    margin-top: 45px;
    margin-bottom: 70px;
}
.cards-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 22;
    gap: 50px;
}

.hero .card {
    flex-shrink: 0;
    position: relative;
    background: rgba(45, 53, 162, 0.5);
    z-index: 14;
    border-radius: 16px;
    padding: 26px 22px;
    min-width: 350px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.card-row {
    display: flex;
    gap: 30px;
}

.card-icon {
    display: flex;
    align-items: center;
}

.card-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 130%;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 5px;
}

.card-subtitle {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 130%;
    text-transform: uppercase;
    color: #fff;
}

.about {
    background: #ebe7f5;
    position: relative;
    padding: 100px 0;
}

.about-wrapper {
    padding: 70px 100px;
    border: 2px solid #8956FF;
    border-radius: 24px;
    position: relative;
    text-align: center;
}

.title-wrapper {
    background: #ebe7f5;
    text-align: center;
    width: 370px;
    margin: -95px auto 43px auto;
}

.about-title {
    font-weight: 600;
    font-size: 40px;
    line-height: 130%;
    text-align: center;
    color: #322483;
}

.about-text {
    font-weight: 300;
    font-size: 20px;
    line-height: 170%;
    text-align: center;
    color: #282ba3;
}

@media (max-width: 1200px) {
    .container {
        width: 960px;
    }

    .map {
        display: none;
    }

    .blocks {
        position: relative;
        display: flex;
        margin-bottom: 15px;
        margin-top: 10px;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
        gap: 20px;
    }

    .plashka {
        display: none;
    }

    .soc-seti {
        display: none;
    }

    .regions-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 50px 0;
    }

    .regions-mobile .region-popup:after {
        content: none;
    }

    .population {
        background: #004981;
    }

    .population:before {
        background: none;
    }
}

@media (max-width: 992px) {

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

    .hero-content {
        width: 95%;
    }

    .program-row {
        grid-template-columns: 180px 30px 1fr;
    }
    .time-badge {
        font-size: 24px;
    }
    .program-text-title {
        font-size: 26px;
    }
    .card {
        padding: 24px 80px 24px 28px!important;
    }
    .card__title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .cards-row {
        gap: 25px;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 48px;
    }

    .program__header {
        flex-direction: column;
    }

    .program__title {
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {
    .title-wrapper {
        width: auto;
        margin: 0 0 25px;
    }

    .about-wrapper {
        padding: 50px;
    }

    .langs {
        display: flex;
    }

    .lang {
        padding: 12px 18px;
    }

    .hero-content {
        margin-top: 50px;
    }

    .about {
        padding: 50px 0;
    }

}

@media (max-width: 480px) {
    .hero-content {
        margin-top: 100px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .about-wrapper {
        padding: 20px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .hero .card {
        width: 100%;
    }

    .card__nav {
        display: none!important;
    }

    .program .card {
        padding: 28px 32px 28px 32px!important;
    }

    .site-footer__inner {
        flex-direction: column;
    }

    .site-footer__copy {
        margin-bottom: 20px!important;
    }

    .logo-text {
        display: none;
    }

    .speakers-topics {
        padding-left: 5px!important;
    }
}

/* оболочка */
.program {
    background: #ebe7f5;
    padding: 60px 20px;
    font-family: "Roboto", sans-serif;
}
.program__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 48px;
}
.program__title {
    font-weight: 600;
    font-size: 40px;
    line-height: 130%;
    text-align: center;
    color: #0f044e;
}

/* табы */
.program__tabs {
    display: flex;
    gap: 12px;
}
.program__tab {
    border: none;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
    color: #0f044e;
    padding: 10px 20px;
    border-radius: 16px;
    cursor: pointer;
}
.program__tab--active {
    background: #322483;
    color: #fff;
}

/* панель дня */
.program__panel {

}
.program__panel[hidden] {
    display: none;
}
.program__panel--active {
    display: block;
}

/* ряд (3 колонки: время — ось — контент) */
.program-row {
    display: grid;
    grid-template-columns: 230px 36px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
}

/* время слева */
.program-time {
    display: flex;
    justify-content: flex-end;
}

.time-badge {
    display: inline-block;
    padding: 8px 26px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 99.52%);
    font-weight: 600;
    font-size: 28px;
    line-height: 130%;
    text-transform: uppercase;
    color: #0f044e;
    margin-right: -43px;
    position: relative;
}

/* вертикальная ось по центру */
.program-axis {
    position: relative;
    height: 100%;
    min-height: 28px;
}
.program-axis::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -18px;
    bottom: -24px;
    transform: translateX(-50%);
    border-left: 2px dashed #793AD8;
}
.program-row:first-child .program-axis::before {
    top: 15px;
}
.program-row:last-child .program-axis::before {
    bottom: 0px;
}
.axis-dot {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ceaef0;
    display: block;
    box-shadow: inset 0 0 0 6px #ebe7f5;
    z-index: 9;
}
.axis-dot::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #E39BE1;
}

/* контент справа */
.program-content {
    align-self: stretch;
    align-self: stretch;
    display: flex;
    align-items: center;
}

/* простая строка (без карточки) */
.program-text-title {
    font-weight: 700;
    font-size: 22px;
    line-height: 130%;
    color: #0f044e;
}

.program-text-title.light {
    font-weight: 400;
}

/* карточка сессии */
.program .card {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    padding: 28px 86px 28px 32px;
    box-shadow: 0 10px 30px rgba(18, 16, 59, 0.08);
    color: #1e1b4b;
    width: 100%;
    border: 1px solid #ffffff;
}


.card__subtitle {
    margin: 0 0 15px;
    font-weight: 500;
    font-size: 18px;
    line-height: 130%;
    color: #8c86ad;
}
.card__title {
    font-weight: 700;
    font-size: 22px;
    line-height: 130%;
    color: #0f044e;
    margin-bottom: 30px;
}

.card__title:has(+ .card__title__desc) {
    margin-bottom: 5px;
}

.card__title__desc {
    font-weight: 400;
    font-size: 18px;
    line-height: 130%;
    color: #4c4187;
    margin-bottom: 30px;
}

/* список спикеров */
.speakers {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.speakers__item {
    text-align: center;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    text-align: center;
    color: #8c86ad;
    width: 110px;
}

.speakers__item span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: break-word;
}

.speakers__item img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    margin: 0 auto 8px;
}

.speakers-topics {
    padding-left: 30px;
    margin-top: 30px;
}

ol.speakers-topics li {
    font-size: 18px;
    line-height: 140%;
    color: #2b2259;
    margin-bottom: 15px;
}

ol.speakers-topics li b {
    color: #2b2259;
}

/* «пилюля» со стрелкой справа в карточке */
.card__nav {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 128px;
    border: none;
    border-radius: 24px;
    background: rgba(50, 41, 107, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.card__nav:hover {
    filter: brightness(1.05);
}

/* адаптив */

@media (max-width: 768px) {
    .program-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .program-time {
        justify-content: flex-start;
    }
    .program-axis {
        height: 24px;
    }
    .program-axis::before {
        left: 12px;
        top: 0;
        bottom: 0;
        transform: none;
    }
    .axis-dot {
        left: 12px;
        transform: translate(-50%, -50%);
    }
    .time-badge {
        font-size: 20px;
    }
    .program-text-title {
        font-size: 22px;
    }
    .card {
        padding: 20px 60px 20px 20px!important;
    }
}

.venue {
    background: url('../img/vennue-bg.jpg') no-repeat top;
    background-size: cover;

}

.venue .venue-bg {
    padding: 80px 0;
    background: rgba(36, 28, 80, 0.4);
}

.venue .venue__wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.venue .column {
    flex: 1 1 50%;
    box-sizing: border-box;
}

.venue .venue__title {
    background: #0f044e;
    font-weight: 700;
    font-size: 16px;
    line-height: 130%;
    color: #fff;
    padding: 10px;
    display: inline-block;
    margin-bottom: 15px;
}

.venue .venue__name {
    font-weight: 700;
    font-size: 48px;
    line-height: 130%;
    color: #fff;
    margin-bottom: 25px;
}

.venue .venue__address {
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
    color: #fff;
}

.venue .map {
    text-align: right;
}

.site-footer {
    background: #0B0337;
    color: #fff;
    padding: 16px 0;
}
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-footer__copy {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 134%;
    color: #fff;
}

.social {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
}
.social__link {
    display: block;
    inline-size: 32px;
    block-size: 32px;
    background-size: cover;
    background-position: center;
}