/* Главные стили лендинга: сетка, секции, шапка, программа, кнопки.
   Переменные темы — в :root; шрифт подключается с внешнего CDN. */

html {
    scroll-behavior: smooth; /* плавный скролл по якорям */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Proxima Nova";
    src: url("https://rostecnpf.ru/local/templates/rostec/dist/fonts/ProximaNova-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Proxima Nova";
    src: url("https://rostecnpf.ru/local/templates/rostec/dist/fonts/ProximaNova-Semibold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Proxima Nova";
    src: url("https://rostecnpf.ru/local/templates/rostec/dist/fonts/ProximaNova-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}

:root {
    --bg-main: #f3f3f4;
    --bg-soft: #f9f9fa;
    --surface: #ffffff;
    --text-main: #ececef;
    --text-muted: #8f8f8c;
    --border: #d5d5d9;
    --primary: #e9e9e9;
    --primary-dark: #0f1012;
    --primary-light: #ececef;
    --accent: #2c2d31;
    --accent-dark: #17181b;
    --shadow: rgba(16, 24, 32, 0.1);
    --header-sticky-height: 105px;
}

body {
    font-family: "Proxima Nova", Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.5;
}

a {
    color: inherit;
}

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

/* Шапка: логотип и меню внутри .sticky-top — прилипают вместе */

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1200;
}

.header {
    padding: 22px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--primary);
}

.nav a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Первый экран: тёмный градиент, спикеры в «стеклянных» плитках */

.hero {
    padding: 72px 0;
}

.hero__content {
    padding: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff;
    box-shadow: 0 22px 56px rgba(16, 24, 32, 0.22);
}

.hero__label,
.section__label {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero__label {
    color: #d7d9de;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: 54px;
    line-height: 1.08;
}

.hero__text {
    max-width: 680px;
    margin-bottom: 32px;
    font-size: 18px;
    color: #e7e9ed;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}

.hero__speakers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.hero__item {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
}

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

.hero__caption {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #d2d5da;
}

.hero__topic {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #e7e9ed;
    opacity: 0.8;
}

/* Обычные секции и подложка section--accent */

.section {
    padding: 72px 0;
}

.section--accent {
    background: linear-gradient(180deg, var(--bg-soft), #efeff2);
}

.section__label {
    color: var(--primary);
}

.section__title {
    margin-bottom: 24px;
    font-size: 34px;
    line-height: 1.15;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.card,
.speaker__intro,
.speaker__card,
.program__item {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px var(--shadow);
}

.card {
    padding: 32px;
    border-radius: 24px;
}

.card h2,
.speaker h2,
.cta h2 {
    margin-bottom: 16px;
    font-size: 34px;
    line-height: 1.15;
}

.list {
    padding-left: 20px;
}

.list li + li {
    margin-top: 10px;
}

/* Блок «спикер»: две колонки — текст и карточки */

.speaker {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.speaker__intro {
    padding: 32px;
    border-radius: 24px;
}

.speaker__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.speaker__card {
    padding: 28px 24px;
    border-radius: 24px;
}

.speaker__card h3 {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.2;
}

.speaker__card p {
    color: var(--text-muted);
    font-size: 18px;
}

/* Расписание: время слева, описание справа (на мобиле — столбиком) */

.program {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.program__item {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: baseline;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 20px;
}

.program__item h3 {
    margin-bottom: 8px;
}

#businessGameCard {
    z-index: 20;
}

.program__time {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Схема проезда: карта + описание */

.directions__lead {
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 28px;
    line-height: 1.55;
}

.directions__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.directions__map {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px var(--shadow);
}

.directions__map iframe {
    display: block;
    width: 100%;
    height: min(420px, 55vw);
    min-height: 280px;
    border: 0;
}

.directions__map-note {
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.directions__map-note a {
    color: var(--primary);
    font-weight: 600;
}

.directions__text {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 28px 32px;
    box-shadow: 0 16px 40px var(--shadow);
}

.directions__subtitle {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.directions__text p {
    margin-bottom: 12px;
    line-height: 1.55;
    color: var(--text-main);
}

.directions__list {
    margin: 16px 0 20px;
    padding-left: 20px;
    line-height: 1.55;
    color: var(--text-main);
}

.directions__list li + li {
    margin-top: 10px;
}

.directions__list--compact {
    margin-top: 8px;
    margin-bottom: 0;
}

.directions__details {
    max-width: 820px;
    margin-top: 40px;
}

.directions__details-title {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin: 32px 0 16px;
    line-height: 1.3;
}

.directions__details-title:first-child {
    margin-top: 0;
}

.directions__block {
    margin-bottom: 24px;
}

.directions__block:last-child {
    margin-bottom: 0;
}

.directions__h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 12px;
    line-height: 1.35;
}

.directions__steps {
    margin: 0;
    padding-left: 22px;
    line-height: 1.55;
    color: var(--text-main);
}

.directions__steps li + li {
    margin-top: 10px;
}

.directions__details p {
    margin-bottom: 12px;
    line-height: 1.55;
    color: var(--text-main);
}

.directions__details a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.directions__details a:hover {
    text-decoration: underline;
}

.directions__hotels {
    display: grid;
    gap: 20px;
    margin-bottom: 8px;
}

@media (min-width: 600px) {
    .directions__hotels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.directions__hotel {
    padding: 20px 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow);
}

.directions__hotel p {
    margin-bottom: 8px;
    font-size: 15px;
}

.directions__hotel p:last-child {
    margin-bottom: 0;
}

.directions__hotel-name {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px !important;
    font-size: 16px !important;
}

@media (max-width: 900px) {
    .directions__layout {
        grid-template-columns: 1fr;
    }
}

/* Призыв к действию внизу страницы */

.cta {
    padding: 72px 0 88px;
}

.cta__content {
    padding: 48px;
    text-align: center;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
}

.cta p {
    max-width: 620px;
    margin: 0 auto 28px;
    color: #dbdde2;
}

/* Подвал */

.footer {
    padding: 28px 0 40px;
    text-align: center;
    color: var(--text-muted);
}

/* BUTTONS */

.btn,
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn:hover {
    background: #dfdfe4;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(16, 24, 32, 0.22);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn:focus-visible,
.btn-primary:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.btn-primary:focus-visible {
    outline-color: #fbbf24;
}

@media (max-width: 900px) {
    .header {
        padding: 12px 0;
    }

    .header__content {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .header__content .logo img {
        height: 36px !important;
    }

    .nav {
        flex-wrap: wrap;
        gap: 8px 12px;
        justify-content: center;
        font-size: 13px;
    }

    .info-grid,
    .speaker,
    .hero__speakers,
    .speaker__list {
        grid-template-columns: 1fr;
    }

    .program__item {
        grid-template-columns: 70px 1fr;
        padding: 20px 16px;
        gap: 12px;
    }

    .program__item--active {
        padding-top: 40px;
    }

    .program__item--active::after {
        top: 8px;
        right: 10px;
        font-size: 11px;
        padding: 2px 8px;
    }

    .program__time {
        font-size: 18px;
    }

    .hero__content,
    .card,
    .speaker__intro,
    .speaker__card,
    .cta__content {
        padding: 28px;
    }

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

}

@media (max-width: 600px) {
    .header {
        padding: 8px 0;
    }

    .header__content {
        gap: 6px;
    }

    .header__content .logo img {
        height: 30px !important;
    }

    .nav {
        gap: 6px 10px;
        font-size: 12px;
    }

    .hero {
        padding: 48px 0;
    }

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

    .card h2,
    .speaker h2,
    .section__title,
    .cta h2 {
        font-size: 28px;
    }
}