@font-face {
    font-family: "Lab Grotesque";
    src: url("../fonts/LabGrotesque-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Lab Grotesque";
    src: url("../fonts/LabGrotesque-Medium.woff") format("woff");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    --accent: #ff6d54;
    --accent-soft: #ffc1b6;
    --ink: #151515;
    --paper: #f6f6f6;
    --dark: #250404;
    --white: #ffffff;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: "Lab Grotesque", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.22;
    -webkit-font-smoothing: antialiased;
}

body.is-dialog-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

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

.container {
    position: relative;
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 54px;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    background: var(--white);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.footer a:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 4px;
}

.button--accent {
    color: var(--white);
    background: var(--accent);
}

.button--accent:hover {
    background: #f0523b;
}

.hero {
    position: relative;
    min-height: 726px;
    overflow: hidden;
    color: var(--white);
    background: var(--dark);
}

.hero__container {
    z-index: 2;
    padding: 40px 0 98px;
}

/* .hero__glow {
    position: absolute;
    z-index: 0;
    top: -380px;
    right: -190px;
    width: 1050px;
    height: 1050px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 144, 125, 0.95) 0, rgba(179, 31, 20, 0.35) 35%, rgba(37, 4, 4, 0) 71%);
    filter: blur(8px);
} */

.hero__art {
    position: absolute;
    z-index: 1;
    /* top: -130px; */
    right: 0;
    /* width: min(55vw, 770px); */
    height: 100%;
    pointer-events: none;
}

.site-header {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 120px 150px 1fr auto;
    align-items: center;
    gap: 40px;
}

.brand {
    display: block;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 18px;
    font-weight: 500;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--accent-soft);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.menu-toggle > span:not(.visually-hidden) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--white);
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 484px;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 50px;
}

.hero__main {
    align-self: stretch;
    width: 734px;
}

.hero__main--online {
    width: 864px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.tag {
    padding: 7px 10px 6px;
    border: 1px solid var(--accent-soft);
    border-radius: 100px;
    color: var(--accent-soft);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    background: linear-gradient(115deg, #ffffff 25%, #ffd0c8 68%, #ffa190 100%);
    background-clip: text;
    color: transparent;
    font-size: clamp(50px, 4.2vw, 60px);
    font-weight: 500;
    line-height: 1.066;
    letter-spacing: -0.03em;
}

.hero__main > p {
    max-width: 590px;
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 22px;
}

.hero__date {
    display: flex;
    width: 284px;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 2px;
    text-align: right;
}

.hero__date time {
    font-size: 63px;
    font-weight: 500;
    line-height: 1.065;
    letter-spacing: -0.03em;
}

.hero__place {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
    white-space: nowrap;
}

.hero__place::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--accent-soft);
    border-radius: 50% 50% 50% 0;
    content: "";
    transform: translateY(-65%) rotate(-45deg);
}

.hero__button {
    width: 398px;
    min-height: 61px;
    margin-top: 40px;
}

.hero--online .hero__container {
    padding-bottom: 100px;
}

.hero--online .hero__content {
    align-items: flex-end;
}

.hero--online .hero__main > p {
    max-width: 710px;
}

.hero__date--online {
    padding-bottom: 38px;
}

.section {
    padding: 100px 0;
}

.section-title {
    margin: 0 0 40px;
    font-size: 60px;
    font-weight: 500;
    line-height: 64px;
    letter-spacing: -0.02em;
    text-align: center;
}

.section-title--light {
    color: var(--white);
}

.program {
    background: var(--paper);
}

.schedule {
    display: grid;
    gap: 20px;
}

.schedule-card {
    display: grid;
    grid-template-columns: 331px 1fr;
    gap: 60px;
    padding: 30px 40px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    background: var(--white);
}

.schedule-card--compact {
    align-items: center;
}

.schedule-card__time {
    color: var(--accent);
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.schedule-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.schedule-card h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
}

.schedule-card p {
    margin: 0;
    font-size: 18px;
    line-height: 22px;
}

.speakers {
    display: grid;
    width: 100%;
    gap: 20px;
}

.speaker {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 15px;
}

.speaker > img {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 50%;
    background: #ececec;
    object-fit: cover;
    object-position: center 16%;
}

.speaker:first-child > img[src*="alexey"] {
    object-position: center 12%;
}

