/* ============ Токены ============ */
:root{
  --milk:#FAF6EF;
  --cream:#F1E9DA;
  --cream-2:#EFE5D2;
  --white:#FFFFFF;
  --ink:#23312C;
  --text:#3D443F;
  --muted:#6E695E;
  --green:#27504C;
  --green-deep:#1E403C;
  --green-soft:#3E6B57;
  --leaf:#6FB247;
  --orange:#E6692F;
  --brown:#6B4A32;
  --line:#E4DAC7;
  --line-dark:rgba(250,246,239,.16);
  --radius:22px;
  --radius-s:14px;
  --shadow:0 24px 48px -20px rgba(60,45,25,.18);
  --shadow-s:0 10px 24px -12px rgba(60,45,25,.16);
  --serif:"Playfair Display", Georgia, serif;
  --sans:"Manrope", "Segoe UI", sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ============ База ============ */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--sans);
  font-size:17px; line-height:1.65;
  color:var(--text);
  background:var(--milk);
  -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
ul,ol{ list-style:none; }
button,input{ font:inherit; color:inherit; }
button{ background:none; border:0; cursor:pointer; }
:focus-visible{ outline:2px solid var(--orange); outline-offset:3px; border-radius:4px; }

.skip-link{
  position:absolute; left:-9999px; top:12px; z-index:200;
  background:var(--green); color:#FDFBF6; padding:10px 20px; border-radius:999px;
}
.skip-link:focus{ left:16px; }

.container{ max-width:1280px; margin-inline:auto; padding-inline:clamp(20px,4vw,48px); }
.section{ padding-block:clamp(64px,9vw,116px); }
.section--tight{ padding-block:clamp(48px,6vw,84px); }

.overline{
  font-size:12px; font-weight:800; letter-spacing:.2em; text-transform:uppercase;
  color:var(--orange); margin-bottom:14px;
}

h1,h2,h3{ font-family:var(--serif); color:var(--ink); font-weight:600; }
h1{ font-size:clamp(42px,6vw,76px); line-height:1.06; letter-spacing:-.015em; }
h2{ font-size:clamp(30px,4vw,52px); line-height:1.12; letter-spacing:-.01em; }
h1 em, h2 em{ font-style:italic; color:var(--green); }

.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:32px;
  margin-bottom:clamp(36px,5vw,64px);
}
.section-head__sub{ max-width:52ch; color:var(--muted); margin-top:14px; font-size:16.5px; }

