/* ЭкоРоза — главная страница. Палитра по дизайн-мастерам. */
:root {
  --ink: #2A1720;
  --paper: #FFFDF8;
  --eco: #00624D;
  --brand: #C90062;
  --blush: #F4DCE5;
  --sand: #F5EEE9;
  --muted: #5F4B54;
  --footer-bg: #24141D;
  --footer-accent: #F4B8CE;
  --content: 1312px;
  --gutter: 64px;
  --radius-card: 28px;
  --radius-panel: 36px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, "Helvetica Neue", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--eco);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Верхняя полоса ---------- */
.topbar {
  background: var(--eco);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--gutter);
  font-size: 14px;
  font-weight: 600;
}
.topbar-phone { font-weight: 700; white-space: nowrap; }

/* ---------- Шапка ---------- */
.site-header { background: #fff; border-bottom: 1px solid #F0E7E0; }
.header-inner {
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 16px var(--gutter);
  min-height: 112px;
}
.logo-link { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.logo-img { width: 168px; height: 56px; object-fit: contain; }
.logo-text {
  font-size: 20px; font-weight: 700; letter-spacing: 2px;
  display: none;
}
.desktop-nav { margin-left: auto; }
.nav-list { display: flex; gap: 34px; }
.desktop-nav .nav-list a {
  font-size: 14px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--ink);
}
.desktop-nav .nav-list a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.cart-btn {
  background: var(--brand); color: #fff;
  border: 0; border-radius: 24px;
  padding: 12px 22px;
  font-size: 15px; font-weight: 700; font-family: var(--sans);
  cursor: pointer;
  transition: background 0.15s ease;
}
.cart-btn:hover { background: #A80050; }
.header-phone { font-size: 15px; font-weight: 700; white-space: nowrap; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 12px;
  cursor: pointer;
}
.hamburger-line { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* ---------- Мобильное меню: закрыто за пределами экрана ---------- */
.mobile-menu {
  position: fixed;
  inset: 0 auto 0 auto;
  left: 0;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: 0 0 40px rgba(42, 23, 32, 0.25);
  z-index: 70;
  padding: 20px;
  transform: translateX(-105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, visibility 0.22s ease;
}
body.menu-open .mobile-menu {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.mobile-menu-title { font-size: 16px; font-weight: 700; letter-spacing: 2px; color: var(--brand); }
.mobile-menu-close {
  width: 44px; height: 44px;
  border: 0; background: var(--blush);
  font-size: 26px; line-height: 1; color: var(--ink);
  border-radius: 12px; cursor: pointer;
}
.mobile-nav-list { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-list a {
  display: block;
  padding: 12px 10px;
  font-size: 17px; font-weight: 700;
  border-radius: 10px;
}
.mobile-nav-list a:hover { background: var(--sand); }
.mobile-menu-phone {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 18px;
  background: var(--brand); color: #fff;
  font-weight: 700;
  border-radius: 24px;
}
body.menu-open { overflow: hidden; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 29px;
  padding: 16px 30px;
  font-size: 17px; font-weight: 700; font-family: var(--sans);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #A80050; }
.btn-outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--eco); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 32px var(--gutter);
  background: linear-gradient(100deg, #FFEAF3 0%, #FFF7E9 100%);
  border-radius: var(--radius-panel);
  padding: 68px 52px 110px;
  overflow: hidden;
}
.hero-inner { max-width: 620px; position: relative; z-index: 2; }
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
  color: var(--eco);
  margin-bottom: 18px;
}
.eyebrow--pink { color: var(--brand); }
.hero h1 {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-subtitle { font-size: 21px; color: var(--muted); line-height: 1.5; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-photos { position: absolute; right: 40px; top: 36px; width: 620px; height: 620px; z-index: 1; }
.hero-photo {
  position: absolute;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 12px 36px rgba(64, 23, 38, 0.18);
  background: #fff;
}
.hero-photo--main { width: 340px; height: 456px; right: 180px; top: 0; }
.hero-photo--second { width: 250px; height: 338px; right: 0; top: 148px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; pointer-events: none; }
.hero-wave svg { width: 100%; height: 100%; display: block; }
.hero-promo {
  position: absolute;
  right: 52px;
  bottom: 44px;
  width: 540px;
  background: #fff;
  border-radius: 20px;
  padding: 20px 32px;
  box-shadow: 0 12px 36px rgba(64, 23, 38, 0.14);
  z-index: 3;
}
.promo-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; color: var(--eco); margin-bottom: 6px; }
.promo-text { font-size: 25px; font-weight: 700; color: var(--ink); }

/* ---------- Trust row ---------- */
.trust-row { padding: 0 var(--gutter) 8px; }
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-icon {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--eco);
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.trust-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.trust-note { font-size: 13px; color: var(--muted); }

/* ---------- Секции ---------- */
.section-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.moods-section { padding: 84px var(--gutter) 20px; }
.moods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.mood-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 222px;
  border-radius: var(--radius-card);
  padding: 24px;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.mood-tile:hover { transform: translateY(-4px); }
.mood-tile--pink { background: #F9D9E6; }
.mood-tile--green { background: #E5EFEA; }
.mood-tile--sand { background: #F7E4C7; }
.mood-tile--coral { background: #F2D6D6; }
.mood-icon {
  position: absolute;
  top: 24px; right: 24px;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}
.mood-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 26px;
  transform: translate(-50%, -50%);
  background: var(--brand);
  border-radius: 60% 60% 55% 55%;
  clip-path: polygon(50% 100%, 22% 38%, 50% 0, 78% 38%);
}
.mood-name { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.mood-sub { font-size: 15px; color: var(--muted); }

/* ---------- Товары ---------- */
.products-section { padding: 72px var(--gutter) 0; }
.products-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.catalog-link { font-size: 15px; font-weight: 700; color: var(--eco); white-space: nowrap; }
.catalog-link:hover { color: var(--brand); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 36px rgba(64, 23, 38, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(64, 23, 38, 0.18); }
.product-card img { width: 100%; height: 348px; object-fit: cover; }
.product-card-body { display: contents; }
.product-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--eco); padding: 22px 24px 0; }
.product-name { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); padding: 10px 24px 0; }
.product-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px 24px 24px;
  margin-top: auto;
}
.product-price { font-size: 24px; font-weight: 700; color: var(--brand); }
.btn-add {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--blush);
  color: var(--brand);
  font-size: 24px; font-weight: 700; font-family: var(--sans);
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-add:hover { background: var(--brand); color: #fff; }
.btn-add.is-loading { opacity: 0.6; cursor: wait; }
.btn-add.is-added { background: var(--eco); color: #fff; }

/* ---------- Спецпредложение ---------- */
.special-offer {
  position: relative;
  margin: 72px var(--gutter) 0;
  background: var(--eco);
  border-radius: var(--radius-panel);
  padding: 60px 48px;
  overflow: hidden;
}
.special-inner { position: relative; z-index: 2; max-width: 640px; }
.special-eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: #FCD9E7; margin-bottom: 18px; }
.special-title { font-family: var(--serif); font-size: 52px; font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 26px; }
.special-note { font-size: 18px; color: #fff; line-height: 1.75; margin-bottom: 34px; }
.special-badge {
  position: absolute;
  top: 60px;
  left: 65.5%;
  z-index: 3;
  background: #fff;
  color: var(--brand);
  font-size: 16px; font-weight: 700;
  border-radius: 22px;
  padding: 9px 20px;
}
.special-photo {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 430px;
  height: 444px;
  object-fit: cover;
  border-radius: 28px;
  z-index: 1;
}

/* ---------- Шаги ---------- */
.steps-section { padding: 92px var(--gutter) 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.step-card {
  background: var(--sand);
  border-radius: 24px;
  padding: 34px 32px 44px;
  min-height: 230px;
}
.step-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--brand); margin-bottom: 16px; }
.step-name { font-family: var(--serif); font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.step-note { font-size: 16px; color: var(--muted); }

/* ---------- Магазины ---------- */
.stores-section { padding: 84px var(--gutter) 0; }
.stores-panel {
  position: relative;
  background: #F3E8EC;
  border-radius: var(--radius-panel);
  padding: 52px 48px;
  overflow: hidden;
}
.stores-eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 1.4px; color: var(--eco); margin-bottom: 16px; }
.stores-title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 26px;
  max-width: 720px;
}
.stores-list { font-size: 18px; line-height: 2.1; max-width: 720px; }
.stores-more { font-size: 15px; color: var(--muted); }
.phone-card {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  background: #fff;
  border-radius: 28px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(64, 23, 38, 0.14);
}
.phone-card-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; color: var(--eco); margin-bottom: 10px; }
.phone-card-number { font-size: 26px; font-weight: 700; color: var(--ink); display: inline-block; margin-bottom: 8px; }
.phone-card-number:hover { color: var(--brand); }
.phone-card-note { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.phone-card-btn { padding: 12px 34px; font-size: 15px; }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  margin-top: 96px;
  padding: 56px var(--gutter) 40px;
}
.footer-grid {
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand p { font-size: 15px; color: #fff; margin-top: 18px; }
.footer-mail { font-weight: 400; }
.footer-mail:hover, .footer-col a:hover { color: var(--footer-accent); }
.footer-col-title { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; color: var(--footer-accent); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 15px; }
.footer-requisite { }
.footer-requisites p { font-size: 14px; margin-bottom: 9px; }
.footer-copy {
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 184, 206, 0.25);
  font-size: 13px;
  color: var(--footer-accent);
  text-align: right;
}
.logo-img--footer { width: 220px; height: 80px; }

/* ---------- Планшет: 768–1023 ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 40px; }
  .topbar { padding: 10px 24px; font-size: 13px; }
  .header-inner { padding: 14px 24px; gap: 20px; }
  .desktop-nav, .header-phone { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .hero { padding: 52px 36px 100px; }
  .hero h1 { font-size: 58px; }
  .hero-photos { position: static; width: auto; height: auto; display: flex; gap: 16px; margin-top: 36px; }
  .hero-photo { position: static; }
  .hero-photo--main { width: 58%; height: 320px; }
  .hero-photo--second { width: 38%; height: 320px; top: auto; }
  .hero-promo { position: static; width: auto; margin-top: 28px; }
  .section-title { font-size: 40px; }
  .moods-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card img { height: 300px; }
  .steps-grid { gap: 20px; }
  .step-card { padding: 28px 24px 36px; min-height: 0; }
  .special-offer { padding: 48px 36px 48px; }
  .special-photo { position: static; transform: none; width: 100%; height: 260px; border-radius: 28px; margin-top: 32px; }
  .special-badge { left: auto; right: 36px; top: 36px; }
  .phone-card { position: static; transform: none; width: auto; margin-top: 32px; }
  .stores-panel { padding: 40px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Мобильный: до 767 ---------- */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .topbar { flex-direction: column; gap: 4px; text-align: center; padding: 10px 20px; }
  .header-inner { min-height: 84px; padding: 10px 20px; }
  .logo-img { width: 120px; height: 40px; }
  .cart-btn { padding: 10px 16px; font-size: 14px; }
  .hero { margin: 16px var(--gutter); padding: 40px 24px 36px; }
  .eyebrow { font-size: 12px; }
  .hero h1 { font-size: 39px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { gap: 12px; }
  .btn { padding: 13px 22px; font-size: 15px; }
  .hero-photos { flex-direction: column; }
  .hero-photo { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; }
  .hero-wave { height: 70px; }
  .trust-row { padding: 20px var(--gutter) 0; }
  .trust-list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .trust-item { flex-direction: column; }
  .moods-section { padding: 56px var(--gutter) 12px; }
  .section-title { font-size: 30px; }
  .moods-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .mood-tile { height: 158px; padding: 18px; border-radius: 22px; }
  .mood-icon { width: 46px; height: 46px; top: 14px; right: 14px; }
  .mood-name { font-size: 17px; }
  .mood-sub { font-size: 12px; }
  .products-section { padding: 48px var(--gutter) 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
  .product-card img { height: 218px; border-radius: 0; }
  .product-eyebrow { padding: 14px 16px 0; font-size: 12px; }
  .product-name { padding: 8px 16px 0; font-size: 17px; }
  .product-foot { padding: 12px 16px 16px; }
  .product-price { font-size: 18px; }
  .special-offer { margin: 44px var(--gutter) 0; padding: 36px 24px; border-radius: 30px; }
  .special-eyebrow { font-size: 12px; }
  .special-title { font-size: 33px; }
  .special-note { font-size: 15px; }
  .special-badge { top: 24px; right: 24px; font-size: 14px; padding: 7px 14px; }
  .special-photo { height: 220px; margin-top: 24px; }
  .steps-section { padding: 56px var(--gutter) 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .step-card { padding: 22px 20px; border-radius: 22px; }
  .step-name { font-size: 22px; }
  .step-note { font-size: 14px; }
  .stores-section { padding: 48px var(--gutter) 0; }
  .stores-panel { padding: 32px 24px; border-radius: 30px; }
  .stores-eyebrow { font-size: 12px; }
  .stores-title { font-size: 32px; margin-bottom: 20px; }
  .stores-list { font-size: 14px; line-height: 1.9; }
  .stores-list p { margin-bottom: 12px; }
  .phone-card { padding: 22px 18px; border-radius: 22px; }
  .phone-card-number { font-size: 21px; }
  .site-footer { padding: 40px var(--gutter) 32px; margin-top: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-copy { text-align: left; margin-top: 32px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .product-card:hover, .mood-tile:hover, .btn-light:hover { transform: none; }
}
