:root {
    --color-navy: #302330;
    --color-navy-raised: #4a3045;
    --color-red: #d32817;
    --color-red-hover: #b42112;
    --color-red-bright: #ff3514;
    --color-red-on-dark: #ff8978;
    --color-surface: #f5f0f2;
    --color-line: #e8dbe2;
    --color-highlight: #fbe5e1;
    --color-accent-text: var(--color-red-hover);
    --section-gradient: linear-gradient(116deg, #211b27 0%, #3f263c 49%, #662c40 100%);
}

.t-records :focus-visible {
    outline: 2px solid var(--color-accent-text);
    outline-offset: 3px;
}

.t450__logoimg[alt="3D-52.RU"] {
    width: 150px;
    max-width: 100%;
    height: auto;
}

#t-header {
    position: relative;
    z-index: 100;
    background: #fff;
}

.site-header__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
    width: min(1400px, calc(100% - 64px));
    min-height: 82px;
    margin: 0 auto;
    font: 16px/1.3 Inter, Arial, sans-serif;
}

.site-header__logo img {
    display: block;
    width: 174px;
    height: auto;
}

.site-header__contacts {
    display: grid;
    justify-self: end;
    gap: 3px;
}

#allrecords .site-header__contacts a,
#allrecords .site-header__whatsapp {
    color: var(--color-navy);
}

#allrecords .site-header__contacts a:hover,
#allrecords .site-header__whatsapp:hover {
    color: var(--color-red-hover);
}

.site-header__phone {
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.site-header__email {
    width: fit-content;
    font-size: 14px;
}

.site-header__whatsapp {
    display: inline-flex;
    box-sizing: border-box;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 6px 12px;
    border: 1px solid var(--color-line);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}

.site-header__whatsapp img {
    display: block;
    width: 26px;
    height: 26px;
}

.site-header__menu-button {
    display: none;
    box-sizing: border-box;
    width: 39px;
    height: 39px;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    color: var(--color-navy);
    cursor: pointer;
}

.site-header__menu-icon {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -5px currentColor, 0 5px currentColor;
}

#t-header #rec5407606301 .mm-bar {
    padding-inline: 32px;
    border-top: 1px solid var(--color-line);
}

#t-header #mmNav {
    max-width: 1400px;
    padding-left: 0;
}

#t-header #mmNav > ul > li > a {
    font-size: 16px;
}

#t-header #mmNav .mm-mega {
    border: 1px solid var(--color-line);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgb(48 35 48 / 12%);
}

@media (max-width: 960px) {
    .site-header__top {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        gap: 10px;
        width: calc(100% - 32px);
        min-height: 65px;
    }

    .site-header__logo img { width: 132px; }
    .site-header__menu-button { display: grid; place-items: center; }

    #t-header #rec5407606301 .mm-bar {
        min-height: 0;
        padding: 0;
    }

    #t-header #mmNav > ul {
        right: 0;
        left: 0;
    }

    #t-header #mmNav .mm-mega {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 560px) {
    .site-header__top {
        gap: clamp(6px, 1.8vw, 10px);
        width: calc(100% - 20px);
    }

    .site-header__logo img { width: clamp(102px, 30vw, 132px); }
    .site-header__contacts { justify-self: start; font-size: 13px; }
    .site-header__email { font-size: 12px; }
    .site-header__whatsapp { min-height: 39px; padding: 3px; border-color: transparent; }
    .site-header__whatsapp span { display: none; }
}

@media (max-width: 360px) {
    .site-header__top { gap: 5px; width: calc(100% - 16px); }
    .site-header__contacts { font-size: 12px; }
    .site-header__phone { letter-spacing: -.015em; }
    .site-header__whatsapp { padding-inline: 2px; }
}

.site-footer {
    background: var(--color-surface);
    color: var(--color-navy);
    font: 14px/1.5 Inter, Arial, sans-serif;
}

.site-footer__inner {
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
    padding: 36px 0 26px;
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-line);
}

.site-footer__brand,
.site-footer__contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.site-footer__logo img {
    display: block;
    width: 162px;
    height: auto;
}

#allrecords .site-footer a {
    color: var(--color-navy);
}

