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

html {
    scroll-behavior: smooth;
}

body {
    background: #06080c;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

a,
button,
.card,
.badges img,
.stat,
.btn {
    transition: all .25s ease;
}

.container {
    width: min(1400px, 92%);
    margin: 0 auto;
}

/* ==========================
   HEADER
========================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 8, 12, .85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #151922;
}

.nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo .name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.logo .role {
    font-size: 13px;
    color: #8b94a7;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    color: #c4c8d4;
}

nav a:hover {
    color: #00d9ff;
}

/* ==========================
   HERO
========================== */

.hero {
    padding: 70px 0 90px;
}

/* Имя вынесено из сетки — тянется на всю ширину контейнера */
.hero-head {
    margin-bottom: 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns:
        minmax(280px, 340px)
        minmax(400px, 1fr)
        minmax(180px, 220px);
    gap: 50px;
    align-items: center;
}

.hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo img {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 32px;
    box-shadow:
        0 40px 80px rgba(0,0,0,.45);
}

.label {
    color: #00d9ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 24px;
    /* «•» в Inter сидит низко — приподнимаем, чтобы строка не выглядела рваной */
    white-space: nowrap;
}

.label .dot {
    display: inline-block;
    margin: 0 4px;
    color: #2a3444;
    transform: translateY(-1px);
}

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

h1 {
    font-size: clamp(40px, 7.6vw, 112px);
    line-height: .98;
    margin-bottom: 18px;
    letter-spacing: -2px;
    text-wrap: balance;
}

/* Ник тем же кеглем, но приглушённый — имя и хэндл читаются как одно целое */
h1 .handle {
    color: #3a4354;
    font-weight: 500;
}

.tagline {
    font-size: clamp(20px, 2.6vw, 34px);
    line-height: 1.25;
    color: #00d9ff;
    font-weight: 600;
    max-width: 900px;
}

.hero p {
    font-size: clamp(17px, 1.5vw, 19px);
    color: #c4c8d4;
    max-width: 100%;
}

/* Факты чипами, а не серой строкой — не «болтается», а держит низ блока */
.hero-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-facts li {
    padding: 8px 16px;
    border: 1px solid #1d2330;
    border-radius: 999px;
    color: #8b94a7;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 18px 30px;
    border-radius: 16px;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: linear-gradient(
        90deg,
        #00d9ff,
        #42bfff
    );
    color: #000;
}

.btn-primary:hover {
    box-shadow:
        0 15px 35px rgba(0,217,255,.25);
}

.btn-secondary {
    border: 1px solid #293040;
    color: #fff;
}

.btn-secondary:hover {
    border-color: #00d9ff;
}

/* ==========================
   STATS
========================== */

.stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat {
    background: #11151f;
    border: 1px solid #1d2330;
    border-radius: 24px;
    padding: 28px;
    min-width: 180px;
}

.stat:hover {
    border-color: #00d9ff;
}

.number {
    font-size: 42px;
    font-weight: 800;
    color: #00d9ff;
    line-height: 1.1;
}

.text {
    color: #8b94a7;
    font-size: 15px;
}

/* ==========================
   CONFERENCES
========================== */

.events-strip {
    padding: 30px 0;
    border-top: 1px solid #1d2330;
    border-bottom: 1px solid #1d2330;
}

.events-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.events-track span {
    padding: 14px 24px;
    background: #11151f;
    border: 1px solid #1d2330;
    border-radius: 999px;
    color: #8b94a7;
    font-weight: 600;
}

.events-track span:hover {
    color: #00d9ff;
    border-color: #00d9ff;
}

/* ==========================
   SECTIONS
========================== */

.section {
    padding: 100px 0;
}

.dark {
    background: #0d1117;
}

h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    margin-bottom: 50px;
    line-height: 1.2;
}

h3 {
    margin-bottom: 14px;
}

.section-lead {
    color: #c4c8d4;
    max-width: 800px;
    margin-top: -25px;
    margin-bottom: 45px;
    font-size: 18px;
}

/* ==========================
   TIMELINE — «Где выступал»
========================== */

.timeline {
    list-style: none;
    border-top: 1px solid #1d2330;
}

.timeline li {
    padding: 22px 0;
    border-bottom: 1px solid #1d2330;
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 30px;
}

