/* ============================================================
   SpLoveArt — дизайн-кит: чёрный #090105 + винно-розовый
   Шрифт Montserrat, неон, стекло, боке
   ============================================================ */

:root {
  --bg: #090105;
  --bg-2: #0d0208;
  --wine-deep: #330615;
  --red: #BA0F34;
  --pink: #FF2D6B;
  --pink-soft: #FF6B9E;
  --ink: #ffffff;
  --muted: #b598a2;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 24px;
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
  --font: 'Montserrat', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}

::selection { background: var(--red); color: #fff; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.section { padding: 96px 0; scroll-margin-top: 84px; position: relative; }

/* Розовая неоновая линия — разделитель секций */
.glowline {
  height: 1px;
  width: min(560px, 82%);
  margin: 0 auto 56px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 107, 0.55), transparent);
  filter: blur(0.5px);
}

/* Акцентные слова */
.accent {
  background: linear-gradient(100deg, var(--pink) 10%, var(--pink-soft) 55%, var(--pink) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
.accent-soft { color: var(--pink-soft); }

/* ---------- Свечение стекла за курсором ---------- */
.glass-glow {
  position: fixed;
  left: 0; top: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(circle, rgba(255, 45, 107, 0.07), rgba(255, 45, 107, 0.02) 45%, transparent 70%);
  filter: blur(8px);
}
body.has-glass .glass-glow { opacity: 1; }

/* ---------- Стеклянные поверхности ---------- */
.constructor__panel,
.order__form,
.order__contacts,
.size-card,
.details__info,
.tile {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 70px -30px rgba(255, 45, 107, 0.25),
    var(--shadow);
}

/* ---------- Заголовки секций ---------- */
.sec-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.sec-head__overline {
  display: inline-block;
  color: var(--pink-soft);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  font-size: 13px;
}
.sec-head__title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  margin-top: 12px;
  letter-spacing: -0.01em;
}
.sec-head__sub { color: var(--muted); margin-top: 12px; line-height: 1.6; font-size: 15px; font-weight: 500; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, filter 0.25s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn__arr { font-weight: 500; transition: transform 0.25s ease; }
.btn:hover .btn__arr { transform: translateX(4px); }

.btn--primary {
  background: linear-gradient(120deg, var(--pink) 0%, var(--red) 100%);
  color: #fff;
  box-shadow:
    0 14px 44px -10px rgba(255, 45, 107, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn--primary:hover::after { left: 120%; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 54px -12px rgba(255, 45, 107, 0.65); }

.btn--outline {
  background: rgba(255, 45, 107, 0.06);
  border: 1.5px solid rgba(255, 45, 107, 0.55);
  color: #fff;
  box-shadow:
    0 0 26px -6px rgba(255, 45, 107, 0.35),
    inset 0 0 20px rgba(255, 45, 107, 0.07);
}
.btn--outline:hover {
  border-color: var(--pink);
  background: rgba(255, 45, 107, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 0 40px -6px rgba(255, 45, 107, 0.55), inset 0 0 26px rgba(255, 45, 107, 0.12);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn--sm { padding: 11px 20px; font-size: 13.5px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 900; padding: 16px 0; transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; }
.header.is-scrolled {
  padding: 10px 0;
  background: rgba(9, 1, 5, 0.6);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo b { color: var(--pink-soft); font-weight: 700; }
.logo__heart { color: var(--pink); display: inline-block; animation: heartbeat 1.8s ease-in-out infinite; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav__link { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 500; font-size: 14.5px; position: relative; transition: color 0.2s; }
.nav__link:hover { color: #fff; }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--pink);
  transition: width 0.25s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
  border: 1.5px solid rgba(255, 45, 107, 0.55);
  background: rgba(255, 45, 107, 0.07);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 0 22px -6px rgba(255, 45, 107, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
  background: rgba(255, 45, 107, 0.14);
  box-shadow: 0 0 34px -6px rgba(255, 45, 107, 0.55);
}

.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: pointer; position: relative; z-index: 1001; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.3s ease, opacity 0.3s ease; }
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 140px 0 0;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% 30%, rgba(186, 15, 52, 0.14), transparent 60%),
    radial-gradient(700px 420px at 8% 90%, rgba(51, 6, 21, 0.55), transparent 60%);
}
.hero__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.bokeh { position: absolute; inset: 0; overflow: hidden; }
.bokeh i {
  position: absolute;
  display: block;
  color: var(--pink);
  opacity: 0.16;
  filter: blur(9px);
  font-size: var(--s, 30px);
  font-style: normal;
  animation: floatHeart var(--t, 9s) ease-in-out infinite alternate;
}
@keyframes floatHeart {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-20px) scale(1.12); }
}

.streak {
  position: absolute;
  height: 2px;
  width: 280px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 107, 0.9), transparent);
  filter: blur(1px);
  opacity: 0.75;
}
.streak::after {
  content: '';
  position: absolute;
  inset: -5px -30%;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 107, 0.5), transparent);
  filter: blur(10px);
}

