:root {
    color-scheme: dark;
    --bg: #06100d;
    --deep: #030b09;
    --panel: rgba(8, 17, 14, 0.76);
    --panel-soft: rgba(23, 61, 42, 0.78);
    --ink: #e7e2d8;
    --muted: #909a86;
    --line: rgba(194, 206, 184, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #202020;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    overflow: hidden;
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: stretch;
}

.poster {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--deep);
    display: grid;
    grid-template-columns: 44.9% 24.3% 30.8%;
    grid-template-rows: 36.5% 34.2% 29.3%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

figure,
p,
h1,
ul {
    margin: 0;
}

img {
    display: block;
}

.hero-panel {
    position: relative;
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    overflow: hidden;
    background: var(--bg);
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 38% 46%;
    filter: saturate(76%) brightness(0.58) contrast(1.12);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 23% 16%, rgba(27, 71, 52, 0.1), transparent 24%),
        linear-gradient(90deg, rgba(3, 12, 9, 0.25), rgba(3, 12, 9, 0.84) 84%),
        linear-gradient(180deg, rgba(3, 12, 9, 0.08), rgba(3, 12, 9, 0.84));
}

.brand-lockup {
    position: absolute;
    left: 18.5%;
    right: 10%;
    top: 12.2%;
    text-align: center;
}

.brand-mark {
    width: clamp(78px, 6vw, 108px);
    height: auto;
    margin: 0 auto 16px;
    filter: brightness(0) invert(1) sepia(11%) saturate(172%) hue-rotate(2deg);
}

.brand-lockup h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5.4vw, 74px);
    line-height: 0.86;
    letter-spacing: 0.03em;
    color: #eee8dc;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.brand-subtitle {
    margin-top: 14px;
    color: #e4ded1;
    font-size: clamp(13px, 1.45vw, 21px);
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

.brand-line {
    margin-top: clamp(22px, 3.1vh, 40px);
    display: grid;
    gap: 7px;
    color: #8d9785;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: clamp(12px, 1.45vw, 21px);
}

.brand-line strong {
    color: #d7d1c5;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.08em;
}

.features {
    position: absolute;
    left: 15%;
    right: 10%;
    bottom: clamp(18px, 3vh, 30px);
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(22px, 3.2vw, 54px);
    padding: 0;
}

.features li {
    display: block;
}

.feature-link {
    display: grid;
    justify-items: center;
    gap: clamp(8px, 1.3vh, 13px);
    color: #f0eadf;
    font-size: clamp(12px, 1.12vw, 17px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0.035em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.62);
    transition: transform 0.28s ease, color 0.28s ease, opacity 0.28s ease;
}

.feature-icon {
    width: clamp(56px, 5.8vw, 74px);
    aspect-ratio: 1;
    border: 2px solid rgba(202, 214, 190, 0.45);
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    opacity: 0.86;
    transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease, background 0.32s ease;
}

.feature-icon img {
    width: 52%;
    height: 52%;
    object-fit: contain;
    opacity: 0.96;
    filter: drop-shadow(0 0 8px rgba(232, 238, 218, 0.2));
}

.features li:hover .feature-link {
    color: #fff8ea;
    transform: translateY(-8px);
}

.feature-link:hover .feature-icon {
    border-color: rgba(238, 232, 220, 0.82);
    background: rgba(225, 235, 208, 0.06);
    box-shadow: 0 0 0 8px rgba(225, 235, 208, 0.05), 0 18px 34px rgba(0, 0, 0, 0.32);
    transform: scale(1.06);
}

.features li:active .feature-link {
    transform: translateY(-3px) scale(0.98);
}

.message-card {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: end;
    justify-self: center;
    width: 92%;
    height: 78%;
    border-radius: 18px;
    padding: clamp(24px, 3vh, 34px) 32px;
    background: rgba(8, 14, 13, 0.83);
    position: relative;
    overflow: hidden;
    transition: transform 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}

