/* ══════════════════════════════════════════════════════════════
   ДАВАТНОМА · публичный сайт (светлая тема)
   Инверсия минимализма dariwithlove: чистый белый фон, чёрный
   текст, реалистичные телефоны-мокапы, serif-заголовки капсом.
   Один тёмный контрастный блок + брендовый акцент бордо.
   Дисплей: Playfair Display · Интерфейс: Manrope
   ══════════════════════════════════════════════════════════════ */

:root {
  --white:   #ffffff;
  --paper:   #f7f4ef;   /* тёплый фон секций */
  --ink:     #14110f;   /* основной текст (почти чёрный) */
  --ink-2:   #2c2724;
  --dark:    #100d0c;   /* тёмный контрастный блок */
  --gray:    #6c6663;   /* приглушённый на светлом */
  --gray-lt: #b7b0aa;   /* приглушённый на тёмном */
  --line:    rgba(20,17,15,0.12);
  --line-d:  rgba(255,255,255,0.14);

  --wine:    #7a0c1e;   /* акцент */
  --wine-lit:#9a1327;

  --display: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ═══════════════ Навигация ═══════════════ */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.85rem clamp(1.1rem, 4vw, 3rem);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; }
.nav__wordmark { height: clamp(24px, 4vw, 30px); width: auto; }
.nav__menu { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); }
.nav__menu a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2);
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav__menu a:hover { color: var(--wine); border-bottom-color: var(--wine); }
@media (max-width: 820px) { .nav__menu { display: none; } }
.nav__side { display: flex; align-items: center; gap: 1.1rem; }
.nav__lang { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.76rem; font-weight: 800; }
.nav__lang a { color: var(--gray); }
.nav__lang a.is-active { color: var(--ink); }
.nav__lang span { color: var(--gray-lt); }
.nav__admin { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }
.nav__admin:hover { color: var(--wine); }

/* ═══════════════ Герой ═══════════════ */
.hero {
  min-height: calc(100vh - 60px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1.4rem;
  padding: clamp(3rem, 8vw, 6rem) 1.4rem clamp(4rem, 9vw, 7rem);
}
.hero__wordmark { margin: 0; width: 100%; max-width: clamp(280px, 62vw, 640px); }
.hero__wordmark img { width: 100%; height: auto; }
.hero__sub {
  max-width: 30rem; margin: 0.2rem 0 0; color: var(--gray);
  font-size: clamp(0.98rem, 2.2vw, 1.12rem); font-weight: 400; line-height: 1.65;
}
.hero__cta {
  margin-top: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 15rem; padding: 1.05rem 2.2rem;
  background: var(--ink); color: var(--white);
  font-weight: 700; font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero__cta:hover { background: var(--wine); transform: translateY(-2px); }

/* ═══════════════ Бегущая строка ═══════════════ */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--wine); color: var(--white);
  padding: 0.7rem 0;
}
.marquee__track { display: inline-flex; align-items: center; gap: 1.4rem; animation: slide 32s linear infinite; }
.marquee__track span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.marquee__track .sep { opacity: 0.55; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════ Каталог ═══════════════ */
.shop {
  max-width: 1320px; margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.1rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
}
.shop__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.shop__eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.34em; text-transform: uppercase; color: var(--wine); margin: 0; }
.shop__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.05; margin: 0.7rem 0 0;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink);
}
.shop__count { color: var(--gray); font-size: 0.86rem; letter-spacing: 0.06em; margin: 0.7rem 0 0; }

/* Табы-фильтр */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.8rem; margin: 0 0 clamp(2.4rem, 5vw, 3.6rem); }
.tab {
  position: relative; background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray); padding: 0.4rem 0; transition: color 0.25s var(--ease);
}
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--wine); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--wine); }
.tab.is-active::after { transform: scaleX(1); }

/* Кнопка «Показать все» */
.shop__more { text-align: center; margin-top: clamp(2.6rem, 5vw, 3.6rem); }
.shop__more[hidden] { display: none; }
.shop__more .btn { padding: 1.05rem 2.6rem; font-size: 0.8rem; }