.hero__inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}
.hero__content { align-self: center; padding-bottom: 40px; }
.hero__title {
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.hero__text { font-size: 16.5px; line-height: 1.65; color: var(--muted); max-width: 38ch; margin: 20px 0 30px; font-weight: 500; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scene { align-self: end; position: relative; display: flex; justify-content: center; }
.hero__glow {
  position: absolute;
  inset: -4% -3% 0;
  background: radial-gradient(52% 46% at 58% 46%, rgba(255, 45, 107, 0.15), transparent 72%);
  filter: blur(26px);
}
.hero__scene img {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  display: block;
  margin: 0 auto;
  animation: bob 9s ease-in-out infinite;
}

.hero__scroll {
  position: absolute;
  left: 5%; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 20px;
  z-index: 3;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero__scroll:hover { color: #fff; border-color: rgba(255, 45, 107, 0.5); }
.hero__scroll span { animation: scrollDot 1.8s ease-in-out infinite; display: block; }

/* ---------- Холст с буквами (движок) ---------- */
.lc-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 7%;
  font-family: var(--font);
  background: linear-gradient(150deg, #f8eef3 0%, #eed9e5 48%, #f5e6ee 78%, #e9d2df 100%);
  border-radius: 10px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -4px 0 rgba(150, 60, 100, 0.14),
    0 36px 70px -24px rgba(0, 0, 0, 0.85),
    0 10px 30px -10px rgba(255, 45, 107, 0.22);
  transition: transform 0.25s ease-out;
}
[data-tilt] { will-change: transform; }

.lc-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(260px 260px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
}
.lc-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.3;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.lc__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--cols, 8), 1fr);
  grid-auto-rows: 1fr;
}
.lc__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
  color: #f4e7ee;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.85),
    1px 1px 0 #c69cb2,
    2px 4px 4px rgba(120, 40, 80, 0.3),
    3px 6px 10px rgba(120, 40, 80, 0.2);
  animation: lcPop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
}
.lc__letter--word {
  color: #c8102e;
  text-shadow:
    -1px -1px 0 rgba(255, 140, 160, 0.4),
    1px 2px 0 #5c0a1a,
    2px 4px 4px rgba(70, 6, 20, 0.55),
    3px 7px 10px rgba(70, 6, 20, 0.3);
}

/* Конструктор-ЛЕГО: буквы — цели перетаскивания */
.lc--interactive .lc__letter { cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.lc--interactive .lc__letter:hover { transform: scale(1.15); }
.lc--interactive .lc__letter.drop-hover {
  transform: scale(1.2);
  box-shadow: inset 0 0 0 3px rgba(255, 45, 107, 0.6), 0 0 18px rgba(255, 45, 107, 0.4);
  border-radius: 8px;
}
.lc--interactive .lc__letter.dragging-cell { opacity: 0.35; }

/* Бегущий блик по холсту конструктора */
.lc-wrap--builder { overflow: hidden; }
.lc-wrap--builder::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.38) 50%, transparent 58%);
  transform: translateX(-140%);
  animation: sheen 7s ease-in-out 2.5s infinite;
  pointer-events: none;
}
@keyframes sheen {
  0% { transform: translateX(-140%); }
  20% { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}

/* ---------- Конструктор ---------- */
.constructor {
  background: linear-gradient(180deg, rgba(51, 6, 21, 0.32), rgba(9, 1, 5, 0.4));
  overflow: hidden;
}
.constructor__photo {
  position: absolute;
  left: 0; right: 0; bottom: -30px;
  height: 46%;
  background-image: url("../img/scene.png");
  background-size: 250%;
  background-position: 20% 74%;
  filter: blur(24px) brightness(0.55) saturate(1.35);
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 72%);
  mask-image: linear-gradient(180deg, transparent, #000 72%);
  pointer-events: none;
}
.constructor .container { position: relative; z-index: 1; }

.constructor__panel { border-radius: 28px; padding: 28px; }
.constructor__cols {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 30px;
  align-items: center;
}

/* Ячейка холста: картон по умолчанию, «Картина» — с 3D-рамкой */
.builder__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
  min-height: 100%;
  justify-content: center;
}
.lc-frame {
  position: relative;
  width: min(380px, 100%);
  z-index: 1;
}
.lc-wrap--builder { width: 100%; }

/* Тень на «полу» под картиной */
.builder__cell.is-framed::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -24px;
  width: 60%; height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.6), transparent 70%);
  filter: blur(12px);
  z-index: 0;
}