.link-arrow{
  display:inline-flex; align-items:center; gap:8px; white-space:nowrap;
  font-weight:700; font-size:15.5px; color:var(--green);
  border-bottom:1.5px solid rgba(39,80,76,.35); padding-bottom:2px;
  transition:border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover{ border-color:var(--orange); gap:12px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 30px; border-radius:999px;
  font-weight:700; font-size:15.5px; white-space:nowrap;
  transition:background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn svg{ flex:none; }
.btn--primary{ background:var(--green); color:#FDFBF6; }
.btn--primary:hover{ background:var(--green-deep); transform:translateY(-2px); }
.btn--ghost{ border:1.5px solid rgba(39,80,76,.45); color:var(--green); }
.btn--ghost:hover{ border-color:var(--green); background:rgba(39,80,76,.07); }
.btn--light{ background:#FDFBF6; color:var(--green); }
.btn--light:hover{ background:var(--cream); transform:translateY(-2px); }

.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 14px; border-radius:999px;
  font-size:12.5px; font-weight:700; letter-spacing:.02em;
}
.badge-hit{ background:var(--orange); color:#fff; }
.badge-new{ background:var(--leaf); color:#1E3B1A; }

/* ============ Верхняя строка ============ */
.topbar{ background:var(--green); color:#EDE7D8; font-size:13.5px; }
.topbar .container{
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding-block:9px; text-align:center; flex-wrap:wrap;
}
.topbar b{ color:#fff; font-weight:700; }
.topbar__dot{ width:4px; height:4px; border-radius:50%; background:var(--orange); flex:none; }

/* ============ Шапка ============ */
.header{
  position:sticky; top:0; z-index:100;
  background:rgba(250,246,239,.92);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.header__in{ display:flex; align-items:center; gap:clamp(16px,2.5vw,36px); padding-block:14px; }
.header__logo img{ height:42px; width:auto; }
.header__logo{ flex:none; }

.header__burger{ display:none; }
.header__nav{ display:flex; gap:clamp(14px,2vw,28px); }
.header__nav a{
  font-size:15px; font-weight:600; color:var(--ink);
  transition:color .2s var(--ease);
}
.header__nav a:hover{ color:var(--orange); }

.header__search{
  display:flex; align-items:center; gap:10px; flex:1; max-width:300px;
  background:var(--white); border:1px solid var(--line); border-radius:999px;
  padding:9px 16px; color:var(--muted);
  transition:border-color .2s var(--ease);
}
.header__search:focus-within{ border-color:var(--green); }
.header__search input{
  border:0; outline:0; background:transparent; width:100%;
  font-size:14.5px; color:var(--ink);
}
.header__search input::placeholder{ color:var(--muted); }
.header__search svg{ flex:none; color:var(--muted); }

.header__actions{ display:flex; align-items:center; gap:6px; margin-left:auto; }
.icon-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:50%; color:var(--ink);
  transition:background-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover{ background:var(--cream); color:var(--green); }
.icon-btn__badge{
  position:absolute; top:2px; right:2px; min-width:18px; height:18px;
  border-radius:999px; background:var(--orange); color:#fff;
  font-size:11px; font-weight:800; line-height:18px; text-align:center; padding-inline:4px;
}
.icon-btn__badge--leaf{ background:var(--leaf); color:#1E3B1A; }
.header__mobile-nav{ display:none; }

/* ============ Карточка товара ============ */
.products-grid{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px;
}
.product-card{
  position:relative; display:flex; flex-direction:column;
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden;
  transition:transform .22s var(--ease), box-shadow .22s var(--ease);
}
.product-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-s); }
.product-card__media{
  position:relative; display:grid; place-items:center;
  aspect-ratio:1/1; background:var(--cream); padding:30px;
}
.product-card__media--alt{ background:var(--cream-2); }
.product-card__badge{ position:absolute; top:14px; left:14px; z-index:2; }
.fav-btn{
  position:absolute; top:12px; right:12px; z-index:2;
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  background:var(--white); color:var(--brown);
  box-shadow:var(--shadow-s);
  transition:color .2s var(--ease), transform .2s var(--ease);
}
.fav-btn:hover{ transform:scale(1.08); color:var(--orange); }
.fav-btn[aria-pressed="true"]{ color:var(--orange); }
.fav-btn[aria-pressed="true"] svg{ fill:currentColor; }

.product-card__body{ display:flex; flex-direction:column; gap:9px; padding:20px 20px 22px; flex:1; }
.product-card__name{ font-weight:800; font-size:18px; color:var(--ink); line-height:1.25; }
.product-card__desc{ font-size:14px; color:var(--muted); line-height:1.5; }
.product-card__meta{ font-size:13px; color:var(--muted); }
.product-card__rating{
  display:flex; align-items:center; gap:7px;
  font-size:13.5px; font-weight:700; color:var(--ink);
}
.stars{ display:inline-flex; gap:1.5px; color:var(--orange); }
.product-card__count{ color:var(--muted); font-weight:500; }
.product-card__price-row{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-top:auto; padding-top:8px;
}
.price{ display:flex; flex-direction:column; line-height:1.15; }
.price__value{ font-size:21px; font-weight:800; color:var(--ink); white-space:nowrap; }
.price__old{ font-size:13.5px; color:var(--muted); text-decoration:line-through; }
.cart-btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--green); color:#FDFBF6;
  padding:11px 18px; border-radius:999px;
  font-size:14px; font-weight:700; white-space:nowrap;
  transition:background-color .2s var(--ease), transform .2s var(--ease);
}
.cart-btn:hover{ background:var(--green-deep); transform:translateY(-2px); }
.cart-btn--done{ background:var(--leaf); color:#1E3B1A; }
.product-card__info{
  display:inline-flex; align-self:flex-start; align-items:center; gap:7px;
  font-size:13.5px; font-weight:600; color:var(--brown);
  border-bottom:1px solid rgba(107,74,50,.35); padding-bottom:2px;
  transition:border-color .2s var(--ease);
}
.product-card__info:hover{ border-color:var(--orange); }

/* ============ Мокап флакона ============ */
.bottle{ position:relative; width:86px; filter:drop-shadow(0 16px 20px rgba(59,42,24,.2)); }
.bottle__cap{
  width:46px; height:23px; margin:0 auto;
  background:linear-gradient(180deg,#5E4227,#402C19);
  border-radius:8px 8px 3px 3px;
}
.bottle__neck{ width:28px; height:11px; margin:0 auto; background:linear-gradient(180deg,#7A5433,#66422a); }
.bottle__body{
  position:relative; width:86px; height:148px; margin-top:-2px;
  border-radius:14px 14px 17px 17px;
  background:
    linear-gradient(105deg, rgba(255,255,255,.3), rgba(255,255,255,0) 34%),
    linear-gradient(180deg,#7C5432,#5E3D22 72%,#4F3319);
  display:grid; place-items:center;
}
.bottle__label{
  position:absolute; inset:17px 8px;
  background:#F8F1E2; border-radius:5px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:5px; padding:6px 5px; text-align:center;
}
.bottle__brand{ font-size:6.5px; font-weight:800; letter-spacing:.3em; color:var(--orange); }
.bottle__rule{ width:24px; height:1px; background:#D9CBAE; }
.bottle__name{
  font-family:var(--serif); font-weight:700; font-size:12px; line-height:1.12;
  color:var(--green);
}
.bottle__meta{ font-size:8px; color:var(--muted); letter-spacing:.05em; }

/* ============ Отзывы ============ */
.review-card{
  background:var(--white); border-radius:var(--radius); padding:26px 26px 24px;
  display:flex; flex-direction:column; gap:14px;
}
.review-card blockquote{ font-size:15.5px; line-height:1.62; color:var(--text); }
.review-card__footer{ display:flex; align-items:center; gap:13px; margin-top:auto; padding-top:6px; }
.review-avatar{
  width:44px; height:44px; border-radius:50%; flex:none;
  background:var(--green); color:#F1E9DA;
  display:grid; place-items:center;
  font-weight:800; font-size:15px; letter-spacing:.03em;
}
.review-name{ font-weight:800; font-size:15px; color:var(--ink); }
.review-city{ font-size:13px; color:var(--muted); }
.review-verified{
  margin-left:auto; display:inline-flex; align-items:center; gap:5px;
  font-size:12px; font-weight:700; color:var(--green);
}

/* ============ Футер ============ */
.footer{ background:var(--green-deep); color:#D8D2C2; margin-top:clamp(56px,8vw,104px); }
.footer__main{
  display:grid; grid-template-columns:1.3fr 1fr 1fr 1.2fr; gap:clamp(28px,4vw,56px);
  padding-block:clamp(48px,6vw,76px) 40px;
}
.footer__brand{ display:inline-flex; }
.footer__about{ margin-top:18px; font-size:14px; max-width:34ch; color:rgba(216,210,194,.85); }
.footer__social{ display:flex; gap:8px; margin-top:20px; }
.footer__social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--line-dark); color:#EDE7D8;
  font-size:12px; font-weight:800;
  transition:background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.footer__social a:hover{ background:var(--leaf); border-color:var(--leaf); color:#1E3B1A; }
.footer__col h4{
  font-family:var(--sans); font-size:13px; font-weight:800; letter-spacing:.16em; text-transform:uppercase;
  color:#A8B5A0; margin-bottom:18px;
}
.footer__col ul{ display:grid; gap:11px; }
.footer__col a{ font-size:14.5px; color:rgba(216,210,194,.9); transition:color .2s var(--ease); }
.footer__col a:hover{ color:#fff; }
.footer__contact li{ font-size:14.5px; }
.footer__phone{ font-family:var(--serif); font-size:22px; font-weight:700; color:#FDFBF6 !important; }
.footer__contact span{ display:block; font-size:13px; color:rgba(216,210,194,.6); margin-top:2px; }
.footer__pay{ display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.footer__pay span{
  border:1px solid var(--line-dark); border-radius:8px; padding:5px 10px;
  font-size:12px; font-weight:700; color:#EDE7D8;
}
.footer__bottom{ border-top:1px solid var(--line-dark); padding-block:24px; }
.footer__legal{
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  font-size:13px; color:rgba(216,210,194,.65);
}
.footer__legal nav{ display:flex; gap:20px; flex-wrap:wrap; }
.footer__legal a:hover{ color:#fff; }
.footer__disclaimer{
  margin-top:14px; font-size:12.5px; color:rgba(216,210,194,.5); text-align:center;
}

/* ============ Адаптив (общий) ============ */
@media (max-width:1120px){
  .header__search{ max-width:220px; }
}
@media (max-width:1000px){
  .products-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer__main{ grid-template-columns:1fr 1fr; }
}
@media (max-width:760px){
  .header__search{ display:none; }
  .header__nav{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    background:var(--milk); border-bottom:1px solid var(--line);
    flex-direction:column; gap:0; padding:8px 20px 18px;
    box-shadow:var(--shadow-s);
  }
  .header__nav.is-open{ display:flex; }
  .header__nav a{ padding:13px 4px; border-bottom:1px solid var(--line); font-size:16px; }
  .header__nav a:last-child{ border-bottom:0; }
  .header__burger{ display:inline-flex; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:18px; }
}
@media (max-width:600px){
  body{ font-size:16px; }
  .products-grid{ grid-template-columns:1fr; }
  .footer__main{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ transition-duration:.01ms !important; animation-duration:.01ms !important; }
}
