/* ---------- шрифты (лежат рядом, без внешних сервисов) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-300-normal.woff2") format("woff2"); unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+20BD; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: italic; font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-300-italic.woff2") format("woff2"); unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: italic; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+20BD; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+20BD; }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/jost-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0400-04FF, U+2116, U+20BD; }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E; }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/jost-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0400-04FF, U+2116, U+20BD; }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E; }

/* ---------- цвета и размеры ---------- */
:root {
  --emerald: #1E3A32;
  --emerald-deep: #152A24;
  --gold: #C9A96E;
  --cream: #F1E9DA;
  --wall: #EEDDD3;          /* фон паспортных кадров: ленты «висят» прямо на странице */
  --ink: #1E3A32;
  --ink-soft: #55665F;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- шапка о бренде ---------- */
.brand {
  background: var(--emerald);
  color: var(--cream);
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(2.25rem, 4.5vw, 3.75rem);
}
.brand__logo img {
  width: clamp(15rem, 42vw, 30rem);
  height: auto;
  margin: 0 auto;
}
.brand__what {
  max-width: 19rem;
  margin: clamp(1rem, 2vw, 1.5rem) auto 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(241, 233, 218, 0.82);
  text-wrap: balance;
}
.brand__slogan {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.12;
  color: var(--gold);
}
.brand__slogan span { display: block; }
@media (min-width: 46rem) {
  .brand__what { max-width: none; font-size: 1.0625rem; }
  .brand__slogan span { display: inline; }
}

/* ---------- стена с лентами ---------- */
.wall {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}
.wall__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  text-align: center;
}
.wall__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 46rem) {
  .wall__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- одна лента ---------- */
/* на телефоне ленты идут одна под другой: отделяем их тонкой линией */
@media (max-width: 45.99rem) {
  .wall__grid { gap: 0; }
  .lenta + .lenta {
    margin-top: 2.75rem;
    padding-top: 2.75rem;
    border-top: 1px solid rgba(201, 169, 110, 0.7);
  }
}
.lenta__photos { position: relative; }
.lenta__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 4 / 5;
}
.lenta__track::-webkit-scrollbar { display: none; }
.lenta__track img,
.lenta__track video {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.lenta__arrow {
  position: absolute;
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: -1.375rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--cream);
  box-shadow: 0 2px 10px rgba(21, 42, 36, 0.28);
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s;
}
.lenta__arrow:hover { background: var(--emerald-deep); }
.lenta__arrow svg { width: 1.125rem; height: 1.125rem; stroke-width: 1.75; }
.lenta__arrow--prev { left: 0.625rem; }
.lenta__arrow--next { right: 0.625rem; }
.lenta__arrow[disabled] { opacity: 0; pointer-events: none; }
@media (min-width: 46rem) {
  .lenta__arrow { width: 3.25rem; height: 3.25rem; margin-top: -1.625rem; }
  .lenta__arrow--prev { left: 1rem; }
  .lenta__arrow--next { right: 1rem; }
}

.lenta__replay {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 2rem;
  background: var(--emerald);
  color: var(--cream);
  font-size: 0.9375rem;
  box-shadow: 0 2px 10px rgba(21, 42, 36, 0.28);
  cursor: pointer;
}
.lenta__replay:hover { background: var(--emerald-deep); }

.lenta__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.lenta__dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(30, 58, 50, 0.22);
}
.lenta__dots span.is-on { background: var(--emerald); }

.lenta__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.lenta__name a { color: inherit; text-decoration: none; }
.lenta__name a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.lenta__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.1;
}
.lenta__price {
  font-weight: 500;
  white-space: nowrap;
}
.lenta__sub {
  margin-top: 0.125rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.lenta__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* ---------- кнопки и ссылки ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border: 1px solid var(--emerald);
  border-radius: 2px;
  background: var(--emerald);
  color: var(--cream);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--emerald-deep); }