.speaker div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.speaker strong {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.speaker span {
    max-width: 570px;
    font-size: 12px;
    line-height: 14px;
}

.ai-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 10px;
    color: var(--white);
    background: var(--accent);
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    font-size: 18px;
    line-height: 22px;
}

.check-list li::before {
    position: absolute;
    top: 4px;
    left: 0;
    width: 14px;
    height: 14px;
    background: url("../assets/check.svg") center / contain no-repeat;
    content: "";
}

.section-action {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.section-action .button {
    width: 462px;
}

.section--dark {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--dark);
}

.section--dark::before,
.registration::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 18%, rgba(255, 91, 66, 0.3), transparent 32%),
        radial-gradient(circle at 16% 82%, rgba(201, 38, 25, 0.24), transparent 36%);
    content: "";
    pointer-events: none;
}

.section-art {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    width: 760px;
    opacity: 0.95;
}

.organizers__container {
    z-index: 1;
}

.organizer-card {
    display: grid;
    grid-template-columns: 482px 1fr;
    gap: 70px;
    align-items: center;
    margin-top: 40px;
    padding: 40px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

.organizer-card__text h3 {
    margin: 0 0 20px;
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
}

.organizer-card__text p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 20px;
}

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

.product-shot {
    overflow: hidden;
    padding: 5px;
    border: 1px solid var(--ink);
    border-radius: 20px;
    background: var(--ink);
}

.product-shot img {
    width: 100%;
    aspect-ratio: 1.72 / 1;
    border-radius: 16px;
    object-fit: cover;
    object-position: top left;
}

.venue {
    overflow: hidden;
    background: var(--white);
}

.venue__content {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(520px, calc((100vw - var(--container)) / 2 + 527px)) 1fr;
    align-items: center;
    margin: 0;
}

.venue__text {
    padding: 100px 50px 100px max(24px, calc((100vw - var(--container)) / 2));
}

.venue__text h2 {
    max-width: 450px;
    margin: 20px 0;
    font-size: 50px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.venue__text address {
    color: var(--accent);
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
}

.venue__map {
    width: 100%;
    height: 475px;
    object-fit: cover;
}

.registration {
    position: relative;
    overflow: hidden;
}

.registration__art {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.registration-card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 448px 440px;
    justify-content: space-between;
    padding: 40px 80px;
    border-radius: 30px;
    background: var(--white);
    align-items: center;
}

.registration-card__intro h2,
.dialog__panel h2 {
    margin: 0;
    font-size: 50px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.branches {
    display: grid;
    gap: 10px;
    margin: 40px 0 0;
    padding: 0;
    border: 0;
}

.branches legend {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
}

.branches label,
.agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.branches input,
.agreement input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin: 0;
    accent-color: var(--accent);
}

.branches label {
    font-size: 16px;
    line-height: 20px;
    color: var(--ink);
}

.registration-form {
    display: grid;
    gap: 10px;
}

.registration-form > input:not([type="hidden"]):not(.honeypot) {
    width: 100%;
    height: 44px;
    padding: 12px 20px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    font-size: 16px;
    line-height: 20px;
}

.registration-form > input:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(255, 109, 84, 0.2);
}

.registration-form .button {
    width: 100%;
    margin-top: 0;
}

.agreement {
    color: #6a6a6a;
    font-size: 12px;
    line-height: 1.22;
}

.agreement a {
    text-underline-offset: 2px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-message {
    min-height: 18px;
    margin: 0;
    color: #b51f13;
    font-size: 14px;
    line-height: 18px;
}

.footer {
    padding: 50px 0;
    border-top: 1px solid var(--white);
    color: var(--white);
    background: var(--dark);
}

.footer__content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    font-size: 13px;
}

.footer__links a {
    text-underline-offset: 2px;
}

.footer p {
    margin: 29px 0 0;
    font-size: 13px;
}

.dialog[hidden] {
    display: none;
}

.dialog {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.dialog__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background:
        radial-gradient(circle at 18% 40%, rgba(255, 109, 84, 0.75), transparent 34%),
        rgba(37, 4, 4, 0.95);
    cursor: default;
}

.dialog__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 684px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 40px 64px;
    border-radius: 30px;
    background: var(--white);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.dialog__panel--form {
    width: min(100%, 620px);
}

.dialog__panel--form h2 {
    margin-bottom: 30px;
    font-size: 42px;
}

