/* =========================================================
   MR SHRIMP — общий каркас публичной витрины
   Токены палитры, типографика, кнопки, шапка, футер, модалка.
   Страничные стили (лендинг и т.д.) — в отдельных файлах.
   Палитра строго по бренд-гайду.
   ========================================================= */
:root {
  --bg-primary: #012639;
  --bg-alt: #002336;
  --text-primary: #E4D6B9;
  --text-light: #E8DCC4;
  --accent-warm: #F35E4A;   /* ТОЛЬКО CTA */
  --accent-cool: #0C7087;   /* рамки, иконки, UI */
  --line-subtle: rgba(228, 214, 185, 0.15);

  --accent-cool-soft: rgba(12, 112, 135, 0.14);
  --accent-cool-line: rgba(12, 112, 135, 0.55);
  --text-muted: rgba(228, 214, 185, 0.62);

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 74px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::selection { background: var(--accent-cool); color: var(--text-light); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }

/* Заголовок секции (kicker + title) */
.kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cool);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--accent-cool-line);
  display: inline-block;
}
.section-title {
  font-size: clamp(30px, 4.6vw, 50px);
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.section-lead {
  margin-top: 22px;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 18px;
}

/* Reveal-анимация (сдержанная) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(.16,.7,.3,1), transform 0.8s cubic-bezier(.16,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Кнопки */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 16px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  text-align: center;
}
/* Красная CTA — только заказ/выбор набора */
.btn-cta {
  background: var(--accent-warm);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(243, 94, 74, 0.65);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(243, 94, 74, 0.8); }
.btn-cta:active { transform: translateY(0); }
.btn-cta:disabled {
  background: rgba(243, 94, 74, 0.28);
  color: rgba(255,255,255,0.55);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
/* Вторичная — бирюзовая обводка */
.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--accent-cool-line);
}
.btn-ghost:hover { border-color: var(--accent-cool); background: var(--accent-cool-soft); transform: translateY(-2px); }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(1, 38, 57, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-subtle);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.logo-img { height: 24px; width: auto; display: block; }
.footer-brand .logo-img { height: 28px; }
.logo-mark {
  width: 40px; height: 40px;
  border: 1px solid var(--accent-cool-line);
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent-cool);
  flex-shrink: 0;
}
.logo-mark svg { width: 26px; height: 26px; }
.logo-text { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: 0.05em; color: var(--text-light); }
.footer-brand .logo-text { font-size: 24px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text-light); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent-cool);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }

.social-links { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--text-light);
  /* Фон и курсор явно: корзина — <button>, без сброса вылезает белый UA-фон. */
  background: transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.icon-btn:hover { border-color: var(--accent-cool); color: var(--accent-cool); background: var(--accent-cool-soft); transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span { width: 20px; height: 1.6px; background: var(--text-light); transition: .3s; border-radius: 2px; }
.burger.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: rgba(1, 38, 57, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-subtle);
  padding: 14px 26px 28px;
  z-index: 99;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu > a { display: block; padding: 15px 0; font-size: 19px; font-family: var(--font-serif); border-bottom: 1px solid var(--line-subtle); }
.mobile-menu .mm-social { display: flex; gap: 12px; margin-top: 20px; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line-subtle); padding: 66px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-subtle); }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; max-width: 38ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-cool); margin-bottom: 18px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; color: var(--text-muted); font-size: 15px; margin-bottom: 12px; transition: color .2s ease; }
.footer-col a:hover { color: var(--text-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 28px; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-muted); font-size: 13.5px; }
.footer-bottom .fb-social { display: flex; gap: 10px; }

/* Modal — политика */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 12, 20, 0.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 26px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-primary);
  border: 1px solid var(--accent-cool-line);
  border-radius: var(--radius);
  max-width: 760px; width: 100%;
  max-height: 86vh;
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(.98); transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 30px 34px 20px; border-bottom: 1px solid var(--line-subtle); }
.modal-head h3 { font-size: 26px; }
.modal-close { width: 40px; height: 40px; border: 1px solid var(--line-subtle); border-radius: 10px; background: none; cursor: pointer; color: var(--text-light); display: grid; place-items: center; flex-shrink: 0; transition: .2s; }
.modal-close:hover { border-color: var(--accent-warm); color: var(--accent-warm); }
.modal-body { padding: 26px 34px 34px; overflow-y: auto; }
.modal-body h4 { font-family: var(--font-sans); font-size: 14px; letter-spacing: 0.04em; color: var(--accent-cool); text-transform: uppercase; margin: 24px 0 8px; font-weight: 700; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 8px; }
.modal-note { margin-top: 26px; padding: 14px 16px; border: 1px dashed var(--accent-cool-line); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-muted); }

/* Адаптив каркаса */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .social-links { display: none; }
  .burger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .modal-head, .modal-body { padding-left: 22px; padding-right: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
