/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #142036;
    --btn-color: #f41542;
    --text-color: #778bb0;
    --text-light: #ffffff;
    --accent-color: #f41542;
}

body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global floating 3D background */
.floating-3d-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-3d-item {
    position: absolute;
    opacity: 0.18;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
    animation: float-slow 22s ease-in-out infinite;
    will-change: transform;
}

.floating-3d-item-1 {
    top: 5%;
    left: -8%;
    width: 260px;
    animation-duration: 26s;
    animation-delay: -4s;
}

.floating-3d-item-2 {
    top: 65%;
    right: -10%;
    width: 220px;
    animation-duration: 30s;
    animation-delay: -10s;
}

.floating-3d-item-3 {
    top: 20%;
    right: 15%;
    width: 260px;
    animation-duration: 34s;
    animation-delay: -16s;
}

.floating-3d-item-4 {
    bottom: -15%;
    left: 20%;
    width: 280px;
    animation-duration: 28s;
    animation-delay: -20s;
}

@keyframes float-slow {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    25% {
        transform: translate3d(40px, -40px, 0) rotate(5deg);
    }
    50% {
        transform: translate3d(0, -80px, 0) rotate(8deg);
    }
    75% {
        transform: translate3d(-40px, -40px, 0) rotate(3deg);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

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

/* Section divider line (same as header) — animates in on scroll */
.section-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(119, 139, 176, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s ease-out;
    z-index: 1;
}

.section-divider.visible {
    transform: scaleX(1);
}

section {
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-family: 'Gilroy', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: #d01238;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 21, 66, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 32, 54, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(119, 139, 176, 0.1);
}

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

.logo {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}
.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link.active {
    color: var(--btn-color);
}

.btn-header {
    padding: 12px 24px;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 968px) {
    .nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(20, 32, 54, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid rgba(119, 139, 176, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* делаем колонку с фото шире */
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero {
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-title-accent {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-date svg {
    color: var(--accent-color);
}

.btn-hero {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.hero-image {
    position: relative;
    justify-self: end;
}

.hero-image img {
    width: 110%;
    height: auto;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 1;
    vertical-align: bottom;
}

/* Плавный переход внизу: фото не «летает», а мягко переходит в фон */
.hero-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(20, 32, 54, 0) 0%,
        rgba(20, 32, 54, 0.4) 30%,
        rgba(20, 32, 54, 0.85) 70%,
        #142036 100%
    );
    z-index: 2;
    pointer-events: none;
    border-radius: 0 0 12px 12px;
}

/* Hero Decorations */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-decorations .decoration {
    position: absolute;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.decoration-1 {
    top: 10%;
    right: 5%;
    width: 200px;
    animation-delay: 0s;
}

.decoration-2 {
    bottom: 20%;
    right: 10%;
    width: 150px;
    animation-delay: 2s;
}

.decoration-3 {
    top: 50%;
    right: 15%;
    width: 180px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Section Decorations */
.section-decoration {
    position: absolute;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    max-width: 300px;
    animation: float 8s ease-in-out infinite;
}

.section-decoration-left {
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.section-decoration-right {
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.about,
.why,
.for-whom,
.speakers,
.program,
.registration {
    position: relative;
    overflow: hidden;
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.about-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--btn-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.about-description {
    flex: 1;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Why Section */
.why {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(20, 32, 54, 0) 0%, rgba(244, 21, 66, 0.05) 100%);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.why-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.why-item {
    padding: 2rem;
    background: rgba(119, 139, 176, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--btn-color);
}

.why-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* For Whom Section */
.for-whom {
    padding: 100px 0;
}

.for-whom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.for-whom-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.for-whom-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.for-whom-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(119, 139, 176, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.for-whom-item:hover {
    background: rgba(119, 139, 176, 0.1);
    transform: translateX(10px);
}

.for-whom-item svg {
    color: var(--btn-color);
    flex-shrink: 0;
}

.for-whom-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.btn-for-whom {
    margin-top: 1rem;
    width: 100%;
    padding: 18px 40px;
}

/* Speakers Section */
.speakers {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(20, 32, 54, 0) 0%, rgba(244, 21, 66, 0.05) 100%);
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.speaker-item {
    text-align: center;
    padding: 2rem;
    background: rgba(119, 139, 176, 0.05);
    border-radius: 16px;
    border: 2px solid rgba(244, 21, 66, 0.1);
    transition: all 0.3s ease;
}

.speaker-item:hover {
    border-color: var(--btn-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(244, 21, 66, 0.2);
}

.speaker-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--btn-color);
}

.speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* смещаем кадр выше, чтобы головы не обрезались */
}

.speaker-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.speaker-topic {
    font-size: 1rem;
    color: var(--text-color);
    font-style: italic;
    line-height: 1.6;
}

/* Program Section */
.program {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(244, 21, 66, 0.05) 0%, rgba(20, 32, 54, 0) 100%);
}

.program-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.program-timeline::before {
    content: '';
    position: absolute;
    left: 150px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--btn-color) 0%, transparent 100%);
}

.program-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.program-time {
    flex-shrink: 0;
    width: 120px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: right;
}

.program-content {
    flex: 1;
    padding-left: 2rem;
}

.program-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.program-topic {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-style: italic;
}

.program-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.program-list {
    list-style: none;
    margin-top: 1rem;
}

.program-list li {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.program-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--btn-color);
    font-size: 1.5rem;
}

/* Organizer Section */
.organizer {
    padding: 100px 0;
}

.organizer-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(119, 139, 176, 0.05);
    border-radius: 16px;
}

.organizer-logo img {
    height: 80px;
    width: auto;
}

.organizer-platina {
    display: block;
    margin-top: 1rem;
    height: 80px;
    width: auto;
}

.organizer-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.organizer-description {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.organizer-features {
    list-style: none;
}

.organizer-features li {
    font-size: 1.1rem;
    color: var(--text-color);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.organizer-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--btn-color);
    font-weight: 700;
}

/* When Where Section */
.when-where {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(20, 32, 54, 0) 0%, rgba(244, 21, 66, 0.05) 100%);
}

.when-where-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.when-where-item {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    background: rgba(119, 139, 176, 0.05);
    border-radius: 16px;
    border: 2px solid rgba(244, 21, 66, 0.2);
}

.when-where-item svg {
    color: var(--btn-color);
    flex-shrink: 0;
}

.when-where-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.when-where-item p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Registration Section */
.registration {
    padding: 100px 0;
}

.registration-content {
    max-width: 600px;
    margin: 0 auto;
}

.registration-info {
    text-align: center;
    margin-bottom: 3rem;
}

.registration-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.registration-info p {
    font-size: 1.2rem;
    color: var(--text-color);
}

.registration-form {
    background: rgba(119, 139, 176, 0.05);
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid rgba(244, 21, 66, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(20, 32, 54, 0.5);
    border: 2px solid rgba(119, 139, 176, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Gilroy', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--btn-color);
    background: rgba(20, 32, 54, 0.7);
}

.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--btn-color);
}

.btn-form {
    width: 100%;
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Partners Section */
.partners {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(244, 21, 66, 0.05) 0%, rgba(20, 32, 54, 0) 100%);
}

.partners-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partner-item {
    opacity: 0.8;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.partner-item:hover {
    opacity: 1;
}

.partner-item img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-item:hover img {
    filter: none;
    opacity: 1;
}

/* Contacts Section */
.contacts {
    padding: 100px 0;
}

.contacts-content {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.5rem 2rem;
    background: rgba(119, 139, 176, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(244, 21, 66, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(119, 139, 176, 0.1);
    border-color: var(--btn-color);
    transform: translateY(-3px);
}

.contact-item svg {
    color: var(--btn-color);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(119, 139, 176, 0.1);
    color: var(--text-color);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-top: 1rem;
}

.footer .footer-links a,
.footer .footer-links a:link,
.footer .footer-links a:visited {
    color: #778bb0 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: color 0.2s, opacity 0.2s;
}

.footer .footer-links a:hover,
.footer .footer-links a:focus {
    color: #ffffff !important;
    opacity: 1;
    text-decoration: underline !important;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-decorations .decoration {
        display: none;
    }

    .section-decoration {
        display: none;
    }

    .floating-3d-bg {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .why-content,
    .for-whom-content {
        grid-template-columns: 1fr;
    }

    .program-timeline::before {
        display: none;
    }

    .program-item {
        flex-direction: column;
        gap: 1rem;
    }

    .program-time {
        width: auto;
        text-align: left;
    }

    .program-content {
        padding-left: 0;
    }

    .organizer-content {
        flex-direction: column;
        text-align: center;
    }

    .when-where-content {
        grid-template-columns: 1fr;
    }

    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .about,
    .why,
    .for-whom,
    .program,
    .organizer,
    .when-where,
    .registration,
    .partners,
    .contacts {
        padding: 60px 0;
    }

    .registration-form {
        padding: 2rem;
    }

    .hero-decorations .decoration {
        display: none;
    }

    .section-decoration {
        display: none;
    }

    .floating-3d-bg {
        display: none;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.why-content,
.for-whom-content {
    animation: fadeInUp 0.8s ease-out;
}
