*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:focus, :focus-visible { outline: none; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.gate.is-open { display: none; }

.gate-input {
  width: 190px;
  padding: 13px 18px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  text-align: center;
  letter-spacing: .35em;
  outline: none;
  transition: border-color 200ms ease;
}

.gate-input:focus { border-color: #111; }

.gate.is-wrong .gate-input {
  border-color: #e23b3b;
  animation: gate-shake 320ms ease;
}

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

:root {
  --glow-a: #6c7480;
  --glow-b: #2b2f36;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html, body {
  height: 100%;
  background: #17191d;
  font-family: Inter, system-ui, sans-serif;
  color: #fff;
  overflow: hidden;
}

.glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 90% at 12% 0%, var(--glow-a) 0%, transparent 62%),
    linear-gradient(150deg, var(--glow-b) 0%, #101216 100%);
  transition: background 1150ms cubic-bezier(.5, .05, .25, 1);
  z-index: 0;
}

.card {
  position: absolute;
  inset: 26px;
  border-radius: 26px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .05);
}

.scene { position: absolute; inset: 0; }

.scene-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1150ms cubic-bezier(.5, .05, .25, 1);
}

.scene-bg.is-on { opacity: 1; }

.scene-tint {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 55%, transparent 30%, rgba(0, 0, 0, .38) 100%);
}

.top {
  position: absolute;
  top: 22px;
  left: 30px;
  right: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 4;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  padding-top: 6px;
}

.brand-mark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
}

.brand-name {
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .07);
}

.nav-item {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .09em;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  white-space: nowrap;
  transition: color 250ms, background 250ms;
}

.nav-item:hover { color: #fff; }

.nav-item.is-active {
  background: #fff;
  color: #14161a;
  font-weight: 700;
}

.tools { display: flex; gap: 9px; }

.tool { position: relative; }

.cart-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e23b3b;
  box-shadow: 0 0 0 2px rgba(20, 22, 26, .9);
  opacity: 0;
  transform: scale(.3);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}

.tool-cart.has-items .cart-dot {
  opacity: 1;
  transform: scale(1);
}

.tool, .arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background 250ms, transform 250ms var(--ease);
}

.tool:hover, .arrow:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

.tool svg, .arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.arrows {
  position: absolute;
  top: 138px;
  left: 30px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.arrow:active { transform: scale(.92); }

.intro {
  position: absolute;
  top: 178px;
  left: 30px;
  width: 380px;
  z-index: 3;
}

.title {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.025em;
}

.lead {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .68);
  max-width: 330px;
}

.stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.stage-light {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, transparent 65%);
  opacity: .9;
}

.shadow {
  position: absolute;
  left: 50%;
  top: calc(50% + 226px);
  width: 190px;
  height: 30px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 38%, transparent 70%);
  filter: blur(7px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
  animation: shadowBreath 6s ease-in-out infinite;
}

/* тень дышит вместе с парением: предмет внизу -> тень больше, вверху -> меньше */
@keyframes shadowBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(.8); opacity: .68; }
}

.shadow.is-gone {
  animation: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.55);
  transition: opacity 380ms linear, transform 380ms ease-in;
}

.product {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 448px;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .55));
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.product.is-idle { animation: float 6s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 12px)); }
}

.product.is-out {
  transition: transform 1150ms cubic-bezier(.5, .05, .25, 1), opacity 580ms linear;
}

.product.is-in {
  transition: transform 1150ms cubic-bezier(.5, .05, .25, 1), opacity 520ms ease-out;
}

.buy {
  position: absolute;
  right: 42px;
  top: 268px;
  width: 300px;
  text-align: right;
  z-index: 3;
}

.price { line-height: 1; }

.price-now {
  display: block;
  font-size: 50px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.price-old {
  display: inline-block;
  margin-top: 8px;
  font-size: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, .4);
  text-decoration: line-through;
}

.price.is-swap { animation: swap 800ms var(--ease); }

.intro.is-swap .title,
.intro.is-swap .lead { animation: swap 800ms var(--ease); }

@keyframes swap {
  0% { opacity: 1; transform: translateY(0); }
  45% { opacity: 0; transform: translateY(-10px); }
  46% { transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.buy-btn {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  min-width: 169px;
  padding: 14px 29px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #14161a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  z-index: 3;
  transition: background 320ms var(--ease), color 320ms var(--ease),
              border-color 320ms var(--ease), transform 300ms var(--ease),
              box-shadow 300ms var(--ease);
}

.buy-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .7);
}

.buy-btn:active { transform: translateX(-50%) scale(.96); }

