@font-face {
    font-family: "Lifephoto Playfair";
    src: url("/local/modules/lifephoto.constructor/assets/photostrips/fonts/google-ofl/PlayfairDisplay.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Lifephoto Lato";
    src: url("/local/modules/lifephoto.constructor/assets/photostrips/fonts/Lato-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Lifephoto Lato";
    src: url("/local/modules/lifephoto.constructor/assets/photostrips/fonts/Lato-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --lp-bg: #f7f1e7;
    --lp-paper: #fffaf1;
    --lp-paper-strong: #fff3df;
    --lp-ink: #221b16;
    --lp-muted: #6c6158;
    --lp-line: rgba(65, 46, 32, 0.16);
    --lp-accent: #ea7b27;
    --lp-accent-dark: #c65f16;
    --lp-teal: #ea7b27;
    --lp-yellow: #f3b230;
    --lp-shadow: 0 28px 80px rgba(66, 38, 18, 0.14);
    --lp-radius: 28px;
    --lp-shell-width: 1680px;
    --lp-display: "Lifephoto Playfair", "Iowan Old Style", Georgia, serif;
    --lp-body: "Lifephoto Lato", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.lifephoto-template {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 8% 0%, rgba(216, 75, 42, 0.16), transparent 28rem),
        radial-gradient(circle at 92% 6%, rgba(243, 178, 48, 0.16), transparent 24rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0 25%, transparent 25% 50%, rgba(255, 255, 255, 0.44) 50% 75%, transparent 75%),
        var(--lp-bg);
    background-size: auto, auto, 18px 18px, auto;
    color: var(--lp-ink);
    font-family: var(--lp-body);
    font-size: 16px;
    line-height: 1.5;
}

body.lifephoto-template a {
    color: inherit;
}

body.lifephoto-template :focus-visible {
    outline: 3px solid rgba(216, 75, 42, 0.75);
    outline-offset: 4px;
}

.lifephoto-skip-link {
    position: fixed;
    left: 18px;
    top: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--lp-ink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.lifephoto-skip-link:focus {
    transform: translateY(0);
}

.lifephoto-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lifephoto-shell__header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--lp-line);
    background: rgba(255, 250, 241, 0.88);
    backdrop-filter: blur(18px);
}

.lifephoto-shell__topline,
.lifephoto-shell__bar,
.lifephoto-shell__main,
.lifephoto-shell__footer-grid {
    width: min(var(--lp-shell-width), calc(100% - 64px));
    margin: 0 auto;
}

.lifephoto-shell__topline {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--lp-muted);
    font-size: 13px;
    border-bottom: 1px solid rgba(65, 46, 32, 0.08);
}

.lifephoto-shell__topline a,
.lifephoto-shell__nav a,
.lifephoto-shell__contacts a,
.lifephoto-shell__footer-facts a,
.lifephoto-shell__footer-nav a,
.lifephoto-shell__footer-docs a {
    text-decoration: none;
}

.lifephoto-shell__topline a:hover,
.lifephoto-shell__topline a:focus-visible,
.lifephoto-shell__nav a:hover,
.lifephoto-shell__nav a:focus-visible,
.lifephoto-shell__contacts a:hover,
.lifephoto-shell__contacts a:focus-visible,
.lifephoto-shell__footer-facts a:hover,
.lifephoto-shell__footer-facts a:focus-visible,
.lifephoto-shell__footer-nav a:hover,
.lifephoto-shell__footer-nav a:focus-visible,
.lifephoto-shell__footer-docs a:hover,
.lifephoto-shell__footer-docs a:focus-visible {
    color: var(--lp-accent-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lifephoto-shell__bar {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto minmax(560px, 1fr) auto auto;
    align-items: center;
    gap: clamp(20px, 2.6vw, 44px);
}

.lifephoto-shell__brand,
.lifephoto-shell__footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.lifephoto-shell__brand img,
.lifephoto-shell__footer-logo img {
    display: block;
    width: 150px;
    height: auto;
}

.lifephoto-shell__brand span {
    max-width: 130px;
    color: var(--lp-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lifephoto-shell__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.lifephoto-shell__nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--lp-ink);
    font-size: 14px;
    font-weight: 700;
}

.lifephoto-shell__nav a:hover,
.lifephoto-shell__nav a:focus-visible {
    border-color: rgba(216, 75, 42, 0.26);
    background: rgba(216, 75, 42, 0.08);
    text-decoration: none;
}

.lifephoto-shell__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    color: var(--lp-muted);
    font-size: 13px;
}

.lifephoto-shell__contacts a {
    color: var(--lp-ink);
    font-size: 17px;
    font-weight: 800;
}

.lifephoto-shell__cart-link,
.lifephoto-hero__primary,
.lifephoto-service-card__link,
.lifephoto-cta__button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--lp-accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(216, 75, 42, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lifephoto-shell__cart-link {
    position: relative;
    gap: 8px;
    padding: 10px 18px;
}

.lifephoto-shell__cart-icon {
    width: 21px;
    height: 20px;
    flex: 0 0 21px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lifephoto-shell__cart-link b {
    position: absolute;
    top: -9px;
    right: -8px;
    min-width: 23px;
    min-height: 23px;
    display: none;
    place-items: center;
    padding: 0 7px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--lp-yellow);
    color: var(--lp-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(216, 75, 42, 0.24);
}

.lifephoto-shell__cart-link.is-filled b {
    display: inline-grid;
}

body.lifephoto-template .lifephoto-shell__cart-link,
body.lifephoto-template .lifephoto-hero__primary,
body.lifephoto-template .lifephoto-service-card__link,
body.lifephoto-template .lifephoto-cta__button {
    color: #fff;
}

.lifephoto-shell__cart-link:hover,
.lifephoto-shell__cart-link:focus-visible,
.lifephoto-hero__primary:hover,
.lifephoto-hero__primary:focus-visible,
.lifephoto-service-card__link:hover,
.lifephoto-service-card__link:focus-visible,
.lifephoto-cta__button:hover,
.lifephoto-cta__button:focus-visible {
    background: var(--lp-accent-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(216, 75, 42, 0.3);
}

.lifephoto-shell__menu-button {
    display: none;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--lp-ink);
    font: 800 14px/1 var(--lp-body);
    cursor: pointer;
}

.lifephoto-shell__menu-button span {
    width: 16px;
    height: 2px;
    display: block;
    margin-right: 8px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.lifephoto-shell__menu-button span + span,
.lifephoto-shell__menu-button span + span + span {
    display: none;
}

.lifephoto-shell__main {
    flex: 1 0 auto;
    padding: 42px 0 70px;
}

.lifephoto-shell__footer {
    border-top: 1px solid var(--lp-line);
    background:
        radial-gradient(circle at 12% 8%, rgba(243, 178, 48, 0.18), transparent 22rem),
        linear-gradient(135deg, #201812 0%, #352319 54%, #56301d 100%);
    color: #fffaf1;
}

.lifephoto-shell__footer-grid {
    padding: 46px 0 26px;
    display: grid;
    grid-template-columns: minmax(300px, 1.35fr) minmax(160px, 0.58fr) minmax(160px, 0.58fr) minmax(210px, 0.72fr) minmax(260px, 0.9fr);
    gap: 28px clamp(24px, 3vw, 46px);
}

.lifephoto-shell__footer-logo {
    width: fit-content;
    padding: 0;
}

.lifephoto-shell__footer-brand p {
    max-width: 520px;
    margin: 18px 0;
    color: rgba(255, 250, 241, 0.74);
    font-size: 16px;
}

.lifephoto-shell__footer-facts,
.lifephoto-shell__footer-nav,
.lifephoto-shell__footer-docs,
.lifephoto-shell__footer-contact {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.lifephoto-shell__footer-nav h2,
.lifephoto-shell__footer-docs h2,
.lifephoto-shell__footer-contact h2 {
    margin: 0 0 8px;
    color: #fff;
    font: 700 20px/1.1 var(--lp-display);
}

.lifephoto-shell__footer-facts,
.lifephoto-shell__footer-nav a,
.lifephoto-shell__footer-docs a,
.lifephoto-shell__footer-contact a,
.lifephoto-shell__footer-contact span {
    color: rgba(255, 250, 241, 0.72);
}

.lifephoto-shell__footer-nav a,
.lifephoto-shell__footer-docs a,
.lifephoto-shell__footer-contact a {
    width: fit-content;
    text-decoration: none;
}

.lifephoto-shell__footer-nav a:hover,
.lifephoto-shell__footer-nav a:focus-visible,
.lifephoto-shell__footer-docs a:hover,
.lifephoto-shell__footer-docs a:focus-visible,
.lifephoto-shell__footer-contact a:hover,
.lifephoto-shell__footer-contact a:focus-visible {
    color: var(--lp-yellow);
}

.lifephoto-shell__footer-phone {
    color: #fffaf1 !important;
    font-weight: 900;
    font-size: 21px;
}

.lifephoto-footer-legal-menu__title {
    display: none;
}

.lifephoto-footer-legal-menu .left-menu {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lifephoto-footer-legal-menu .left-menu li {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.lifephoto-footer-legal-menu .left-menu a {
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.lifephoto-shell__footer-docs .lifephoto-footer-legal-menu .left-menu a,
.lifephoto-shell__footer-docs .lifephoto-footer-legal-menu .left-menu a:link,
.lifephoto-shell__footer-docs .lifephoto-footer-legal-menu .left-menu a:visited {
    min-height: auto;
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    box-shadow: none;
}

.lifephoto-shell__footer-docs .lifephoto-footer-legal-menu .left-menu a:hover,
.lifephoto-shell__footer-docs .lifephoto-footer-legal-menu .left-menu a:focus-visible {
    background: transparent;
    color: var(--lp-yellow);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lifephoto-shell__footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 250, 241, 0.16);
    color: rgba(255, 250, 241, 0.58);
    font-size: 13px;
}

.lifephoto-shell__footer-bottom a {
    color: rgba(255, 250, 241, 0.68);
    text-decoration: none;
}

.lifephoto-shell__footer-bottom a:hover,
.lifephoto-shell__footer-bottom a:focus-visible {
    color: var(--lp-yellow);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lifephoto-preview {
    display: flex;
    flex-direction: column;
    gap: clamp(36px, 3.4vw, 48px);
}

.lifephoto-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(620px, 1.05fr) minmax(430px, 0.95fr);
    gap: clamp(28px, 3.2vw, 48px);
    align-items: stretch;
    perspective: 1200px;
}

.lifephoto-hero__copy,
.lifephoto-hero__visual,
.lifephoto-section,
.lifephoto-cta {
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: rgba(255, 250, 241, 0.86);
    box-shadow: var(--lp-shadow);
}

.lifephoto-hero__copy {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 3.7vw, 62px);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.lifephoto-hero__copy::before {
    content: "";
    position: absolute;
    inset: auto -10% -35% 38%;
    height: 280px;
    border-radius: 999px;
    background: rgba(243, 178, 48, 0.24);
    transform: rotate(-9deg);
}

.lifephoto-eyebrow {
    margin: 0 0 14px;
    color: var(--lp-accent-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lifephoto-hero h1 {
    position: relative;
    max-width: 820px;
    margin: 0;
    font: 700 clamp(50px, 5.2vw, 92px) / 0.94 var(--lp-display);
    letter-spacing: 0;
}

.lifephoto-hero__lead {
    position: relative;
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--lp-muted);
    font-size: clamp(17px, 1.35vw, 21px);
}

.lifephoto-hero__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.lifephoto-hero__primary {
    padding: 13px 22px;
}

.lifephoto-hero__secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--lp-ink);
    font-weight: 800;
    text-decoration: none;
}

.lifephoto-hero__facts {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.lifephoto-hero__facts li {
    padding: 14px;
    border: 1px solid rgba(65, 46, 32, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.56);
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.lifephoto-hero__facts li:hover,
.lifephoto-hero__facts li:focus-within {
    transform: translateY(-4px);
    border-color: rgba(216, 75, 42, 0.32);
    background: rgba(255, 255, 255, 0.78);
}

.lifephoto-hero__facts span {
    display: block;
    color: var(--lp-muted);
    font-size: 13px;
    font-weight: 400;
}

.lifephoto-hero__visual {
    position: relative;
    min-height: clamp(430px, 31vw, 540px);
    overflow: hidden;
    padding: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.44), rgba(255, 243, 223, 0.86)),
        var(--lp-paper-strong);
    transform-style: preserve-3d;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.lifephoto-hero__visual > img,
.lifephoto-service-card__preview img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.lifephoto-hero__visual > img {
    height: 100%;
    min-height: clamp(380px, 27vw, 470px);
    border: 12px solid #fff;
    border-bottom-width: 46px;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(66, 38, 18, 0.2);
    transform: rotate(2deg);
    transition: transform 0.28s ease, filter 0.28s ease;
}

.lifephoto-hero:hover .lifephoto-hero__copy,
.lifephoto-hero:focus-within .lifephoto-hero__copy {
    transform: translateY(-2px);
}

.lifephoto-hero:hover .lifephoto-hero__visual,
.lifephoto-hero:focus-within .lifephoto-hero__visual {
    transform: rotateX(1.5deg) rotateY(-2deg) translateY(-4px);
}

.lifephoto-hero:hover .lifephoto-hero__visual > img,
.lifephoto-hero:focus-within .lifephoto-hero__visual > img {
    filter: saturate(1.08) contrast(1.02);
    transform: rotate(0.5deg) scale(1.018);
}

.lifephoto-hero__floating {
    position: absolute;
    display: block;
    overflow: hidden;
    padding: 7px 7px 26px;
    border: 1px solid rgba(65, 46, 32, 0.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(66, 38, 18, 0.22);
    transition: transform 0.28s ease;
}

.lifephoto-hero__floating::before {
    content: none;
}

.lifephoto-hero__floating img {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    border: 0;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: none;
    transform: none;
    transition: filter 0.28s ease;
}

.lifephoto-hero__floating--one {
    right: 7%;
    top: 7%;
    width: 122px;
    height: 154px;
    transform: rotate(-10deg);
}

.lifephoto-hero__floating--two {
    right: 17%;
    bottom: 13%;
    width: 112px;
    height: 142px;
    transform: rotate(11deg);
}

.lifephoto-hero__floating--three {
    left: 7%;
    top: 17%;
    width: 100px;
    height: 128px;
    transform: rotate(8deg);
}

.lifephoto-hero:hover .lifephoto-hero__floating--one,
.lifephoto-hero:focus-within .lifephoto-hero__floating--one {
    transform: translate(-8px, 6px) rotate(-15deg);
}

.lifephoto-hero:hover .lifephoto-hero__floating--two,
.lifephoto-hero:focus-within .lifephoto-hero__floating--two {
    transform: translate(10px, -8px) rotate(16deg);
}

.lifephoto-hero:hover .lifephoto-hero__floating--three,
.lifephoto-hero:focus-within .lifephoto-hero__floating--three {
    transform: translate(8px, 10px) rotate(13deg);
}

.lifephoto-hero:hover .lifephoto-hero__floating img,
.lifephoto-hero:focus-within .lifephoto-hero__floating img {
    filter: saturate(1.08) contrast(1.02);
}

.lifephoto-hero__badge {
    position: absolute;
    left: 28px;
    bottom: 28px;
    max-width: 250px;
    padding: 16px 18px;
    border-radius: 22px;
    background: var(--lp-ink);
    color: #fff;
    box-shadow: 0 18px 34px rgba(34, 27, 22, 0.24);
}

.lifephoto-hero__badge strong {
    display: block;
    font: 700 28px/1 var(--lp-display);
}

.lifephoto-section {
    padding: clamp(28px, 3.8vw, 56px);
}

.lifephoto-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.lifephoto-section__head h2,
.lifephoto-cta h2 {
    margin: 0;
    font: 700 clamp(32px, 4vw, 56px) / 1 var(--lp-display);
    letter-spacing: -0.035em;
}

.lifephoto-section__head p {
    max-width: 520px;
    margin: 0;
    color: var(--lp-muted);
}

.lifephoto-services {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(16px, 1.6vw, 24px);
}

.lifephoto-print-menu-page {
    padding-top: clamp(12px, 2vw, 26px);
}

.lifephoto-print-menu-page .lifephoto-section:first-child {
    padding-bottom: 0;
}

.lifephoto-print-menu-page .lifephoto-section__head h1 {
    max-width: 760px;
    margin: 0;
    font: 700 clamp(42px, 5vw, 78px) / 0.96 var(--lp-display);
    letter-spacing: 0;
}

.lifephoto-services--print-menu {
    align-items: stretch;
}

.lifephoto-service-card {
    position: relative;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(65, 46, 32, 0.14);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(66, 38, 18, 0.09);
    animation: lifephoto-card-in 0.5s ease both;
    transition: translate 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
    will-change: transform;
}

.lifephoto-service-card:hover,
.lifephoto-service-card:focus-within {
    border-color: rgba(216, 75, 42, 0.32);
    box-shadow: 0 26px 62px rgba(66, 38, 18, 0.16);
    translate: 0 -7px;
}

.lifephoto-service-card:focus-within {
    outline: 3px solid rgba(216, 75, 42, 0.2);
    outline-offset: 4px;
}

.lifephoto-service-card:nth-child(2) {
    animation-delay: 60ms;
}

.lifephoto-service-card:nth-child(3) {
    animation-delay: 120ms;
}

.lifephoto-service-card:nth-child(4) {
    animation-delay: 180ms;
}

.lifephoto-service-card:nth-child(5) {
    animation-delay: 240ms;
}

.lifephoto-service-card__preview {
    position: relative;
    height: 232px;
    min-height: 232px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 14px;
    background: #fff;
}

.lifephoto-service-card__preview::before {
    content: none;
}

.lifephoto-service-card__preview > img {
    position: relative;
    z-index: 1;
    height: 192px;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(66, 38, 18, 0.14);
    transition: transform 0.24s ease, filter 0.24s ease;
}

.lifephoto-service-card__preview::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.lifephoto-service-card:hover .lifephoto-service-card__preview::before,
.lifephoto-service-card:focus-within .lifephoto-service-card__preview::before {
    opacity: 1;
}

.lifephoto-service-card:hover .lifephoto-service-card__preview > img,
.lifephoto-service-card:focus-within .lifephoto-service-card__preview > img {
    filter: saturate(1.07) contrast(1.02);
    transform: scale(1.025);
}

.lifephoto-product-preview {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 204px;
    min-height: 0;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: transparent;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.lifephoto-service-card:hover .lifephoto-product-preview,
.lifephoto-service-card:focus-within .lifephoto-product-preview {
    box-shadow: none;
    transform: scale(1.018);
}

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

.lifephoto-product-preview--prints {
    background: transparent;
}

.lifephoto-product-print {
    position: absolute;
    width: 74%;
    height: 48%;
    padding: 6px;
    border: 1px solid rgba(65, 46, 32, 0.12);
    background: #fff;
    box-shadow: 0 14px 28px rgba(66, 38, 18, 0.18);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.lifephoto-product-print--back {
    top: 18px;
    left: 16%;
    transform: rotate(-9deg);
}

.lifephoto-product-print--middle {
    top: 46px;
    left: 21%;
    transform: rotate(8deg);
}

.lifephoto-product-print--front {
    top: 82px;
    left: 13%;
    z-index: 2;
    transform: rotate(-2deg);
}

.lifephoto-service-card:hover .lifephoto-product-print,
.lifephoto-service-card:focus-within .lifephoto-product-print {
    box-shadow: 0 18px 36px rgba(66, 38, 18, 0.22);
}

.lifephoto-service-card:hover .lifephoto-product-print--back,
.lifephoto-service-card:focus-within .lifephoto-product-print--back {
    transform: translate(-8px, -6px) rotate(-13deg);
}

.lifephoto-service-card:hover .lifephoto-product-print--middle,
.lifephoto-service-card:focus-within .lifephoto-product-print--middle {
    transform: translate(9px, -2px) rotate(11deg);
}

.lifephoto-service-card:hover .lifephoto-product-print--front,
.lifephoto-service-card:focus-within .lifephoto-product-print--front {
    transform: translate(0, -8px) rotate(-1deg);
}

.lifephoto-product-preview--polaroid {
    background: transparent;
}

.lifephoto-product-polaroid {
    position: absolute;
    width: 38%;
    height: 58%;
    padding: 7px 7px 26px;
    border: 1px solid rgba(65, 46, 32, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(66, 38, 18, 0.2);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.lifephoto-product-polaroid::after {
    content: "";
    position: absolute;
    right: 16%;
    bottom: 12px;
    left: 16%;
    height: 4px;
    border-radius: 999px;
    background: rgba(65, 46, 32, 0.12);
}

.lifephoto-product-polaroid--left {
    top: 48px;
    left: 8%;
    transform: rotate(-13deg);
}

.lifephoto-product-polaroid--right {
    top: 28px;
    right: 7%;
    transform: rotate(10deg);
}

.lifephoto-product-polaroid--front {
    top: 58px;
    left: 31%;
    z-index: 2;
    transform: rotate(-1deg);
}

.lifephoto-service-card:hover .lifephoto-product-polaroid,
.lifephoto-service-card:focus-within .lifephoto-product-polaroid {
    box-shadow: 0 18px 38px rgba(66, 38, 18, 0.24);
}

.lifephoto-service-card:hover .lifephoto-product-polaroid--left,
.lifephoto-service-card:focus-within .lifephoto-product-polaroid--left {
    transform: translate(-8px, 2px) rotate(-17deg);
}

.lifephoto-service-card:hover .lifephoto-product-polaroid--right,
.lifephoto-service-card:focus-within .lifephoto-product-polaroid--right {
    transform: translate(8px, -5px) rotate(14deg);
}

.lifephoto-service-card:hover .lifephoto-product-polaroid--front,
.lifephoto-service-card:focus-within .lifephoto-product-polaroid--front {
    transform: translateY(-8px) rotate(1deg);
}

.lifephoto-product-preview--collage {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    grid-template-rows: 0.78fr 1.22fr;
    gap: 6px;
    padding: 8px;
    background: transparent;
}

.lifephoto-product-preview--collage img {
    min-width: 0;
    min-height: 0;
    border-radius: 10px;
    transition: transform 0.24s ease, filter 0.24s ease;
}

.lifephoto-product-preview--collage img:nth-child(1) {
    grid-row: 1 / 3;
}

.lifephoto-product-preview--collage img:nth-child(4) {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 35%;
    height: 28%;
    border: 4px solid #fff;
    transform: rotate(-5deg);
    box-shadow: 0 12px 24px rgba(66, 38, 18, 0.18);
}

.lifephoto-service-card:hover .lifephoto-product-preview--collage img,
.lifephoto-service-card:focus-within .lifephoto-product-preview--collage img {
    filter: saturate(1.08);
}

.lifephoto-service-card:hover .lifephoto-product-preview--collage img:nth-child(1),
.lifephoto-service-card:focus-within .lifephoto-product-preview--collage img:nth-child(1) {
    transform: scale(1.025);
}

.lifephoto-service-card:hover .lifephoto-product-preview--collage img:nth-child(2),
.lifephoto-service-card:focus-within .lifephoto-product-preview--collage img:nth-child(2) {
    transform: translateY(-4px);
}

.lifephoto-service-card:hover .lifephoto-product-preview--collage img:nth-child(3),
.lifephoto-service-card:focus-within .lifephoto-product-preview--collage img:nth-child(3) {
    transform: translateX(4px);
}

.lifephoto-service-card:hover .lifephoto-product-preview--collage img:nth-child(4),
.lifephoto-service-card:focus-within .lifephoto-product-preview--collage img:nth-child(4) {
    transform: translate(-5px, -5px) rotate(-8deg);
}

.lifephoto-product-preview--strip {
    overflow: visible;
}

.lifephoto-product-strip {
    position: absolute;
    top: 18px;
    width: 32%;
    max-width: 78px;
    height: 178px;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    padding: 7px 7px 18px;
    border: 1px solid rgba(65, 46, 32, 0.12);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(66, 38, 18, 0.18);
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.lifephoto-product-strip::before {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 7px;
    left: 8px;
    height: 5px;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, var(--lp-accent) 0 8px, transparent 8px 13px, #ea7b27 13px 21px, transparent 21px 26px, var(--lp-yellow) 26px 34px);
    opacity: 0.72;
}

.lifephoto-product-strip::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ea7b27;
    box-shadow: -14px 0 0 rgba(216, 75, 42, 0.78), -7px 12px 0 rgba(243, 178, 48, 0.78);
    opacity: 0.72;
}

.lifephoto-product-strip__slot {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 5px;
    background: #f7f1e7;
}

.lifephoto-product-strip__slot img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 5px;
}

.lifephoto-product-strip--left {
    left: 7%;
    transform: rotate(-12deg);
}

.lifephoto-product-strip--left .lifephoto-product-strip__slot:nth-child(1) img,
.lifephoto-product-strip--right .lifephoto-product-strip__slot:nth-child(3) img {
    object-position: center top;
}

.lifephoto-product-strip--middle {
    top: 9px;
    left: 50%;
    z-index: 2;
    height: 190px;
    transform: translateX(-50%) rotate(1deg);
}

.lifephoto-product-strip--middle::after {
    background: var(--lp-yellow);
    box-shadow: -14px 0 0 rgba(234, 123, 39, 0.78), -7px 12px 0 rgba(216, 75, 42, 0.72);
}

.lifephoto-product-strip--right {
    right: 7%;
    transform: rotate(12deg);
}

.lifephoto-product-strip--right::after {
    background: var(--lp-accent);
    box-shadow: -14px 0 0 rgba(243, 178, 48, 0.78), -7px 12px 0 rgba(234, 123, 39, 0.72);
}

.lifephoto-service-card:hover .lifephoto-product-strip,
.lifephoto-service-card:focus-within .lifephoto-product-strip {
    filter: saturate(1.08) contrast(1.03);
    box-shadow: 0 20px 42px rgba(66, 38, 18, 0.22);
}

.lifephoto-service-card:hover .lifephoto-product-strip--left,
.lifephoto-service-card:focus-within .lifephoto-product-strip--left {
    transform: translate(-8px, 3px) rotate(-17deg);
}

.lifephoto-service-card:hover .lifephoto-product-strip--middle,
.lifephoto-service-card:focus-within .lifephoto-product-strip--middle {
    transform: translate(-50%, -10px) scale(1.045) rotate(-1deg);
}

.lifephoto-service-card:hover .lifephoto-product-strip--right,
.lifephoto-service-card:focus-within .lifephoto-product-strip--right {
    transform: translate(8px, 3px) rotate(17deg);
}

.lifephoto-product-preview--memorial {
    display: grid;
    place-items: center;
    overflow: visible;
    background: transparent;
}

.lifephoto-product-preview--memorial::before,
.lifephoto-product-preview--memorial::after,
.lifephoto-product-memorial::before {
    content: "";
    position: absolute;
    z-index: 4;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle, #fff8d6 0 7%, transparent 8%),
        repeating-conic-gradient(from -12deg, rgba(243, 178, 48, 0) 0 9deg, rgba(243, 178, 48, 0.95) 10deg 13deg, rgba(216, 75, 42, 0) 14deg 24deg),
        repeating-conic-gradient(from 9deg, rgba(216, 75, 42, 0) 0 13deg, rgba(216, 75, 42, 0.82) 14deg 16deg, rgba(234, 123, 39, 0) 17deg 30deg);
    filter: drop-shadow(0 6px 10px rgba(66, 38, 18, 0.16));
    transform: scale(0.18) rotate(0);
}

.lifephoto-product-preview--memorial::before {
    top: 18px;
    left: 18%;
}

.lifephoto-product-preview--memorial::after {
    top: 26px;
    right: 16%;
    width: 48px;
    height: 48px;
}

.lifephoto-product-memorial::before {
    top: -24px;
    right: -34px;
    width: 44px;
    height: 44px;
}

.lifephoto-service-card:hover .lifephoto-product-preview--memorial::before,
.lifephoto-service-card:focus-within .lifephoto-product-preview--memorial::before {
    animation: lifephoto-firework 0.72s ease-out both;
}

.lifephoto-service-card:hover .lifephoto-product-preview--memorial::after,
.lifephoto-service-card:focus-within .lifephoto-product-preview--memorial::after {
    animation: lifephoto-firework 0.72s ease-out 0.12s both;
}

.lifephoto-service-card:hover .lifephoto-product-memorial::before,
.lifephoto-service-card:focus-within .lifephoto-product-memorial::before {
    animation: lifephoto-firework 0.72s ease-out 0.22s both;
}

.lifephoto-product-memorial {
    position: relative;
    width: 42%;
    min-width: 108px;
    height: 166px;
    padding: 12px 10px 36px;
    border: 8px solid #8c3037;
    outline: 3px solid #c7a35a;
    outline-offset: -12px;
    background: #f4ead3;
    box-shadow: 0 16px 32px rgba(66, 38, 18, 0.2);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.lifephoto-product-memorial img {
    position: relative;
    z-index: 1;
    filter: grayscale(1);
}

.lifephoto-product-memorial i {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 24px;
    width: 52px;
    height: 8px;
    border-radius: 50%;
    background: repeating-linear-gradient(0deg, #e78b1e 0 2px, #242424 2px 4px);
    transform: rotate(-6deg);
}

.lifephoto-product-memorial b {
    position: absolute;
    z-index: 2;
    right: 6px;
    bottom: 8px;
    left: 6px;
    color: #752a31;
    font-size: 8px;
    line-height: 1;
    text-align: center;
}

.lifephoto-service-card:hover .lifephoto-product-memorial,
.lifephoto-service-card:focus-within .lifephoto-product-memorial {
    box-shadow: 0 22px 42px rgba(66, 38, 18, 0.24);
    transform: translateY(-5px) scale(1.035);
}

.lifephoto-service-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.lifephoto-service-card__label {
    width: fit-content;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(243, 178, 48, 0.18);
    color: #7c4a04;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.24s ease, color 0.24s ease;
}

.lifephoto-service-card:hover .lifephoto-service-card__label,
.lifephoto-service-card:focus-within .lifephoto-service-card__label {
    background: rgba(216, 75, 42, 0.12);
    color: var(--lp-accent-dark);
}

.lifephoto-service-card h3 {
    margin: 0;
    font: 700 31px/1.03 var(--lp-display);
    letter-spacing: -0.02em;
}

.lifephoto-service-card p {
    max-width: 34ch;
    margin: 12px 0 18px;
    color: var(--lp-muted);
}

.lifephoto-service-card__link {
    width: 100%;
    margin-top: auto;
    padding: 10px 14px;
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lifephoto-service-card:hover .lifephoto-service-card__link,
.lifephoto-service-card:focus-within .lifephoto-service-card__link {
    box-shadow: 0 12px 24px rgba(216, 75, 42, 0.22);
    transform: translateY(-2px);
}

.lifephoto-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lp-flow;
}

.lifephoto-flow li {
    position: relative;
    min-height: 160px;
    padding: 22px;
    border: 1px solid rgba(65, 46, 32, 0.13);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    counter-increment: lp-flow;
}

.lifephoto-flow li::before {
    content: counter(lp-flow, decimal-leading-zero);
    display: block;
    margin-bottom: 20px;
    color: var(--lp-accent);
    font: 700 25px/1 var(--lp-display);
}

.lifephoto-flow strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.lifephoto-flow span {
    color: var(--lp-muted);
}

.lifephoto-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: clamp(24px, 4vw, 44px);
    background:
        radial-gradient(circle at 16% 18%, rgba(243, 178, 48, 0.28), transparent 15rem),
        var(--lp-ink);
    color: #fff;
}

.lifephoto-cta p {
    max-width: 640px;
    margin: 14px 0 0;
    color: rgba(255, 250, 241, 0.78);
    font-size: 18px;
}

.lifephoto-cta__action {
    position: relative;
    width: min(100%, 340px);
    min-width: min(100%, 300px);
    min-height: 188px;
    display: grid;
    place-items: center;
}

.lifephoto-cta__photo {
    position: absolute;
    display: block;
    overflow: hidden;
    padding: 7px 7px 25px;
    border: 1px solid rgba(255, 250, 241, 0.88);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease;
}

.lifephoto-cta__photo::before {
    content: none;
}

.lifephoto-cta__photo img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 7px;
    object-fit: cover;
}

.lifephoto-cta__photo--one {
    left: -4px;
    top: 22px;
    width: 106px;
    height: 136px;
    transform: rotate(-13deg);
}

.lifephoto-cta__photo--two {
    right: -2px;
    top: 0;
    width: 120px;
    height: 152px;
    transform: rotate(10deg);
}

.lifephoto-cta__photo--three {
    left: 112px;
    bottom: 0;
    width: 96px;
    height: 124px;
    transform: rotate(5deg);
}

.lifephoto-cta:hover .lifephoto-cta__photo--one,
.lifephoto-cta:focus-within .lifephoto-cta__photo--one {
    transform: translate(-6px, -4px) rotate(-17deg);
}

.lifephoto-cta:hover .lifephoto-cta__photo--two,
.lifephoto-cta:focus-within .lifephoto-cta__photo--two {
    transform: translate(8px, -6px) rotate(14deg);
}

.lifephoto-cta:hover .lifephoto-cta__photo--three,
.lifephoto-cta:focus-within .lifephoto-cta__photo--three {
    transform: translate(0, 8px) rotate(2deg);
}

.lifephoto-cta__button {
    position: relative;
    z-index: 2;
    padding: 13px 24px;
    background: var(--lp-accent);
    color: #fff;
    box-shadow: 0 14px 32px rgba(216, 75, 42, 0.28);
}

.lifephoto-cta__button:hover,
.lifephoto-cta__button:focus-visible {
    background: var(--lp-accent-dark);
    color: #fff;
}

.lifephoto-commerce {
    padding: clamp(28px, 4vw, 58px);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: rgba(255, 250, 241, 0.9);
    box-shadow: var(--lp-shadow);
}

.lifephoto-commerce__head {
    max-width: 850px;
    margin-bottom: 28px;
}

.lifephoto-commerce__head h1 {
    margin: 0;
    font: 700 clamp(38px, 5vw, 76px) / 0.96 var(--lp-display);
    letter-spacing: -0.045em;
}

.lifephoto-commerce__head p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--lp-muted);
    font-size: 18px;
}

.lifephoto-commerce .bx-basket,
.lifephoto-commerce .basket-items-list-wrapper,
.lifephoto-commerce .basket-checkout-container {
    font-family: var(--lp-body);
}

.lifephoto-commerce .bx-basket {
    color: var(--lp-ink);
}

.lifephoto-commerce .basket-items-list-wrapper,
.lifephoto-commerce .basket-checkout-container {
    border-color: var(--lp-line);
    border-radius: 22px;
    box-shadow: none;
}

.lifephoto-basket-readiness {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}

.lifephoto-basket-readiness div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(114, 81, 58, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.lifephoto-basket-readiness strong,
.lifephoto-basket-readiness span {
    display: block;
}

.lifephoto-basket-readiness strong {
    color: var(--lp-ink);
    font-size: 14px;
    font-weight: 900;
}

.lifephoto-basket-readiness span {
    margin-top: 5px;
    color: var(--lp-muted);
    font-size: 13px;
    line-height: 1.35;
}

.lifephoto-basket-item-readiness {
    display: inline-flex;
    max-width: 100%;
    margin: 7px 0 4px;
    padding: 6px 10px;
    border: 1px solid rgba(114, 81, 58, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.76);
    color: var(--lp-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.lifephoto-basket-item-readiness--order_10_14 {
    border-color: rgba(216, 75, 42, 0.22);
    background: rgba(255, 242, 205, 0.92);
    color: var(--lp-accent-dark);
}

.lifephoto-commerce .btn.btn-primary,
.lifephoto-commerce .basket-btn-checkout {
    border-color: var(--lp-accent);
    background: var(--lp-accent);
    color: #fff !important;
}

.lifephoto-commerce .btn.btn-primary:hover,
.lifephoto-commerce .btn.btn-primary:focus,
.lifephoto-commerce .basket-btn-checkout:hover,
.lifephoto-commerce .basket-btn-checkout:focus {
    border-color: var(--lp-accent-dark);
    background: var(--lp-accent-dark);
    color: #fff !important;
}

.lifephoto-commerce .bx-soa {
    color: var(--lp-ink);
    font-family: var(--lp-body);
}

.lifephoto-commerce .bx-soa-section,
.lifephoto-commerce .bx-soa-sidebar .bx-soa-cart-total {
    overflow: hidden;
    border-color: var(--lp-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(66, 38, 18, 0.08);
}

.lifephoto-commerce .bx-soa-section-title-container {
    background: rgba(255, 243, 223, 0.8);
}

.lifephoto-commerce .bx-soa-section-title {
    color: var(--lp-ink);
    font-family: var(--lp-display);
    font-weight: 700;
}

.lifephoto-commerce .bx-soa-section.bx-selected {
    border-color: rgba(216, 75, 42, 0.38);
}

.lifephoto-commerce .bx-soa-section.bx-step-completed {
    border-color: rgba(243, 178, 48, 0.5);
}

.lifephoto-commerce .bx-soa-section.bx-step-completed .bx-soa-section-title-count {
    border-color: var(--lp-yellow);
    background: var(--lp-yellow);
    color: var(--lp-ink);
}

.lifephoto-commerce .bx-soa .form-control {
    min-height: 42px;
    border-color: var(--lp-line);
    border-radius: 14px;
    box-shadow: none;
}

.lifephoto-commerce .bx-soa .form-control:focus {
    border-color: rgba(216, 75, 42, 0.52);
    box-shadow: 0 0 0 3px rgba(216, 75, 42, 0.12);
}

@keyframes lifephoto-card-in {
    from {
        opacity: 0;
        transform: translateY(18px) rotate(-1deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

@keyframes lifephoto-firework {
    0% {
        opacity: 0;
        transform: scale(0.16) rotate(0);
    }

    28% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.22) rotate(26deg);
    }
}


.lifephoto-auth {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(360px, 0.68fr);
    gap: clamp(24px, 4vw, 58px);
    align-items: start;
}

.lifephoto-auth__copy,
.lifephoto-auth__card {
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: rgba(255, 250, 241, 0.9);
    box-shadow: var(--lp-shadow);
}

.lifephoto-auth__copy {
    padding: clamp(34px, 5vw, 68px);
}

.lifephoto-auth__copy h1 {
    max-width: 760px;
    margin: 0;
    font: 700 clamp(42px, 5vw, 78px) / 0.95 var(--lp-display);
    letter-spacing: -0.045em;
}

.lifephoto-auth__copy p:not(.lifephoto-eyebrow) {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--lp-muted);
    font-size: clamp(17px, 1.8vw, 21px);
}

.lifephoto-auth__card {
    padding: clamp(24px, 3vw, 38px);
}

.lifephoto-auth__card form {
    display: grid;
    gap: 14px;
}

.lifephoto-auth-form label {
    display: grid;
    gap: 8px;
    color: var(--lp-muted);
    font: 800 13px / 1.2 var(--lp-body);
}

.lifephoto-auth__card input[type="text"],
.lifephoto-auth__card input[type="password"],
.lifephoto-auth__card input[type="email"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    background: #fff;
    color: var(--lp-ink);
    font: 700 16px / 1.2 var(--lp-body);
}

.lifephoto-auth__card input[type="text"]:focus,
.lifephoto-auth__card input[type="password"]:focus,
.lifephoto-auth__card input[type="email"]:focus {
    outline: 0;
    border-color: rgba(216, 75, 42, 0.55);
    box-shadow: 0 0 0 4px rgba(216, 75, 42, 0.12);
}

.lifephoto-auth-form__remember {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    color: var(--lp-ink) !important;
    font-weight: 700 !important;
}

.lifephoto-auth-form__remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--lp-accent);
}

.lifephoto-auth__card input[type="submit"],
.lifephoto-auth__card button,
.lifephoto-auth__card .btn {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--lp-accent);
    color: #fff;
    font: 800 15px / 1 var(--lp-body);
    cursor: pointer;
}

.lifephoto-auth__card input[type="submit"]:hover,
.lifephoto-auth__card input[type="submit"]:focus-visible,
.lifephoto-auth__card button:hover,
.lifephoto-auth__card button:focus-visible,
.lifephoto-auth__card .btn:hover,
.lifephoto-auth__card .btn:focus-visible {
    background: var(--lp-accent-dark);
    color: #fff;
}

.lifephoto-auth__card a {
    color: var(--lp-accent-dark);
    font-weight: 700;
    text-underline-offset: 3px;
}

.lifephoto-auth__error,
.lifephoto-auth__hint {
    margin: 0 0 16px;
    border-radius: 18px;
    font: 700 14px / 1.45 var(--lp-body);
}

.lifephoto-auth__error {
    padding: 13px 14px;
    background: rgba(216, 75, 42, 0.12);
    color: var(--lp-accent-dark);
}

.lifephoto-auth__hint {
    margin: 18px 0 0;
    color: var(--lp-muted);
}

.lifephoto-catalog-page {
    gap: clamp(28px, 3.2vw, 46px);
}

.lifephoto-catalog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
    gap: clamp(22px, 3vw, 42px);
    align-items: stretch;
}

.lifephoto-catalog-hero__copy,
.lifephoto-catalog-hero__visual {
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: rgba(255, 250, 241, 0.88);
    box-shadow: var(--lp-shadow);
}

.lifephoto-catalog-hero__copy {
    padding: clamp(30px, 4vw, 64px);
}

.lifephoto-catalog-hero__copy h1 {
    max-width: 880px;
    margin: 0;
    font: 700 clamp(46px, 5vw, 86px) / 0.96 var(--lp-display);
    letter-spacing: 0;
}

.lifephoto-catalog-hero__copy p:not(.lifephoto-eyebrow) {
    max-width: 660px;
    margin: 18px 0 0;
    color: var(--lp-muted);
    font-size: clamp(17px, 1.25vw, 20px);
}

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

.lifephoto-catalog-hero__visual {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    padding: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 243, 223, 0.9)),
        var(--lp-paper-strong);
}

.lifephoto-catalog-hero__visual > img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: block;
    object-fit: cover;
    border: 10px solid #fff;
    border-bottom-width: 38px;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(66, 38, 18, 0.18);
    transform: rotate(-1.5deg);
}

.lifephoto-catalog-hero__photo {
    position: absolute;
    display: block;
    overflow: hidden;
    padding: 7px 7px 24px;
    border: 1px solid rgba(65, 46, 32, 0.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(66, 38, 18, 0.22);
}

.lifephoto-catalog-hero__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.lifephoto-catalog-hero__photo--one {
    right: 8%;
    top: 9%;
    width: 116px;
    height: 146px;
    transform: rotate(9deg);
}

.lifephoto-catalog-hero__photo--two {
    left: 8%;
    bottom: 11%;
    width: 126px;
    height: 152px;
    transform: rotate(-8deg);
}

.lifephoto-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}

.lifephoto-catalog-card,
.lifephoto-constructor-product {
    min-width: 0;
}

.lifephoto-catalog-card a,
.lifephoto-constructor-product a {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(65, 46, 32, 0.14);
    border-radius: 20px;
    background: #fff;
    color: var(--lp-ink);
    text-decoration: none;
    box-shadow: 0 18px 45px rgba(66, 38, 18, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lifephoto-catalog-card a:hover,
.lifephoto-catalog-card a:focus-visible,
.lifephoto-catalog-card.is-active a,
.lifephoto-constructor-product a:hover,
.lifephoto-constructor-product a:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(216, 75, 42, 0.32);
    box-shadow: 0 24px 58px rgba(66, 38, 18, 0.14);
}

.lifephoto-catalog-card.is-active a {
    border-color: rgba(216, 75, 42, 0.58);
    box-shadow: 0 22px 56px rgba(216, 75, 42, 0.18);
}

.lifephoto-catalog-card.is-active a::after {
    content: "Открыт";
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--lp-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.lifephoto-catalog-card__visual {
    position: relative;
    height: 172px;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 20px 20px 0 0;
    background:
        linear-gradient(135deg, rgba(255, 250, 241, 0.95), rgba(255, 233, 202, 0.82)),
        #fff;
}

.lifephoto-catalog-card__visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 14px;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.lifephoto-catalog-card a:hover .lifephoto-catalog-card__visual img,
.lifephoto-catalog-card a:focus-visible .lifephoto-catalog-card__visual img {
    transform: scale(1.045);
    filter: saturate(1.06) contrast(1.02);
}

.lifephoto-catalog-card__visual::before,
.lifephoto-catalog-card__visual::after {
    content: "";
    position: absolute;
    display: none;
    background: #fff;
    box-shadow: 0 16px 32px rgba(66, 38, 18, 0.16);
}

.lifephoto-catalog-card--frames .lifephoto-catalog-card__visual::before {
    left: 23%;
    top: 22%;
    width: 54%;
    height: 56%;
    border: 12px solid #6f4c34;
    border-radius: 8px;
    background: url("/local/components/lifephoto/print.services/templates/.default/images/lifephoto-polaroid-girl.webp") center / cover;
}

.lifephoto-catalog-card--frames .lifephoto-catalog-card__visual::after {
    left: 33%;
    top: 34%;
    width: 34%;
    height: 32%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
}

.lifephoto-catalog-card--albums .lifephoto-catalog-card__visual::before {
    left: 18%;
    top: 22%;
    width: 48%;
    height: 60%;
    border-radius: 10px;
    background: linear-gradient(135deg, #ea7b27, #f3b230);
    transform: rotate(-4deg);
}

.lifephoto-catalog-card--albums .lifephoto-catalog-card__visual::after {
    right: 18%;
    top: 28%;
    width: 44%;
    height: 54%;
    border-radius: 10px;
    background: url("/local/modules/lifephoto.constructor/assets/photostrips/library/stock/lifephoto-family.jpg") center / cover;
    transform: rotate(5deg);
}

.lifephoto-catalog-card--accessories .lifephoto-catalog-card__visual::before {
    left: 18%;
    bottom: 18%;
    width: 64%;
    height: 34%;
    border-radius: 8px;
    background: #fff;
}

.lifephoto-catalog-card--accessories .lifephoto-catalog-card__visual::after {
    left: 32%;
    top: 24%;
    width: 36%;
    height: 46%;
    border-radius: 8px;
    background: linear-gradient(135deg, #d84b2a, #f3b230);
    transform: rotate(7deg);
}

.lifephoto-catalog-card--prints .lifephoto-catalog-card__visual::before {
    left: 17%;
    top: 23%;
    width: 62%;
    height: 54%;
    padding: 6px;
    border-radius: 8px;
    background: url("/local/assets/lifephoto/products/photo-printing.jpg") center / cover;
    transform: rotate(-5deg);
}

.lifephoto-catalog-card--prints .lifephoto-catalog-card__visual::after {
    right: 15%;
    bottom: 16%;
    width: 40%;
    height: 35%;
    border-radius: 8px;
    background: url("/local/modules/lifephoto.constructor/assets/photostrips/library/stock/lifephoto-wedding.jpg") center / cover;
    transform: rotate(7deg);
}

.lifephoto-catalog-card__label,
.lifephoto-constructor-product span {
    margin: 20px 20px 0;
    color: var(--lp-accent-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lifephoto-catalog-card strong,
.lifephoto-constructor-product strong {
    margin: 8px 20px 0;
    font: 700 26px / 1.05 var(--lp-display);
    letter-spacing: 0;
}

.lifephoto-catalog-card a > span:last-child {
    margin: 10px 20px 22px;
    color: var(--lp-muted);
}

.lifephoto-catalog-view-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(18px) saturate(1.16);
    box-shadow: 0 18px 42px rgba(66, 38, 18, 0.08);
}

.lifephoto-catalog-section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.lifephoto-catalog-section-tabs a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid rgba(65, 46, 32, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--lp-ink);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(66, 38, 18, 0.06);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lifephoto-catalog-section-tabs a:hover,
.lifephoto-catalog-section-tabs a:focus-visible,
.lifephoto-catalog-section-tabs a.is-active {
    border-color: var(--lp-accent);
    background: var(--lp-accent);
    color: #fff;
    transform: translateY(-1px);
}

.lifephoto-catalog-view-panel > span {
    color: var(--lp-muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lifephoto-catalog-view-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lifephoto-catalog-view-switch a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid rgba(216, 75, 42, 0.28);
    border-radius: 999px;
    background: rgba(216, 75, 42, 0.08);
    color: var(--lp-accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.lifephoto-catalog-view-switch a:hover,
.lifephoto-catalog-view-switch a:focus-visible,
.lifephoto-catalog-view-switch a.is-active {
    border-color: var(--lp-accent);
    background: var(--lp-accent);
    color: #fff;
}

.lifephoto-catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}

.lifephoto-catalog-products__layout {
    display: grid;
    grid-template-columns: minmax(154px, 178px) minmax(0, 1fr);
    gap: clamp(14px, 1.2vw, 20px);
    align-items: start;
    overflow-anchor: none;
}

.lifephoto-catalog-products__layout.is-filter-loading {
    cursor: progress;
}

.lifephoto-catalog-products__layout.is-filter-loading .lifephoto-catalog-filter-window,
.lifephoto-catalog-products__layout.is-filter-loading .lifephoto-catalog-results {
    opacity: 0.58;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.lifephoto-catalog-results {
    min-width: 0;
}

.lifephoto-catalog-filter-window {
    position: sticky;
    top: 88px;
    margin-left: -24px;
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.lifephoto-catalog-filter {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 20px;
    background: rgba(255, 250, 241, 0.9);
    backdrop-filter: blur(18px) saturate(1.16);
    box-shadow: 0 18px 42px rgba(66, 38, 18, 0.08);
}

.lifephoto-catalog-filter > summary {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    color: var(--lp-ink);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.lifephoto-catalog-filter > summary::-webkit-details-marker {
    display: none;
}

.lifephoto-catalog-filter > summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lp-accent);
    box-shadow: 0 0 0 0 rgba(216, 75, 42, 0.42);
    animation: lifephoto-filter-pulse 1.8s ease-in-out infinite;
}

.lifephoto-catalog-filter[open] > summary::after,
.lifephoto-catalog-filter.is-active > summary::after {
    animation: none;
    box-shadow: 0 0 0 7px rgba(216, 75, 42, 0.12);
}

.lifephoto-catalog-filter > summary em {
    margin-left: auto;
    color: var(--lp-muted);
    font-size: 12px;
    font-style: normal;
}

.lifephoto-catalog-filter form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 0 10px 10px;
}

.lifephoto-catalog-filter-selected {
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(216, 75, 42, 0.18);
    border-radius: 12px;
    background: rgba(243, 178, 48, 0.12);
}

.lifephoto-catalog-filter-selected > span {
    color: var(--lp-accent-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.lifephoto-catalog-filter-selected div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lifephoto-catalog-filter-selected b {
    max-width: 100%;
    padding: 5px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--lp-ink);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.lifephoto-catalog-filter-group {
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(65, 46, 32, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.lifephoto-catalog-filter-group[open] {
    border-color: rgba(216, 75, 42, 0.24);
    background: rgba(255, 255, 255, 0.78);
}

.lifephoto-catalog-filter-group summary {
    position: relative;
    min-height: 36px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 4px;
    padding: 7px 28px 7px 8px;
    cursor: pointer;
    list-style: none;
}

.lifephoto-catalog-filter-group summary::-webkit-details-marker {
    display: none;
}

.lifephoto-catalog-filter-group summary::after {
    content: "";
    position: absolute;
    right: 10px;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--lp-accent);
    border-bottom: 2px solid var(--lp-accent);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.lifephoto-catalog-filter-group[open] summary::after {
    transform: rotate(-135deg);
}

.lifephoto-catalog-filter-group summary span {
    min-width: 0;
    color: var(--lp-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
}

.lifephoto-catalog-filter-group summary em {
    min-width: 0;
    color: var(--lp-accent-dark);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.15;
    text-align: left;
    overflow-wrap: anywhere;
    white-space: normal;
}

.lifephoto-catalog-filter-group:not([open]) summary em {
    color: var(--lp-muted);
}

.lifephoto-catalog-filter-options {
    display: none;
    gap: 3px;
    max-height: none;
    overflow: visible;
    padding: 0 8px 8px;
}

.lifephoto-catalog-filter-group[open] .lifephoto-catalog-filter-options {
    display: grid;
}

.lifephoto-catalog-filter-options label {
    min-width: 0;
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--lp-ink);
    font: 800 12px / 1.15 var(--lp-body);
    cursor: pointer;
}

.lifephoto-catalog-filter-options input {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    appearance: none;
    margin: 0;
    border: 1px solid rgba(216, 75, 42, 0.42);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0);
}

.lifephoto-catalog-filter-options input:checked {
    border-color: var(--lp-accent);
    background: var(--lp-accent);
    box-shadow: inset 0 0 0 3px rgba(255, 250, 241, 0.95);
}

.lifephoto-catalog-filter-options input:focus-visible {
    outline: 2px solid rgba(243, 178, 48, 0.78);
    outline-offset: 2px;
}

.lifephoto-catalog-filter-options span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.lifephoto-catalog-filter-options input:checked + span {
    color: var(--lp-accent-dark);
}

.lifephoto-catalog-filter__actions {
    position: sticky;
    bottom: 0;
    grid-column: 1 / -1;
    display: grid;
    padding-top: 6px;
    background: linear-gradient(180deg, rgba(255, 250, 241, 0), rgba(255, 250, 241, 0.96) 30%);
}

.lifephoto-catalog-filter__actions a {
    min-width: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    font: 800 13px / 1 var(--lp-body);
    text-decoration: none;
}

.lifephoto-catalog-filter__actions a {
    border: 1px solid rgba(65, 46, 32, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--lp-muted);
}

.lifephoto-frame-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.lifephoto-frame-filter a,
.lifephoto-catalog-pagination a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(65, 46, 32, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--lp-ink);
    text-decoration: none;
    font-weight: 800;
}

.lifephoto-frame-filter a {
    padding: 9px 14px;
}

.lifephoto-frame-filter a.is-active,
.lifephoto-catalog-pagination a.is-active {
    border-color: var(--lp-accent);
    background: var(--lp-accent);
    color: #fff;
}

.lifephoto-frame-filter a.is-empty:not(.is-active) {
    color: rgba(65, 46, 32, 0.48);
}

.lifephoto-frame-filter em {
    min-width: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(65, 46, 32, 0.08);
    color: inherit;
    font-size: 12px;
    font-style: normal;
    line-height: 1;
}

.lifephoto-frame-filter a.is-active em {
    background: rgba(255, 255, 255, 0.22);
}

.lifephoto-catalog-product {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
    border: 1px solid rgba(114, 81, 58, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px) saturate(1.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.72) inset,
        0 18px 34px rgba(66, 38, 18, 0.12),
        0 4px 12px rgba(66, 38, 18, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.lifephoto-catalog-product:hover,
.lifephoto-catalog-product:focus-within {
    border-color: rgba(216, 75, 42, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.76) inset,
        0 24px 48px rgba(66, 38, 18, 0.18),
        0 7px 18px rgba(216, 75, 42, 0.08);
}

.lifephoto-catalog-product.is-in-basket {
    border-color: rgba(216, 75, 42, 0.36);
}

.lifephoto-catalog-product.is-updated {
    box-shadow: 0 20px 54px rgba(216, 75, 42, 0.18);
    transform: translateY(-2px);
}

.lifephoto-catalog-product__discount,
.lifephoto-catalog-detail__discount {
    position: absolute;
    z-index: 3;
    min-width: 70px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 8px 16px 9px;
    border: 2px solid rgba(255, 250, 241, 0.78);
    border-radius: 13px 20px 13px 5px;
    background: linear-gradient(135deg, #f58a22 0%, var(--lp-accent) 56%, var(--lp-accent-dark) 100%);
    color: #fff;
    font: 900 17px / 1 var(--lp-body);
    letter-spacing: 0;
    box-shadow: 0 16px 28px rgba(216, 75, 42, 0.28);
    transform: rotate(5deg);
}

.lifephoto-catalog-product__discount {
    top: -13px;
    right: -13px;
}

.lifephoto-catalog-detail__discount {
    top: 14px;
    right: 14px;
}

.lifephoto-catalog-product__image {
    height: clamp(320px, 21vw, 360px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    padding: 6px;
    background: transparent;
}

.lifephoto-catalog-product__gallery {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.lifephoto-catalog-product__image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: none;
    object-fit: contain;
    transition: transform 0.24s ease, opacity 0.2s ease;
}

.lifephoto-catalog-product__image img.is-active,
.lifephoto-catalog-product__gallery > img:first-child:last-of-type {
    display: block;
}

.lifephoto-catalog-product:hover .lifephoto-catalog-product__image img.is-active,
.lifephoto-catalog-product:focus-within .lifephoto-catalog-product__image img.is-active {
    transform: scale(1.025);
}

.lifephoto-catalog-gallery-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(65, 46, 32, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--lp-ink);
    font: 900 28px / 1 var(--lp-body);
    opacity: 0.82;
    transform: translateY(-50%);
    box-shadow: 0 10px 24px rgba(66, 38, 18, 0.14);
    transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lifephoto-catalog-gallery-button--prev {
    left: 8px;
}

.lifephoto-catalog-gallery-button--next {
    right: 8px;
}

.lifephoto-catalog-product:hover .lifephoto-catalog-gallery-button,
.lifephoto-catalog-product:focus-within .lifephoto-catalog-gallery-button {
    opacity: 1;
    transform: translateY(-50%) scale(1.03);
}

.lifephoto-catalog-gallery-button:hover,
.lifephoto-catalog-gallery-button:focus-visible {
    background: var(--lp-accent);
    color: #fff;
}

.lifephoto-catalog-product__image span {
    width: 52%;
    aspect-ratio: 1.35;
    display: block;
    border: 12px solid #6f4c34;
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.8);
    box-shadow: 0 16px 32px rgba(66, 38, 18, 0.16);
}

.lifephoto-catalog-product__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.lifephoto-catalog-product h3 {
    min-height: 50px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font: 700 23px / 1.1 var(--lp-display);
    letter-spacing: 0;
}

.lifephoto-catalog-product__title-link {
    color: var(--lp-ink);
    text-decoration: none;
}

.lifephoto-catalog-product__title-link:hover,
.lifephoto-catalog-product__title-link:focus-visible {
    color: var(--lp-accent-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lifephoto-catalog-product__meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.lifephoto-catalog-product__meta span {
    color: var(--lp-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    transition: color 0.18s ease;
}

.lifephoto-catalog-product:hover .lifephoto-catalog-product__meta span,
.lifephoto-catalog-product:focus-within .lifephoto-catalog-product__meta span {
    color: var(--lp-ink);
}

.lifephoto-catalog-availability {
    width: max-content;
    max-width: 100%;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid rgba(114, 81, 58, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.72);
    color: var(--lp-ink);
    font: 900 12px / 1.1 var(--lp-body);
    letter-spacing: 0;
    white-space: nowrap;
}

.lifephoto-catalog-availability--available {
    border-color: rgba(37, 128, 78, 0.22);
    background: rgba(236, 251, 240, 0.9);
    color: #24754b;
}

.lifephoto-catalog-availability--order {
    border-color: rgba(216, 75, 42, 0.22);
    background: rgba(255, 242, 205, 0.92);
    color: var(--lp-accent-dark);
}

.lifephoto-catalog-product p {
    margin: 8px 0 0;
    color: var(--lp-muted);
}

.lifephoto-catalog-product__bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: start;
    margin-top: auto;
    padding-top: 12px;
}

.lifephoto-catalog-product__price {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
}

.lifephoto-catalog-product__price > span:first-child {
    color: var(--lp-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

.lifephoto-catalog-product__price--empty strong {
    color: var(--lp-muted);
    font-size: 16px;
}

.lifephoto-catalog-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.lifephoto-catalog-price strong {
    position: relative;
    color: var(--lp-ink);
    font-size: clamp(25px, 2.1vw, 34px);
    font-weight: 900;
    line-height: 0.98;
    white-space: nowrap;
}

.lifephoto-catalog-product__price .lifephoto-catalog-price strong {
    font-size: clamp(26px, 1.8vw, 32px);
}

.lifephoto-catalog-price s {
    color: rgba(108, 97, 88, 0.74);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration-thickness: 2px;
    white-space: nowrap;
}

.lifephoto-catalog-price.is-discounted {
    gap: 8px;
}

.lifephoto-catalog-price.is-discounted strong {
    background: transparent;
    color: var(--lp-accent-dark);
}

.lifephoto-catalog-product__bottom form {
    margin: 0;
}

.lifephoto-catalog-basket-form {
    margin: 0;
}

.lifephoto-catalog-product__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    min-width: min(100%, 172px);
}

.lifephoto-catalog-product__actions .lifephoto-catalog-availability {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 5px 8px;
    font-size: 11px;
}

.lifephoto-catalog-product__lead,
.lifephoto-catalog-detail__lead {
    width: 100%;
    color: var(--lp-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.lifephoto-catalog-product__lead--order_10_14,
.lifephoto-catalog-detail__lead--order_10_14 {
    color: var(--lp-accent-dark);
}

.lifephoto-catalog-product__actions .lifephoto-catalog-buy-control {
    min-height: 40px;
    gap: 4px;
    padding: 2px;
}

.lifephoto-catalog-product__actions .lifephoto-catalog-add-button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

.lifephoto-catalog-detail__cart-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.lifephoto-catalog-product-grid--list {
    grid-template-columns: 1fr;
}

.lifephoto-catalog-product-grid--list .lifephoto-catalog-product {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
}

.lifephoto-catalog-product-grid--list .lifephoto-catalog-product__image {
    height: 340px;
}

.lifephoto-catalog-product-grid--list .lifephoto-catalog-product__body {
    padding: 22px 24px;
}

.lifephoto-catalog-product-grid--list .lifephoto-catalog-product h3 {
    min-height: auto;
    max-width: 980px;
    font-size: 28px;
}

.lifephoto-catalog-product-grid--list .lifephoto-catalog-product p {
    max-width: 840px;
}

.lifephoto-catalog-product-grid--list .lifephoto-catalog-product__bottom {
    justify-content: flex-start;
}

.lifephoto-catalog-detail__actions a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid rgba(216, 75, 42, 0.28);
    border-radius: 999px;
    background: rgba(216, 75, 42, 0.08);
    color: var(--lp-accent-dark);
    font: 800 14px / 1 var(--lp-body);
    text-decoration: none;
}

.lifephoto-catalog-buy-control {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 3px;
    border-radius: 999px;
    background: var(--lp-accent);
    box-shadow: 0 14px 30px rgba(216, 75, 42, 0.2);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.lifephoto-catalog-buy-control .lifephoto-catalog-basket-form {
    min-width: 0;
}

.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-buy-control,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-buy-control {
    min-width: 142px;
    padding: 0 18px;
    background: transparent;
    box-shadow: none;
}

.lifephoto-catalog-buy-control:hover,
.lifephoto-catalog-buy-control:focus-within {
    background: #d96f1c;
}

.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-buy-control:hover,
.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-buy-control:focus-within,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-buy-control:hover,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-buy-control:focus-within {
    background: transparent;
}

.lifephoto-catalog-quantity {
    display: none;
}

.lifephoto-catalog-quantity.is-visible {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    pointer-events: none;
}

.lifephoto-catalog-quantity button {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--lp-accent);
    box-shadow: none;
    font-size: 0;
    pointer-events: auto;
    transform: translateY(-50%);
}

.lifephoto-catalog-quantity button:first-of-type {
    left: 0;
}

.lifephoto-catalog-quantity button:last-of-type {
    right: 0;
}

.lifephoto-catalog-quantity button::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    margin: 0 auto;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.lifephoto-catalog-quantity button:first-of-type::before {
    transform: rotate(-45deg);
}

.lifephoto-catalog-quantity button:last-of-type::before {
    transform: rotate(135deg);
}

.lifephoto-catalog-quantity button:hover,
.lifephoto-catalog-quantity button:focus-visible {
    background: transparent;
    color: var(--lp-accent-dark);
}

.lifephoto-catalog-quantity input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.lifephoto-catalog-detail__actions a:hover,
.lifephoto-catalog-detail__actions a:focus-visible {
    border-color: var(--lp-accent);
    background: rgba(216, 75, 42, 0.14);
    color: var(--lp-accent-dark);
}

.lifephoto-catalog-product__bottom button,
.lifephoto-catalog-basket-form button,
.lifephoto-catalog-detail__actions button {
    min-height: 38px;
    padding: 9px 15px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: 800 14px / 1 var(--lp-body);
    cursor: pointer;
    box-shadow: none;
}

.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-basket-form,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-basket-form {
    position: relative;
    z-index: 1;
    width: 100%;
}

.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-add-button,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-add-button {
    width: 100%;
    min-height: 44px;
    padding-right: 4px;
    padding-left: 4px;
    border: 0;
    background: transparent;
    color: var(--lp-accent-dark);
    box-shadow: none;
}

.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-add-button:hover,
.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-add-button:focus-visible,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-add-button:hover,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-add-button:focus-visible {
    background: transparent;
    color: var(--lp-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lifephoto-catalog-product__bottom button:hover,
.lifephoto-catalog-product__bottom button:focus-visible,
.lifephoto-catalog-basket-form button:hover,
.lifephoto-catalog-basket-form button:focus-visible,
.lifephoto-catalog-detail__actions button:hover,
.lifephoto-catalog-detail__actions button:focus-visible {
    background: rgba(255, 250, 241, 0.14);
}

.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-buy-control,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-buy-control,
.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-buy-control:hover,
.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-buy-control:focus-within,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-buy-control:hover,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-buy-control:focus-within {
    background: transparent;
}

.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-quantity button,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-quantity button {
    width: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--lp-accent);
    font-size: 0;
}

.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-quantity button:hover,
.lifephoto-catalog-product.is-in-basket .lifephoto-catalog-quantity button:focus-visible,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-quantity button:hover,
.lifephoto-catalog-detail__info.is-in-basket .lifephoto-catalog-quantity button:focus-visible {
    background: transparent;
    color: var(--lp-accent-dark);
}

.lifephoto-catalog-detail {
    scroll-margin-top: 110px;
}

.lifephoto-glass-block {
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(18px) saturate(1.16);
    box-shadow: 0 18px 42px rgba(66, 38, 18, 0.08);
}

.lifephoto-catalog-detail__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
}

.lifephoto-catalog-detail__head h2 {
    margin: 0;
    font: 700 clamp(34px, 3.5vw, 56px) / 1 var(--lp-display);
    letter-spacing: 0;
}

.lifephoto-catalog-detail__nav {
    display: flex;
    gap: 8px;
}

.lifephoto-catalog-detail__arrow {
    min-width: 116px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--lp-accent);
    border-radius: 999px;
    background: var(--lp-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(66, 38, 18, 0.08);
}

.lifephoto-catalog-detail__arrow:hover,
.lifephoto-catalog-detail__arrow:focus-visible {
    border-color: var(--lp-accent-dark);
    background: var(--lp-accent-dark);
    color: #fff;
}

.lifephoto-catalog-detail__arrow span {
    font-size: 20px;
}

.lifephoto-catalog-detail__arrow em {
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
}

.lifephoto-catalog-detail__arrow.is-disabled {
    opacity: 0.36;
    box-shadow: none;
}

.lifephoto-catalog-detail__grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(22px, 3vw, 42px);
    align-items: start;
}

.lifephoto-catalog-detail__media {
    min-width: 0;
}

.lifephoto-catalog-detail__main-image {
    min-height: 520px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 20px;
    background: transparent;
}

.lifephoto-catalog-detail__main-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 560px;
    display: block;
    object-fit: contain;
}

.lifephoto-catalog-detail__main-image span {
    width: min(58%, 280px);
    aspect-ratio: 1.35;
    display: block;
    border: 18px solid #6f4c34;
    border-radius: 10px;
    background: rgba(255, 250, 241, 0.8);
    box-shadow: 0 16px 32px rgba(66, 38, 18, 0.16);
}

.lifephoto-catalog-detail__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.lifephoto-catalog-detail__thumbs button {
    height: 124px;
    overflow: hidden;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lifephoto-catalog-detail__thumbs button:hover,
.lifephoto-catalog-detail__thumbs button:focus-visible,
.lifephoto-catalog-detail__thumbs button.is-active {
    border-color: rgba(216, 75, 42, 0.42);
    box-shadow: 0 10px 22px rgba(216, 75, 42, 0.12);
}

.lifephoto-catalog-detail__thumbs img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    display: block;
    object-fit: contain;
}

.lifephoto-catalog-detail__info {
    min-width: 0;
}

.lifephoto-catalog-detail__purchase {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.lifephoto-catalog-detail__price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
}

.lifephoto-catalog-detail__buy {
    position: sticky;
    top: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 18px;
}

.lifephoto-catalog-detail__price span {
    color: var(--lp-muted);
    font-weight: 800;
}

.lifephoto-catalog-detail__price strong {
    font-size: clamp(28px, 2.6vw, 42px);
    font-weight: 900;
}

.lifephoto-catalog-detail__info p {
    margin: 18px 0 0;
    color: var(--lp-muted);
    font-size: 16px;
    line-height: 1.6;
}

.lifephoto-catalog-detail__copy,
.lifephoto-catalog-detail__specs {
    margin-top: 14px;
    padding: 18px;
}

.lifephoto-catalog-detail__copy h3,
.lifephoto-catalog-detail__specs h3 {
    margin: 0 0 12px;
    font: 700 24px / 1.08 var(--lp-display);
    letter-spacing: 0;
}

.lifephoto-catalog-detail__copy p {
    margin: 0;
}

.lifephoto-catalog-detail__props {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid rgba(65, 46, 32, 0.12);
}

.lifephoto-catalog-detail__props div {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(65, 46, 32, 0.12);
}

.lifephoto-catalog-detail__props dt,
.lifephoto-catalog-detail__props dd {
    margin: 0;
}

.lifephoto-catalog-detail__props dt {
    color: var(--lp-muted);
    font-weight: 800;
}

.lifephoto-catalog-detail__props dd {
    color: var(--lp-ink);
    font-weight: 700;
}

.lifephoto-catalog-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.lifephoto-catalog-dialog {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lifephoto-catalog-dialog.is-visible {
    display: flex;
}

.lifephoto-catalog-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(65, 46, 32, 0.34);
    backdrop-filter: blur(8px);
}

.lifephoto-catalog-dialog__panel {
    position: relative;
    width: min(100%, 420px);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 22px;
    background:
        linear-gradient(140deg, rgba(255, 250, 241, 0.98), rgba(255, 244, 225, 0.98)),
        #fffaf1;
    color: var(--lp-ink);
    box-shadow: 0 28px 70px rgba(66, 38, 18, 0.24);
}

.lifephoto-catalog-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(216, 75, 42, 0.08);
    color: var(--lp-accent-dark);
    cursor: pointer;
}

.lifephoto-catalog-dialog__close::before,
.lifephoto-catalog-dialog__close::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 9px;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.lifephoto-catalog-dialog__close::before {
    transform: rotate(45deg);
}

.lifephoto-catalog-dialog__close::after {
    transform: rotate(-45deg);
}

.lifephoto-catalog-dialog__mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lp-yellow);
    color: var(--lp-accent-dark);
    box-shadow: 0 12px 26px rgba(216, 75, 42, 0.18);
}

.lifephoto-catalog-dialog__mark::before {
    content: "!";
    font: 900 24px / 1 var(--lp-display);
}

.lifephoto-catalog-dialog h2 {
    margin: 16px 0 8px;
    font: 700 28px / 1.04 var(--lp-display);
    letter-spacing: 0;
}

.lifephoto-catalog-dialog p {
    margin: 0;
    color: var(--lp-muted);
    font-size: 16px;
    line-height: 1.45;
}

.lifephoto-catalog-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.lifephoto-catalog-dialog__actions button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font: 900 14px / 1 var(--lp-body);
    cursor: pointer;
}

.lifephoto-catalog-dialog__confirm {
    border: 0;
    background: var(--lp-accent);
    color: #fff;
    box-shadow: 0 14px 28px rgba(216, 75, 42, 0.24);
}

.lifephoto-catalog-dialog__confirm:hover,
.lifephoto-catalog-dialog__confirm:focus-visible {
    background: var(--lp-accent-dark);
}

.lifephoto-catalog-dialog__cancel {
    border: 1px solid rgba(65, 46, 32, 0.16);
    background: rgba(255, 255, 255, 0.76);
    color: var(--lp-muted);
}

.lifephoto-catalog-dialog__cancel[hidden] {
    display: none;
}

.lifephoto-catalog-dialog__cancel:hover,
.lifephoto-catalog-dialog__cancel:focus-visible,
.lifephoto-catalog-dialog__close:hover,
.lifephoto-catalog-dialog__close:focus-visible {
    color: var(--lp-ink);
}

.lifephoto-floating-cart {
    position: fixed;
    top: 220px;
    right: max(10px, calc((100vw - var(--lp-shell-width)) / 2 - 92px));
    z-index: 45;
}

.lifephoto-floating-cart a {
    position: relative;
    width: 94px;
    min-width: 94px;
    display: grid;
    gap: 4px;
    align-items: center;
    justify-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--lp-ink);
    text-decoration: none;
    box-shadow: none;
    animation: lifephoto-cart-wiggle 8.5s ease-in-out infinite;
}

.lifephoto-floating-cart.is-filled a {
    color: var(--lp-ink);
}

.lifephoto-floating-cart__icon {
    width: 42px;
    height: 42px;
    display: block;
    fill: none;
    stroke: var(--lp-accent);
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 8px 14px rgba(216, 75, 42, 0.2));
    animation: lifephoto-cart-pulse 3.4s ease-in-out infinite;
}

.lifephoto-floating-cart a > span:not(.lifephoto-floating-cart__icon) {
    display: block;
    min-width: 84px;
    padding: 3px 7px 4px;
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.84);
    color: var(--lp-ink);
    text-align: center;
    box-shadow: 0 8px 20px rgba(66, 38, 18, 0.1);
}

.lifephoto-floating-cart strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lifephoto-floating-cart strong {
    font-size: 15px;
    font-weight: 900;
}

.lifephoto-floating-cart em {
    display: block;
    color: var(--lp-muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.lifephoto-floating-cart em::before {
    content: "на сумму ";
}

.lifephoto-floating-cart b {
    position: absolute;
    top: -10px;
    right: 18px;
    min-width: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--lp-yellow);
    color: var(--lp-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(216, 75, 42, 0.22);
}

.lifephoto-scroll-top {
    position: fixed;
    right: max(-8px, calc((100vw - var(--lp-shell-width)) / 2 - 82px));
    bottom: var(--lifephoto-scroll-top-bottom, 20px);
    z-index: 48;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--lp-accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(216, 75, 42, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, bottom 0.12s ease;
}

.lifephoto-scroll-top::before {
    content: "";
    width: 13px;
    height: 13px;
    border-top: 3px solid currentColor;
    border-left: 3px solid currentColor;
    transform: translateY(4px) rotate(45deg);
}

.lifephoto-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lifephoto-scroll-top:hover,
.lifephoto-scroll-top:focus-visible {
    background: var(--lp-accent-dark);
}

@keyframes lifephoto-cart-pulse {
    0%,
    100% {
        filter: drop-shadow(0 8px 14px rgba(216, 75, 42, 0.2));
    }

    50% {
        filter: drop-shadow(0 11px 22px rgba(216, 75, 42, 0.34));
    }
}

@keyframes lifephoto-cart-wiggle {
    0%,
    72%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0);
    }

    76% {
        transform: translate3d(0, -3px, 0) rotate(-4deg);
    }

    80% {
        transform: translate3d(0, 1px, 0) rotate(3deg);
    }

    84% {
        transform: translate3d(0, 0, 0) rotate(0);
    }
}

@keyframes lifephoto-filter-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(216, 75, 42, 0.38);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(216, 75, 42, 0);
    }
}

.lifephoto-catalog-detail__actions form {
    margin: 0;
}

.lifephoto-catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.lifephoto-catalog-pagination a {
    min-width: 42px;
    padding: 9px 12px;
}

.lifephoto-catalog-empty,
.lifephoto-catalog-message {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px solid rgba(65, 46, 32, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.lifephoto-catalog-empty strong {
    font: 700 25px / 1.08 var(--lp-display);
}

.lifephoto-catalog-empty span,
.lifephoto-catalog-message p {
    margin: 0;
    color: var(--lp-muted);
}

.lifephoto-constructor-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}

.lifephoto-constructor-product a {
    min-height: 210px;
    padding: 0 0 22px;
}

.lifephoto-constructor-product em {
    margin: 10px 20px 0;
    color: var(--lp-muted);
    font-style: normal;
}

@media (max-width: 1180px) {
    .lifephoto-shell__bar {
        grid-template-columns: auto auto 1fr auto;
    }

    .lifephoto-shell__menu-button {
        display: inline-flex;
        align-items: center;
    }

    .lifephoto-shell__nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 10px);
        display: none;
        justify-content: start;
        padding: 16px;
        border: 1px solid var(--lp-line);
        border-radius: 24px;
        background: rgba(255, 250, 241, 0.98);
        box-shadow: var(--lp-shadow);
    }

    .lifephoto-menu-open .lifephoto-shell__nav {
        display: flex;
    }

    .lifephoto-services {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lifephoto-catalog-grid,
    .lifephoto-catalog-product-grid,
    .lifephoto-constructor-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lifephoto-catalog-product-grid--list {
        grid-template-columns: 1fr;
    }

    .lifephoto-catalog-products__layout {
        grid-template-columns: 1fr;
    }

    .lifephoto-catalog-filter-window {
        position: static;
        margin-left: 0;
        max-height: none;
        overflow: visible;
    }

    .lifephoto-catalog-filter form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lifephoto-catalog-detail__grid {
        grid-template-columns: 1fr;
    }

    .lifephoto-catalog-detail__buy {
        position: static;
    }

    .lifephoto-shell__footer-grid {
        grid-template-columns: minmax(280px, 1.3fr) repeat(2, minmax(170px, 0.7fr));
    }

    .lifephoto-shell__footer-contact,
    .lifephoto-shell__footer-docs {
        grid-column: span 1;
    }
}

@media (max-width: 940px) {
    .lifephoto-hero,
    .lifephoto-catalog-hero,
    .lifephoto-cta {
        grid-template-columns: 1fr;
    }

    .lifephoto-hero__visual {
        min-height: 360px;
    }

    .lifephoto-hero__visual > img {
        min-height: 310px;
    }

    .lifephoto-hero__facts,
    .lifephoto-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lifephoto-shell__footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lifephoto-shell__footer-brand,
    .lifephoto-shell__footer-docs,
    .lifephoto-shell__footer-bottom {
        grid-column: 1 / -1;
    }

}

@media (max-width: 760px) {
    .lifephoto-shell__topline,
    .lifephoto-shell__bar,
    .lifephoto-shell__main,
    .lifephoto-shell__footer-grid {
        width: min(100% - 24px, 1200px);
    }

    .lifephoto-shell__topline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 12px;
        overflow: hidden;
        padding: 6px 0;
        text-align: center;
        white-space: normal;
    }

    .lifephoto-shell__topline a[href^="mailto:"] {
        display: none;
    }

    .lifephoto-shell__bar {
        min-height: 74px;
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 12px 0;
    }

    .lifephoto-shell__brand span,
    .lifephoto-shell__contacts,
    .lifephoto-shell__cart-link {
        display: none;
    }

    .lifephoto-shell__brand img {
        width: 138px;
    }

    .lifephoto-shell__menu-button {
        grid-column: 2;
    }

    .lifephoto-shell__nav {
        left: 12px;
        right: 12px;
        top: calc(100% + 6px);
    }

    .lifephoto-shell__main {
        padding: 24px 0 46px;
    }

    .lifephoto-hero,
    .lifephoto-auth {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lifephoto-hero__copy,
    .lifephoto-catalog-hero__copy,
    .lifephoto-section,
    .lifephoto-cta {
        border-radius: 22px;
        padding: 22px;
    }

    .lifephoto-hero__facts,
    .lifephoto-flow,
    .lifephoto-services,
    .lifephoto-catalog-grid,
    .lifephoto-catalog-product-grid,
    .lifephoto-constructor-product-grid,
    .lifephoto-shell__footer-grid {
        grid-template-columns: 1fr;
    }

    .lifephoto-catalog-hero__visual {
        min-height: 320px;
        padding: 14px;
    }

    .lifephoto-catalog-hero__visual > img {
        min-height: 286px;
        border-width: 8px;
        border-bottom-width: 32px;
    }

    .lifephoto-hero__visual {
        min-height: 300px;
        padding: 14px;
    }

    .lifephoto-hero__visual > img {
        min-height: 270px;
        border-width: 8px;
        border-bottom-width: 34px;
    }

    .lifephoto-hero__badge {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .lifephoto-service-card {
        min-height: auto;
    }

    .lifephoto-service-card__preview {
        height: 236px;
        min-height: 236px;
    }

    .lifephoto-service-card__preview > img {
        height: 208px;
    }

    .lifephoto-product-preview {
        height: 208px;
        min-height: 0;
    }

    .lifephoto-product-strip {
        width: 31%;
        height: 180px;
    }

    .lifephoto-product-strip--middle {
        height: 192px;
    }

    .lifephoto-product-memorial {
        width: 118px;
        height: 172px;
    }

    .lifephoto-cta__action {
        justify-self: start;
        width: min(100%, 300px);
        min-height: 170px;
    }

    .lifephoto-section__head {
        display: block;
    }

    .lifephoto-section__head p {
        margin-top: 12px;
    }

    .lifephoto-catalog-view-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .lifephoto-catalog-filter form {
        grid-template-columns: 1fr;
    }

    .lifephoto-catalog-detail__head {
        grid-template-columns: 1fr;
    }

    .lifephoto-catalog-detail__nav {
        justify-content: flex-start;
    }

    .lifephoto-catalog-detail__main-image {
        min-height: 360px;
    }

    .lifephoto-catalog-detail__thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lifephoto-catalog-detail__price {
        display: grid;
        grid-template-columns: 1fr;
    }

    .lifephoto-catalog-detail__buy {
        grid-template-columns: 1fr;
    }

    .lifephoto-catalog-detail__props div {
        grid-template-columns: 1fr;
    }

    .lifephoto-catalog-product__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .lifephoto-catalog-product-grid--list .lifephoto-catalog-product {
        grid-template-columns: 1fr;
    }

    .lifephoto-catalog-product-grid--list .lifephoto-catalog-product__image {
        height: 360px;
    }

    .lifephoto-catalog-product__actions {
        justify-content: flex-end;
        width: 100%;
    }

    .lifephoto-catalog-buy-control {
        width: 100%;
        justify-content: space-between;
    }

    .lifephoto-catalog-basket-form,
    .lifephoto-catalog-basket-form button {
        min-width: 0;
        flex: 1;
    }

    .lifephoto-shell__footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .lifephoto-floating-cart {
        top: 188px;
        right: 10px;
        left: auto;
    }

    .lifephoto-floating-cart a {
        width: 86px;
        min-width: 86px;
    }

    .lifephoto-floating-cart__icon {
        width: 42px;
        height: 38px;
    }

    .lifephoto-floating-cart b {
        right: 15px;
    }

    .lifephoto-scroll-top {
        right: 12px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }

}

@media (min-width: 941px) and (max-height: 820px) {
    .lifephoto-shell__main {
        padding-top: clamp(20px, 3vh, 30px);
    }

    .lifephoto-preview {
        gap: 36px;
    }

    .lifephoto-hero {
        gap: clamp(22px, 2.8vw, 38px);
    }

    .lifephoto-hero__copy {
        padding: clamp(26px, 3.1vw, 44px);
    }

    .lifephoto-hero h1 {
        font-size: clamp(48px, 5vw, 72px);
        line-height: 0.94;
    }

    .lifephoto-hero__lead {
        margin-top: 16px;
        font-size: clamp(16px, 1.55vw, 19px);
        line-height: 1.42;
    }

    .lifephoto-hero__actions {
        margin-top: 20px;
    }

    .lifephoto-hero__facts {
        gap: 8px;
        margin-top: 20px;
    }

    .lifephoto-hero__facts li {
        padding: 10px 12px;
        border-radius: 16px;
        font-size: 15px;
        line-height: 1.18;
    }

    .lifephoto-hero__facts span {
        margin-top: 3px;
        font-size: 12px;
    }

    .lifephoto-hero__visual {
        min-height: 420px;
        padding: 16px;
    }

    .lifephoto-hero__visual > img {
        min-height: 370px;
        border-width: 9px;
        border-bottom-width: 34px;
    }

    .lifephoto-hero__badge {
        left: 18px;
        bottom: 18px;
        padding: 13px 15px;
    }

    .lifephoto-hero__badge strong {
        font-size: 24px;
    }

    .lifephoto-hero__floating--one {
        width: 104px;
        height: 132px;
    }

    .lifephoto-hero__floating--two {
        width: 92px;
        height: 118px;
    }

    .lifephoto-hero__floating--three {
        width: 82px;
        height: 106px;
    }
}

@media (min-width: 1181px) and (max-height: 760px) {
    .lifephoto-catalog-filter summary {
        min-height: 38px;
        padding: 7px 10px;
    }

    .lifephoto-catalog-filter form {
        gap: 5px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .lifephoto-catalog-filter-group summary {
        min-height: 34px;
        padding: 6px 7px;
    }

    .lifephoto-catalog-filter__actions a {
        min-height: 34px;
        padding-top: 7px;
        padding-bottom: 7px;
    }
}

@media (min-width: 761px) and (max-width: 1180px) and (max-height: 720px) {
    .lifephoto-shell__topline {
        display: none;
    }

    .lifephoto-shell__bar {
        min-height: 70px;
        gap: 14px;
    }

    .lifephoto-shell__brand img {
        width: 132px;
    }

    .lifephoto-shell__brand span {
        display: none;
    }

    .lifephoto-shell__contacts {
        font-size: 12px;
    }

    .lifephoto-shell__contacts a {
        font-size: 15px;
    }

    .lifephoto-shell__cart-link {
        min-height: 40px;
        padding: 9px 14px;
        font-size: 13px;
    }

    .lifephoto-shell__main {
        padding: 14px 0 42px;
    }

    .lifephoto-preview {
        gap: 32px;
    }

    .lifephoto-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
        gap: 14px;
    }

    .lifephoto-hero__copy {
        padding: 22px;
        border-radius: 20px;
    }

    .lifephoto-eyebrow {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .lifephoto-hero h1 {
        font-size: clamp(36px, 4.5vw, 48px);
        line-height: 0.94;
    }

    .lifephoto-hero__lead {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.35;
    }

    .lifephoto-hero__actions {
        gap: 8px;
        margin-top: 14px;
    }

    .lifephoto-hero__primary,
    .lifephoto-hero__secondary {
        min-height: 38px;
        padding: 9px 13px;
        font-size: 13px;
    }

    .lifephoto-hero__facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 14px;
    }

    .lifephoto-hero__facts li {
        padding: 8px;
        border-radius: 14px;
        font-size: 13px;
        line-height: 1.15;
    }

    .lifephoto-hero__facts span {
        margin-top: 2px;
        font-size: 10.5px;
    }

    .lifephoto-hero__visual {
        min-height: 360px;
        padding: 12px;
        border-radius: 20px;
    }

    .lifephoto-hero__visual > img {
        min-height: 320px;
        border-width: 8px;
        border-bottom-width: 30px;
        border-radius: 14px;
    }

    .lifephoto-hero__badge {
        left: 14px;
        bottom: 14px;
        max-width: 210px;
        padding: 10px 12px;
        border-radius: 16px;
        font-size: 12px;
    }

    .lifephoto-hero__badge strong {
        font-size: 22px;
    }

    .lifephoto-hero__floating {
        padding: 5px 5px 18px;
    }

    .lifephoto-hero__floating--one {
        width: 86px;
        height: 110px;
    }

    .lifephoto-hero__floating--two {
        width: 76px;
        height: 98px;
    }

    .lifephoto-hero__floating--three {
        width: 68px;
        height: 88px;
    }
}

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