.card-title {
    color: #8e9a85;
    font-size: clamp(18px, 2vw, 34px);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.card-copy {
    margin-top: 22px;
    color: #e7e2d8;
    font-size: clamp(16px, 1.8vw, 28px);
    line-height: 1.25;
    letter-spacing: 0.04em;
}

.heart {
    margin-top: 20px;
    color: #8b9a86;
    font-size: clamp(24px, 2.5vw, 42px);
}

.line-flower {
    position: absolute;
    right: -62px;
    bottom: -34px;
    width: 205px;
    height: auto;
    opacity: 0.16;
    mix-blend-mode: screen;
    filter: brightness(1.45) contrast(1.25);
}

.contact-card {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: start;
    justify-self: center;
    width: 92%;
    min-height: 70%;
    border-radius: 18px;
    padding: clamp(22px, 3vh, 28px) 30px 24px;
    background:
        radial-gradient(circle at 20% 10%, rgba(90, 138, 98, 0.28), transparent 48%),
        rgba(27, 65, 45, 0.84);
    display: grid;
    gap: clamp(14px, 2.2vh, 22px);
    color: #e2ded2;
    transition: transform 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}

.message-card:hover,
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.message-card:hover {
    background: rgba(11, 22, 18, 0.9);
}

.contact-card:hover {
    background:
        radial-gradient(circle at 20% 10%, rgba(113, 164, 121, 0.34), transparent 48%),
        rgba(31, 76, 51, 0.88);
}

.contact-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
    align-items: center;
    font-size: clamp(14px, 1.35vw, 19px);
    line-height: 1.42;
    transition: transform 0.24s ease, color 0.24s ease;
}

.contact-row:hover {
    color: #fff8ea;
    transform: translateX(6px);
}

.contact-row strong {
    display: inline-block;
    min-width: 66px;
    color: #dcd8cc;
    font-weight: 500;
    text-transform: uppercase;
}

.contact-label {
    display: none;
}

.contact-link {
    color: inherit;
    text-decoration: none;
}

.contact-icon {
    width: 38px;
    height: 38px;
    position: relative;
    display: grid;
    place-items: center;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.66;
    filter: drop-shadow(0 0 8px rgba(232, 238, 218, 0.1));
}

.contact-icon--instagram img {
    width: 100%;
    height: 100%;
    opacity: 0.76;
    filter: drop-shadow(0 0 8px rgba(232, 238, 218, 0.1));
}

.bouquet-panel {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
    background: #222;
}

.bouquet-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    filter: brightness(0.84) saturate(0.78) contrast(1.04);
}

.tile {
    overflow: hidden;
    background: #07100d;
    transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.76) saturate(0.7) contrast(1.05);
    transition: transform 0.55s ease, filter 0.35s ease;
}

.tile:hover {
    z-index: 5;
    transform: translateY(-8px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.36);
}

.tile:hover img {
    transform: scale(1.055);
    filter: brightness(0.9) saturate(0.78) contrast(1.08);
}

.tile-tag {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.tile-tag img {
    object-fit: cover;
    object-position: 46% 50%;
    filter: brightness(0.82) saturate(0.78) contrast(1.06);
}

.tile-shop {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    width: 31%;
    margin-left: 43.8%;
    z-index: 2;
}

.tile-shop img {
    object-position: 47% 58%;
}

.tile-flower {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.tile-flower img {
    object-position: 50% 50%;
}

.closing-panel {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 22px;
    background:
        radial-gradient(circle at 50% 50%, rgba(26, 61, 42, 0.22), transparent 55%),
        #07100d;
    color: #8f9c87;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.17em;
    font-size: clamp(14px, 1.65vw, 25px);
    line-height: 1.34;
}

.closing-panel span {
    font-size: clamp(24px, 2.6vw, 42px);
    color: #9aa58f;
    font-weight: 400;
}

.closing-panel img {
    width: 72px;
    filter: brightness(0) invert(1) sepia(11%) saturate(172%) hue-rotate(2deg);
    transition: transform 0.34s ease, opacity 0.34s ease;
}

.closing-panel:hover img {
    opacity: 0.96;
    transform: translateY(-4px) scale(1.08);
}

.closing-panel:hover span {
    animation: heartPulse 1.1s ease-in-out infinite;
}

@keyframes heartPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.88;
    }

    50% {
        transform: scale(1.16);
        opacity: 1;
    }
}

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