/* Сетка карточек */
.grid { display: grid; grid-template-columns: 1fr; gap: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.item { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Телефон-мокап (тёмный корпус на белом) */
.item__phone {
  position: relative; display: block;
  width: 100%; max-width: 250px; aspect-ratio: 100 / 206;
  background: linear-gradient(150deg, #2a2a2c 0%, #111113 50%, #050506 100%);
  border-radius: 40px; padding: 9px;
  box-shadow: 0 40px 70px -34px rgba(20,17,15,0.5), inset 0 0 0 1px rgba(255,255,255,0.06), inset 0 2px 0 rgba(255,255,255,0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.item__phone::before,
.item__phone::after {
  content: ''; position: absolute; background: #1a1a1c; border-radius: 3px; z-index: 1;
}
.item__phone::before { left: -2px; top: 27%; width: 3px; height: 8%; box-shadow: 0 22px 0 #1a1a1c, 0 42px 0 #1a1a1c; }
.item__phone::after  { right: -2px; top: 32%; width: 3px; height: 13%; }
.item__notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 15px; background: #050506; border-radius: 999px; z-index: 4;
}
.item__screen {
  position: relative; display: block; height: 100%; overflow: hidden;
  border-radius: 31px; background: #17141a;
}
.item__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.8s var(--ease); }
.item__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 3rem; color: rgba(255,255,255,0.4); }
.item__badge {
  position: absolute; top: 14px; left: 0; z-index: 4;
  background: var(--ink); color: var(--white);
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.16em;
  padding: 0.24rem 0.6rem;
}
.item__live {
  position: absolute; top: 13px; right: 14px; z-index: 4;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.24rem 0.55rem; border-radius: 999px;
  background: var(--wine); color: var(--white);
  font-size: 0.5rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
}
.item__live .pulse { width: 5px; height: 5px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); } 70% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

@media (hover: hover) {
  .item:hover .item__phone { transform: translateY(-10px) scale(1.02); box-shadow: 0 56px 84px -36px rgba(20,17,15,0.55), inset 0 0 0 1px rgba(255,255,255,0.1); }
  .item:hover .item__screen img { transform: scale(1.05); }
}

.item__body { margin-top: 1.5rem; width: 100%; }
.item__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.35rem); text-transform: uppercase; letter-spacing: 0.03em; margin: 0; line-height: 1.2; color: var(--ink); }
.item__kind { color: var(--gray); font-size: 0.8rem; letter-spacing: 0.04em; margin: 0.5rem 0 0; }
.item__actions { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.1rem; }

/* ═══════════════ Кнопки ═══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.72rem 1.2rem; cursor: pointer; border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); background: rgba(20,17,15,0.04); }
.btn-fill { background: var(--ink); color: var(--white); }
.btn-fill:hover { background: var(--wine); transform: translateY(-2px); }
.btn-dark { background: var(--white); color: var(--ink); padding: 1rem 2rem; letter-spacing: 0.12em; }
.btn-dark:hover { background: var(--wine); color: var(--white); transform: translateY(-2px); }

/* ═══════════════ Пусто ═══════════════ */
.empty { text-align: center; padding: 4rem 1rem; color: var(--gray); }
.empty h3 { font-family: var(--display); font-weight: 600; font-size: 1.8rem; color: var(--ink); margin: 0 0 0.5rem; text-transform: uppercase; }

/* ═══════════════ Именные приглашения (тёмный контрастный блок) ═══════════════ */
.named { background: var(--dark); color: var(--white); padding: clamp(4rem, 9vw, 7rem) 1.4rem; }
.named__inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.named__eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; color: var(--wine-lit); margin: 0; }
.named__title { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; text-transform: uppercase; letter-spacing: 0.02em; margin: 1rem 0 0; color: var(--white); }
.named__text { color: var(--gray-lt); font-size: 1.04rem; line-height: 1.75; margin: 1.2rem auto 2rem; max-width: 36rem; }

/* ═══════════════ Подвал ═══════════════ */
.foot { text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 1.4rem 2.2rem; border-top: 1px solid var(--line); }
.foot__brand { display: inline-block; }
.foot__wordmark { height: clamp(30px, 5vw, 38px); width: auto; margin: 0 auto; }
.foot__tag { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.2rem; color: var(--gray); margin: 1rem 0 0; }
.foot__social { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 1.6rem 0 0; font-size: 0.86rem; font-weight: 600; }
.foot__social a { color: var(--ink-2); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.foot__social a:hover { color: var(--wine); border-bottom-color: var(--wine); }
.foot__social span { color: var(--gray-lt); }
.foot__bottom {
  max-width: 1320px; margin: 2.4rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--gray); font-size: 0.76rem; letter-spacing: 0.04em;
}
.foot__admin { color: var(--gray); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.foot__admin:hover { color: var(--wine); }

/* ═══════════════ Появление ═══════════════ */
html.js .reveal { opacity: 0; transform: translateY(24px); }
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
}