#allrecords .site-footer a:hover {
    color: var(--color-red-hover);
}

.site-footer__phone {
    font-weight: 650;
    white-space: nowrap;
}

.site-footer__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.site-footer__whatsapp img {
    display: block;
    width: 22px;
    height: 22px;
}

.site-footer__services {
    margin-top: 23px;
}

.site-footer__services h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 27px;
}

.site-footer__columns ul {
    display: grid;
    align-content: start;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__columns a {
    overflow-wrap: anywhere;
}

.site-footer__home,
.site-footer__columns a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__privacy {
    margin: 20px 0 0;
    color: #505d72;
    font-size: 13px;
}

.site-footer .offline-legal-address {
    padding-block: 15px;
    border-top: 1px solid var(--color-line);
}

@media (max-width: 760px) {
    .site-footer__inner {
        width: calc(100% - 32px);
        padding-top: 26px;
    }

    .site-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px 20px;
    }

    .site-footer__contacts { gap: 8px 16px; }
}

.gift-hero {
    --color-accent-text: var(--color-red-on-dark);
    background: var(--color-navy) var(--section-gradient);
    color: #fff;
    padding: clamp(42px, 6vw, 98px) 0 max(46px, calc(8vw + 20px));
    font-family: Inter, Arial, sans-serif;
}

#allrecords .section-gradient .t396__artboard {
    background-image: var(--section-gradient);
}

#allrecords .section-gradient [data-gradient-glow] {
    display: none !important;
}

.gift-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 88px);
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
}

.gift-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(35px, 4.25vw, 66px);
    font-weight: 600;
    line-height: 1.15;
    overflow-wrap: break-word;
    text-transform: uppercase;
}

.gift-hero p {
    margin: 24px 0 0;
    color: #fff;
    font-size: clamp(16px, 1.45vw, 22px);
    line-height: 1.5;
}

.gift-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 24px;
}

#allrecords .gift-hero__actions a {
    display: inline-flex;
    box-sizing: border-box;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    font: 700 14px/1.3 Inter, Arial, sans-serif;
    text-transform: uppercase;
}

#allrecords .gift-hero__actions a:first-child {
    background: linear-gradient(105deg, var(--color-red-hover), var(--color-red));
    border-color: transparent;
}

#allrecords .gift-hero__actions a:hover {
    border-color: var(--color-red-on-dark);
}

.gift-hero__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.home-hero {
    padding-top: clamp(42px, 5vw, 76px);
}

.home-hero h1 {
    font-size: clamp(35px, 4.25vw, 62px);
}

.home-hero__media {
    position: relative;
    display: block;
    justify-self: end;
    width: min(100%, 490px);
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
}

.home-hero__media img {
    display: block;
    width: 100%;
    height: auto;
}

.home-hero__zoom-label {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    border: 1px solid rgb(255 255 255 / 50%);
    border-radius: 8px;
    background: var(--color-navy);
    color: #fff;
    font: 600 14px/1.3 Inter, Arial, sans-serif;
}

.home-hero__media:hover .home-hero__zoom-label {
    background: var(--color-red-hover);
}

.home-benefits {
    padding: clamp(44px, 6vw, 80px) 0;
    background: var(--color-navy);
    color: #fff;
    font: 16px/1.5 Inter, Arial, sans-serif;
}

.home-benefits__inner {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
}

.home-benefits h2 {
    margin: 0 0 clamp(22px, 3vw, 36px);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 650;
    line-height: 1.15;
}

.home-benefits h2 span { color: var(--color-red-on-dark); }

.home-benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
}

.home-benefits__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 12px;
    background: rgb(255 255 255 / 7%);
}

.home-benefits__card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home-benefits__body {
    padding: clamp(16px, 2.4vw, 26px);
}

.home-benefits__body h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 650;
    line-height: 1.25;
}

.home-benefits__body p {
    margin: 0;
    color: #f0dfe8;
}

@media (max-width: 640px) {
    .home-benefits__inner { width: calc(100% - 32px); }
    .home-benefits__grid { grid-template-columns: minmax(0, 1fr); }
}