.dialog__panel--success {
    padding: 40px 80px;
    text-align: center;
}

.dialog__panel--success p {
    max-width: 434px;
    margin: 40px auto 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
}

.dialog__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #4a4a4a;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .site-header {
        grid-template-columns: 260px 1fr auto;
        gap: 22px;
    }

    .brand {
        width: 260px;
    }

    .site-nav {
        font-size: 16px;
    }

    .site-header__button {
        padding-inline: 28px;
    }

    .hero__main {
        width: min(68%, 720px);
    }

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

    .schedule-card {
        grid-template-columns: 280px 1fr;
        gap: 35px;
    }

    .schedule-card__time {
        font-size: 42px;
    }

    .organizer-card {
        grid-template-columns: 44% 1fr;
        gap: 36px;
    }

    .registration-card {
        grid-template-columns: 43% 48%;
        padding: 40px 50px;
    }
}

@media (max-width: 860px) {
    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .hero {
        min-height: 760px;
    }

    .hero__container {
        padding-top: 24px;
    }

    .site-header {
        grid-template-columns: 1fr auto auto;
    }

    .brand {
        width: 230px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        right: 0;
        display: none;
        width: 240px;
        flex-direction: column;
        gap: 0;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 18px;
        background: rgba(37, 4, 4, 0.97);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px;
    }

    .site-nav--online {
        display: flex;
        position: static;
        width: auto;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .hero__content {
        min-height: 590px;
        align-items: flex-start;
        margin-top: 60px;
    }

    .hero__main,
    .hero__main--online {
        width: 100%;
    }

    .hero h1 {
        max-width: 690px;
        font-size: 48px;
    }

    .hero__date {
        position: absolute;
        right: 0;
        bottom: 0;
    }

    .hero__date time {
        font-size: 48px;
    }

    .hero__art {
        top: 90px;
        right: -160px;
        width: 650px;
        opacity: 0.78;
    }

    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 46px;
        line-height: 1.08;
    }

    .schedule-card {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 28px;
    }

    .organizer-card {
        grid-template-columns: 1fr;
    }

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

    .venue__text {
        padding: 72px 24px;
    }

    .venue__map {
        height: 420px;
    }

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

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
    }

    .brand {
        width: min(210px, 65vw);
    }

    .site-header__button {
        display: none;
    }

    .site-nav--online {
        display: none;
    }

    .hero {
        min-height: 730px;
    }

    .hero__content {
        min-height: 610px;
        margin-top: 42px;
    }

    .tags {
        gap: 8px;
        margin-bottom: 26px;
    }

    .tag {
        font-size: 11px;
        line-height: 15px;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.04;
    }

    .hero__main > p {
        font-size: 15px;
        line-height: 19px;
    }

    .hero__date {
        align-items: flex-start;
        right: auto;
        left: 0;
        text-align: left;
    }

    .hero__date time {
        font-size: 40px;
    }

    .hero__place {
        white-space: normal;
    }

    .hero__button {
        width: 100%;
        min-height: 54px;
        margin-top: 28px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        margin-bottom: 28px;
        font-size: 36px;
    }

    .schedule-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .schedule-card__time {
        font-size: 32px;
    }

    .schedule-card h3 {
        font-size: 20px;
        line-height: 24px;
    }

    .speaker {
        align-items: flex-start;
    }

    .speaker > img {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .speaker span {
        font-size: 11px;
        line-height: 13px;
    }

    .ai-label {
        font-size: 18px;
        line-height: 22px;
    }

    .section-action .button {
        width: 100%;
    }

    .organizer-card {
        gap: 28px;
        padding: 24px 18px;
        border-radius: 20px;
    }

    .organizer-card__text h3 {
        font-size: 32px;
    }

    .venue__text h2,
    .registration-card__intro h2,
    .dialog__panel h2 {
        font-size: 36px;
    }

    .venue__text address {
        font-size: 22px;
    }

    .venue__map {
        height: 330px;
    }

    .registration-card {
        padding: 28px 18px;
        border-radius: 22px;
    }

    .footer__content {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer__links {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .dialog {
        padding: 12px;
    }

    .dialog__panel,
    .dialog__panel--success {
        padding: 36px 22px;
        border-radius: 22px;
    }

    .dialog__panel--success p {
        margin-top: 24px;
        font-size: 17px;
        line-height: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
