/* ---------- базовые переменные ---------- */
:root{
  --bg:#fffaf2;
  --bg-soft:#fff4e2;
  --ink:#2d2724;
  --muted:#8c817c;
  --brand:#6f2d25;        /* бордовый */
  --brand-2:#a75b50;      /* тёплый акцент */
  --accent:#f4c6a4;
  --card:#fff6e7;
  --surface:#fffdf8;
  --stroke:#eadfd4;
  --shadow-soft:0 24px 60px rgba(70,35,15,.12);
  --shadow-card:0 12px 30px rgba(70,30,10,.08);
  --radius:18px;
  --header-height:72px;
}

/* ---------- ресет ---------- */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height:1.6;
  color:var(--ink);
  background:linear-gradient(140deg, var(--bg) 0%, var(--bg-soft) 100%);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:"Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing:.2px;
  margin:0 0 .6rem;
}
::selection{
  background:var(--brand-2);
  color:#fffdfa;
}
p{margin:.5rem 0 0}
.lead{font-size:1.15rem}
.micro{font-size:.85rem}
.muted{color:var(--muted)}
.center{text-align:center}

/* ---------- snap-скролл: 5 полноэкранных экранов ---------- */
.snap{scroll-snap-type:y mandatory; scroll-behavior:smooth}
html.fullpage-enabled .snap{scroll-snap-type:none}
.screen{
  min-height:100vh;
  display:flex;
  align-items:center;
  position:relative;
  scroll-snap-align:start;
  padding:clamp(84px, 14vh, 128px) 0 clamp(56px, 10vh, 96px);
  overflow:hidden;
  scroll-margin-top:calc(var(--header-height));
}
.snap-child{scroll-snap-stop:always}

/* ---------- контейнер ---------- */
.container{
  width:min(1100px, 92vw);
  margin-inline:auto;
}
.btn{
  display:inline-block; text-decoration:none; font-weight:600;
  padding:.85rem 1.25rem;
  border-radius:14px;
  border:1px solid transparent;
  transition:transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
  box-shadow:0 10px 24px rgba(111,45,37,.12);
}
.btn.primary{
  background:linear-gradient(135deg, var(--brand) 0%, #8f3c32 100%);
  color:#fff;
  box-shadow:0 16px 28px rgba(111,45,37,.18);
}
.btn.primary:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 34px rgba(111,45,37,.22);
}
.btn.ghost{
  color:var(--brand);
  border-color:rgba(111,45,37,.35);
  background:rgba(255,255,255,.75);
  box-shadow:none;
}
.btn.ghost:hover{
  background:rgba(255,255,255,1);
  transform:translateY(-1px);
}
.btn:focus-visible{
  outline:3px solid rgba(244,198,164,.6);
  outline-offset:2px;
}

/* ---------- header ---------- */
.site-header{
  position:fixed;
  inset:0 0 auto 0;
  min-height:72px;
  z-index:50;
  display:flex;
  align-items:center;
  padding-inline:clamp(1rem, 4vw, 2.5rem);
  backdrop-filter:saturate(140%) blur(8px);
  background:linear-gradient(135deg, rgba(255,250,242,.92) 0%, rgba(255,245,233,.78) 100%);
  border-bottom:1px solid rgba(234,223,212,.6);
  box-shadow:0 14px 32px rgba(45,25,10,.08);
}
.header-inner{
  width:min(1100px, 92vw);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.4rem;
}
.brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  text-decoration:none;
  color:var(--ink);
}
.logo{height:36px}
.brand-name{font-weight:700; letter-spacing:.2px}
nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:.85rem;
}
nav a{
  color:var(--ink);
  text-decoration:none;
  font-weight:500;
  padding:.35rem .7rem;
  border-radius:999px;
  transition:color .2s ease, background-color .2s ease, transform .2s ease;
}
nav a:hover{
  color:var(--brand);
  background:rgba(244,198,164,.3);
  transform:translateY(-1px);
}
nav a:focus-visible{
  outline:2px solid rgba(244,198,164,.6);
  outline-offset:2px;
}
nav .btn{
  margin-left:.4rem;
  box-shadow:none;
}
nav .btn:hover{box-shadow:none}

