:root {
    --bg: #F8F4EF;
    --primary: #7A1E28;
    --primary-dark: #621720;
    --text: #222222;
    --muted: #777777;
    --border: #D8D0C8;
    --error: #B42318;
    --success: #1F7A4D;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    background: var(--bg);
    color: var(--text);
}

img {
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.container {
    width: min(90%, 1300px);
    margin: 0 auto;
}

section {
    scroll-margin-top: 90px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(248, 244, 239, 0.96);
    border-bottom: 1px solid rgba(122, 30, 40, 0.08);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
}

.logo {
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav a {
    text-decoration: none;
    transition: color 0.25s ease;
}

nav a:hover {
    color: var(--primary);
}

.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: 45px 0;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.hero-text,
.hero-image {
    flex: 1;
}

.hero-tag,
.section-tag {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
}

.hero h1,
.about h2,
.concept h2,
.collection h2,
.contact-text h2 {
    font-family: "Cormorant Garamond", serif;
    color: var(--primary);
    line-height: 1;
}

.hero h1 {
    margin: 25px 0;
    font-size: 90px;
    line-height: 0.9;
}

.hero p {
    max-width: 500px;
    margin-bottom: 45px;
    font-size: 22px;
    line-height: 1.6;
}

.button,
.submit-button,
.cookie-button {
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.button {
    display: inline-block;
    padding: 18px 38px;
    text-decoration: none;
}

.button:hover,
.submit-button:hover,
.cookie-button:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about,
.concept,
.collection {
    padding: 120px 0;
}

.about,
.collection {
    background: white;
}

.section-tag {
    margin-bottom: 20px;
}

.about h2 {
    max-width: 700px;
    margin-bottom: 50px;
    font-size: 64px;
}

blockquote {
    max-width: 800px;
    margin-bottom: 25px;
    font-size: 30px;
    line-height: 1.5;
    font-style: italic;
}

.author {
    margin-bottom: 45px;
    color: var(--muted);
    font-size: 18px;
}

.about-description {
    max-width: 800px;
    font-size: 20px;
    line-height: 1.8;
}

.concept h2,
.collection h2 {
    margin-bottom: 60px;
    font-size: 60px;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.card {
    padding: 40px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease;
}

.card:hover {
    transform: translateY(-8px);
}

.icon {
    margin-bottom: 25px;
    font-size: 48px;
}

.card h3 {
    margin-bottom: 20px;
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    color: var(--primary);
}

.card p {
    line-height: 1.8;
}

.gallery-wrapper {
    position: relative;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: clamp(360px, 48vw, 560px);
    object-fit: contain;
    display: block;
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.035);
}

.gallery-arrow,
.gallery-dots {
    display: none;
}

.contact {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: 45px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.contact-text h2 {
    margin-bottom: 24px;
    font-size: 60px;
}

.contact-text p {
    max-width: 500px;
    font-size: 18px;
    line-height: 1.7;
}

.contact-form {
    padding: 28px 34px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

.form-group {
    margin-bottom: 13px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.optional-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: white;
    color: var(--text);
    font-size: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group textarea {
    min-height: 75px;
    max-height: 130px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(122, 30, 40, 0.1);
}

.consent-field {
    padding: 8px;
    margin: 0 -8px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.consent-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    position: relative;
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    border: 1px solid #BEB5AC;
    border-radius: 4px;
    background: white;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.consent-label input:checked + .custom-checkbox {
    border-color: var(--primary);
    background: var(--primary);
}

.consent-label input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

.consent-label input:focus-visible + .custom-checkbox {
    box-shadow: 0 0 0 3px rgba(122, 30, 40, 0.14);
}

.consent-text {
    color: #595959;
    font-size: 11px;
    line-height: 1.5;
}

.consent-text a {
    color: var(--primary);
    text-underline-offset: 2px;
}

.consent-message {
    display: none;
    margin: 6px 0 0 29px;
    color: var(--error);
    font-size: 11px;
    line-height: 1.4;
}

.consent-field.has-error {
    border-color: rgba(180, 35, 24, 0.55);
    background: rgba(180, 35, 24, 0.05);
}

.consent-field.has-error .custom-checkbox {
    border-color: var(--error);
}

.consent-field.has-error .consent-message {
    display: block;
}

.submit-button {
    width: 100%;
    padding: 14px 30px;
    font-size: 16px;
}

.submit-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.form-status {
    min-height: 20px;
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
}

.form-status.is-success {
    color: var(--success);
}

.form-status.is-error {
    color: var(--error);
}

footer {
    padding: 40px 0;
    background: var(--primary);
    color: white;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-logo {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 700;
}

.footer-main p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-links a {
    color: white;
    font-size: 13px;
    line-height: 1.4;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 3px;
}

.cookie-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    display: none;
    width: min(460px, calc(100% - 48px));
    padding: 22px;
    border: 1px solid rgba(122, 30, 40, 0.12);
    border-radius: 16px;
    background: white;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.cookie-notice.is-visible {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-notice p {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
}

.cookie-notice a {
    color: var(--primary);
    text-underline-offset: 2px;
}

.cookie-button {
    flex-shrink: 0;
    padding: 11px 20px;
    font-size: 14px;
}

@media (max-width: 1000px) {
    nav ul { gap: 22px; }
    .logo { font-size: 28px; }
    .hero { min-height: auto; padding: 70px 0; }
    .hero-wrapper { gap: 45px; }
    .hero h1 { font-size: 70px; }
    .hero p { font-size: 19px; }
    .about h2,
    .concept h2,
    .collection h2,
    .contact-text h2 { font-size: 52px; }
    .concept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card:last-child { grid-column: span 2; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
    .gallery-item:last-child { grid-column: span 2; width: calc(50% - 12px); justify-self: center; }
    .contact { min-height: auto; padding: 70px 0; }
    .contact-wrapper { gap: 40px; }
    .contact-form { padding: 27px; }
}

@media (max-width: 700px) {
    .container { width: 88%; }
    section { scroll-margin-top: 112px; }
    nav { min-height: auto; padding: 14px 0; flex-direction: column; gap: 9px; }
    .logo { font-size: 26px; line-height: 1; }
    nav ul { flex-wrap: nowrap; justify-content: center; gap: 8px 15px; }
    nav a { font-size: 12px; }
    .hero { min-height: auto; padding: 55px 0 75px; }
    .hero-wrapper { flex-direction: column; gap: 45px; }
    .hero-text { width: 100%; }
    .hero-tag { font-size: 12px; }
    .hero h1 { font-size: 58px; line-height: 0.95; }
    .hero p { margin-bottom: 35px; font-size: 18px; }
    .button { padding: 16px 30px; }
    .hero-image img { width: 100%; max-width: 430px; max-height: 70vh; }
    .about,
    .concept,
    .collection { padding: 85px 0; }
    .about h2,
    .concept h2,
    .collection h2,
    .contact-text h2 { font-size: 44px; }
    blockquote { font-size: 23px; }
    .about-description { font-size: 17px; }
    .concept-grid { grid-template-columns: 1fr; }
    .card:last-child { grid-column: auto; }
    .card { padding: 32px; }
    .gallery { display: flex; gap: 16px; max-width: none; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-inline: contain; }
    .gallery::-webkit-scrollbar { display: none; }
    .gallery-item,
    .gallery-item:last-child { flex: 0 0 82%; width: auto; grid-column: auto; scroll-snap-align: center; }
    .gallery-item img { max-height: 68vh; }
    .gallery-arrow { position: absolute; top: 50%; z-index: 5; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(122, 30, 40, 0.92); color: white; font-family: Arial, sans-serif; font-size: 32px; cursor: pointer; transform: translateY(-50%); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
    .gallery-arrow-prev { left: -10px; }
    .gallery-arrow-next { right: -10px; }
    .gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
    .gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(122, 30, 40, 0.25); transition: width 0.25s ease, background 0.25s ease; }
    .gallery-dot.is-active { width: 24px; border-radius: 10px; background: var(--primary); }
    .contact { min-height: auto; padding: 55px 0; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 25px; }
    .contact-text h2 { margin-bottom: 16px; }
    .contact-text p { font-size: 15px; }
    .contact-form { padding: 21px; }
    .form-group { margin-bottom: 11px; }
    .form-group input,
    .form-group textarea { padding: 10px 12px; font-size: 14px; }
    .form-group textarea { min-height: 65px; }
    .consent-text { font-size: 10px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-main,
    .footer-links { align-items: center; }
    .cookie-notice { right: 16px; bottom: 16px; width: calc(100% - 32px); }
    .cookie-notice.is-visible { flex-direction: column; align-items: stretch; gap: 14px; }
    .cookie-button { width: 100%; }
}

@media (max-width: 420px) {
    nav ul { gap: 7px 11px; }
    nav a { font-size: 11px; }
    .hero h1 { font-size: 48px; }
    .about h2,
    .concept h2,
    .collection h2,
    .contact-text h2 { font-size: 38px; }
    .card { padding: 26px; }
    .contact-form { padding: 17px; }
}


@media (max-width: 700px) {
    body {
        overflow-x: hidden;
    }

    .gallery-wrapper {
        width: 100%;
        overflow: visible;
    }

    .gallery {
        display: flex;
        width: calc(100vw - 12%);
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: 4px 11% 18px 0;
        gap: 14px;
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery::-webkit-scrollbar {
        display: none;
    }

    .gallery-item,
    .gallery-item:last-child {
        flex: 0 0 78%;
        width: 78%;
        min-width: 78%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .gallery-item img {
        width: 100%;
        height: min(54vh, 470px);
        max-height: 470px;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
    }

    .gallery-arrow {
        display: none;
    }

    .gallery-dots {
        margin-top: 12px;
    }

    .cookie-notice,
    .cookie-notice.is-visible {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        top: auto !important;
        z-index: 10000 !important;
        width: auto !important;
        max-height: calc(100dvh - 24px);
        margin: 0 !important;
        padding: 16px;
        overflow-y: auto;
        transform: none !important;
    }

    .cookie-notice.is-visible {
        display: flex !important;
    }
}


.collection-disclaimer {
    max-width: 900px;
    margin: 24px auto 0;
    color: #777777;
    font-size: 14px;
    font-style: italic;
    line-height: 1.65;
    text-align: center;
}

.partners {
    padding: 120px 0;
    background: var(--bg);
}

.partners h2 {
    max-width: 820px;
    margin-bottom: 34px;
    font-family: "Cormorant Garamond", serif;
    color: var(--primary);
    font-size: 60px;
    line-height: 1;
}

.partners-intro {
    max-width: 980px;
    margin-bottom: 54px;
    font-size: 20px;
    line-height: 1.8;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.partner-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 34px;
    border: 1px solid rgba(122, 30, 40, 0.14);
    border-radius: 18px;
    background: white;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    margin-bottom: 28px;
}

.partner-logo img {
    max-width: 210px;
    max-height: 100px;
    object-fit: contain;
}

.partner-logo-text {
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 5px;
}

.partner-card h3 {
    margin-bottom: 18px;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    line-height: 1.15;
}

.partner-card p {
    margin-bottom: 28px;
    line-height: 1.75;
}

.partner-link {
    align-self: flex-start;
    margin-top: auto;
    color: var(--primary);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.partner-link:hover {
    color: var(--primary-dark);
}

@media (max-width: 1000px) {
    .partners h2 {
        font-size: 52px;
    }

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

    .partner-card {
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .collection-disclaimer {
        margin-top: 18px;
        font-size: 12px;
        text-align: left;
    }

    .partners {
        padding: 85px 0;
    }

    .partners h2 {
        font-size: 44px;
    }

    .partners-intro {
        margin-bottom: 36px;
        font-size: 16px;
        line-height: 1.7;
    }

    .partner-card {
        padding: 26px;
    }

    .partner-logo {
        height: 92px;
        margin-bottom: 22px;
    }

    .partner-logo img {
        max-width: 180px;
        max-height: 84px;
    }

    .partner-logo-text {
        font-size: 39px;
    }

    .partner-card h3 {
        font-size: 23px;
    }

    .partner-card p {
        font-size: 14px;
    }
}


.gallery {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 1300px;
    gap: 16px;
}

.gallery-item {
    cursor: zoom-in;
}

.gallery-item img {
    height: clamp(320px, 34vw, 500px);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 12, 12, 0.92);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-image {
    max-width: min(88vw, 1200px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 34px;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 1000px) {
    .gallery {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        max-width: 100%;
        gap: 12px;
    }

    .gallery-item:last-child {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }

    .gallery-item img {
        height: clamp(260px, 38vw, 420px);
    }
}

@media (max-width: 700px) {
    .gallery {
        display: flex;
        width: calc(100vw - 12%);
        max-width: none;
        gap: 14px;
    }

    .gallery-item,
    .gallery-item:last-child {
        flex: 0 0 78%;
        width: 78%;
        min-width: 78%;
    }

    .gallery-item img {
        height: min(54vh, 470px);
        max-height: 470px;
    }

    .lightbox {
        padding: 12px;
    }

    .lightbox-image {
        max-width: 94vw;
        max-height: 82vh;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}


.gallery {
    align-items: stretch;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 3 / 4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1000px) {
    .gallery-item,
    .gallery-item:last-child {
        width: 100%;
        aspect-ratio: 3 / 4;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 700px) {
    .gallery-item,
    .gallery-item:last-child {
        flex: 0 0 78%;
        width: 78%;
        min-width: 78%;
        aspect-ratio: 3 / 4;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
    }
}


.gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    align-items: stretch;
}

.gallery-item,
.gallery-item:last-child {
    width: 100%;
    min-width: 0;
    aspect-ratio: 9 / 16;
    grid-column: auto;
    justify-self: stretch;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 1000px) {
    .gallery {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
        max-width: 100%;
    }

    .gallery-item,
    .gallery-item:last-child {
        width: 100%;
        min-width: 0;
        aspect-ratio: 9 / 16;
        grid-column: auto;
        justify-self: stretch;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center top;
    }
}

@media (max-width: 700px) {
    .gallery {
        display: flex;
        width: calc(100vw - 12%);
        max-width: none;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-item,
    .gallery-item:last-child {
        flex: 0 0 78%;
        width: 78%;
        min-width: 78%;
        aspect-ratio: 9 / 16;
        scroll-snap-align: start;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center top;
    }
}


.gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 1280px;
}

@media (max-width: 1000px) {
    .gallery {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}


.telegram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 1;
}

.telegram-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.25s ease, color 0.25s ease;
}

.telegram-link:hover svg {
    transform: translateY(-1px) scale(1.06);
}

.telegram-link-header {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(122, 30, 40, 0.22);
    border-radius: 50%;
    color: var(--primary);
}

.telegram-link-header:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.telegram-link-footer {
    gap: 8px;
}

.telegram-link-footer svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 700px) {
    .telegram-link-header {
        width: 30px;
        height: 30px;
    }

    .telegram-link-header svg {
        width: 18px;
        height: 18px;
    }

    .telegram-link-footer {
        margin-top: 4px;
    }
}


.error-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(122, 30, 40, 0.08), transparent 34%),
        var(--bg);
}

.error-page-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.error-page-card {
    width: min(680px, 100%);
    padding: 64px 36px;
    border: 1px solid rgba(122, 30, 40, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.error-page-logo {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.error-page-code {
    margin: 0;
    color: rgba(122, 30, 40, 0.2);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(96px, 20vw, 180px);
    font-weight: 700;
    line-height: 0.8;
}

.error-page-card h1 {
    margin: 26px 0 14px;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(40px, 7vw, 66px);
    line-height: 1;
}

.error-page-card > p:not(.error-page-code) {
    max-width: 460px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .error-page-card {
        padding: 48px 24px;
    }
}


.gallery-item {
    cursor: zoom-in;
    touch-action: pan-x;
    -webkit-tap-highlight-color: transparent;
}

.gallery-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.gallery-item img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