.timeline .when {
    font-weight: 600;
    color: #ffffff;
}

.timeline .what {
    color: #8b94a7;
}

.timeline .what a {
    color: #00d9ff;
}

.timeline .what a:hover {
    color: #7deeff;
}

@media (max-width: 900px) {
    .timeline li {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* ==========================
   TALKS / CARDS
========================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px,1fr));
    gap: 32px;
}

.card {
    background: #11151f;
    border: 1px solid #1d2330;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px rgba(0,0,0,.5),
        0 0 40px rgba(0,217,255,.15);
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #0d1117;
    padding: 8px;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 12px;
}

/*  БЫЛО: .card-content p { flex: 1; min-height: 80px }
    Это правило растягивало КАЖДЫЙ абзац карточки.
    С одним абзацем работало как распорка, с несколькими — ломало верстку. */
.card-content p {
    color: #c4c8d4;
    margin-bottom: 14px;
}

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

/* Распорка теперь отдельным элементом, а не абзацем */
.card-spacer {
    flex: 1;
    min-height: 10px;
}

.talk-meta {
    color: #8b94a7;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.talk-meta strong {
    color: #c4c8d4;
}

.talk-meta a {
    color: #00d9ff;
    border-bottom: 1px solid rgba(0,217,255,.3);
}

.talk-meta a:hover {
    color: #7deeff;
}

/* ==========================
   VIDEO LINK
========================== */

.talk-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid #1d2330;

    color: #00d9ff;
    font-weight: 600;
    font-size: 15px;

    transition: all .25s ease;
}

.talk-link:hover {
    color: #7deeff;
    transform: translateX(4px);
}

/* ==========================
   ТЕЗИСЫ — длинные тексты вне сетки карточек
========================== */

.thesis {
    background: #11151f;
    border: 1px solid #1d2330;
    border-radius: 32px;
    padding: 48px;
    margin-bottom: 28px;
}

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

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

.thesis p {
    color: #c4c8d4;
    margin-bottom: 18px;
    max-width: 900px;
}

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

/* ==========================
   КОРПОРАТИВНЫЙ БЛОК
========================== */

.quote {
    border-left: 3px solid #00d9ff;
    padding: 4px 0 4px 24px;
    margin: 28px 0 0;
    color: #c4c8d4;
    font-size: 19px;
    max-width: 900px;
}

.quote cite {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-size: 14px;
    color: #8b94a7;
}

/* ==========================
   ДЛЯ ОРГАНИЗАТОРОВ
========================== */

.organizers-grid {
    background: #11151f;
    border: 1px solid #1d2330;
    border-radius: 32px;
    padding: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 36px 50px;
}

.organizers-grid dt {
    font-weight: 700;
    color: #00d9ff;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.organizers-grid dd {
    color: #c4c8d4;
}

.organizers-grid dd a {
    color: #00d9ff;
}

.organizers-grid .item {
    min-width: 0;
}

@media (max-width: 768px) {
    .organizers-grid {
        padding: 32px;
    }
}

/* ==========================
   СПИСОК ПУБЛИКАЦИЙ
========================== */

.plain-list {
    list-style: none;
    max-width: 900px;
}

.plain-list li {
    padding: 16px 0;
    border-bottom: 1px solid #1d2330;
    color: #8b94a7;
}

.plain-list li:first-child {
    border-top: 1px solid #1d2330;
}

.plain-list a {
    color: #00d9ff;
    font-weight: 600;
}

.plain-list a:hover {
    color: #7deeff;
}

/* ==========================
   ABOUT
========================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-card {
    background: #11151f;
    border: 1px solid #1d2330;
    border-radius: 32px;
    padding: 48px;
}

.about-card p {
    color: #c4c8d4;
    margin-bottom: 20px;
}

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

.topics {
    list-style: none;
}

.topics li {
    color: #c4c8d4;
    margin-bottom: 20px;
    padding-left: 22px;
    position: relative;
}

.topics li:last-child {
    margin-bottom: 0;
}

.topics li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00d9ff;
}

/* ==========================
   BADGES
========================== */

.badges {
    display: grid;
    grid-template-columns:
        repeat(auto-fit,minmax(240px,1fr));
    gap: 24px;
}

.badges figure {
    margin: 0;
}

