/* =========================================
   BASE
   ========================================= */

.message {
    background: linear-gradient(
        180deg,
        #FCF9F4 0%,
        #F8F0F6 20%,
        #F3EAF5 75%,
        #F7F0F3 100%
    );
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: Arial, sans-serif;

    color: var(--text);
    background: var(--cream);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}


/* =========================================
   VARIABLES
   ========================================= */

:root {
    /* Основной фиолетовый как на макете */
    --purple: #65369A;
    --purple-dark: #24113F;
    --purple-light: #8D6AAF;

    /* Золотые акценты */
    --gold: #C7A25B;
    --gold-light: #E8D7AD;

    /* Фоны */
    --cream: #FCF9F4;
    --cream-dark: #F5EFE7;
    --lavender: #F5F0F8;
    --lavender-soft: #F9F5FA;

    /* Текст */
    --text: #24113F;
    --text-soft: #71677A;

    /* Линии */
    --border: rgba(72, 48, 88, 0.13);
}


/* =========================================
   LAYOUT
   ========================================= */

.container {
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
}

.container--narrow {
    max-width: 950px;
}

.section {
    padding: 100px 0;
}

.section--tinted {
    background: linear-gradient(
        180deg,
        #FCF9F4 0%,
        #F7F2F8 18%,
        #F7F2F8 82%,
        #FCF9F4 100%
    );
}


/* =========================================
   TYPOGRAPHY
   ========================================= */

.eyebrow {
    display: block;

    margin-bottom: 10px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 3px;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(34px, 4.5vw, 58px);
    font-weight: 400;

    line-height: 1.05;
}

h2 em {
    color: var(--purple);

    font-weight: 400;
}


/* =========================================
   BUTTON
   ========================================= */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 22px;

    min-height: 54px;

    padding: 13px 30px;

    border: 1px solid var(--purple);
    border-radius: 100px;

    font-family: Georgia, serif;
    font-size: 17px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #ffffff;

    background: linear-gradient(
        90deg,
        #7143A4 0%,
        #633393 55%,
        #5B2D8B 100%
    );

    border-color: #633393;

    box-shadow:
        0 7px 20px rgba(83, 44, 120, 0.16);
}

.button--primary:hover {
    background: linear-gradient(
        90deg,
        #7950AA 0%,
        #6B3B99 55%,
        #623391 100%
    );

    box-shadow:
        0 10px 25px rgba(83, 44, 120, 0.22);
}

.button--outline {
    color: var(--purple);

    background: transparent;
}

.button--outline:hover {
    background: white;
}

.button--small {
    min-height: 46px;

    padding: 10px 24px;

    font-size: 15px;
}

.hero__nav a:first-child {
    color: #ffffff;

    background: linear-gradient(
        90deg,
        #7143A4 0%,
        #633393 55%,
        #5B2D8B 100%
    );

    border-color: #633393;

    box-shadow:
        0 6px 18px rgba(83, 44, 120, 0.18);
}

.hero__nav a:first-child:hover {
    background: linear-gradient(
        90deg,
        #7950AA 0%,
        #6B3B99 55%,
        #623391 100%
    );

    box-shadow:
        0 9px 24px rgba(83, 44, 120, 0.23);
}

/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background-image:
        linear-gradient(
            180deg,
            rgba(255, 250, 247, 0.18) 0%,
            rgba(255, 248, 244, 0.08) 45%,
            rgba(252, 247, 241, 0.30) 100%
        ),
        url("../assets/images/fon_header.jpg");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    border-bottom: 1px solid rgba(192, 151, 66, 0.18);
}

.hero::before {
    display: none;
}

.hero__content {
    position: relative;
    z-index: 1;

    text-align: center;
}

.hero__content::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: 50%;
    left: 50%;

    width: min(850px, 90vw);
    height: 500px;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        ellipse,
        rgba(255, 250, 246, 0.78) 0%,
        rgba(255, 250, 246, 0.45) 45%,
        rgba(255, 250, 246, 0) 75%
    );

    pointer-events: none;
}


.hero__overline {
    margin-bottom: 10px;

    color: var(--gold);

    font-size: 12px;

    letter-spacing: 8px;
}

.hero__title {
    margin-bottom: 15px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(58px, 8vw, 105px);
    font-weight: 400;

    line-height: 0.95;
}

.hero__subtitle {
    margin-bottom: 28px;

    color: #9b858e;

    font-size: 12px;

    letter-spacing: 7px;
    text-transform: uppercase;
}

.hero__description {
    max-width: 680px;

    margin: 0 auto 38px;

    color: #5f5367;

    font-family: Georgia, serif;

    font-size: 19px;
    line-height: 1.65;
}

.hero__nav {
    display: flex;

    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;
}