/* ---------- hero ---------- */
.hero{
  color:#fff;
  display:grid;
  align-items:center;
  padding:clamp(120px, 24vh, 180px) 0 clamp(96px, 18vh, 140px);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:linear-gradient(180deg, rgba(22,15,11,.62) 0%, rgba(22,15,11,.74) 100%);
}
.hero-media{
  position:absolute;
  inset:-6%;
  z-index:-3;
  background:url("mb.jpg") center/cover no-repeat;
  background-color:#2b1a16;
  filter:blur(5px);
  transform:scale(1.08);
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto -30% -25% -30%;
  height:60%;
  background:radial-gradient(ellipse at center, rgba(244,198,164,.18) 0%, rgba(244,198,164,0) 70%);
  z-index:-1;
}
.hero-content{
  max-width:720px;
  padding:clamp(1.8rem, 5vw, 2.7rem);
  backdrop-filter:blur(12px);
  background:rgba(52,34,28,.55);
  border:1px solid rgba(255,255,255,.08);
  border-radius:clamp(20px, 4vw, 28px);
  box-shadow:0 28px 60px rgba(16,8,4,.35);
}
.hero h1{
  font-size:clamp(36px, 6.4vw, 64px);
  line-height:1.04;
}
.hero .lead{
  opacity:.92;
  max-width:540px;
}
.cta{
  margin-top:1rem;
  display:flex;
  flex-wrap:wrap;
  gap:.8rem;
}
.scroll-hint{
  position:absolute;
  bottom:24px;
  left:50%;
  transform:translate(-50%, 0);
  font-size:.9rem;
  color:#f5e9df;
  opacity:.85;
  letter-spacing:.12em;
  text-transform:uppercase;
  animation:hint 2.4s ease-in-out infinite;
}

@keyframes hint{
  0%,100%{transform:translate(-50%, 0); opacity:.35}
  50%{transform:translate(-50%, 6px); opacity:1}
}

/* ---------- УТП ---------- */
.usp{
  background:linear-gradient(180deg, var(--surface) 0%, #fff0da 100%);
  padding-top:clamp(32px, 10vh, 72px);
}
.section-title{
  font-size:clamp(26px,4.2vw,40px);
  text-align:center;
  margin-bottom:1.2rem;
  position:relative;
}
.section-title::after{
  content:"";
  display:block;
  width:64px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(244,198,164,0) 0%, rgba(244,198,164,.8) 60%, rgba(244,198,164,0) 100%);
  margin:12px auto 0;
}
.usp-grid{
  display:grid; gap:1.2rem; margin-top:1.2rem;
  grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
}
.usp-card{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(234,223,212,.6);
  border-radius:calc(var(--radius) + 6px);
  padding:1.6rem 1.4rem;
  text-align:center;
  box-shadow:var(--shadow-card);
  transition:transform .25s ease, box-shadow .25s ease, background-color .25s ease;
  position:relative;
  overflow:hidden;
}
.usp-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top right, rgba(244,198,164,.25), transparent 55%);
  opacity:0;
  transition:opacity .3s ease;
}
.usp-card .icon{font-size:28px; margin-bottom:.4rem}
.usp-card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 44px rgba(60,30,10,.12);
  background:rgba(255,255,255,.95);
}
.usp-card:hover::after{opacity:1}
.usp-card .icon{
  font-size:30px;
  margin-bottom:.6rem;
  display:inline-grid;
  place-items:center;
  width:54px;
  height:54px;
  margin-inline:auto;
  border-radius:50%;
  background:rgba(244,198,164,.28);
}