.badges img {
    border-radius: 24px;
    width: 100%;
}

.badges img:hover {
    transform: scale(1.03);
}

.badges figcaption {
    margin-top: 14px;
    text-align: center;
    color: #8b94a7;
    font-size: 14px;
    line-height: 1.45;
}

/* ==========================
   FOOTER
========================== */

footer {
    padding: 100px 0;
    border-top: 1px solid #1d2330;
}

footer p {
    color: #c4c8d4;
    max-width: 800px;
}

footer p a {
    color: #00d9ff;
}

.contacts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.contacts-row a {
    color: #00d9ff;
    font-size: 17px;
}

.contacts-row a:hover {
    transform: translateY(-2px);
    color: #7deeff;
}

.footer-signature {
    margin-top: 50px;
    color: #4d5566 !important;
    font-size: 14px;
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 1200px) {

    .hero-head {
        margin-bottom: 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1;
    }

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

@media (max-width: 900px) {

    nav {
        display: none;
    }

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

    .card img {
        height: 220px;
    }

    .thesis {
        padding: 32px;
    }
}

@media (max-width: 768px) {

    .section {
        padding: 70px 0;
    }

    h1 {
        letter-spacing: -1px;
    }

    .label {
        white-space: normal;
    }

    .stats {
        flex-direction: column;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .contacts-row {
        flex-direction: column;
        gap: 20px;
    }

    .about-card {
        padding: 32px;
    }

    .quote {
        font-size: 17px;
    }
}

/* ==========================
   СТРАНИЦА ДОКЛАДА / РАСШИФРОВКА
========================== */

.talk-hero {
    padding: 60px 0 40px;
}

.talk-hero h1 {
    font-size: clamp(30px, 4.4vw, 62px);
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.breadcrumb {
    color: #8b94a7;
    font-size: 15px;
    margin-bottom: 26px;
}

.breadcrumb a {
    color: #00d9ff;
}

.talk-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-top: 26px;
}

.talk-facts li {
    padding: 8px 16px;
    border: 1px solid #1d2330;
    border-radius: 999px;
    color: #8b94a7;
    font-size: 14px;
    white-space: nowrap;
}

.video-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 18px 30px;
    border-radius: 16px;
    background: linear-gradient(90deg, #00d9ff, #42bfff);
    color: #000;
    font-weight: 600;
}

.video-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,217,255,.25);
}

.summary {
    background: #11151f;
    border: 1px solid #1d2330;
    border-radius: 32px;
    padding: 48px;
}

.summary h2 {
    font-size: 28px;
    margin-bottom: 24px;
}

.pullquote {
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.35;
    font-weight: 600;
    color: #ffffff;
    border-left: 3px solid #00d9ff;
    padding-left: 26px;
    margin: 50px 0;
    max-width: 900px;
}

.pullquote span {
    display: block;
    margin-top: 14px;
    font-size: 15px;
    font-weight: 400;
    color: #8b94a7;
}

/* Расшифровка */

.transcript {
    max-width: 820px;
}

.transcript h2 {
    margin-top: 60px;
    font-size: 30px;
    margin-bottom: 30px;
    padding-top: 40px;
    border-top: 1px solid #1d2330;
}

.transcript h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.speech {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 24px;
    padding: 20px 0;
}

.speech .who {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
}

.speech.taras .who {
    color: #00d9ff;
}

.speech.tatiana .who {
    color: #ff8a5c;
}

.speech .who .ts {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: #4d5566;
    margin-top: 2px;
}

.speech .who .ts a {
    color: #4d5566;
}

.speech .who .ts a:hover {
    color: #00d9ff;
}

.speech p {
    color: #c4c8d4;
    margin-bottom: 14px;
}

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

.note {
    background: #11151f;
    border: 1px solid #1d2330;
    border-left: 3px solid #4d5566;
    border-radius: 16px;
    padding: 26px 30px;
    color: #8b94a7;
    font-size: 15px;
    margin: 40px 0;
    max-width: 820px;
}

.note strong {
    color: #c4c8d4;
}

@media (max-width: 768px) {

    .speech {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .speech .who .ts {
        display: inline;
        margin-left: 10px;
    }

    .summary {
        padding: 32px;
    }

    .pullquote {
        padding-left: 18px;
    }
}
