:root {
  --bg: #f7f0e8;
  --bg-soft: #fffaf5;
  --panel: rgba(255, 250, 245, 0.7);
  --text: #2b1409;
  --muted: #715546;
  --line: rgba(77, 40, 21, 0.12);
  --brown: #3b1d10;
  --brown-soft: #5c3423;
  --accent: #bc6418;
  --accent-light: #f3cb72;
  --pink: #d65188;
  --shadow: 0 18px 45px rgba(67, 31, 10, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(243, 203, 114, 0.35), transparent 26%),
    radial-gradient(circle at top right, rgba(214, 81, 136, 0.12), transparent 18%),
    linear-gradient(180deg, #fcf7f1 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero,
.section,
.footer {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 22px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(188, 100, 24, 0.12), transparent 68%);
}

.hero__top,
.hero__content,
.section__heading,
.gift-layout,
.footer {
  display: flex;
  gap: 24px;
}

.hero__top,
.section__heading,
.footer {
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand__logo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffdf9 0%, #f3e3d6 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(77, 40, 21, 0.08);
}

.brand__logo svg {
  width: 82px;
  height: 82px;
}

.brand__logo img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 0.95;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.9rem;
}

.hero__contact,
.footer__phone {
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(59, 29, 16, 0.12);
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.56);
  font-weight: 600;
}

.hero__content {
  display: flex;
  margin-top: 14px;
  align-items: center;
  gap: 0;
}

.hero__text,
.info-card,
.category-card,
.photo-slot {
  border-radius: 28px;
}

.hero__text {
  min-width: 0;
  max-width: 760px;
  padding: 6px 0 24px;
}

.hero__lead {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 2.15vw, 2rem);
  line-height: 1.18;
  max-width: none;
  text-wrap: unset;
}

.hero__lead span {
  display: block;
  white-space: nowrap;
}

.hero__copy,
.gift-copy p,
.category-card__copy,
.info-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.hero__copy {
  max-width: 34ch;
  margin: 18px 0 0;
  font-size: 0.9rem;
  text-wrap: pretty;
}

.hero__copy span {
  display: block;
  white-space: nowrap;
}

.hero__actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
}

.button--primary {
  background: var(--brown);
  color: #fff7f0;
}

.button--ghost {
  border: 1px solid rgba(59, 29, 16, 0.14);
  background: rgba(255, 255, 255, 0.5);
}

.button--telegram {
  background: #8f5a37;
  color: #fff8f1;
}

.section,
.footer {
  margin-top: 22px;
  padding: 28px;
}

.catalog-grid,
.terms-grid {
  display: grid;
  gap: 18px;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.section__heading--right {
  justify-content: flex-start;
  text-align: left;
}

.category-card,
.info-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(77, 40, 21, 0.08);
}

.category-card__body,
.info-card {
  padding: 20px;
}

.photo-slot {
  min-height: 250px;
  padding: 0;
  display: flex;
  align-items: end;
  background: transparent;
  color: rgba(255, 248, 240, 0.88);
}

.category-card .photo-slot {
  min-height: unset;
  aspect-ratio: 4 / 5;
}

.photo-slot span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.12);
  border: 1px solid rgba(255, 250, 245, 0.15);
  font-size: 0.9rem;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.photo-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.photo-stack img {
  position: absolute;
  inset: 0;
  animation: swapFrames 4s infinite ease-in-out;
}

.photo-stack img:nth-child(2) {
  animation-delay: 2s;
}

.photo-stack--catalog img {
  animation-duration: 4s;
}

.photo-stack--catalog img:nth-child(2) {
  animation-delay: 2s;
}

.photo-stack--triple img {
  animation: swapFramesTriple 4.5s infinite ease-in-out;
}

.photo-stack--catalog.photo-stack--triple img {
  animation-duration: 6s;
}

.photo-stack--triple img:nth-child(2) {
  animation-delay: 1.5s;
}

.photo-stack--catalog.photo-stack--triple img:nth-child(2) {
  animation-delay: 2s;
}

.photo-stack--triple img:nth-child(3) {
  animation-delay: 3s;
}

.photo-stack--catalog.photo-stack--triple img:nth-child(3) {
  animation-delay: 4s;
}

.option-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.option-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(247, 240, 232, 0.88);
  font-size: 0.96rem;
}

.price {
  margin: 18px 0 0;
  font-weight: 700;
  color: var(--brown);
}

.section--accent {
  background:
    radial-gradient(circle at top right, rgba(214, 81, 136, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.88), rgba(250, 241, 233, 0.92));
}

.gift-carousel {
  margin-top: 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.gift-item {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(77, 40, 21, 0.08);
  background: rgba(255, 255, 255, 0.52);
  scroll-snap-align: start;
}

.gift-item .photo-slot {
  min-height: unset;
  aspect-ratio: 4 / 5;
}

.gift-item__body {
  padding: 16px;
}

.gift-item__body .option-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.gift-item__body .option-row strong {
  display: block;
}

@keyframes swapFrames {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes swapFramesTriple {
  0%,
  28% {
    opacity: 1;
  }
  33%,
  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.terms-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.footer {
  background: linear-gradient(135deg, #2b1409 0%, #4b2717 100%);
  color: #fff8f1;
}

.footer .eyebrow {
  color: rgba(255, 248, 241, 0.72);
}

.footer__legal,
.footer__owner {
  margin: 10px 0 0;
  color: rgba(255, 248, 241, 0.82);
  font-size: 0.92rem;
  line-height: 1.4;
}

.footer__owner {
  margin-top: 4px;
}

@media (max-width: 960px) {
  .hero__content,
  .catalog-grid,
  .terms-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .gift-carousel {
    grid-auto-columns: minmax(220px, 76vw);
  }

  .hero__text {
    min-width: 0;
    max-width: none;
  }

  .hero__lead span {
    white-space: normal;
  }

  .hero__copy span {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding: 14px 0 28px;
  }

  .hero,
  .section,
  .footer {
    padding: 20px;
    border-radius: 24px;
  }

  .hero__top,
  .section__heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    align-items: flex-start;
  }

  .brand__logo {
    width: 76px;
    height: 76px;
  }

  .brand__logo svg {
    width: 68px;
    height: 68px;
  }

  .hero__lead {
    max-width: none;
  }

  .photo-slot,
  .photo-slot--large {
    min-height: 220px;
  }
}
