﻿:root {
    --df-primary: #0f766e;
    --df-primary-dark: #115e59;
    --df-dark: #0f172a;
    --df-dark-soft: #1e293b;
    --df-accent: #c9a646;
    --df-accent-light: #e7d28b;
    --df-light: #f8fafc;
    --df-muted: #64748b;
    --df-border: #e2e8f0;
    --df-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--df-dark);
    background: var(--df-white);
}

.df-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
}

    .df-navbar .navbar {
        padding: 18px 0;
    }

.df-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

    .df-brand .logo {
        height: 56px;
        width: auto;
        display: block;
        object-fit: contain;
    }

.df-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    font-size: 0.95rem;
}

    .df-navbar .nav-link:hover {
        color: var(--df-white);
    }

.df-btn-light {
    background: var(--df-white);
    color: var(--df-dark);
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 22px;
}

    .df-btn-light:hover {
        background: var(--df-accent);
        color: var(--df-dark);
    }

.df-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    color: var(--df-white);
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 30%), linear-gradient(135deg, #0f172a, #164e63);
    /*background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.28), transparent 32%), radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.45), transparent 38%), linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0f172a 100%);*/
}

    .df-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
        background-size: 42px 42px;
        mask-image: linear-gradient(to bottom, black, transparent 90%);
    }

    .df-hero .container {
        position: relative;
        z-index: 1;
    }

.df-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--df-white);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    margin-bottom: 26px;
}

.df-hero h1 {
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.07em;
    margin-bottom: 24px;
}

.df-hero-subtitle {
    font-size: clamp(1.45rem, 3vw, 2.4rem);
    color: var(--df-accent);
    font-weight: 800;
    margin-bottom: 16px;
}

.df-hero-text {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 34px;
}

.df-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.df-btn-primary {
    background: var(--df-primary);
    border: 1px solid var(--df-primary);
    color: var(--df-white);
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.28);
}

    .df-btn-primary:hover {
        background: var(--df-primary-dark);
        border-color: var(--df-primary-dark);
        color: var(--df-white);
        transform: translateY(-1px);
    }

.df-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: var(--df-white);
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 800;
}

    .df-btn-outline:hover {
        background: var(--df-white);
        color: var(--df-dark);
    }

.df-info-card {
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

    .df-info-card div {
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

        .df-info-card div:last-child {
            border-bottom: 0;
        }

    .df-info-card span {
        display: block;
        color: rgba(255, 255, 255, 0.62);
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .df-info-card strong {
        display: block;
        font-size: 1.15rem;
    }

.df-section {
    padding: 100px 0;
}

.df-section-soft {
    background: var(--df-light);
}

.df-section-dark {
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 30%), linear-gradient(135deg, #0f172a, #164e63);
    color: var(--df-white);
}

.df-section-label {
    display: inline-block;
    color: var(--df-primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin-bottom: 14px;
}

.df-section-dark .df-section-label {
    color: var(--df-accent);
}

.df-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    margin-bottom: 22px;
}

.df-lead {
    font-size: 1.25rem;
    color: var(--df-dark-soft);
    font-weight: 500;
}

.df-title-center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 54px;
}

.df-topic-card,
.df-place-card,
.df-form {
    height: 100%;
    background: var(--df-white);
    border: 1px solid var(--df-border);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    transition: 0.25s ease;
}

.df-speaker-card {
    height: 100%;
    background: #fff;
    border-radius: 28px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    transition: .25s ease;
    display: flex;
    flex-direction: column;
}

    .df-speaker-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 70px rgba(15, 23, 42, 0.10);
    }

.df-speaker-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 22px;
    border-radius: 24px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

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

/* ФИО */
.df-speaker-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    margin-bottom: 14px;
    color: #0f172a;
}

/* Должность */
.df-speaker-card > p,
.df-speaker-card > div,
.df-speaker-card > strong {
    color: #475569;
    font-size: .95rem;
    line-height: 1.55;
    text-align: center;
}

/* Тема выступления */
.df-speaker-card span {
    display: block;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    color: #0f766e;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

/* если title содержит ul/li */
.df-speaker-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.df-speaker-card li {
    margin-bottom: 6px;
}

/* мобильная версия */
@media (max-width: 768px) {
    .df-speaker-card {
        padding: 24px;
    }

    .df-speaker-photo {
        width: 96px;
        height: 96px;
        border-radius: 20px;
    }

    .df-speaker-card h3 {
        font-size: 1.08rem;
    }
}

.df-speaker-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #0f766e;
    background: #ecfdf5;
}

.df-section-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.df-timeline {
    display: grid;
    gap: 20px;
}

.df-time-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 24px;
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

    .df-time-item time {
        color: var(--df-accent);
        font-weight: 900;
        font-size: 1.1rem;
    }

    .df-time-item h3 {
        font-size: 1.35rem;
        font-weight: 850;
        margin-bottom: 8px;
    }

    .df-time-item p {
        margin: 0;
    }

