/*
Theme Name: FORMA
Theme URI: 
Author: FORMA Studio
Description: Кастомная тема для каталога премиальной техники и мебели FORMA.
Version: 1.0
*/

:root{
  --ink:#1C1B19;
  --paper:#F9F8F7;
  --line:rgba(249,248,247,0.25);
  --brass:#C9A876;
}
*{ margin:0; padding:0; box-sizing:border-box; }
html,body{ height:100%; }
body{
  font-family:'Inter', sans-serif;
  background:var(--ink);
  color:var(--paper);
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
:focus-visible{ outline:2px solid var(--brass); outline-offset:3px; }
@media (prefers-reduced-motion: reduce){
  *{ transition-duration:0.01ms !important; animation-duration:0.01ms !important; }
}

/* ===== STAGE (full-bleed background slider) ===== */
.stage{ position:relative; width:100%; height:100vh; }
.bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0;
  transition:opacity 1.1s ease;
}
.bg.active{ opacity:1; }
.bg::after{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.55) 100%);
  box-shadow:inset 0 0 220px 90px rgba(0,0,0,0.6);
  pointer-events:none;
}
.bg-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
}

.bg-kitchen{ background-image:linear-gradient(135deg,#8a8f86,#4b504a 60%,#2c2e2a); }
.bg-furniture{ background-image:linear-gradient(135deg,#9c8062,#5c4632 60%,#2a2018); }
.bg-appliances{ background-image:linear-gradient(135deg,#8f9598,#54595c 60%,#26282a); }
.bg-textile{ background-image:linear-gradient(135deg,#a68b7a,#6b4f42 60%,#2e211b); }
.bg-dishware{ background-image:linear-gradient(135deg,#c9c2b4,#8a8072 60%,#3c3830); }
.bg-about{ background-image:linear-gradient(135deg,#7c7568,#403c34 60%,#201e19); }

/* ===== NAV ===== */
nav{
  position:fixed; top:0; left:0; right:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:34px 44px;
}
.logo{ font-family:'Fraunces', serif; font-size:23px; letter-spacing:0.03em; }
.nav-links{ display:flex; gap:34px; }
.nav-links a{
  background:none; border:none;
  font-family:inherit; color:var(--paper);
  font-size:18px; letter-spacing:0.04em; text-transform:uppercase;
  cursor:pointer; opacity:0.65; padding:6px 0;
  position:relative; transition:opacity 0.3s ease;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
  background:var(--brass); transition:width 0.3s ease;
}
.nav-links a.active, .nav-links a:hover{ opacity:1; }
.nav-links a.active::after{ width:100%; }

/* ===== HERO CONTENT ===== */
.stage-content{ position:absolute; left:44px; bottom:110px; z-index:20; max-width:640px; }
.eyebrow{
  font-size:14px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--brass); margin-bottom:18px;
  display:flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:''; width:26px; height:1px; background:var(--brass); }
h1{
  font-family:'Fraunces', serif; font-weight:600;
  font-size:clamp(51px,7.5vw,97px); line-height:1.05;
  margin-bottom:22px; transition:opacity 0.5s ease;
}
.stage-desc{
  font-size:17px; line-height:1.7; color:rgba(249,248,247,0.78);
  max-width:420px; margin-bottom:28px;
}
.explore{
  display:inline-flex; align-items:center; gap:10px;
  font-size:15px; letter-spacing:0.04em;
  /* увеличенная зона наведения/клика без сдвига видимого текста:
     лишний padding «съедается» таким же отрицательным margin */
  padding:12px 14px 18px 6px;
  margin:-12px -14px -12px -6px;
  border-bottom:1px solid rgba(249,248,247,0.5);
}
.explore span{ transition:transform 0.3s ease; }
.explore:hover span{ transform:translateX(4px); }

/* ===== INDEX / ARROWS ===== */
.index{
  position:absolute; left:44px; bottom:44px; z-index:20;
  font-size:14px; letter-spacing:0.05em; color:rgba(249,248,247,0.6);
  display:flex; align-items:center; gap:10px;
}
.index b{ color:var(--paper); font-weight:500; }
.arrows{
  position:absolute; right:44px; top:50%; transform:translateY(-50%);
  z-index:20; display:flex; flex-direction:column; gap:16px;
  align-items:center;
}
.arrow-btn{
  width:54px; height:54px; border:1.5px solid rgba(249,248,247,0.55); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(28,27,25,0.4); color:var(--paper); cursor:pointer;
  box-shadow:0 4px 16px rgba(0,0,0,0.25);
  transition:border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.arrow-btn svg{ width:22px; height:22px; display:block; }
.arrow-btn:hover{ border-color:var(--brass); background:rgba(201,168,118,0.22); transform:scale(1.08); }
.arrow-btn:active{ transform:scale(0.94); }

/* ===== BOTTOM BAR ===== */
.bottom-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:40;
  display:flex; justify-content:space-between; align-items:center;
  padding:26px 44px;
}
.bottom-bar .left{
  font-size:14px; letter-spacing:0.08em; text-transform:uppercase;
  color:rgba(249,248,247,0.7);
}
.bottom-actions{ display:flex; gap:28px; align-items:center; }
.bottom-actions a{
  font-size:14px; letter-spacing:0.08em; text-transform:uppercase;
  color:rgba(249,248,247,0.75); transition:color 0.25s ease;
}
.bottom-actions a:hover{ color:var(--paper); }
.btn-solid, .btn-white{
  padding:14px 26px;
  font-size:13px; letter-spacing:0.04em; text-transform:uppercase;
  display:inline-flex; align-items:center; gap:8px;
  opacity:1 !important;
  transition:background 0.25s ease;
}
.btn-solid{ background:#8A6A38; color:#1C1B19 !important; }
.btn-solid:hover{ background:#a9814a; color:#1C1B19 !important; }
.btn-white{ background:#F9F8F7; color:#1C1B19 !important; }
.btn-white:hover{ background:#d8d6d3; color:#1C1B19 !important; }
.btn-solid span, .btn-white span{ transition:transform 0.3s ease; }
.btn-solid:hover span, .btn-white:hover span{ transform:translateX(4px); }

.socials{
  display:flex; align-items:center; gap:16px;
  padding-left:20px; margin-left:4px;
  border-left:1px solid rgba(249,248,247,0.25);
}
.socials a{
  width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(249,248,247,0.3); border-radius:50%;
  color:var(--paper); opacity:0.75;
  transition:opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.socials a:hover{ opacity:1; border-color:var(--brass); transform:translateY(-2px); }
.socials svg{ width:16px; height:16px; }

@media (max-width:820px){
  .nav-links{ display:none; }
  .arrows{ right:16px; top:96px; transform:none; gap:12px; }
  .arrow-btn{ width:44px; height:44px; }
  .arrow-btn svg{ width:18px; height:18px; }
  .stage-content{ left:24px; right:24px; bottom:230px; }
  .index{ display:none; }
  nav{ padding:24px; }
  .bottom-bar{ padding:16px 24px; flex-direction:column; gap:12px; align-items:flex-start; }
  .bottom-actions{ flex-wrap:wrap; gap:8px; row-gap:12px; }
  .btn-solid, .btn-white{ padding:10px 12px; font-size:10.5px; letter-spacing:0.02em; gap:5px; }
  .btn-solid span{ display:none; }
  .socials{ border-left:none; padding-left:0; margin-left:0; }
}
