:root {
  --bg: #160d0a;
  --bg-dark: #0b0907;
  --text: #e1c18a;
  --text-soft: #d7b982;
  --accent: #dda23e;
  --accent-dark: #8c6627;
  --panel: #dfbc84;
  --panel-text: #22150e;
  --line: rgba(225, 193, 138, 0.72);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Constantia, Georgia, serif; background: var(--bg-dark); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

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

.home-body { background: var(--bg-dark); }
.hero {
  width: 100%; min-height: 853px; position: relative; overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.82)),
    url("assets/delivery-bg.png") center/cover no-repeat;
}
.home-header { padding-top: 28px; display: flex; align-items: center; justify-content: flex-start; gap: 22px; position: relative; z-index: 3; }
.home-logo { color: var(--accent); font-weight: 700; letter-spacing: .10em; font-size: 60px; line-height: 1; text-shadow: 0 2px 12px rgba(0,0,0,.65); display:inline-block; flex: 0 0 auto; }
.home-nav { display: flex; align-items: center; gap: 20px; font-size: 21px; color: rgba(255,255,255,.84); white-space: nowrap; text-shadow: 0 2px 12px rgba(0,0,0,.65); margin-left: 8px; }
.home-nav a { padding: 6px 8px; border-radius: 10px; }
.home-nav a:hover { background: rgba(221,153,44,.14); }
.home-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); }
.icon-btn img { width: 21px; height: 21px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.hero__content { min-height: 755px; display: grid; place-items: center; text-align: center; padding: 110px 0 90px; }
.hero__block { width: min(907px, 100%); display: flex; flex-direction: column; align-items: center; gap: 40px; }
.title-wrap { position: relative; display: inline-block; }
.snitch { position: absolute; left: 150px; top: -10px; width: 52px; pointer-events: none; animation: snitch-hover 3.6s ease-in-out infinite; }
.hero__title { margin: 0; font-weight: 400; font-size: 96px; line-height: 1; text-transform: uppercase; background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 3px 18px rgba(0,0,0,.55); }
.hero__subtitle { margin: 0; font-size: 30px; line-height: 1.1; color: var(--text-soft); text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero__cta { width: 333px; height: 93px; border-radius: 11px; background: var(--accent); color: rgba(0,0,0,.66); font-size: 29px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.hero__cta:hover, .btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
@keyframes snitch-hover { 0%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-8px) rotate(6deg)} 100%{transform:translateY(0) rotate(0)} }

.catalog { padding: 90px 0 110px; background: #0b0907; }
.catalog__title { margin: 0 0 44px; font-size: 40px; font-weight: 400; text-align: center; color: var(--text); }
.catalog__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto auto; gap: 34px; justify-items: center; align-items: center; }
.pos-dnevnik { grid-column: 2; grid-row: 1; }
.pos-shlyapa { grid-column: 1; grid-row: 2; }
.pos-klyuch { grid-column: 3; grid-row: 2; }
.pos-zele { grid-column: 2; grid-row: 3; }
.product-card { --frame-w: 240px; --frame-h: 340px; --item-w: 160px; --item-y: 0px; width: var(--frame-w); user-select: none; }
.product-card__visual { width: var(--frame-w); height: var(--frame-h); position: relative; display: grid; place-items: center; animation: float 4s ease-in-out infinite; transition: filter .18s ease; }
.product-card__visual:hover { filter: drop-shadow(0 0 12px rgba(221,153,44,.6)); }
.product-card__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.product-card__item { position: absolute; left: 50%; top: 50%; width: var(--item-w); height: auto; max-height: 58%; object-fit: contain; pointer-events: none; z-index: 2; transform: translate(-50%,-50%) translateY(var(--item-y)); filter: drop-shadow(0 10px 22px rgba(0,0,0,.55)); }
.product-card__meta { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px; }
.product-card__name { font-size: 32px; line-height: 1; color: var(--text); grid-column: 1; }
.product-card__name:hover { color: var(--accent); }
.product-card__price { font-size: 18px; line-height: 1; opacity: .85; grid-column: 1; }
.product-card__buy { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; grid-column: 2; grid-row: 1 / span 2; }
.product-card__buy img { width: 40px; height: 40px; object-fit: contain; }
@keyframes float { 0%{transform:translateY(0)} 50%{transform:translateY(-6px)} 100%{transform:translateY(0)} }

.about, .reviews, .delivery, .footer { background: #0b0907; }
.about { padding: 120px 0; }
.about__grid { display: grid; gap: 120px; }
.about__item { display: grid; grid-template-columns: 420px 1fr; align-items: center; gap: 60px; }
.about__item--reverse { grid-template-columns: 1fr 420px; }
.about__text { max-width: 530px; }
.about__title, .reviews__title { margin: 0 0 20px; font-size: 32px; line-height: 1.2; }
.about__text p, .reviews__text p { margin: 0 0 16px; font-size: 18px; line-height: 1.5; }
.about__end { font-size: 21px; }
.reviews { padding: 120px 0; background: linear-gradient(rgba(0,0,0,.72),rgba(0,0,0,.78)), url("assets/блок снейпа.png") center/cover no-repeat; }
.reviews__grid { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; }
.reviews__text { max-width: 520px; }
.reviews__title { color: #5fbf87; }
.reviews__text p { color: #a6d3b0; }
.reviews__author { margin-top: 24px; font-size: 20px; color: #7ed19f; }
.delivery { padding: 120px 0; background: linear-gradient(rgba(0,0,0,.75),rgba(0,0,0,.75)), url("assets/delivery-bg.png") center/cover no-repeat; }
.delivery__grid { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; }
.delivery__title { margin: 0 0 16px; font-size: 56px; font-weight: 700; color: var(--text); }
.delivery__subtitle { margin: 0 0 40px; font-size: 22px; }
.delivery__methods { display: flex; gap: 38px; flex-wrap: wrap; }
.delivery__item { text-align: center; max-width: 145px; }
.delivery__item img { width: 130px; height: 92px; object-fit: contain; margin: 0 auto 12px; }
.delivery__item p { margin: 0; font-size: 14px; line-height: 1.3; }
.footer { padding: 80px 0; background: linear-gradient(rgba(0,0,0,.75),rgba(0,0,0,.75)), url("assets/delivery-bg.png") center/cover no-repeat; }
.footer__grid { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: start; }
.footer__logo { width: 180px; margin-bottom: 20px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.footer__nav a { font-size: 18px; }
.footer__nav a:hover { text-decoration: underline; }
.footer__license, .footer__address { margin: 0; font-size: 16px; line-height: 1.4; }
.footer__map { position: relative; max-width: 420px; }
.footer__snitch { position: absolute; width: 40px; top: -10px; right: -10px; animation: snitch-hover 3.8s ease-in-out infinite; }

.page { min-height: 100vh; position: relative; overflow-x: hidden; background: linear-gradient(rgba(18,10,7,.9),rgba(18,10,7,.92)), url("assets/footer-map.png") center/cover repeat; }
.page::after { content:""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,.35) 100%); z-index: 0; }
.page > * { position: relative; z-index: 1; }
.site-header { padding: 22px 0 18px; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-header__left { display: flex; align-items: center; gap: 34px; }
.site-logo { width: 165px; min-width: 125px; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 20px; color: var(--text); }
.site-nav a:hover { color: var(--accent); }
.header-cart { width: 34px; height: 34px; display: grid; place-items: center; }
.header-cart img { width: 27px; height: 27px; object-fit: contain; }
.inner-main { padding: 18px 0 120px; }
.btn { border: none; border-radius: 10px; background: var(--panel); color: var(--panel-text); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, filter .15s ease; }
.input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: rgba(30,16,10,.35); color: var(--text); padding: 0 14px; outline: none; font-size: 16px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(221,162,62,.18); }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; }
.message { min-height: 24px; margin: 14px 0 0; font-size: 16px; }
.message--success { color: #b7e098; }
.message--error { color: #ff8f8f; }
.decor-steps { position: absolute; pointer-events: none; opacity: .78; z-index: 1; }
.steps-one { width: 280px; left: 100px; bottom: 40px; }
.steps-two { width: 250px; left: 420px; bottom: 110px; transform: rotate(-8deg); }
.steps-three { width: 230px; right: 300px; bottom: 180px; transform: rotate(10deg); }
.frame { position: relative; display: grid; place-items: center; }
.frame__photo, .frame__item { position: absolute; object-fit: cover; z-index: 1; }
.frame__decor { position: relative; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

.product-page-title { margin: 34px 0 52px; font-size: 31px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.product-layout { display: grid; grid-template-columns: 320px 1fr 500px; gap: 38px; align-items: start; }
.product-left { display: grid; justify-items: center; gap: 18px; }
.product-main-frame { width: 300px; height: 370px; }
.product-main-frame .frame__item { width: 146px; height: auto; top: 108px; }
.product-price { font-size: 42px; font-weight: 700; line-height:1; }
.product-add { width: 190px; height: 44px; font-size: 20px; }
.product-info { padding-top: 42px; font-size: 17px; }
.product-code { margin-bottom: 8px; font-size: 15px; }
.product-name { margin: 0 0 8px; font-size: 48px; font-weight: 400; }
.product-rating { margin-bottom: 18px; font-size: 24px; }
.product-info p { margin: 10px 0; line-height: 1.4; }
.product-options { margin: 14px 0; }
.option-title { margin-bottom: 8px; font-size: 18px; }
.option-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.option-btn { height: 40px; min-width: 64px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font-size: 16px; }
.option-btn.active { background: rgba(221,162,62,.2); border-color: var(--accent); }
.color-choice { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.15); padding: 0; }
.color-pink { background: #e85282; } .color-light-pink { background: #f28cac; } .color-yellow { background: #ffd93b; } .color-red { background: #ff2424; }
.product-details { margin-top: 28px; display: grid; gap: 10px; font-size: 18px; line-height:1.35; }
.product-hero-img { position: relative; min-height: 500px; display:flex; align-items:flex-start; justify-content:flex-end; }
.product-hero-img img { width: 520px; max-width: 100%; margin-top: 40px; margin-left: auto; filter: drop-shadow(0 18px 25px rgba(0,0,0,.55)); }
.product-red-note { position: absolute; top: 86px; left: 20px; color: red; font-size: 22px; font-weight: 700; text-align: center; }
.reviews-block { margin-top: 20px; padding-bottom: 110px; }
.reviews-heading { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 48px; margin-top: 20px; }
.reviews-heading h2 { margin: 0; font-size: 60px; font-weight: 400; }
.screamer { width: 72px; height: auto; }
.review-cards { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 38px; align-items: stretch; }
.review-card { position: relative; background: var(--panel); color: var(--panel-text); border-radius: 8px; padding: 24px 22px; min-height: 220px; font-size: 18px; line-height: 1.45; }
.review-card strong { display: block; margin-bottom: 10px; font-size: 22px; }
.review-owl { position: absolute; width: 88px; top: -68px; left: -24px; }
.review-owl--right { top: auto; left: auto; right: -18px; bottom: -18px; }

.cart-layout { display: grid; grid-template-columns: 430px 1fr; gap: 70px; align-items: start; padding-top: 10px; }
.cart-title, .section-title { margin: 0 0 26px; font-size: 30px; font-weight: 400; }
.cart-items { display: grid; gap: 42px; margin-bottom: 56px; }
.cart-item { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; }
.cart-frame { width: 150px; height: 120px; }
.cart-frame .frame__item { max-width: 72px; max-height: 70px; }
.cart-item__title { margin: 0 0 12px; font-size: 22px; font-weight: 400; }
.qty { width: 88px; height: 28px; border: 1px solid var(--line); border-radius: 7px; display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; text-align: center; margin-bottom: 10px; }
.qty button { height: 100%; border: 0; background: transparent; color: var(--text); font-size: 15px; }
.cart-price { font-size: 20px; margin-bottom: 8px; }
.remove-btn { border: 0; padding: 0; background: transparent; color: var(--text); font-size: 12px; }
.calendar { width: 315px; border-radius: 13px; background: var(--panel); color: var(--panel-text); padding: 18px 22px; margin: 12px 0 24px; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; font-size: 16px; }
.calendar-week { font-weight: 700; margin-bottom: 8px; }
.calendar-day.active { width: 22px; height: 22px; margin: -4px auto 0; display: grid; place-items: center; border-radius: 50%; background: var(--panel-text); color: var(--panel); }
.time-options, .delivery-options { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.time-btn { height: 26px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font-size: 12px; }
.time-btn.active, .delivery-option.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(221,162,62,.15); }
.delivery-options { margin: 28px 0; }
.delivery-option { width: 100px; border: 1px solid transparent; background: transparent; color: var(--text); padding: 6px; border-radius: 12px; text-align: center; }
.delivery-option img { height: 58px; width: 100%; object-fit: contain; margin-bottom: 6px; }
.delivery-option span { display: block; font-size: 11px; line-height: 1.2; }
.cart-summary { margin-top: 22px; font-size: 26px; line-height: 1.7; }
.order-btn { width: 315px; height: 62px; margin-top: 22px; font-size: 20px; }
.cart-right { position: relative; min-height: 720px; }
.recipient-form { width: 405px; margin-top: 310px; }
.recipient-form form { display: grid; gap: 12px; }
.portrait { position: absolute; }
.portrait--draco-big { width: 118px; height: 145px; top: 20px; left: 120px; }
.portrait--draco-big .frame__photo { width: 64px; height: 82px; top: 30px; }
.portrait--rect { width: 168px; height: 108px; top: 180px; left: 200px; }
.portrait--rect .frame__photo { width: 108px; height: 62px; }
.portrait--small { width: 82px; height: 82px; top: 220px; right: 76px; overflow: hidden; border: 2px solid rgba(221,162,62,.6); }
.portrait--small img { width: 100%; height: 100%; object-fit: cover; }
.portrait--bellatrix { width: 118px; height: 138px; top: 330px; left: 240px; }
.portrait--bellatrix .frame__photo { width: 66px; height: 78px; top: 28px; }

.payment-content { width: min(820px, 100%); margin: 40px auto 0; }
.stepper { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; margin-bottom: 70px; position: relative; }
.stepper::before { content:""; position: absolute; left: 80px; right: 80px; top: 19px; height: 1px; background: rgba(231,201,149,.35); }
.step { text-align: center; position: relative; z-index: 1; }
.step-circle { width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); }
.step.active .step-circle { background: var(--panel); color: var(--panel-text); border-color: var(--panel); font-weight: 700; }
.step span { font-size: 11px; }
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; margin-bottom: 72px; }
.payment-method { position: relative; display: grid; gap: 8px; justify-items: center; border: 0; background: transparent; color: var(--text); }
.payment-method::before { content:""; width: 10px; height: 10px; position: absolute; left: -20px; top: 42px; border-radius: 50%; background: var(--panel); }
.payment-card-logo { width: 150px; height: 92px; display: grid; place-items: center; background: white; color: #202020; font-family: Arial, sans-serif; font-weight: 700; font-size: 29px; }
.mastercard-circles { width: 88px; height: 46px; position: relative; }
.mastercard-circles::before, .mastercard-circles::after { content:""; position: absolute; top: 0; width: 46px; height: 46px; border-radius: 50%; }
.mastercard-circles::before { left: 0; background: #eb001b; }
.mastercard-circles::after { right: 0; background: rgba(255,151,0,.88); }
.visa { color: #1536a8; font-size: 36px; font-style: italic; }
.mir { color: #15865c; font-size: 34px; }
.payment-method.active .payment-card-logo { outline: 3px solid var(--accent); }
.payment-form { display: grid; gap: 34px; }
.payment-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.payment-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.payment-total { margin-top: 30px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-family: Arial, sans-serif; font-size: 12px; }
.payment-total-line { border-bottom: 1px dashed var(--text); height: 1px; }
.confirm-btn { width: 100%; height: 38px; border-radius: 0; font-family: Arial, sans-serif; font-size: 12px; margin-top: 18px; }

.tracking-layout { display: grid; grid-template-columns: 440px 1fr; gap: 70px; padding-top: 68px; min-height: 560px; }
.tracking-form form { display: grid; gap: 15px; }
.tracking-btn { width: 360px; height: 68px; margin-top: 16px; font-size: 24px; text-transform: uppercase; }
.tracking-note { margin-top: 22px; font-size: 13px; line-height: 1.35; }
.tracking-gallery { position: relative; min-height: 520px; }
.track-portrait { position: absolute; }
.track-portrait .frame__photo { object-fit: cover; }
.track-oval-1 { width: 125px; height: 150px; left: 120px; top: 0; }
.track-oval-1 .frame__photo { width: 70px; height: 86px; top: 31px; }
.track-rect-1 { width: 122px; height: 142px; right: 120px; top: 0; }
.track-rect-1 .frame__photo { width: 72px; height: 92px; }
.track-rect-2 { width: 125px; height: 118px; left: 40px; top: 190px; }
.track-rect-2 .frame__photo { width: 72px; height: 68px; }
.track-rect-3 { width: 168px; height: 110px; left: 230px; top: 190px; }
.track-rect-3 .frame__photo { width: 106px; height: 64px; }
.track-oval-2 { width: 126px; height: 150px; right: 20px; top: 185px; }
.track-oval-2 .frame__photo { width: 70px; height: 84px; top: 30px; }
.track-oval-3 { width: 130px; height: 154px; left: 285px; top: 345px; }
.track-oval-3 .frame__photo { width: 74px; height: 88px; top: 31px; }


.product-page-title { max-width: 980px; }

@media (max-width: 1050px) {
  .container { width: min(100% - 32px, var(--container)); }
  .home-nav { display: none; }
  .hero__title { font-size: 60px; }
  .hero__subtitle { font-size: 22px; }
  .snitch { left: -35px; width: 42px; }
  .catalog__grid { grid-template-columns: 1fr 1fr; }
  .pos-dnevnik, .pos-zele { grid-column: 1 / -1; }
  .product-layout, .cart-layout, .tracking-layout, .reviews__grid, .delivery__grid, .footer__grid { grid-template-columns: 1fr; }
  .product-hero-img img { margin-left: 0; }
  .cart-right { min-height: 640px; }
  .recipient-form { margin-top: 380px; }
  .payment-methods { gap: 24px; }
  .payment-row { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
  .site-header__row, .site-header__left, .home-header { align-items: flex-start; }
  .site-header__left { flex-direction: column; gap: 10px; }
  .site-nav { font-size: 16px; flex-wrap: wrap; }
  .home-logo { font-size: 42px; }
  .hero__title { font-size: 44px; }
  .hero__cta { width: 240px; height: 64px; font-size: 22px; }
  .catalog__grid { grid-template-columns: 1fr; }
  .pos-dnevnik, .pos-shlyapa, .pos-klyuch, .pos-zele { grid-column: 1; }
  .product-page-title { font-size: 22px; }
  .review-cards { grid-template-columns: 1fr; gap: 48px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-hero-img { justify-content:center; min-height:auto; }
  .product-hero-img img { width: 340px; margin: 10px auto 0; }
  .product-main-frame { width: 250px; height: 310px; }
  .product-main-frame .frame__item { width: 126px; top: 92px; }
  .product-name { font-size: 36px; }
  .reviews-heading h2 { font-size: 42px; }
  .cart-item { grid-template-columns: 130px 1fr; }
  .calendar, .order-btn, .tracking-btn { width: 100%; }
  .payment-methods { grid-template-columns: 1fr; }
  .tracking-gallery { display: none; }
}


/* === FIX 2026-06-09: валидация, календарь, портреты === */

.page {
  overflow-x: hidden;
  overflow-y: auto;
}

.field {
  position: relative;
}

.field-error {
  display: block;
  min-height: 17px;
  margin-top: 4px;
  color: #ff7777;
  font-size: 12px;
  line-height: 1.2;
}

.input.input-error {
  border-color: #ff5555;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.16);
}

.message--error {
  color: #ff7777;
}

.message--success {
  color: #b8e59a;
}

.order-btn.is-disabled {
  opacity: 0.42;
  filter: grayscale(0.15);
}

.delivery-field {
  margin-bottom: 12px;
}

.small-label {
  margin-bottom: 8px;
  font-size: 14px;
}

.calendar {
  width: 318px;
  min-height: 160px;
  padding: 16px 18px;
}

.calendar-week,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 30px);
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.calendar-week span {
  font-size: 14px;
  font-weight: 700;
}

.calendar-day {
  width: 30px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--panel-text);
  display: grid;
  place-items: center;
  border-radius: 50%;
  line-height: 1;
  padding: 0;
}

.calendar-day.active {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border-radius: 50%;
  background: #3a2417;
  color: var(--panel);
}

.calendar-empty {
  width: 30px;
  height: 24px;
}

.time-btn,
.delivery-option {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.time-btn.active,
.delivery-option.active {
  border-color: #3a2417;
  box-shadow: 0 0 0 2px rgba(58, 36, 23, 0.35);
}

.delivery-option.active {
  transform: translateY(-2px);
}

.cart-right {
  min-height: 760px;
  overflow: visible;
}

.recipient-form {
  position: relative;
  z-index: 5;
  width: min(405px, 100%);
  margin-top: 430px;
}

.portrait {
  z-index: 2;
  pointer-events: none;
}

.portrait--draco-big {
  width: 126px;
  height: 155px;
  top: 0;
  left: 145px;
}

.portrait--draco-big .frame__photo {
  width: 68px;
  height: 86px;
  top: 33px;
}

.portrait--rect {
  width: 190px;
  height: 124px;
  top: 150px;
  left: 210px;
}

.portrait--rect .frame__photo {
  width: 124px;
  height: 72px;
  top: 26px;
}

.portrait--small {
  width: 110px;
  height: 130px;
  top: 160px;
  right: 18px;
  border: 0;
  overflow: visible;
}

.portrait--small .frame__photo {
  width: 52px;
  height: 70px;
  top: 30px;
  object-fit: cover;
}

.portrait--bellatrix {
  width: 125px;
  height: 148px;
  top: 285px;
  left: 270px;
}

.portrait--bellatrix .frame__photo {
  width: 70px;
  height: 84px;
  top: 31px;
  object-fit: cover;
}

.tracking-layout {
  grid-template-columns: 390px minmax(420px, 1fr);
  gap: 34px;
  align-items: start;
}

.tracking-form {
  position: relative;
  z-index: 4;
}

.tracking-gallery {
  position: relative;
  z-index: 2;
  min-height: 550px;
  overflow: visible;
}

.track-portrait {
  pointer-events: none;
}

.track-oval-1 {
  width: 122px;
  height: 146px;
  left: 110px;
  top: 0;
}

.track-oval-1 .frame__photo {
  width: 68px;
  height: 84px;
  top: 30px;
}

.track-rect-1 {
  width: 140px;
  height: 140px;
  right: 30px;
  top: 8px;
}

.track-rect-1 .frame__photo {
  width: 82px;
  height: 86px;
  top: 27px;
}

.track-rect-2 {
  width: 130px;
  height: 136px;
  left: 20px;
  top: 178px;
}

.track-rect-2 .frame__photo {
  width: 76px;
  height: 82px;
  top: 28px;
}

.track-rect-3 {
  width: 175px;
  height: 116px;
  left: 180px;
  top: 185px;
}

.track-rect-3 .frame__photo {
  width: 112px;
  height: 68px;
  top: 24px;
}

.track-oval-2 {
  width: 122px;
  height: 146px;
  right: 0;
  top: 178px;
}

.track-oval-2 .frame__photo {
  width: 68px;
  height: 82px;
  top: 31px;
}

.track-oval-3 {
  width: 126px;
  height: 150px;
  left: 240px;
  top: 335px;
}

.track-oval-3 .frame__photo {
  width: 70px;
  height: 86px;
  top: 31px;
}

@media (max-width: 1050px) {
  .cart-layout {
    grid-template-columns: 410px minmax(360px, 1fr);
    gap: 28px;
  }

  .recipient-form {
    margin-top: 420px;
  }

  .portrait--draco-big {
    left: 110px;
  }

  .portrait--rect {
    left: 145px;
  }

  .portrait--small {
    right: 0;
  }

  .portrait--bellatrix {
    left: 190px;
  }

  .tracking-layout {
    grid-template-columns: minmax(330px, 390px) minmax(360px, 1fr);
    gap: 20px;
  }

  .tracking-btn {
    width: 100%;
  }

  .tracking-gallery {
    min-height: 510px;
  }

  .track-oval-1 {
    left: 80px;
  }

  .track-rect-1 {
    right: 15px;
  }

  .track-rect-2 {
    left: 0;
  }

  .track-rect-3 {
    left: 135px;
  }

  .track-oval-2 {
    right: 0;
  }

  .track-oval-3 {
    left: 185px;
  }
}

@media (max-width: 860px) {
  .cart-layout,
  .tracking-layout {
    grid-template-columns: 1fr;
  }

  .cart-right {
    min-height: 620px;
  }

  .recipient-form {
    margin-top: 370px;
  }

  .tracking-gallery {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .calendar {
    width: 100%;
  }

  .calendar-week,
  .calendar-days {
    grid-template-columns: repeat(7, 1fr);
  }

  .tracking-gallery {
    display: none;
  }

  .cart-right {
    min-height: auto;
  }

  .recipient-form {
    margin-top: 30px;
  }

  .portrait {
    display: none;
  }
}