/* ---------- Каталог ---------- */
.catalog{background:linear-gradient(180deg, #fff0da 0%, #fffaf2 100%)}
.catalog-groups{
  display:flex;
  flex-direction:column;
  gap:2.2rem;
  margin:1.8rem 0 2.4rem;
}
.catalog-group{
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.catalog-group__title{
  margin:0;
  font-size:1.35rem;
  font-family:"Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing:.2px;
  text-align:left;
  color:var(--brand);
}
.catalog-group__items{
  display:flex;
  flex-wrap:wrap;
  gap:1.1rem;
  justify-content:flex-start;
}
.catalog-group__items > .card{
  flex:0 1 260px;
  max-width:280px;
}
.card{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,245,231,1) 100%);
  border:1px solid rgba(234,223,212,.7);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-card);
  transition:transform .25s ease, box-shadow .25s ease;
}
.card::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:6px;
  background:linear-gradient(90deg, rgba(244,198,164,.2) 0%, rgba(244,198,164,.8) 50%, rgba(244,198,164,.2) 100%);
  opacity:0;
  transition:opacity .25s ease;
}
.card:hover{
  transform:translateY(-5px);
  box-shadow:0 24px 48px rgba(60,30,10,.14);
}
.card:hover::after{opacity:1}
.card img{
  width:100%;
  height:180px;
  object-fit:cover;
  filter:saturate(1.08);
}
.card .pad{
  padding:1rem 1.1rem 1.2rem;
  display:flex;
  flex-direction:column;
  gap:.5rem;
}
.card h4{margin:0; font-size:1.08rem}
.card .meta{
  margin:0;
  font-size:.95rem;
  color:var(--muted);
}
.card .meta.country{font-weight:600; color:var(--ink);}
.card .meta.aging{font-size:.92rem;}
.card .description{
  margin:.35rem 0 0;
  font-size:.96rem;
  line-height:1.5;
}
.price-list{
  margin:.6rem 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:.3rem;
}
.price-list li{
  font-weight:600;
  color:var(--brand);
}
.catalog-highlight{
  margin-top:2.4rem;
  padding:1.6rem 1.4rem 1.8rem;
  border-radius:22px;
  background:linear-gradient(135deg, rgba(111,45,37,.12) 0%, rgba(167,91,80,.08) 100%);
  border:1px solid rgba(111,45,37,.18);
  box-shadow:var(--shadow-card);
  display:grid;
  gap:1rem;
}
.catalog-highlight__title{
  margin:0;
  font-size:1.4rem;
  font-family:"Playfair Display", Georgia, "Times New Roman", serif;
  color:var(--brand);
}
.catalog-highlight__body{
  display:grid;
  gap:1.4rem;
  grid-template-columns:minmax(200px, 280px) 1fr;
  align-items:center;
}
.catalog-highlight__media{
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-card);
}
.catalog-highlight__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.catalog-highlight__content{
  display:grid;
  gap:.6rem;
}
.catalog-highlight__content p{
  margin:0;
  line-height:1.55;
}
.catalog-highlight .meta{
  font-size:.95rem;
  color:var(--muted);
}
.catalog-highlight .meta.country{
  font-weight:600;
  color:var(--ink);
}
.catalog-highlight .meta.aging{
  font-size:.92rem;
}
.catalog-highlight .price-list{
  margin:0;
}
/* ---------- О нас ---------- */
.about{background:linear-gradient(180deg,#fffaf2 0%, #ffe9d0 100%)}
.about-inner{
  display:grid;
  gap:1.6rem;
  grid-template-columns: 1.1fr .9fr;
  align-items:center;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(234,223,212,.6);
  border-radius:calc(var(--radius) + 8px);
  padding:clamp(1.8rem, 5vw, 3rem);
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(8px);
}
.about-text h2{margin-bottom:.6rem}
.about-text p{margin:.75rem 0 0}
.about-photo{
  min-height:360px; border-radius:20px; border:1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.1)),
    url("zaglushka.jpg") center/cover no-repeat;
  box-shadow:0 24px 60px rgba(70,30,10,.16);
}