@media (max-width: 840px) {
    body {
        background: #010705;
        overflow: auto;
    }

    .page {
        min-height: 100svh;
        place-items: stretch center;
    }

    .poster {
        width: min(100vw, 430px);
        height: auto;
        min-height: 100svh;
        padding: 20px 28px 18px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto 1fr;
        align-content: start;
        background:
            linear-gradient(180deg, rgba(4, 16, 12, 0.52), rgba(2, 9, 7, 0.94) 72%),
            url("dark-flower.jpg") center top / cover no-repeat,
            #020b08;
        box-shadow: none;
    }

    .hero-panel,
    .message-card,
    .contact-card,
    .closing-panel {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .bouquet-panel,
    .tile-tag,
    .tile-shop,
    .tile-flower {
        display: none;
    }

    .hero-panel {
        position: relative;
        min-height: 0;
        overflow: visible;
        background: transparent;
    }

    .hero-photo,
    .hero-shade {
        display: none;
    }

    .brand-lockup {
        position: static;
        width: 100%;
        padding-top: 0;
        text-align: center;
    }

    .brand-mark {
        width: 64px;
        margin-bottom: 12px;
    }

    .brand-lockup h1 {
        font-size: 45px;
        line-height: 0.9;
        letter-spacing: 0.035em;
    }

    .brand-subtitle {
        margin-top: 7px;
        font-size: 15px;
        letter-spacing: 0.06em;
    }

    .brand-line {
        margin-top: 22px;
        gap: 2px;
        font-size: 16px;
        line-height: 1.24;
        letter-spacing: 0.055em;
    }

    .brand-line strong {
        font-size: 16px;
        letter-spacing: 0.035em;
    }

    .features {
        position: static;
        margin-top: 24px;
        margin-bottom: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 17px;
    }

    .feature-link {
        gap: 8px;
        font-size: 11px;
        line-height: 1.1;
        letter-spacing: 0.02em;
    }

    .feature-icon {
        width: 58px;
        border-width: 1.5px;
        background: rgba(4, 18, 13, 0.46);
    }

    .feature-icon img {
        width: 45%;
        height: 45%;
    }

    .features li:hover .feature-link,
    .feature-link:hover .feature-icon,
    .features li:active .feature-link {
        transform: none;
        box-shadow: none;
    }

    .message-card {
        min-height: 0;
        margin-top: 48px;
        padding: 0 0 22px;
        background: transparent;
        text-align: center;
    }

    .message-card:hover,
    .contact-card:hover {
        transform: none;
        box-shadow: none;
    }

    .card-title {
        font-size: 25px;
        line-height: 1;
        letter-spacing: 0.18em;
    }

    .card-copy {
        margin-top: 6px;
        font-size: 21px;
        line-height: 1.16;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .heart,
    .line-flower {
        display: none;
    }

    .contact-card {
        min-height: 0;
        margin-top: 0;
        border-radius: 14px;
        padding: 17px 20px 18px;
        gap: 13px;
        background: rgba(34, 80, 52, 0.94);
    }

    .contact-row {
        grid-template-columns: 34px 1fr;
        gap: 12px;
        align-items: start;
        font-size: 15px;
        line-height: 1.22;
    }

    .contact-row:hover {
        transform: none;
    }

    .contact-icon {
        width: 31px;
        height: 31px;
        margin-top: 1px;
    }

    .contact-icon img {
        opacity: 0.78;
        filter: grayscale(1) brightness(1.45) drop-shadow(0 0 8px rgba(232, 238, 218, 0.08));
    }

    .contact-icon--instagram img {
        width: 100%;
        height: 100%;
        opacity: 0.78;
        filter: drop-shadow(0 0 8px rgba(232, 238, 218, 0.08));
    }

    .contact-label {
        display: block;
        margin-bottom: 1px;
        color: #e8e1d3;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .contact-row strong {
        min-width: 56px;
        color: #e8e1d3;
        font-weight: 800;
    }

    .closing-panel {
        min-height: 118px;
        padding: 28px 0 0;
        gap: 11px;
        background: transparent;
        font-size: 16px;
        line-height: 1.22;
        letter-spacing: 0.09em;
    }

    .closing-panel span {
        font-size: 22px;
    }

    .closing-panel img {
        width: 42px;
    }
}

@media (max-width: 370px) {
    .poster {
        padding-inline: 22px;
        grid-template-rows: auto auto auto 1fr;
    }

    .brand-mark {
        width: 56px;
    }

    .brand-lockup h1 {
        font-size: 39px;
    }

    .brand-line {
        margin-top: 18px;
        font-size: 14px;
    }

    .message-card {
        margin-top: 40px;
    }

    .feature-icon {
        width: 52px;
    }

    .contact-card {
        padding: 15px 17px 16px;
    }

    .contact-row {
        font-size: 14px;
    }
}