.link {
  display: inline-block;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.link:hover { text-decoration-color: var(--emerald); }

/* ---------- страница одной чеколетты ---------- */
[hidden] { display: none !important; }

.bar {
  background: var(--emerald);
  padding: 0.875rem var(--gutter);
  text-align: center;
}
.bar__logo { display: inline-block; }
.bar__logo img { width: clamp(8.5rem, 22vw, 11rem); height: auto; }

.item {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1rem var(--gutter) clamp(3rem, 7vw, 6rem);
}
.item__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
}
.item__back svg { width: 0.8rem; height: 0.8rem; }
.item__back:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.3em; }

.item__cols { margin-top: 0.5rem; }
.item__info { margin-top: 1.5rem; }
@media (min-width: 46rem) {
  .item__cols {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
    margin-top: 1rem;
  }
  .item__gallery { position: sticky; top: 1.5rem; }
  .item__info { margin-top: 0; padding-top: 0.5rem; }
}

.item__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 1;
}
.item__sub { margin-top: 0.5rem; color: var(--ink-soft); }
.item__price { margin-top: 1.25rem; font-size: 1.375rem; font-weight: 500; }
.item__order { width: 100%; margin-top: 1rem; padding-top: 0.95rem; padding-bottom: 0.95rem; }
@media (min-width: 46rem) { .item__order { width: auto; min-width: 14rem; } }
.item__text { max-width: 32rem; margin-top: 1.75rem; }

.glasses {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 169, 110, 0.7);
}
.glasses__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
}
.glasses__text { max-width: 32rem; margin-top: 0.75rem; }
.glasses__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.glasses__photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* пока кадр один, не растягиваем его на всю ширину */
.glasses__photos img:only-child { grid-column: span 2; }

.others {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(201, 169, 110, 0.7);
}
.others__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.1;
  text-align: center;
}
.others__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 46rem) { .others__grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.other { display: block; color: var(--ink); text-decoration: none; }
.other img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.other__name {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.15;
}
.other__sub { display: block; margin-top: 0.125rem; font-size: 0.875rem; line-height: 1.35; color: var(--ink-soft); }
.other:hover .other__name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* ---------- подвал ---------- */
.foot {
  background: var(--emerald);
  color: rgba(241, 233, 218, 0.86);
  text-align: center;
  padding: 2.5rem var(--gutter);
  font-size: 0.9375rem;
}
.foot p + p { margin-top: 0.5rem; }
.foot a { color: var(--gold); text-underline-offset: 0.3em; }

/* ---------- окно заказа ---------- */
.order {
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
}
.order::backdrop { background: rgba(21, 42, 36, 0.6); }
.order__form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 5vw, 2.25rem) 2rem;
}
.order__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.order__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.125rem;
  line-height: 1.1;
  padding-right: 2rem;
}
.order__price { margin-top: -0.5rem; color: var(--ink-soft); }
.field { display: grid; gap: 0.3rem; }
.field span { font-size: 0.9375rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(30, 58, 50, 0.3);
  border-radius: 2px;
  background: #FBF7EF;
}
.field textarea { resize: vertical; }
.order__note { min-height: 1.5em; font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- короткое сообщение внизу экрана ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  background: var(--emerald-deep);
  color: var(--cream);
  font-size: 0.9375rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Order consent uses the existing storefront typography. */
.order__consent { display:flex; align-items:flex-start; gap:.6rem; font-size:.85rem; line-height:1.4; }
.order__consent[hidden] { display:none; }
.order__consent input { flex:none; margin-top:.2rem; }
.order__consent a { color:inherit; text-decoration:underline; }

/* Brand social links, no third-party scripts or embedded trackers. */
.foot__social { display:flex; justify-content:center; flex-wrap:wrap; gap:.4rem 1.25rem; margin-top:.5rem; }
.foot__social a { display:inline-flex; align-items:center; gap:.45rem; min-height:44px; text-decoration:none; }
.foot__social a:hover,.foot__social a:focus-visible { text-decoration:underline; }
.foot__social a:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