.hero__nav a {
    padding: 11px 22px;

    color: var(--purple-dark);

    border: 1px solid rgba(94, 45, 145, 0.28);
    border-radius: 100px;

    background: rgba(255, 255, 255, 0.38);

    font-family: Georgia, serif;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.hero__nav a:hover {
    background: white;

    transform: translateY(-2px);
}

.hero__scroll {
    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 6px;

    margin-top: 50px;

    color: #8b798d;

    font-size: 11px;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero__scroll-arrow {
    color: var(--gold);

    font-size: 22px;
}


/* =========================================
   INTRO
   ========================================= */

.intro {
    text-align: center;
}

.intro__title {
    max-width: 800px;

    margin-inline: auto;
}

.intro__text {
    max-width: 800px;

    margin: 30px auto 60px;

    color: var(--text-soft);

    font-family: Georgia, serif;

    font-size: 19px;
    line-height: 1.75;
}

.directions {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.direction {
    padding: 35px 25px;
}

.direction + .direction {
    border-left: 1px solid var(--border);
}

.direction__icon {
    display: block;

    margin-bottom: 14px;

    color: var(--gold);

    font-size: 30px;
}

.direction h3 {
    margin-bottom: 8px;

    font-family: Georgia, serif;

    font-size: 24px;
    font-weight: 400;
}

.direction p {
    margin-bottom: 0;

    color: var(--text-soft);

    font-size: 14px;
}


/* =========================================
   SECTION HEADING
   ========================================= */

.section-heading {
    display: flex;

    align-items: flex-start;

    gap: 24px;

    margin-bottom: 55px;
}

.section-number {
    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--purple-dark);

    border: 1px solid #C9A45C;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #FBF5E9,
        #F3E8D7
    );

    font-family: Georgia, serif;
    font-size: 23px;
}

.section-intro {
    max-width: 720px;

    margin: -20px 0 55px 88px;

    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   PLACEHOLDERS
   ========================================= */

.image-placeholder {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    color: rgba(47, 22, 72, 0.7);

    border: 1px solid rgba(91, 55, 115, 0.1);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(255, 230, 171, 0.9),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #ded0e9,
            #f5e5db
        );

    font-family: Georgia, serif;
    font-size: 22px;

    text-align: center;

    box-shadow:
        0 20px 50px rgba(55, 31, 71, 0.08);
}

.image-placeholder::after {
    content: "◇";

    position: absolute;

    bottom: 30px;

    color: rgba(81, 48, 100, 0.3);

    font-size: 40px;
}

.image-placeholder--poster {
    min-height: 570px;
}


/* =========================================
   EVENTS
   ========================================= */

.event-layout {
    display: grid;

    grid-template-columns:
        minmax(300px, 440px)
        minmax(0, 1fr);

    gap: clamp(45px, 7vw, 100px);

    align-items: center;
}

.event-content {
    max-width: 620px;
}

.event-lead {
    margin-bottom: 25px;

    font-family: Georgia, serif;

    font-size: 23px;
    line-height: 1.55;
}

.event-text {
    margin-bottom: 30px;

    color: var(--text-soft);

    font-size: 16px;
    line-height: 1.7;
}

.event-meta {
    display: grid;

    gap: 20px;

    margin: 30px 0;
}

.meta-item {
    display: flex;

    align-items: center;

    gap: 16px;
}

.meta-item__icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--purple);

    border: 1px solid rgba(94, 45, 145, 0.18);
    border-radius: 50%;
}

.meta-item span:not(.meta-item__icon) {
    display: block;

    margin-bottom: 3px;

    color: #9a8d9d;

    font-size: 12px;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-item strong {
    font-family: Georgia, serif;

    font-size: 17px;
    font-weight: 400;
}

.features {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 35px;
}

.features span {
    padding: 8px 13px;

    color: #66576e;

    border: 1px solid rgba(94, 45, 145, 0.13);
    border-radius: 100px;

    background: rgba(255, 255, 255, 0.5);

    font-size: 13px;
}

.event-note {
    margin: 30px 0;

    padding: 18px 20px;

    color: #65566d;

    border-left: 2px solid var(--gold);

    background: rgba(248, 240, 222, 0.5);

    font-family: Georgia, serif;

    line-height: 1.6;
}

.button-group {
    display: flex;

    gap: 12px;
}

.button-group .button {
    min-width: 170px;
}


/* =========================================
   COMPOSITIONS
   ========================================= */

.compositions-list {
    display: grid;

    gap: 28px;
}

.composition-card {
    display: grid;

    grid-template-columns: 42% 58%;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.62);

    box-shadow:
        0 18px 50px rgba(53, 30, 67, 0.06);
}

.composition-card--reverse {
    grid-template-columns: 58% 42%;
}

.composition-card--reverse .composition-card__image {
    order: 2;
}

.composition-card__image {
    min-height: 470px;

    border: 0;
    border-radius: 0;

    box-shadow: none;
}

.composition-card__content {
    padding: clamp(35px, 5vw, 65px);
}