.df-place-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .df-place-card p {
        color: var(--df-muted);
        font-size: 1.2rem;
        margin-bottom: 28px;
    }

.df-map-placeholder {
    min-height: 360px;
    height: 100%;
    border-radius: 28px;
    overflow: hidden; /* важно */
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--df-border);
}

    .df-map-placeholder iframe {
        width: 100%;
        height: 100%;
        min-height: 360px;
        border: 0;
        display: block;
    }

.df-form {
    background: #fff;
    border-radius: 32px;
    padding: 42px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.07);
}

    .df-form label {
        display: block;
        margin-bottom: 8px;
        font-weight: 700;
        font-size: .95rem;
        color: #0f172a;
    }

    .df-form .form-control,
    .df-form select,
    .df-form textarea {
        width: 100%;
        border: 1px solid #dbe3ec;
        border-radius: 16px;
        min-height: 54px;
        padding: 12px 16px;
        background: #fff;
        font-size: 16px;
        transition: .2s ease;
        box-shadow: none;
    }

    .df-form textarea {
        min-height: 96px;
        resize: vertical;
    }

        .df-form .form-control:focus,
        .df-form select:focus,
        .df-form textarea:focus {
            border-color: #0f766e;
            box-shadow: 0 0 0 4px rgba(15,118,110,.12);
            outline: none;
        }

    .df-form select {
        appearance: none;
        background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
        background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
        background-size: 6px 6px;
        background-repeat: no-repeat;
    }

    .text-danger {
        font-size: .85rem;
        margin-top: 6px;
    }

    .alert {
        border: 0;
        border-radius: 20px;
        padding: 20px 24px;
    }

    .alert-warning {
        background: #fff8e6;
    }

    .alert-info {
        background: #edf8f7;
    }

    .df-form .form-check {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 12px;
    }

    .df-form .form-check-input {
        width: 20px;
        height: 20px;
        margin-top: 0;
        border: 2px solid #cbd5e1;
    }

        .df-form .form-check-input:checked {
            background-color: #0f766e;
            border-color: #0f766e;
        }

    .df-form .form-check-label {
        margin-bottom: 0;
        font-weight: 500;
        cursor: pointer;
    }

    .df-form button[type=submit] {
        min-width: 260px;
        height: 56px;
        border: 0;
        border-radius: 999px;
        background: linear-gradient(135deg,#0f766e,#115e59);
        color: white;
        font-weight: 800;
        font-size: 16px;
        box-shadow: 0 18px 40px rgba(15,118,110,.24);
        transition: .25s ease;
    }

        .df-form button[type=submit]:hover {
            transform: translateY(-2px);
            box-shadow: 0 24px 50px rgba(15,118,110,.30);
        }

.df-footer {
    background: #0f172a;
    color: var(--df-white);
    padding: 70px 0 30px;
}

    .df-footer h3 {
        font-weight: 900;
        letter-spacing: -0.03em;
    }

    .df-footer h4 {
        font-size: 1rem;
        color: var(--df-accent);
        font-weight: 850;
        margin-bottom: 16px;
    }

    .df-footer p {
        color: rgba(255, 255, 255, 0.72);
        margin-bottom: 8px;
    }

.df-footer-bottom {
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
}

@media (max-width: 991px) {
    .df-navbar .navbar-nav {
        padding-top: 18px;
    }

    .df-hero {
        min-height: auto;
        padding: 90px 0;
    }

    .df-info-card {
        margin-top: 20px;
    }

    .df-section {
        padding: 72px 0;
    }

    .df-time-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .df-hero-actions .btn {
        width: 100%;
    }

    .df-info-card,
    .df-topic-card,
    .df-speaker-card,
    .df-place-card,
    .df-form {
        border-radius: 22px;
        padding: 24px;
    }

    .df-footer-bottom {
        display: block;
    }

        .df-footer-bottom span {
            display: block;
            margin-bottom: 10px;
        }
}

#docModal .modal-dialog {
    max-width: 620px;
}

#docModal .modal-content {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

/* HEADER */
#docModal .modal-header {
    padding: 24px 28px;
    border: 0;
    background: radial-gradient(circle at top right, rgba(212,175,55,.20), transparent 35%), linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
}

#docModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: .85;
}

    #docModal .btn-close:hover {
        opacity: 1;
    }

/* BODY */
#docModal .modal-body {
    padding: 34px 32px;
    background: #fff;
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.7;
}

#docModal .modal-title {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0f172a;
}

    #docModal .modal-title strong {
        display: block;
        margin-top: 8px;
        font-size: 1.1rem;
        font-weight: 600;
        color: #64748b !important;
    }

/* FOOTER */
#docModal .modal-footer {
    padding: 24px 30px;
    border: 0;
    background: #f8fafc;
    justify-content: center;
}

/* BUTTONS */
#docModal .registration-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 52px;
    border-radius: 999px;
    padding: 0 28px;
    font-weight: 700;
    text-decoration: none;
    transition: .25s ease;
}

