/* ==========================================================================
   Конференция КФУ Джизак 2026 — дизайн с нуля (без фреймворков)
   ========================================================================== */

:root {
    --navy: #0b2540;
    --navy-soft: #12325c;
    --blue: #1b5aa0;
    --accent: #f2a900;
    --accent-dark: #d99600;
    --bg: #ffffff;
    --tint: #f4f7fb;
    --ink: #22303f;
    --muted: #5b6b7d;
    --border: #e3e9f2;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 6px 24px rgba(11, 37, 64, 0.08);
    --shadow-lg: 0 16px 48px rgba(11, 37, 64, 0.14);
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
        'Noto Sans', 'Liberation Sans', sans-serif;
    --font-heading: Georgia, 'Times New Roman', Times, serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul,
ol {
    list-style: none;
}

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

.container {
    width: min(100% - 32px, 1160px);
    margin: 0 auto;
}

.section {
    padding: 84px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 14px;
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.section-lead {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 44px;
    color: var(--muted);
    font-size: 1.05rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 13px 26px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
        color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--accent);
    color: var(--navy);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn-ghost:hover {
    background: var(--blue);
    color: #fff;
}

.btn-lg {
    padding: 16px 38px;
    font-size: 1.05rem;
}

.center-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

/* Шапка */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(11, 37, 64, 0.08);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 44px;
    width: auto;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
    background: var(--navy);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.nav-list a {
    display: block;
    padding: 13px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.nav-list a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Hero */
.hero {
    position: relative;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(242, 169, 0, 0.22), transparent 60%),
        radial-gradient(700px 420px at 10% 110%, rgba(27, 90, 160, 0.45), transparent 60%),
        linear-gradient(150deg, rgba(11, 37, 64, 0.88) 0%, rgba(18, 50, 92, 0.82) 55%, rgba(14, 44, 80, 0.88) 100%),
        url('assets/bg.jpg') center center / cover no-repeat;
    color: #fff;
    padding: 110px 0 120px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 960px;
}

.hero-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(242, 169, 0, 0.45);
    border-radius: 999px;
    padding: 8px 20px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(1.5rem, 3.6vw, 2.3rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3.4vw, 2.1rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 24px;
}

.hero-date {
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* О конференции */
.about-text p {
    margin-bottom: 16px;
    color: var(--muted);
}

.about-text {
    max-width: 900px;
    margin: 0 auto 32px;
}

.key-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    max-width: 900px;
    margin: 0 auto;
    padding: 22px 28px;
    background: var(--tint);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.key-points li {
    position: relative;
    padding-left: 22px;
}

.key-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

/* Статистика */
.stats-section {
    background: linear-gradient(120deg, var(--navy), var(--navy-soft));
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    color: #fff;
    padding: 18px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.stat-label {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* Направления */
.direction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.direction-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.direction-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.direction-img {
    width: 130px;
    height: 130px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--tint);
    background: var(--tint);
}

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

.direction-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Оргкомитет */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.member-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.member-card:hover {
    transform: translateY(-4px);
}

.member-card h3 {
    font-size: 1.02rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.member-degree {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.member-card p:not(.member-degree) {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Докладчики */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.speaker-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.speaker-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.speaker-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    background: var(--tint);
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-card h3 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.speaker-degree {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.speaker-card p:not(.speaker-degree) {
    color: var(--muted);
    font-size: 0.88rem;
}

/* Условия участия / Формат */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start;
}

.info-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.info-block h3 {
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.check-list li {
    position: relative;
    padding: 0 0 14px 30px;
    color: var(--muted);
}

.check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fee-amount {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.2;
}

.fee-note {
    color: var(--muted);
    margin: 8px 0 20px;
}

.inline-logo {
    display: inline-block;
    width: 96px;
    vertical-align: middle;
    margin-left: 4px;
}

.payment-card {
    background: var(--tint);
    border: 1px dashed var(--blue);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
}

.payment-title {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.payment-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.copy-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease;
}

.copy-btn:hover {
    background: var(--blue);
}

.copy-btn img {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

.alert-box {
    margin-top: 26px;
    background: #fff8e6;
    border: 1px solid #f0dba4;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    color: var(--muted);
}

.alert-box a {
    color: var(--blue);
    text-decoration: underline;
}

/* Формат участия */
.format-list li {
    padding: 0 0 16px 22px;
    position: relative;
    color: var(--muted);
}

.format-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    transform: rotate(45deg);
}

.format-list strong {
    color: var(--navy);
}

/* Проведение конференции */
.steps-list {
    counter-reset: step;
}

.steps-list li {
    counter-increment: step;
    position: relative;
    padding: 0 0 18px 48px;
    color: var(--muted);
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-list strong {
    color: var(--navy);
}

.conduct-actions {
    flex-wrap: wrap;
}

/* Публикация */
.requirements-list {
    max-width: 880px;
    margin: 0 auto 30px;
}

.requirement-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.requirement-item p {
    color: var(--muted);
}

.requirement-bullet {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.important-note {
    max-width: 880px;
    margin: 0 auto 36px;
    background: #fff8e6;
    border: 1px solid #f0dba4;
    border-radius: var(--radius-sm);
    padding: 16px 22px;
    color: var(--muted);
}

.indexing-block {
    max-width: 880px;
    margin: 0 auto 36px;
    display: flex;
    align-items: center;
    gap: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 30px;
    box-shadow: var(--shadow);
}

.indexing-block > img {
    width: 130px;
    flex-shrink: 0;
}

.indexing-block h3 {
    color: var(--navy);
    margin-bottom: 6px;
}

.indexing-block p {
    color: var(--muted);
    margin-bottom: 14px;
}

.indexing-block p a {
    color: var(--blue);
    text-decoration: underline;
}

/* Даты и сроки */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    gap: 24px;
    justify-content: center;
}

.date-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.date-card:hover {
    transform: translateY(-4px);
}

.date-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.date-card h3 {
    color: var(--navy);
    margin-bottom: 12px;
}

.date-card p,
.date-card li {
    color: var(--muted);
}

.date-card li {
    padding: 4px 0;
}

/* Программа */
.program-block {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: var(--shadow);
}

.program-welcome,
.program-item {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.program-item:last-child {
    border-bottom: none;
}

.program-time {
    align-self: start;
    justify-self: start;
    background: #fff3d6;
    border: 1px solid #f0dba4;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}

.program-welcome h3 {
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.program-subhead {
    margin: 22px 0 4px;
    padding-top: 20px;
    border-top: 2px solid var(--accent);
    color: var(--navy);
    font-size: 1.1rem;
}

.program-item-body h4 {
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 4px;
}

.program-speaker {
    color: var(--muted);
    font-size: 0.92rem;
}

.program-topic {
    margin-top: 6px;
    color: var(--blue);
    font-size: 0.9rem;
}

.program-topic em {
    color: var(--muted);
    font-style: italic;
}

/* Сборник */
.book-block {
    display: flex;
    justify-content: center;
}

.book-block img {
    max-width: 340px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Футер */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    padding: 56px 16px 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.footer-col p {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-logo {
    height: 56px;
    margin-bottom: 22px;
}

.socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    background: var(--accent);
    color: var(--navy);
    transform: translateY(-3px);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.footer-bottom {
    background: #081c33;
    padding: 22px 0;
    font-size: 0.9rem;
    text-align: center;
}

.footer-bottom a {
    color: var(--accent);
}

/* Cookie-баннер */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(140%);
    width: min(94%, 640px);
    z-index: 2000;
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 240px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Появление секций */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .direction-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .header-top {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        height: 34px;
    }

    .logos {
        gap: 10px;
    }

    .burger {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .main-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-list a {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

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

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

    .two-col,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .indexing-block {
        flex-direction: column;
        text-align: center;
    }

    .program-welcome,
    .program-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .program-block {
        padding: 24px 20px;
    }

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

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