.work-gallery {
    padding: clamp(42px, 6vw, 78px) 0 max(52px, calc(8vw + 24px));
    background: var(--color-navy) var(--section-gradient);
    color: #fff;
    font: 16px/1.5 Inter, Arial, sans-serif;
}

.work-gallery__inner {
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
}

.work-gallery h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 4.5vw, 56px);
    font-weight: 650;
    line-height: 1.15;
}

.work-gallery__note {
    margin: 9px 0 25px;
    color: #f0dfe8;
}

.work-gallery--with-external-title {
    padding-top: 0;
    background: var(--color-navy);
}

.work-gallery--with-external-title .work-gallery__note {
    margin-top: 0;
    text-align: center;
}

.work-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 26px);
}

.work-gallery--compact .work-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#allrecords .work-gallery__card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 19%);
    border-radius: 10px;
    background: rgb(255 255 255 / 8%);
    color: #fff;
    cursor: zoom-in;
}

.work-gallery__card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.work-gallery__caption {
    padding: 11px 13px;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.review-section {
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
    padding: clamp(30px, 4vw, 58px) 0;
    color: var(--color-navy);
    font: 16px/1.6 Inter, Arial, sans-serif;
}

.review-section__title {
    margin: 0 0 24px;
    font-size: clamp(30px, 3.8vw, 46px);
    font-weight: 550;
    line-height: 1.15;
    text-transform: uppercase;
}

.review-section__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.2vw, 32px);
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: clamp(18px, 2vw, 25px);
    border-radius: 14px;
    background: var(--color-surface);
    overflow-wrap: anywhere;
}

.review-card__rating {
    color: var(--color-red-hover);
    font-size: 18px;
    line-height: 1.2;
}

.review-card blockquote { margin: 0; padding: 0; }

.review-card figcaption {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 650;
    line-height: 1.45;
}

@media (min-width: 761px) {
    @supports (grid-template-rows: subgrid) {
        .review-card {
            display: grid;
            grid-row: span 3;
            grid-template-rows: subgrid;
        }

        .review-card figcaption { margin-top: 0; }
    }
}

@media (max-width: 760px) {
    .review-section { width: calc(100% - 32px); }
    .review-section__grid { grid-template-columns: minmax(0, 1fr); }
}

.home-news {
    width: min(920px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(40px, 6vw, 76px) 0;
    color: var(--color-navy);
    font: 16px/1.65 Inter, Arial, sans-serif;
}

.home-news__title {
    margin: 0 0 clamp(24px, 4vw, 40px);
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 650;
    line-height: 1.12;
}

.home-news__title span { color: var(--color-red-hover); }

.home-news__article + .home-news__article {
    margin-top: clamp(32px, 5vw, 52px);
    padding-top: clamp(26px, 4vw, 42px);
    border-top: 1px solid var(--color-line);
}

.home-news__article time {
    display: block;
    margin-bottom: 6px;
    color: #665866;
    font-size: 14px;
}

.home-news__article h3 {
    margin: 0 0 16px;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 650;
    line-height: 1.2;
}

.home-news__article img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 16px;
    border-radius: 14px;
}

.home-news__article p {
    max-width: 74ch;
    margin: 0;
}

.home-news__article p + p { margin-top: 10px; }

@media (max-width: 680px) {
    .home-news { width: calc(100% - 32px); }
}

#allrecords .work-gallery__card:hover,
#allrecords .work-gallery__card:focus-visible {
    border-color: var(--color-red-on-dark);
    outline-color: var(--color-red-on-dark);
}

@media (max-width: 1050px) {
    .work-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .work-gallery__inner { width: calc(100% - 32px); }
    .work-gallery__grid,
    .work-gallery--compact .work-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .work-gallery__caption { padding: 8px 9px; font-size: 14px; }
}

.gallery-layout .t396__artboard {
    display: grid;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "heading gallery" "copy gallery" "action gallery";
    align-items: start;
    gap: 18px clamp(28px, 5vw, 76px);
    height: auto !important;
    padding: clamp(38px, 5vw, 70px) max(40px, calc((100% - 1400px) / 2));
}

.gallery-layout .t396__artboard > .t396__carrier,
.gallery-layout .t396__artboard > .t396__filter {
    height: 100% !important;
    pointer-events: none;
}