.buy-btn.is-added {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.buy-btn-text { display: inline-block; }

.buy-btn.is-swap .buy-btn-text { animation: swap 420ms var(--ease); }

.social {
  position: absolute;
  left: 30px;
  bottom: 34px;
  display: flex;
  gap: 16px;
  z-index: 3;
  color: rgba(255, 255, 255, .55);
}

.social a { color: inherit; display: grid; place-items: center; transition: color 250ms, transform 250ms var(--ease); }
.social a:hover { color: #fff; transform: translateY(-2px); }

.peek {
  position: absolute;
  right: 30px;
  bottom: 22px;
  width: 97px;
  height: 110px;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 3;
  transition: transform 350ms var(--ease);
}

.peek:hover { transform: translateY(-4px) scale(1.04); }

.peek img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5));
  opacity: 0;
  transform: scale(.6) translateY(14px);
  transition: opacity 1150ms cubic-bezier(.5, .05, .25, 1), transform 1150ms cubic-bezier(.5, .05, .25, 1);
}

.peek img.is-on {
  opacity: .95;
  transform: scale(1) translateY(0);
}

.peek-shadow {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 69px;
  height: 13px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, .45) 0%, transparent 70%);
  filter: blur(3px);
}

.is-busy .arrow, .is-busy .peek { pointer-events: none; }

.gallery-btn {
  position: absolute;
  left: 583px;
  top: 583px;
  width: 34px;
  height: 34px;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  cursor: pointer;
  /* гелевое стекло: полупрозрачная заливка + блик сверху */
  background:
    radial-gradient(120% 100% at 30% 22%, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .05) 55%, rgba(255, 255, 255, .02) 100%);
  backdrop-filter: blur(9px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .45),
    inset 0 -6px 10px rgba(0, 0, 0, .25),
    0 10px 24px -8px rgba(0, 0, 0, .6);
  transition: transform 300ms var(--ease), box-shadow 300ms;
}

.gallery-btn::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 12%;
  width: 76%;
  height: 42%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
  opacity: .6;
  pointer-events: none;
}

.gallery-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -6px 10px rgba(0,0,0,.25), 0 14px 30px -8px rgba(0,0,0,.7); }
.gallery-btn:active { transform: scale(.94); }

.gallery-ic {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(255, 255, 255, .92);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soon-label {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
}

.card.is-soon .soon-label { display: block; }

.card.is-soon .intro,
.card.is-soon .buy,
.card.is-soon .buy-btn,
.card.is-soon .arrows,
.card.is-soon .peek,
.card.is-soon .gallery-btn { display: none; }

.card.is-soon .product {
  height: 340px;
  filter: brightness(.72) drop-shadow(0 30px 45px rgba(0, 0, 0, .55));
}

.soon-q {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 22px rgba(0, 0, 0, .55);
  z-index: 3;
  pointer-events: none;
}

.card.is-soon .soon-q { display: block; }

.card.is-soon .stage { transform: translateY(-40px); }
.card.is-soon .shadow { top: calc(50% + 182px); }

.soon-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .2em;
  color: #fff;
}

.soon-sub {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .38em;
  color: rgba(255, 255, 255, .5);
}

.soon-line {
  width: 46px;
  height: 1px;
  margin: 16px auto 0;
  background: rgba(255, 255, 255, .28);
}

@media (max-width: 680px) {
  html, body { overflow: hidden; }

  .card {
    position: fixed;
    inset: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
  }

  .card::-webkit-scrollbar { display: none; }

  .top {
    position: static;
    order: 1;
    width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
    align-items: center;
  }

  .brand { order: 1; padding-top: 0; }
  .tools { order: 2; margin-left: auto; }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar { display: none; }
  .nav-item { flex-shrink: 0; padding: 6px 9px; }

  .arrows { display: none; }

  .social {
    position: static;
    order: 6;
    margin-top: 22px;
    gap: 24px;
  }

  .card.is-soon .stage { transform: none; margin-top: auto; }
  .card.is-soon .product { height: 250px; }

  .card.is-soon .soon-label {
    position: static;
    order: 4;
    transform: none;
    margin-top: calc(22px + 5vh);
    margin-bottom: 18vh;
  }

  .card.is-suit .soon-label { margin-top: calc(22px + 6.67vh); }

  .soon-title { font-size: 24px; }

  .intro {
    position: static;
    order: 2;
    transform: none;
    width: 100%;
    max-width: 340px;
    margin-top: 16px;
    text-align: center;
  }

  .title { font-size: 28px; line-height: 1.1; }

  .lead {
    display: block;
    margin: 10px auto 0;
    font-size: 12px;
    line-height: 1.5;
    max-width: 315px;
  }

  .stage {
    position: relative;
    order: 3;
    inset: auto;
    width: 100%;
    height: 268px;
    flex-shrink: 0;
    margin-top: 14px;
  }

  .stage-light {
    width: 310px;
    height: 310px;
  }

  .product { height: 250px; }

  .shadow {
    top: calc(50% + 126px);
    width: 122px;
    height: 20px;
  }

  .buy {
    position: static;
    order: 4;
    transform: none;
    width: auto;
    margin-top: 50px;
    text-align: center;
  }

  .price-now { font-size: 41px; }
  .price-old { margin-top: 4px; font-size: 22px; }

  .buy-btn {
    position: static;
    order: 5;
    transform: none;
    margin-top: 20px;
    min-width: 172px;
    padding: 14px 31px;
    font-size: 15.4px;
  }

  .buy-btn:hover { transform: translateY(-2px); }
  .buy-btn:active { transform: scale(.96); }

  .peek {
    right: 8px;
    bottom: 150px;
    width: 82px;
    height: 96px;
  }

  .peek-shadow { width: 52px; height: 11px; }

  .gallery-btn {
    left: 58px;
    top: 486px;
    bottom: auto;
    width: 38px;
    height: 38px;
  }

  .gallery-ic { width: 19px; height: 19px; }
}

