/* =========================================================
   ОСНОВНЫЕ НАСТРОЙКИ
========================================================= */

:root {
    --bg: #21080f;
    --bg-deep: #170509;
    --bg-soft: #351019;

    --wine: #4b1723;
    --accent: #c9967a;
    --accent-light: #e2b7a1;

    --text: #f4e8df;
    --text-muted: #cdbbb5;

    --line: rgba(244, 232, 223, 0.18);

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Manrope", Arial, sans-serif;

    --container: 1380px;
}


/* =========================================================
   СБРОС
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(102, 29, 49, 0.2),
            transparent 32%
        ),
        var(--bg);

    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

::selection {
    background: var(--accent);
    color: var(--bg-deep);
}


/* =========================================================
   PRELOADER
========================================================= */

.preloader {
    position: fixed;
    z-index: 9999;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--bg-deep);

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__logo {
    width: 100px;
    max-height: 100px;
    object-fit: contain;

    opacity: 0;

    animation: logoIntro 1.1s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: scale(0.45);
    }

    70% {
        opacity: 1;
        transform: scale(1.15);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================================================
   ОБЩИЕ СЕКЦИИ
========================================================= */

.section {
    width: min(var(--container), calc(100% - 100px));
    margin: 0 auto;
    padding: 130px 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 65px;

    color: var(--accent-light);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

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


/* =========================================================
   HEADER
========================================================= */

.header {
    position: absolute;
    z-index: 100;

    top: 0;
    left: 50%;

    width: min(var(--container), calc(100% - 100px));

    min-height: 110px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    transform: translateX(-50%);
}

.header__logo {
    width: 72px;
}

.header__logo img {
    width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav a {
    position: relative;

    color: var(--text);

    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;

    transition: color 0.3s ease;
}

.nav a::after {
    position: absolute;

    bottom: -8px;
    left: 0;

    width: 0;
    height: 1px;

    background: var(--accent);

    content: "";

    transition: width 0.3s ease;
}

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

.nav a:hover::after {
    width: 100%;
}


/* =========================================================
   МОБИЛЬНОЕ МЕНЮ
========================================================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 28px;
    height: 1px;

    margin: 7px auto;

    background: var(--text);

    transition: transform 0.3s ease;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 100svh;

    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;

    padding:
        130px
        max(50px, calc((100vw - var(--container)) / 2))
        60px;

    overflow: hidden;
}

.hero::before {
    position: absolute;

    width: 55vw;
    height: 55vw;

    right: -20vw;
    top: -20vw;

    border-radius: 50%;

    background: rgba(112, 34, 53, 0.12);

    content: "";
}

.hero__content {
    position: relative;
    z-index: 2;

    padding-right: 40px;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 36px;

    color: var(--accent-light);

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
}

.hero__eyebrow span {
    width: 36px;
    height: 1px;

    background: var(--accent);
}

.hero__title {
    max-width: 780px;

    font-family: var(--serif);
    font-size: clamp(65px, 7vw, 126px);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.045em;
}

.hero__title em {
    font-weight: 400;
    color: var(--accent-light);
}

.hero__link {
    display: inline-flex;
    align-items: center;
    gap: 24px;

    margin-top: 58px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--accent);

    color: var(--text);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    transition: gap 0.3s ease;
}

.hero__link:hover {
    gap: 36px;
}

.hero__arrow {
    color: var(--accent);
    font-size: 20px;
}

.hero__visual {
    position: relative;

    height: min(72vh, 820px);

    min-height: 550px;
}

.hero__image {
    position: absolute;

    overflow: hidden;

    background: var(--wine);
}

.hero__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}

.hero__image:hover img {
    transform: scale(1.04);
}

.hero__image--main {
    right: 4%;
    top: 0;

    width: 68%;
    height: 86%;
}

.hero__image--secondary {
    left: 0;
    bottom: 0;

    width: 39%;
    height: 39%;

    border: 8px solid var(--bg);
}

.hero__vertical {
    position: absolute;

    right: -38px;
    bottom: 30px;

    color: rgba(244, 232, 223, 0.45);

    font-size: 8px;
    letter-spacing: 0.22em;

    transform: rotate(-90deg);
    transform-origin: center;
}


/* =========================================================
   ОБО МНЕ
========================================================= */

.about__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(50px, 10vw, 180px);
    align-items: center;
}

.about__image {
    height: 680px;

    overflow: hidden;
}

.about__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.about__content {
    max-width: 690px;
}

.about__content h2 {
    margin-bottom: 45px;

    font-family: var(--serif);
    font-size: clamp(48px, 5vw, 82px);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.035em;
}

.about__content p {
    max-width: 550px;

    margin-bottom: 22px;

    color: var(--text-muted);

    font-size: 15px;
    line-height: 1.8;
}

.about__signature {
    margin-top: 55px;

    color: var(--accent-light);

    font-family: var(--serif);
    font-size: 42px;
    font-style: italic;
}


/* =========================================================
   ЗА КАДРОМ
========================================================= */

.backstage {
    padding-top: 100px;
}

.backstage__intro {
    display: grid;
    grid-template-columns: 1.2fr 0.55fr;
    gap: 100px;

    margin-bottom: 80px;
}

.backstage__intro h2 {
    font-family: var(--serif);
    font-size: clamp(48px, 6vw, 92px);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.04em;
}

.backstage__intro h2 em {
    color: var(--accent-light);
}

.backstage__intro p {
    align-self: end;

    color: var(--text-muted);

    font-size: 14px;
    line-height: 1.8;
}

.backstage__gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.backstage__item {
    overflow: hidden;
}

.backstage__item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.8s ease;
}

.backstage__item:hover img {
    transform: scale(1.05);
}

.backstage__item--large {
    grid-column: span 7;
    height: 620px;
}

.backstage__item--small {
    grid-column: span 5;
    height: 620px;
}

.backstage__item--portrait {
    grid-column: span 4;
    height: 520px;
}

.backstage__item--wide {
    grid-column: span 8;
    height: 520px;
}


/* =========================================================
   ЭМОЦИОНАЛЬНЫЙ БЛОК
========================================================= */

.moment {
    width: min(var(--container), calc(100% - 100px));

    margin: 40px auto 0;
    padding: 100px 0 130px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    gap: clamp(50px, 10vw, 180px);
}

.moment__image {
    height: 720px;

    overflow: hidden;
}

.moment__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.moment__content {
    max-width: 650px;
}

.moment__number {
    display: block;

    margin-bottom: 40px;

    color: var(--accent);

    font-size: 10px;
    letter-spacing: 0.2em;
}

.moment blockquote {
    margin-bottom: 45px;

    font-family: var(--serif);
    font-size: clamp(54px, 6vw, 94px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.moment blockquote em {
    color: var(--accent-light);
}

.moment__content p {
    max-width: 400px;

    color: var(--text-muted);

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   ПРОЕКТЫ
========================================================= */

.projects {
    width: 100%;
    padding:
        130px
        max(50px, calc((100vw - var(--container)) / 2));

    background: var(--bg-deep);
}

.projects__heading {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;
    gap: 40px;

    margin-bottom: 80px;
}

.projects__heading h2 {
    font-family: var(--serif);
    font-size: clamp(55px, 6vw, 100px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.projects__heading em {
    color: var(--accent-light);
}

.projects__list {
    display: grid;
    gap: 30px;
}

.project-card {
    position: relative;

    min-height: 720px;

    overflow: hidden;

    background: var(--wine);
}

.project-card img {
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}

.project-card::after {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(15, 3, 6, 0.85),
            rgba(15, 3, 6, 0.08) 65%
        );

    content: "";
}

.project-card:hover img {
    transform: scale(1.04);
}

.project-card__overlay {
    position: relative;
    z-index: 2;

    min-height: 720px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 55px;
}

.project-card h3 {
    font-family: var(--serif);
    font-size: clamp(56px, 6vw, 100px);
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: -0.04em;
}

.project-card p {
    margin-top: 28px;

    color: var(--accent-light);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.project-card__button {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 20px;

    padding: 0 0 10px;

    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text);

    cursor: pointer;

    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    transition: gap 0.3s ease;
}

.project-card__button:hover {
    gap: 35px;
}

.project-card__button span {
    font-size: 18px;
}


/* =========================================================
   ФИЛОСОФИЯ
========================================================= */

.philosophy__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(50px, 10vw, 150px);

    align-items: center;
}

.philosophy__photos {
    position: relative;

    min-height: 750px;
}

.philosophy__photos img {
    position: absolute;

    object-fit: cover;
}

.philosophy__photos img:first-child {
    width: 62%;
    height: 78%;

    top: 0;
    left: 0;
}

.philosophy__photos img:last-child {
    width: 52%;
    height: 54%;

    right: 0;
    bottom: 0;

    border: 8px solid var(--bg);
}

.philosophy__text h2 {
    margin-bottom: 48px;

    font-family: var(--serif);
    font-size: clamp(52px, 5vw, 82px);
    font-weight: 400;
    line-height: 0.93;
    letter-spacing: -0.04em;
}

.philosophy__text h2 em {
    color: var(--accent-light);
}

.philosophy__text p {
    max-width: 560px;

    margin-bottom: 25px;

    color: var(--text-muted);

    font-size: 15px;
    line-height: 1.85;
}

.philosophy__bottom {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;

    margin-top: 100px;
    min-height: 500px;

    background: var(--bg-soft);
}

.philosophy__bottom img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.philosophy__bottom div {
    align-self: center;

    padding: clamp(40px, 8vw, 130px);
}

.philosophy__bottom span {
    color: var(--accent);

    font-size: 10px;
    letter-spacing: 0.22em;
}

.philosophy__bottom p {
    margin-top: 30px;

    font-family: var(--serif);
    font-size: clamp(42px, 4vw, 70px);
    line-height: 0.95;
}

/* =========================================================
   КОНТАКТЫ
========================================================= */
.inquiry {
    padding: 140px 7vw;

    background: #f2ebe5;
    color: #2a0812;

    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 10vw;
}

.inquiry__header h2 {
    margin: 18px 0 25px;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3.5rem, 6vw, 7rem);
    font-weight: 400;
    line-height: 0.88;
}

.inquiry__header p:last-child {
    max-width: 380px;
    line-height: 1.7;
}

.inquiry__form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 0;

    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(42, 8, 18, 0.3);
    border-radius: 0;

    color: #2a0812;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition: border-color 0.3s ease;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #7d3545;
}

.inquiry__submit {
    grid-column: 1 / -1;

    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    margin-top: 10px;
    padding: 20px 0;

    background: transparent;
    border: none;
    border-bottom: 1px solid #2a0812;

    color: #2a0812;

    cursor: pointer;

    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    transition: padding 0.3s ease;
}

.inquiry__submit:hover {
    padding-left: 12px;
    padding-right: 12px;
}

.inquiry__arrow {
    font-size: 22px;
}

.inquiry__message {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 14px;
}

@media (max-width: 800px) {
    .inquiry {
        grid-template-columns: 1fr;
        padding: 90px 6vw;
    }

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

    .form-field--full {
        grid-column: auto;
    }

    .inquiry__submit,
    .inquiry__message {
        grid-column: auto;
    }
}

/* СОЦИАЛЬНЫЕ СЕТИ И КОНТАКТЫ */
.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.contact-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;

    font-family: var(--serif);
    font-size: 20px;

    color: #f5eee9;
    text-decoration: none;

    border: 1px solid rgba(245, 238, 233, 0.3);
    border-radius: 100px;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

.contact-social i {
    font-size: 18px;
}

.contact-social:hover {
    background-color: #f5eee9;
    color: #2a0812;
    border-color: #f5eee9;
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .contact-socials {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contact-social {
        justify-content: space-between;
    }
}

/* =========================================================
   АНИМАЦИИ ПРИ ПРОКРУТКЕ
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(.2,.8,.2,1);
}

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


/* =========================================================
   ПОЛНОЭКРАННАЯ ИСТОРИЯ ПРОЕКТА
========================================================= */

.project-modal {
    position: fixed;
    z-index: 1000;

    inset: 0;

    visibility: hidden;
    opacity: 0;

    background: var(--bg-deep);

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

.project-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.project-modal__scroll {
    width: 100%;
    height: 100%;

    overflow-y: auto;
}

.project-modal__close {
    position: fixed;
    z-index: 20;

    top: 35px;
    right: max(30px, calc((100vw - var(--container)) / 2));

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 0;

    background: transparent;
    border: none;

    color: var(--text);

    cursor: pointer;

    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-modal__close span {
    position: absolute;

    left: -22px;

    width: 14px;
    height: 1px;

    background: var(--accent);
}

.project-modal__close span:first-child {
    transform: rotate(45deg);
}

.project-modal__close span:nth-child(2) {
    transform: rotate(-45deg);
}

.story-hero {
    position: relative;

    min-height: 100svh;

    display: flex;
    align-items: end;

    padding:
        130px
        max(50px, calc((100vw - var(--container)) / 2))
        80px;

    overflow: hidden;
}

.story-hero::after {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(15, 3, 6, 0.88),
            rgba(15, 3, 6, 0.1)
        );

    content: "";
}

.story-hero img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.story-hero__content {
    position: relative;
    z-index: 2;

    max-width: 1000px;
}

.story-hero__label {
    display: block;

    margin-bottom: 25px;

    color: var(--accent-light);

    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.story-hero h1 {
    font-family: var(--serif);
    font-size: clamp(70px, 10vw, 160px);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: -0.055em;
}

.story-hero p {
    margin-top: 35px;

    color: var(--accent-light);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.story-body {
    width: min(1050px, calc(100% - 60px));

    margin: 0 auto;

    padding: 130px 0;
}

.story-text {
    max-width: 780px;

    margin: 0 auto 100px;
}

.story-text p {
    margin-bottom: 28px;

    color: var(--text-muted);

    font-family: var(--serif);
    font-size: clamp(25px, 2.3vw, 36px);
    line-height: 1.35;
}

.story-text strong {
    color: var(--text);
    font-weight: 500;
}

.story-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.story-gallery figure {
    overflow: hidden;

    min-height: 500px;
}

.story-gallery figure:nth-child(3n) {
    grid-column: span 2;
    min-height: 750px;
}

.story-gallery img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.8s ease;
}

.story-gallery img:hover {
    transform: scale(1.03);
}

.story-footer {
    width: min(1050px, calc(100% - 60px));

    margin: 0 auto;

    padding: 0 0 100px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid var(--line);

    padding-top: 40px;
}

.story-footer button {
    background: transparent;
    border: none;

    color: var(--accent-light);

    cursor: pointer;

    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* =========================================================
   АДАПТАЦИЯ
========================================================= */

@media (max-width: 900px) {

    .section,
    .moment {
        width: min(100% - 40px, var(--container));
    }

    .header {
        width: calc(100% - 40px);
        min-height: 90px;
    }

    .nav {
        position: fixed;

        inset: 0;

        display: flex;
        flex-direction: column;
        justify-content: center;

        background: var(--bg-deep);

        opacity: 0;
        visibility: hidden;

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav a {
        font-family: var(--serif);
        font-size: 38px;
        letter-spacing: 0;
        text-transform: none;
    }

    .menu-toggle {
        position: relative;
        z-index: 101;

        display: block;
    }

    .menu-toggle.is-active span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-toggle.is-active span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .hero {
        grid-template-columns: 1fr;

        padding:
            140px
            20px
            60px;
    }

    .hero__content {
        padding: 0;
    }

    .hero__title {
        font-size: clamp(60px, 17vw, 100px);
    }

    .hero__visual {
        height: 520px;
        min-height: 0;

        margin-top: 70px;
    }

    .hero__image--main {
        width: 76%;
        height: 88%;
    }

    .hero__image--secondary {
        width: 48%;
        height: 40%;
    }

    .section {
        padding: 90px 0;
    }

    .section-label {
        margin-bottom: 45px;
    }

    .about__grid,
    .backstage__intro,
    .moment,
    .philosophy__top {
        grid-template-columns: 1fr;
    }

    .about__image {
        height: 550px;
    }

    .backstage__intro {
        gap: 30px;
    }

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

    .backstage__item--large,
    .backstage__item--small,
    .backstage__item--portrait,
    .backstage__item--wide {
        grid-column: span 1;
        height: 400px;
    }

    .moment {
        padding: 70px 0 90px;
    }

    .moment__image {
        height: 550px;
    }

    .projects {
        padding:
            90px
            20px;
    }

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

    .project-card,
    .project-card__overlay {
        min-height: 600px;
    }

    .project-card__overlay {
        padding: 35px;
    }

    .philosophy__photos {
        min-height: 600px;
    }

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

    .philosophy__bottom img {
        height: 450px;
    }

    .contact-link {
        grid-template-columns: 45px 1fr 30px;
        gap: 10px;

        padding: 20px 0;
    }

    .contact-link__value {
        grid-column: 2;
        grid-row: 2;
    }

    .contact-link__arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .footer {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }

    .story-hero {
        padding:
            130px
            30px
            60px;
    }

    .story-body {
        width: calc(100% - 40px);
        padding: 90px 0;
    }

    .story-gallery {
        grid-template-columns: 1fr;
    }

    .story-gallery figure,
    .story-gallery figure:nth-child(3n) {
        grid-column: auto;
        min-height: 480px;
    }

    .story-footer {
        width: calc(100% - 40px);
    }

    .project-modal__close {
        top: 20px;
        right: 25px;
    }
}


@media (max-width: 520px) {

    .hero__eyebrow {
        font-size: 8px;
        letter-spacing: 0.15em;
    }

    .hero__eyebrow span {
        width: 20px;
    }

    .hero__title {
        font-size: 16vw;
    }

    .hero__visual {
        height: 440px;
    }

    .about__content h2,
    .backstage__intro h2,
    .moment blockquote {
        font-size: 50px;
    }

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

    .backstage__item--large,
    .backstage__item--small,
    .backstage__item--portrait,
    .backstage__item--wide {
        height: 480px;
    }

    .project-card h3 {
        font-size: 68px;
    }

    .contacts__heading h2 {
        font-size: 64px;
    }

    .contact-link__name {
        font-size: 26px;
    }

    .contact-link__value {
        font-size: 11px;
        overflow-wrap: anywhere;
    }

    .story-hero h1 {
        font-size: 20vw;
    }

    .story-gallery figure,
    .story-gallery figure:nth-child(3n) {
        min-height: 380px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* FOOTER */
.footer {
    display: grid;
    grid-template-columns: 150px 1fr 150px;
    align-items: center;
    gap: 30px;
    padding: 40px 0;
}

.footer__logo {
    width: 150px;
    height: auto;
    display: block;
}

.footer p {
    margin: 0;
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: 0.08em;
    color: #f5eee9;
    text-align: center;
}

.footer a {
    justify-self: end;
    color: #f5eee9;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 20px;
}

/* =========================================================
   КРАСИВЫЙ КАЛЕНДАРЬ И ВЫПАДАЮЩЕЕ МЕНЮ
========================================================= */

/* Выпадающий список торжеств */

.choices {
    width: 100%;
    margin-bottom: 0;
    font-family: var(--sans);
    font-size: 16px;
}

.choices:focus {
    outline: none;
}

.choices__inner {
    min-height: 49px;
    padding: 14px 34px 14px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(42, 8, 18, 0.3);
    border-radius: 0;
    color: #2a0812;
    font-size: 16px;
}

.is-focused .choices__inner,
.is-open .choices__inner {
    border-color: #7d3545;
}

.choices__list--single {
    padding: 0;
}

.choices[data-type*="select-one"]::after {
    right: 5px;
    margin-top: -5px;
    border-color: #2a0812 transparent transparent;
    border-width: 6px 5px 0;
}

.choices[data-type*="select-one"].is-open::after {
    margin-top: -2px;
    border-color: transparent transparent #7d3545;
    border-width: 0 5px 6px;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    z-index: 20;
    margin-top: 8px;
    overflow: hidden;
    background: #f2ebe5;
    border: 1px solid rgba(42, 8, 18, 0.18);
    border-radius: 0;
    box-shadow: 0 14px 35px rgba(42, 8, 18, 0.12);
    color: #2a0812;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
    padding: 13px 16px;
    font-size: 14px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: #eadbd3;
}

.choices__list--dropdown .choices__item--selectable.is-selected,
.choices__list[aria-expanded] .choices__item--selectable.is-selected {
    color: #7d3545;
}

/* Поле даты */

#date {
    cursor: pointer;
}

#date::-webkit-calendar-picker-indicator {
    display: none;
}

/* Всплывающий календарь */

.flatpickr-calendar {
    width: 310px;
    padding: 8px;
    background: #f2ebe5;
    border: 1px solid rgba(42, 8, 18, 0.16);
    border-radius: 2px;
    box-shadow: 0 16px 40px rgba(42, 8, 18, 0.16);
    font-family: var(--sans);
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none;
}

.flatpickr-months,
.flatpickr-weekdays {
    background: transparent;
}

.flatpickr-current-month,
.flatpickr-months .flatpickr-month,
span.flatpickr-weekday {
    color: #2a0812;
    fill: #2a0812;
}

.flatpickr-current-month {
    padding-top: 8px;
    font-size: 15px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #2a0812;
    font-family: var(--sans);
    font-weight: 600;
}

.flatpickr-day {
    color: #2a0812;
    border-radius: 50%;
}

.flatpickr-day:hover {
    background: #eadbd3;
    border-color: #eadbd3;
}

.flatpickr-day.today {
    border-color: #b77d70;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #4b1723;
    border-color: #4b1723;
    color: #f2ebe5;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(42, 8, 18, 0.28);
}

.flatpickr-prev-month,
.flatpickr-next-month {
    fill: #4b1723;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: #a66b60;
}

@media (max-width: 600px) {
    .flatpickr-calendar {
        width: min(310px, calc(100vw - 32px));
    }
}

/* =========================================================
   КОМПАКТНАЯ ФОРМА ЗАЯВКИ
========================================================= */

.inquiry {
    padding: 100px 7vw 45px;
    gap: 6vw;
    align-items: start;
}

.inquiry__header h2 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 0.9;
}

.inquiry__header p:last-child {
    font-size: 14px;
    line-height: 1.6;
}

.inquiry__form {
    gap: 18px 25px;
}

.form-field {
    gap: 7px;
}

.form-field label {
    font-size: 10px;
    letter-spacing: 0.07em;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 10px 0;
    font-size: 15px;
}

.form-field textarea {
    min-height: 90px;
}

.inquiry__submit {
    margin-top: 0;
    padding: 14px 0;
    font-size: 12px;
}

.inquiry__message {
    margin-top: 0;
}

@media (max-width: 800px) {
    .inquiry {
        padding: 75px 6vw;
        gap: 40px;
    }

    .inquiry__form {
        gap: 22px;
    }

    .inquiry__header h2 {
        font-size: clamp(3rem, 10vw, 5rem);
    }
}

/* =================================================
   СОБСТВЕННЫЙ ВСПЛЫВАЮЩИЙ КАЛЕНДАРЬ
================================================= */

.date-field {
    position: relative;
}

.date-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(42, 8, 18, 0.3);
}

.date-input-wrap input {
    flex: 1;
    min-width: 0;
    border-bottom: none !important;
    cursor: pointer;
}

.calendar-toggle {
    background: transparent;
    border: none;
    color: #4b1723;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

.calendar-toggle:hover {
    color: #a66b60;
}

.calendar-popup {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 12px);
    left: 0;

    width: 300px;
    max-width: calc(100vw - 40px);

    padding: 18px;

    background: #f2ebe5;
    border: 1px solid rgba(42, 8, 18, 0.2);
    box-shadow: 0 15px 40px rgba(42, 8, 18, 0.15);

    color: #2a0812;
}

.calendar-popup[hidden] {
    display: none;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.calendar-month {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 23px;
    text-transform: capitalize;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    background: transparent;
    border: 1px solid rgba(42, 8, 18, 0.2);
    color: #4b1723;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 17px;
}

.calendar-nav button:hover {
    background: #eadbd3;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-weekday {
    font-size: 10px;
    padding: 8px 0;
    color: #8a6d70;
}

.calendar-day {
    border: none;
    background: transparent;
    color: #2a0812;
    height: 34px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

.calendar-day:hover:not(:disabled) {
    background: #eadbd3;
}

.calendar-day:disabled {
    color: #c9bdb7;
    cursor: default;
}

.calendar-day.selected {
    background: #4b1723;
    color: #f2ebe5;
    border-radius: 50%;
}

.calendar-day.today {
    border: 1px solid #a66b60;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .calendar-popup {
        width: min(300px, calc(100vw - 40px));
    }
}
/* =================================================
   КРУГ ДАВАЙТЕ ЗНАКОМИТЬСЯ
================================================= */

.hero__circle {
    position: absolute;
    z-index: 5;

    right: 7%;
    bottom: -15px;

    width: 125px;
    height: 125px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: #f2ebe5;
    border: 1px solid #c49a8c;
    border-radius: 50%;

    color: #2a0812;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 19px;
    line-height: 1.05;
    text-align: center;
    text-decoration: none;

    transition:
        transform 0.4s ease,
        background 0.4s ease;
}

.hero__circle:hover {
    transform: rotate(-8deg) scale(1.06);
    background: #eadbd3;
}

.hero__circle-arrow {
    margin-top: 7px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
}

@media (max-width: 900px) {
    .hero__circle {
        width: 105px;
        height: 105px;
        right: 3%;
        bottom: -5px;
        font-size: 16px;
    }
}
/* ПРОЗРАЧНЫЙ КРУЖОК */

.hero__circle {
    background: transparent;
    border: 1px solid rgba(244, 232, 223, 0.7);
    color: #f4e8df;
}

.hero__circle:hover {
    background: transparent;
    border-color: #d9aa98;
    color: #d9aa98;
    transform: rotate(-8deg) scale(1.06);
}

/* ==========================================
   НОВОЕ МОБИЛЬНОЕ МЕНЮ
========================================== */

@media (max-width: 900px) {

    .header {
        z-index: 100;
    }

    .nav {
        z-index: 100;
        position: fixed;
        inset: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;

        gap: 12px;

        padding:
            max(110px, calc(env(safe-area-inset-top) + 90px))
            32px
            calc(50px + env(safe-area-inset-bottom));

        background: var(--bg-deep);

        opacity: 0;
        visibility: hidden;

        overflow-y: auto;

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav a {
        display: block;
        width: 100%;

        padding: 13px 0;

        font-family: var(--serif);
        font-size: clamp(32px, 8vw, 43px);
        line-height: 1.05;
        letter-spacing: -0.02em;

        text-transform: none;

        border-bottom: 1px solid rgba(244, 232, 223, 0.2);
    }

    .nav a::after {
        display: none;
    }

    .menu-toggle {
        position: relative;
        z-index: 102;
    }

}


/* ==========================================
   ЕДИНЫЕ ЭЛЕГАНТНЫЕ СТРЕЛКИ
========================================== */

.hero__arrow,
.inquiry__arrow,
.project-card__button span,
.hero__circle-arrow {

    position: relative;

    display: inline-block;

    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    margin: 0;

    font-size: 0 !important;
    line-height: 1;
}

/* Наконечник */

.hero__arrow::before,
.inquiry__arrow::before,
.project-card__button span::before,
.hero__circle-arrow::before {

    content: "";

    position: absolute;

    top: 4px;
    right: 4px;

    width: 9px;
    height: 9px;

    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

/* Диагональная линия */

.hero__arrow::after,
.inquiry__arrow::after,
.project-card__button span::after,
.hero__circle-arrow::after {

    content: "";

    position: absolute;

    top: 11px;
    left: 3px;

    width: 18px;
    height: 1.5px;

    background: currentColor;

    transform: rotate(-45deg);
    transform-origin: center;
}

/* ==========================================
   ГАЛЕРЕЯ ЗА КАДРОМ
========================================== */

.backstage__gallery--single {
    display: block;
}

.backstage__cover {
    position: relative;

    display: block;

    width: min(100%, 1000px);
    height: clamp(350px, 65vw, 680px);

    margin: 0 auto;
    padding: 0;

    overflow: hidden;

    border: none;
    background: transparent;

    cursor: pointer;
    text-align: left;
}

.backstage__cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.8s ease;
}

.backstage__cover:hover img {
    transform: scale(1.025);
}

.backstage__cover-label {
    position: absolute;

    left: 25px;
    bottom: 25px;

    display: flex;
    align-items: center;
    gap: 25px;

    padding: 16px 20px;

    color: #f5eee9;

    background: rgba(42, 8, 18, 0.7);
    border: 1px solid rgba(244, 232, 223, 0.4);

    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.backstage__cover-arrow {
    font-size: 18px;
}

/* Окно просмотра */

.backstage-modal {
    position: fixed;
    z-index: 1000;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 55px;

    background: rgba(25, 4, 11, 0.97);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.backstage-modal[hidden] {
    display: none;
}

.backstage-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.backstage-modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    height: 100%;

    margin: 0;
}

.backstage-modal__content img {
    display: block;

    max-width: 100%;
    max-height: calc(100% - 35px);

    object-fit: contain;
}

.backstage-modal__content figcaption {
    margin-top: 15px;

    color: #e5c2b1;

    font-size: 11px;
    letter-spacing: 0.2em;
}

/* Крестик */

.backstage-close {
    position: absolute;

    top: 25px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: 1px solid rgba(244, 232, 223, 0.4);
    background: transparent;

    color: #f5eee9;

    font-size: 32px;
    font-weight: 300;

    cursor: pointer;
}

/* Переключение фотографий */

.backstage-nav {
    position: absolute;
    top: 50%;

    width: 44px;
    height: 55px;

    transform: translateY(-50%);

    border: 1px solid rgba(244, 232, 223, 0.35);
    background: transparent;

    color: #f5eee9;

    font-family: Georgia, serif;
    font-size: 35px;
    line-height: 1;

    cursor: pointer;
}

.backstage-prev {
    left: 20px;
}

.backstage-next {
    right: 20px;
}

.backstage-nav:hover,
.backstage-close:hover {
    background: rgba(244, 232, 223, 0.12);
}

@media (max-width: 600px) {

    .backstage__cover {
        height: 440px;
    }

    .backstage__cover-label {
        left: 12px;
        bottom: 12px;

        gap: 14px;
        padding: 13px;

        font-size: 9px;
    }

    .backstage-modal {
        padding: 65px 12px 45px;
    }

    .backstage-modal__content img {
        max-width: 100%;
        max-height: calc(100% - 35px);
    }

    .backstage-close {
        top: 15px;
        right: 15px;
    }

    .backstage-nav {
        top: auto;
        bottom: 12px;

        transform: none;

        width: 42px;
        height: 38px;

        font-size: 27px;
    }

    .backstage-prev {
        left: calc(50% - 55px);
    }

    .backstage-next {
        right: calc(50% - 55px);
    }
}
/* ==========================================
   МОБИЛЬНЫЙ ФУТЕР
========================================== */

@media (max-width: 600px) {

    .footer {
        display: grid;

        grid-template-columns: 75px minmax(0, 1fr) auto;

        align-items: center;

        gap: 10px;

        padding: 35px 0;
    }

    .footer__logo {
        width: 75px;
        height: auto;
    }

    .footer p {
        margin: 0;

        font-family: var(--sans);
        font-size: 9px;
        line-height: 1.8;

        letter-spacing: 0.09em;

        text-align: center;
    }

    .footer a {
        font-size: 15px;
        white-space: nowrap;
    }

}

/* ==========================================
   ИСПРАВЛЕНИЕ HERO НА ТЕЛЕФОНЕ
========================================== */

@media (max-width: 600px) {

    .hero__vertical {
        display: none !important;
    }

    .hero__visual {
        overflow: visible;
    }

}