/* YES */
#docModal #yes {
    background: linear-gradient(135deg, #0f766e, #115e59);
    color: #fff;
    box-shadow: 0 14px 35px rgba(15,118,110,.22);
}

    #docModal #yes:hover {
        transform: translateY(-2px);
        color: white;
    }

/* NO */
#docModal .registration-btn:not(#yes) {
    background: white;
    color: #0f172a;
    border: 1px solid #dbe3ec;
}

    #docModal .registration-btn:not(#yes):hover {
        background: #f1f5f9;
    }

/* backdrop */
.modal-backdrop.show {
    opacity: .65;
    backdrop-filter: blur(4px);
}

/* mobile */
@media (max-width: 768px) {
    #docModal .modal-dialog {
        margin: 16px;
    }

    #docModal .modal-body {
        padding: 26px 22px;
    }

    #docModal .modal-footer {
        padding: 20px;
    }

    #docModal .registration-btn {
        width: 100%;
    }

    #docModal .col-auto {
        width: 100%;
        margin-bottom: 12px;
    }
}

/* LOGIN MODAL */
#loginModal .modal-dialog {
    max-width: 460px;
}

#loginModal .modal-content {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

/* header */
#loginModal .modal-header {
    padding: 24px 28px;
    border: 0;
    color: white;
    background: radial-gradient(circle at top right, rgba(212,175,55,.18), transparent 35%), linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
}

#loginModal .modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

#loginModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: .85;
}

/* body */
#loginModal .modal-body {
    padding: 28px;
    background: #fff;
}

#loginModal .form-label {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

#loginModal .form-control {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid #dbe3ec;
    padding: 12px 16px;
    font-size: 16px;
    transition: .2s ease;
    box-shadow: none;
}

    #loginModal .form-control:focus {
        border-color: #0f766e;
        box-shadow: 0 0 0 4px rgba(15,118,110,.12);
        outline: none;
    }

/* footer */
#loginModal .modal-footer {
    padding: 0 28px 28px;
    border: 0;
    background: #fff;
    justify-content: center;
}

/* button */
#loginModal .registration-btn {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #115e59);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    transition: .25s ease;
    box-shadow: 0 16px 35px rgba(15,118,110,.22);
}

    #loginModal .registration-btn:hover {
        transform: translateY(-2px);
        color: #fff;
        box-shadow: 0 20px 45px rgba(15,118,110,.30);
    }

/* backdrop */
#loginModal + .modal-backdrop,
.modal-backdrop.show {
    opacity: .65;
    backdrop-filter: blur(4px);
}

/* mobile */
@media (max-width: 576px) {
    #loginModal .modal-dialog {
        margin: 16px;
    }

    #loginModal .modal-body {
        padding: 22px;
    }

    #loginModal .modal-footer {
        padding: 0 22px 22px;
    }
}

.sponsor-group {
    margin-bottom: 70px;
}

    .sponsor-group:last-child {
        margin-bottom: 0;
    }

    .sponsor-group h3 {
        text-align: center;
        font-weight: 800;
        margin-bottom: 32px;
        font-size: 1.6rem;
    }

.sponsor-grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

.gold-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.silver-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bronze-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sponsor-card {
    background: #fff;
    border-radius: 24px;
    min-height: 140px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 40px rgba(15,23,42,.05);
    transition: .25s ease;
}

    .sponsor-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 50px rgba(15,23,42,.08);
    }

    .sponsor-card img {
        max-width: 100%;
        max-height: 72px;
        object-fit: contain;
        filter: grayscale(100%);
        opacity: .9;
        transition: .25s ease;
    }

    .sponsor-card:hover img {
        filter: grayscale(0);
        opacity: 1;
    }

/* Цвета заголовков */
.sponsor-gold h3 {
    color: #c59b08;
}

.sponsor-silver h3 {
    color: #94a3b8;
}

.sponsor-bronze h3 {
    color: #b56a2d;
}

/* mobile */
@media (max-width: 768px) {
    .sponsor-card {
        min-height: 110px;
        padding: 18px;
    }

        .sponsor-card img {
            max-height: 56px;
        }
}


.countdown {
    display: block;
    height: 66px;
    margin-bottom: 30px;
}

    .countdown .countdown-seconds,
    .countdown .countdown-minutes,
    .countdown .countdown-hours,
    .countdown .countdown-days {
        position: relative;
        display: inline-block;
        color: white;
        font-size: 34px;
        font-weight: 700;
        height: 70px;
        width: 70px;
        background-color: var(--primary);
        vertical-align: middle;
        text-align: center;
        margin: 3px;
        line-height: 55px;
        border: 2px solid var(--primary);
        border-radius: 10px;
    }

        .countdown .countdown-seconds::after,
        .countdown .countdown-minutes::after,
        .countdown .countdown-hours::after,
        .countdown .countdown-days::after {
            position: absolute;
            font-size: 9px;
            bottom: -10px;
            left: 0;
            width: 100%;
            text-align: center;
        }