/* ---------- Контакты ---------- */
.contacts{
  background: radial-gradient(1200px 800px at 50% 20%, #fff 0%, #fff5e9 60%, #ffe9d0 100%);
  text-align:center;
}
.contacts .container{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(234,223,212,.55);
  border-radius:calc(var(--radius) + 10px);
  padding:clamp(1.8rem, 5vw, 3.2rem);
  box-shadow:var(--shadow-soft);
}
.contacts-actions{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  justify-content:center;
  margin:1.2rem 0 0;
}
.btn.big{
  padding:1rem 1.7rem;
  font-size:1.05rem;
  border-radius:18px;
}

/* ---------- боковая навигация ---------- */
.section-nav{
  position:fixed;
  left:clamp(1rem, 2.8vw, 2.8rem);
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.85rem;
  padding:1.05rem .95rem;
  border-radius:22px;
  border:1px solid rgba(234,223,212,.7);
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow-card);
  backdrop-filter:blur(12px);
  z-index:80;
  transition:background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.section-nav__btn{
  width:48px;
  height:48px;
  border-radius:16px;
  border:1px solid rgba(111,45,37,.3);
  background:rgba(255,255,255,.85);
  color:var(--brand);
  font-size:1.2rem;
  font-weight:600;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.section-nav__btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,1);
  box-shadow:0 14px 28px rgba(60,30,10,.14);
}
.section-nav__btn:focus-visible{
  outline:2px solid rgba(244,198,164,.65);
  outline-offset:3px;
}
.section-nav__btn[disabled]{
  opacity:.45;
  pointer-events:none;
  box-shadow:none;
}
.section-nav__info{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.35rem;
  text-align:center;
}
.section-nav__count{
  font-family:"Playfair Display", Georgia, "Times New Roman", serif;
  font-size:1.05rem;
  color:var(--ink);
  min-width:64px;
}
.section-nav[data-theme="dark"]{
  background:rgba(38,27,23,.9);
  border-color:rgba(255,245,235,.24);
  box-shadow:0 18px 48px rgba(0,0,0,.32);
}
.section-nav[data-theme="dark"] .section-nav__count{color:#f7ece2;}
.section-nav[data-theme="dark"] .section-nav__btn{
  background:rgba(255,245,235,.08);
  border-color:rgba(255,245,235,.28);
  color:#f7ece2;
}
.section-nav[data-theme="dark"] .section-nav__btn:hover{
  background:rgba(255,245,235,.16);
}

@media (max-width: 1024px){
  .section-nav{display:none}
}

.contact-fab{
  position:fixed;
  right:clamp(1.2rem, 3vw, 2.8rem);
  bottom:calc(env(safe-area-inset-bottom, 0) + 1.6rem);
  z-index:80;
  border:none;
  border-radius:999px;
  padding:.9rem 1.7rem;
  font-size:.95rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
  background:linear-gradient(135deg, var(--brand) 0%, #8f3c32 100%);
  color:#fff9f3;
  box-shadow:0 24px 50px rgba(111,45,37,.28);
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.contact-fab:hover{
  transform:translateY(-3px);
  box-shadow:0 28px 58px rgba(111,45,37,.32);
}
.contact-fab:focus-visible{
  outline:3px solid rgba(244,198,164,.65);
  outline-offset:4px;
}
.contact-fab[data-theme="dark"]{
  background:rgba(255,245,235,.94);
  color:var(--brand);
  box-shadow:0 24px 56px rgba(0,0,0,.35);
}
.contact-fab[data-theme="dark"]:hover{
  background:rgba(255,245,235,1);
}
@media (max-width: 1024px){
  .contact-fab{display:none}
}

/* ---------- анимации появления ---------- */
.reveal{
  opacity:1;
  transform:none;
}

@media (prefers-reduced-motion: reduce){
  .scroll-hint{animation:none}
}

/* ---------- адаптив ---------- */
@media (max-width: 920px){
  .about-inner{grid-template-columns:1fr}
  .about-photo{min-height:280px}
  .hero-content{padding:clamp(1.6rem, 7vw, 2.4rem)}
}
@media (max-width: 780px){
  .site-header{padding-inline:1.2rem}
  .header-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:.8rem;
  }
  nav{
    width:100%;
    justify-content:flex-start;
    gap:.6rem;
  }
  nav a{padding:.35rem .55rem}
  nav .btn{
    margin-left:0;
    order:2;
  }
  .cta{
    width:100%;
    justify-content:flex-start;
  }
  .cta .btn{
    flex:0 0 auto;
    text-align:center;
  }
  .section-nav{display:none}
}
@media (max-width: 600px){
  .hero{padding-top:120px}
  .cta{
    flex-direction:column;
    align-items:flex-start;
  }
  .cta .btn{
    width:auto;
  }
  .contacts .container{padding:2rem 1.6rem}
}
@media (max-width: 680px){
  .catalog-group__items{
    flex-direction:column;
    gap:1rem;
  }
  .catalog-group__items > .card{
    flex:1 1 auto;
    max-width:100%;
  }
  .catalog-highlight__body{
    grid-template-columns:1fr;
    gap:1rem;
  }
  .catalog-highlight__media{
    justify-self:center;
    max-width:280px;
    width:100%;
  }
}