.composition-card__number {
    display: block;

    margin-bottom: 10px;

    color: var(--gold);

    font-size: 11px;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.composition-card h3 {
    margin-bottom: 15px;

    font-family: Georgia, serif;

    font-size: clamp(27px, 3vw, 38px);
    font-weight: 400;
}

.composition-card__content > p {
    margin-bottom: 28px;

    color: var(--text-soft);

    line-height: 1.65;
}

.composition-detail {
    display: flex;

    gap: 15px;

    margin-bottom: 20px;
}

.composition-detail > span {
    color: var(--gold);

    font-size: 19px;
}

.composition-detail strong {
    display: block;

    margin-bottom: 5px;

    font-family: Georgia, serif;

    font-weight: 400;
}

.composition-detail p {
    margin-bottom: 0;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.5;
}

.composition-card__footer {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 30px;
}

.qr-placeholder {
    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #776a7d;

    border: 1px dashed #8c8091;
    border-radius: 8px;

    font-family: Georgia, serif;
    font-size: 13px;
}


/* =========================================
   MESSAGE
   ========================================= */

.message__card {
    display: grid;

    grid-template-columns: 45% 55%;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 25px;

    background: white;

    box-shadow:
        0 25px 70px rgba(49, 28, 63, 0.08);
}

.message__image {
    min-height: 430px;

    overflow: hidden;

    border: 0;
    border-radius: 0;

    box-shadow: none;
}

.message__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.message__content {
    display: flex;

    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    padding: clamp(40px, 6vw, 80px);
}

.message__content p {
    max-width: 520px;

    margin: 25px 0 32px;

    color: var(--text-soft);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
    position: relative;
    overflow: hidden;

    padding: 32px 0 28px;

    border-top: 1px solid rgba(199, 162, 91, 0.2);

    background-image:
        linear-gradient(
            rgba(36, 17, 63, 0.12),
            rgba(36, 17, 63, 0.22)
        ),
        url("../assets/images/fon_header.jpg");

    background-size: cover;
    background-position: center 68%;
    background-repeat: no-repeat;
}

.footer__content {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    text-align: center;
}

.footer__symbol {
    margin-bottom: 3px;

    color: #f2d38c;

    font-size: 20px;
    line-height: 1;
}

.footer strong {
    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;

    text-shadow: 0 2px 10px rgba(36, 17, 63, 0.35);
}

.footer p {
    margin: 0;

    color: #f1d89e;

    font-size: 8px;

    letter-spacing: 5px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 850px) {

    .section {
        padding: 75px 0;
    }

    .hero {
        min-height: 680px;
    }

    .event-layout {
        grid-template-columns: 1fr;
    }

    .image-placeholder--poster {
        width: min(100%, 500px);

        min-height: 600px;

        margin-inline: auto;
    }

    .event-content {
        max-width: none;
    }

    .composition-card,
    .composition-card--reverse {
        grid-template-columns: 1fr;
    }

    .composition-card--reverse .composition-card__image {
        order: 0;
    }

    .composition-card__image {
        min-height: 400px;
    }

    .message__card {
        grid-template-columns: 1fr;
    }

    .message__image {
        min-height: 400px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        min-height: 100svh;

        padding: 60px 0;

        background-position: center center;
    }

    .hero__title {
        font-size: 52px;
    }

    .hero__subtitle {
        font-size: 9px;

        letter-spacing: 3px;
    }

    .hero__description {
        font-size: 17px;
    }

    .hero__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 10px;

        width: 100%;
    }

    .hero__nav a {
        width: 100%;
        min-height: 54px;

        padding: 8px 12px;

        display: flex;
        align-items: center;
        justify-content: center;

        text-align: center;
        line-height: 1.2;
    }

    .directions {
        grid-template-columns: 1fr;
    }

    .direction + .direction {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .section-heading {
        gap: 14px;

        margin-bottom: 35px;
    }

    .section-number {
        width: 48px;
        height: 48px;

        flex-basis: 48px;

        font-size: 18px;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .section-intro {
        margin: -5px 0 35px;
    }

    .image-placeholder--poster {
        min-height: 450px;
    }

    .event-layout {
        gap: 35px;
    }

    .event-lead {
        font-size: 20px;
    }

    .button {
        width: 100%;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .button {
        width: 100%;
    }

    .composition-card {
        border-radius: 15px;
    }

    .composition-card__image {
        min-height: 300px;
    }

    .composition-card__content {
        padding: 28px 22px;
    }

    .composition-card__footer {
        align-items: stretch;
    }

    .composition-card__footer .button {
        flex: 1;
    }

    .qr-placeholder {
        width: 54px;
        height: 54px;

        flex-basis: 54px;
    }

    .message__card {
        border-radius: 15px;
    }

    .message__image {
        min-height: 280px;
    }

    .message__content {
        padding: 35px 24px;
    }
}

.event-poster {
    overflow: hidden;

    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(55, 31, 71, 0.12);
}

.event-poster img {
    display: block;

    width: 100%;
    height: auto;
}