/* ---------- Корзина ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  animation: cartFade 260ms var(--ease);
}

.cart-overlay[hidden] { display: none; }

@keyframes cartFade { from { opacity: 0; } to { opacity: 1; } }

.cart-panel {
  position: relative;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: #191b1f;
  border-left: 1px solid rgba(255, 255, 255, .07);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .7);
  padding: 30px 28px;
  overflow-y: auto;
  scrollbar-width: none;
  animation: cartSlide 380ms var(--ease);
}

.cart-panel::-webkit-scrollbar { display: none; }

@keyframes cartSlide { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }

.cart-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background 250ms;
}

.cart-close:hover { background: rgba(255, 255, 255, .16); }
.cart-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.cart-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}

.cart-items { display: flex; flex-direction: column; gap: 12px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}

.cart-item-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.cart-item-name { font-size: 13.5px; font-weight: 600; }

.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.cart-item-sum { font-size: 14px; font-weight: 700; white-space: nowrap; }

.cart-qty { display: flex; align-items: center; gap: 12px; }

.qty-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms;
}

.qty-btn:hover { background: rgba(255, 255, 255, .16); }
.qty-val { min-width: 18px; text-align: center; font-size: 14px; font-weight: 600; }

.cart-empty { color: rgba(255, 255, 255, .4); font-size: 14px; padding: 30px 0; text-align: center; }

.cart-foot { margin-top: 24px; }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 2px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}

.cart-total-val { font-size: 24px; font-weight: 700; color: #fff; }

.cart-next, .order-submit, .cart-done-close {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #14161a;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform 250ms var(--ease), box-shadow 250ms, opacity 250ms;
}

.cart-next:hover, .order-submit:hover, .cart-done-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .8);
}

.cart-next:disabled { opacity: .3; pointer-events: none; }

.cart-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .6);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 200ms;
}

.cart-back:hover { color: #fff; }
.cart-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.order-form { display: flex; flex-direction: column; gap: 11px; }

.fld {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 200ms, background 200ms;
}

.fld::placeholder { color: rgba(255, 255, 255, .38); }
.fld:focus { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.fld.is-bad { border-color: #e23b3b; }

.contact-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}

.contact-tab {
  flex: 1;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: rgba(255, 255, 255, .6);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 220ms, color 220ms;
}

.contact-tab.is-on { background: #fff; color: #14161a; }

.order-submit { margin-top: 6px; }

.cart-view[data-view="done"] { text-align: center; padding-top: 40px; }

.done-mark {
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  animation: donePop 500ms var(--ease);
}

@keyframes donePop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

.done-mark svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done-text { margin: 10px 0 28px; color: rgba(255, 255, 255, .6); font-size: 14px; }

@media (max-width: 680px) {
  .cart-panel {
    width: 100%;
    border-left: 0;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  }
}

/* ---------- Галерея фото (доп окно поверх сайта, фон не темнеет) ---------- */
.photo-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 34px 18px;
  animation: cartFade 220ms var(--ease);
}

.photo-overlay[hidden] { display: none; }

.photo-window {
  position: relative;
  width: min(440px, 92vw);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #0c0d0f;
  box-shadow: 0 40px 90px -25px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07);
  animation: cartSlide 340ms var(--ease);
}

.photo-strip {
  overflow-y: auto;
  scrollbar-width: none;
}

.photo-strip::-webkit-scrollbar { display: none; }

.photo-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.photo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(20, 22, 26, .6);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background 220ms;
}

.photo-close:hover { background: rgba(40, 43, 48, .85); }
.photo-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