/* Картина: реальное фото холста с деревянным подрамником */
.lc-frame.is-framed {
  width: min(560px, 100%);
  aspect-ratio: 1268 / 1241;
  padding: 0;
  border-radius: 0;
  background: url("../img/canvas-frame.png") center / contain no-repeat;
  box-shadow: none;
  transform: none;
  transition: filter 0.4s ease;
  filter: drop-shadow(26px 34px 42px rgba(0, 0, 0, 0.55));
}
.lc-frame.is-framed::before { content: none; }
.lc-frame.is-framed::after { content: none; }
.lc-frame.is-framed:hover {
  filter: drop-shadow(18px 24px 32px rgba(0, 0, 0, 0.5));
}
/* Сетка букв ложится на поверхность холста с его наклоном */
.lc-frame.is-framed .lc-wrap {
  position: absolute;
  left: 22%; top: 9%;
  width: 66%; height: 77%;
  aspect-ratio: auto;
  padding: 4%;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: perspective(1100px) rotateY(27deg);
  overflow: visible;
}
.lc-frame.is-framed .lc__grid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* Появление картины при переключении вида */
.lc-frame.is-framed { animation: frameIn 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.18) both; }
@keyframes frameIn {
  from { opacity: 0; transform: translateY(30px) scale(0.88); }
  to { opacity: 1; transform: none; }
}
.lc-frame.is-framed .lc-wrap::after { content: none; }
.lc-frame.is-framed .lc-wrap--builder::before { content: none; }

/* Лоток с красными буквами */
.tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 62px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 45, 107, 0.05);
  border: 1px dashed rgba(255, 45, 107, 0.4);
}
.tray__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--red));
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 6px 16px -4px rgba(255, 45, 107, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  animation: chipIn 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
}
.tray__chip:hover { transform: translateY(-3px) scale(1.07); }
.tray__chip.dragging { opacity: 0.35; cursor: grabbing; }
.tray__chip.is-selected {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.75), 0 6px 18px -4px rgba(255, 45, 107, 0.65);
  transform: scale(1.1);
}
.tray__hint { align-self: center; font-size: 12.5px; color: var(--muted); padding: 4px; font-weight: 500; }
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