#allrecords .gallery-layout .t396__artboard > .tn-elem {
    position: relative !important;
    inset: auto !important;
    min-width: 0;
    transform: none !important;
    opacity: 1 !important;
}

#allrecords .gallery-layout .t396__artboard > .tn-elem[data-elem-id="1732017391176"] {
    grid-area: heading;
    width: 100% !important;
    height: auto !important;
}

.gallery-layout [data-elem-id="1732017391176"] > .tn-atom {
    font-size: clamp(27px, 2.65vw, 40px) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
}

#allrecords .gallery-layout .t396__artboard > .tn-elem[data-elem-id="1732018588246"] {
    grid-area: copy;
    width: 100% !important;
    height: auto !important;
    overflow-wrap: anywhere;
}

#allrecords .gallery-layout .t396__artboard > .tn-elem[data-elem-id="1732093065918"] {
    grid-area: gallery;
    justify-self: end;
}

#allrecords .gallery-layout .t396__artboard > .tn-elem[data-elem-id="1732479261427"] {
    grid-area: action;
    width: min(100%, 233px) !important;
    height: 56px !important;
}

@media (max-width: 960px) {
    .gallery-layout .t396__artboard {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "heading" "copy" "action" "gallery";
        padding-inline: 24px;
    }

    #allrecords .gallery-layout .t396__artboard > .tn-elem[data-elem-id="1732093065918"] {
        justify-self: center;
    }

    #allrecords .gallery-layout .t396__artboard > .tn-elem[data-elem-id="1732479261427"] {
        justify-self: center;
    }
}

@media (max-width: 411px) {
    .gallery-layout .tn-elem[data-elem-id="1732093065918"] { zoom: .88; }
}

@media (max-width: 374px) {
    .gallery-layout .tn-elem[data-elem-id="1732093065918"] { zoom: .74; }
}

html:has(.photo-preview[open]) { overflow: hidden; }

.photo-preview {
    box-sizing: border-box;
    width: min(100% - 24px, 960px);
    max-width: none;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-navy);
    color: #fff;
    font: 15px/1.3 Inter, Arial, sans-serif;
}

.photo-preview::backdrop { background: rgb(24 15 24 / 78%); }

.photo-preview__controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

.photo-preview__controls button {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 7px;
    background: transparent;
    color: #fff;
    font: 24px/1 Inter, Arial, sans-serif;
    cursor: pointer;
}

.photo-preview__controls button:hover { background: var(--color-navy-raised); }
.photo-preview__controls button:disabled { opacity: .55; cursor: default; }
.photo-preview__controls button:focus-visible,
.photo-preview__stage:focus-visible { outline: 2px solid var(--color-red-on-dark); outline-offset: -3px; }
.photo-preview__controls output { min-width: 4ch; text-align: center; }

.photo-preview__stage {
    display: flex;
    height: min(76vh, 730px);
    height: min(76dvh, 730px);
    overflow: auto;
    overscroll-behavior: contain;
    background: #211b27;
}

.photo-preview__stage img {
    display: block;
    flex: none;
    width: auto;
    max-width: none;
    height: auto;
    align-self: flex-start;
    margin: auto;
}

@media (max-width: 760px) {
    .gift-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 40px);
    }

    .gift-hero h1 { font-size: clamp(28px, 6.5vw, 46px); }
    .gift-hero p { margin-top: 16px; }
    .gift-hero__actions { margin-top: 20px; }
    .home-hero__media { justify-self: start; }
}

.offline-preview {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.offline-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offline-contact {
    box-sizing: border-box;
    padding: 16px 20px;
    background: var(--color-surface);
    color: var(--color-navy);
    font: 16px/1.45 Inter, Arial, sans-serif;
}

.offline-contact p {
    margin: 0 0 8px;
}

.offline-contact a {
    color: var(--color-red-hover) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.offline-legal-address {
    margin: 0;
    padding: 12px 20px 16px;
    background: var(--color-surface);
    color: var(--color-navy);
    font: 14px/1.5 Inter, Arial, sans-serif;
    text-align: center;
}