.builder__controls { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label,
.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.inputwrap { position: relative; }
.inputwrap input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.inputwrap input::placeholder { color: rgba(255, 255, 255, 0.3); }
.inputwrap input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 45, 107, 0.15), 0 0 24px -8px rgba(255, 45, 107, 0.5);
}
.inputwrap__clear {
  position: absolute;
  right: 9px; top: 50%;
  width: 30px; height: 30px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.inputwrap__clear:hover { background: rgba(255, 45, 107, 0.25); color: #fff; }

.constructor__hints { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.counter { font-size: 12px; color: var(--muted); font-weight: 500; }
.warn { font-size: 12px; color: var(--pink-soft); font-weight: 600; }
.warn:empty { display: none; }

.seg { display: flex; gap: 4px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; }
.seg__btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.seg__btn.is-active { background: rgba(255, 255, 255, 0.1); color: #fff; }

.constructor__tip { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.constructor__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 45, 107, 0.09);
  border: 1px solid rgba(255, 45, 107, 0.22);
}
.constructor__price span { font-weight: 500; color: var(--muted); font-size: 13.5px; }
.constructor__price b { font-size: 22px; font-weight: 700; color: #fff; }

/* ---------- Детали ---------- */
.details__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
}
.details__info {
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.details__icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--pink);
  background: linear-gradient(160deg, rgba(255, 45, 107, 0.2), rgba(255, 45, 107, 0.04));
  border: 1px solid rgba(255, 45, 107, 0.35);
  box-shadow: 0 0 26px -6px rgba(255, 45, 107, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.details__icon svg { width: 24px; height: 24px; }
.details__title { font-size: 24px; font-weight: 700; line-height: 1.2; }
.details__text { color: var(--muted); font-size: 15px; line-height: 1.65; font-weight: 500; }
.details__info .btn { margin-top: 6px; }

.details__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tile { border-radius: 18px; padding: 12px; }
.tile .lc-wrap { border-radius: 10px; }

/* ---------- Размеры ---------- */
.sizes__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin-inline: auto; }
.size-card {
  position: relative;
  border-radius: 24px;
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.size-card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -28px rgba(0, 0, 0, 0.9), 0 0 60px -24px rgba(255, 45, 107, 0.35); }
.size-card--hit { border-color: rgba(255, 45, 107, 0.5); }
.size-card__badge {
  position: absolute;
  top: -13px; right: 22px;
  background: linear-gradient(120deg, var(--pink), var(--red));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(255, 45, 107, 0.6);
}
.size-card__dim { font-size: 42px; font-weight: 700; color: var(--pink-soft); line-height: 1; letter-spacing: -0.02em; }
.size-card__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.size-card__list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.5; }
.size-card__list li::before { content: '♥'; position: absolute; left: 0; color: var(--pink); }
.size-card__price { font-size: 30px; font-weight: 700; color: #fff; margin-top: 4px; }

/* ---------- Заказ ---------- */
.order {
  background: linear-gradient(180deg, rgba(51, 6, 21, 0.3), rgba(9, 1, 5, 0.35));
}
.order__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.order__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.order__sub { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.65; font-weight: 500; }
.order__contacts {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 20px;
  padding: 22px 24px;
}
.order__contacts a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 15.5px; transition: color 0.2s; }
.order__contacts a:hover { color: var(--pink-soft); }

.order__form {
  border-radius: 26px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.order__form.is-flash { animation: flashForm 1s ease; }

[hidden] { display: none !important; }

.order__preview {
  margin-top: 24px;
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.order__preview .lc-frame,
.order__preview .lc-frame.is-framed { width: 100%; }
.order__preview-empty { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 6px 0; font-weight: 500; }
.order__summary { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.order__summary-type { font-weight: 700; font-size: 15px; }
.order__summary-phrase { color: var(--muted); font-size: 13.5px; line-height: 1.5; font-weight: 500; }

.order__delivery {
  background: rgba(255, 45, 107, 0.07);
  border: 1px solid rgba(255, 45, 107, 0.2);
  border-radius: 14px;
  padding: 10px 14px;
}
.order__delivery b { display: block; font-size: 12px; color: var(--pink-soft); margin-bottom: 3px; }
.order__delivery p { font-size: 12px; color: var(--muted); line-height: 1.5; font-weight: 500; }

.order__total {
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 45, 107, 0.09);
  border: 1px solid rgba(255, 45, 107, 0.22);
}
.order__total-row { display: flex; justify-content: space-between; align-items: baseline; }
.order__total-row span { color: var(--muted); font-weight: 500; font-size: 13px; }
.order__total-row b { font-size: 20px; font-weight: 700; color: #fff; }
.order__total-note { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }

.order__phrase-static {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 45, 107, 0.35);
  background: rgba(255, 45, 107, 0.05);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: #fff;
}

.order__success {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  padding: 34px 8px;
}
.order__success-num { font-size: 26px; font-weight: 700; }
.order__success-num b { color: var(--pink-soft); }
.order__success-text { color: var(--muted); font-size: 14.5px; line-height: 1.6; font-weight: 500; }
.order__success-tg { font-size: 14px; color: var(--muted); font-weight: 500; }
.order__success-tg a { color: var(--pink-soft); font-weight: 600; text-decoration: none; }
.order__again {
  background: none; border: 0; padding: 0;
  color: var(--muted); font-family: var(--font); font-size: 13px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.order__again:hover { color: #fff; }

.field input,
.field select,
.field textarea {
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.28); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 45, 107, 0.14);
}

/* ---------- Футер ---------- */
.footer {
  background: rgba(4, 0, 2, 0.65);
  border-top: 1px solid var(--line);
  color: #f2dfe6;
  padding: 46px 0 22px;
}
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; padding-bottom: 28px; }
.footer__brand p { margin-top: 12px; color: rgba(242, 223, 230, 0.55); font-size: 14px; line-height: 1.6; font-weight: 500; }
.footer__contacts { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer__contacts a { color: rgba(242, 223, 230, 0.85); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s; }
.footer__contacts a:hover { color: var(--pink-soft); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(242, 223, 230, 0.4);
  font-weight: 500;
}

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 24px);
  background: linear-gradient(120deg, var(--pink), var(--red));
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1200;
  box-shadow: 0 18px 44px -12px rgba(255, 45, 107, 0.55);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal-анимации ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Ключевые кадры ---------- */
@keyframes lcPop {
  from { opacity: 0; transform: scale(0.2); }
  60% { opacity: 1; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.22); }
  24% { transform: scale(1); }
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(4px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
@keyframes flashForm {
  0%, 100% { box-shadow: var(--shadow); }
  30% { box-shadow: 0 0 0 4px rgba(255, 45, 107, 0.28), var(--shadow); }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .hero { padding-top: 130px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__content { padding-bottom: 20px; }
  .hero__scene img { width: min(520px, 100%); }
  .constructor__cols { grid-template-columns: 1fr; }
  .details__grid { grid-template-columns: 1fr; }
  .order__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer__contacts { align-items: flex-start; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    top: 70px;
    right: 4%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: rgba(12, 1, 6, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;
  }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 0; }
  .hero__scene img { width: min(400px, 100%); }
  .sizes__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .constructor__panel { padding: 20px; }
  .details__tiles { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(3) { display: none; }
  .glowline { margin-bottom: 40px; }
}

/* ---------- Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
