/* ==================================================================
   Fibonvcci landing — каркас: секции, сетки, шапка, дровер
   Создано: t_b4e3cadc. Нижележащие задачи НЕ переписывают этот файл.
   ================================================================== */

/* ============================== секции ============================ */

.section{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-block:clamp(64px, 9vw, 128px);
  scroll-margin-top:calc(var(--header-h) + 16px);
}

.section--dark{
  background:var(--bg-dark);
  color:var(--on-dark);
}

.section--dark-alt{
  background:var(--bg-dark-2);
  color:var(--on-dark);
}

.section--tint{
  background:var(--bg-1);
}

.section--screen{
  min-height:100svh;
}

.section--flush{
  padding-block:0;
}

@media (max-width:767px){
  .section--screen-mobile-auto{
    min-height:auto;
  }
}

.section__head{
  display:flex;
  flex-direction:column;
  gap:var(--s4);
}

.section__head .h2{ margin-top:var(--s2); }

.section__head .lead{ margin-top:var(--s3); }

/* =============================== шапка ============================ */

.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  height:var(--header-h);
  display:flex;
  align-items:center;
  color:var(--on-dark);
  border-bottom:1px solid transparent;
  background:transparent;
  transition:background-color .2s ease, color .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}

.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--s5);
}

.site-header.is-scrolled{
  background:rgba(247,243,236,.92);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  border-bottom-color:var(--line);
  color:var(--ink);
}

.logo{
  display:flex;
  flex-direction:column;
  gap:2px;
  flex:0 0 auto;
}

.logo__top{
  font-family:var(--font-mono);
  font-size:11px;
  line-height:1;
  letter-spacing:.18em;
  text-transform:uppercase;
  opacity:.8;
}

.logo__bottom{
  font-family:var(--font-display);
  font-weight:600;
  font-size:14px;
  line-height:1.2;
  letter-spacing:.01em;
}

.nav{
  display:none;
  align-items:center;
  gap:clamp(16px, 2vw, 30px);
  margin-inline:auto;
}

@media (min-width:1024px){
  .nav{ display:flex; }
}

.nav__link{
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
  opacity:.86;
  padding-block:8px;
  border-bottom:1px solid transparent;
  transition:opacity .18s ease, border-color .18s ease;
}

.nav__link:hover{
  opacity:1;
  border-bottom-color:currentColor;
}

.header__aside{
  display:flex;
  align-items:center;
  gap:var(--s3);
}

.header__cta{ display:none; }

@media (min-width:1024px){
  .header__cta{ display:inline-flex; }
}

/* бургер */
.burger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin-right:-10px;
  position:relative;
}

@media (min-width:1024px){
  .burger{ display:none; }
}

.burger__box{
  position:relative;
  width:24px;
  height:14px;
}

.burger__line{
  position:absolute;
  left:0;
  width:100%;
  height:1.5px;
  background:currentColor;
  transition:transform .22s ease, opacity .18s ease;
}

.burger__line:nth-child(1){ top:0; }
.burger__line:nth-child(2){ top:6px; }
.burger__line:nth-child(3){ top:12px; }

.burger[aria-expanded="true"] .burger__line:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__line:nth-child(2){
  opacity:0;
}
.burger[aria-expanded="true"] .burger__line:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

/* ============================== дровер ============================ */

.drawer{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:var(--s6);
  padding:calc(var(--header-h) + 32px) 24px 40px;
  background:var(--bg-dark);
  color:var(--on-dark);
  opacity:0;
  transform:translateY(-8px);
  transition:opacity .22s ease, transform .22s ease;
}

.drawer[hidden]{ display:none; }

.drawer.is-open{
  opacity:1;
  transform:none;
}

.drawer__close{
  position:absolute;
  top:10px;
  right:10px;
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  line-height:1;
  color:var(--on-dark);
}

.drawer__nav{
  display:flex;
  flex-direction:column;
  gap:var(--s4);
}

.drawer__link{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(26px, 8vw, 34px);
  line-height:1.15;
  letter-spacing:-.01em;
  padding-block:6px;
}

.drawer__foot{
  border-top:1px solid var(--line-dark);
  padding-top:var(--s5);
  display:flex;
  flex-direction:column;
  gap:var(--s4);
}

@media (min-width:768px){
  .drawer{ display:none; }
}

/* ============================== сетки ============================= */

.grid-2{
  display:grid;
  gap:var(--s5);
}

@media (min-width:768px){
  .grid-2{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--s6); }
}

.grid-3{
  display:grid;
  gap:var(--s4);
}

@media (min-width:768px){
  .grid-3{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:var(--s5); }
}

/* секции, которые добавляют нижележащие задачи, наследуют ритм */
.section__body{ margin-top:clamp(32px, 4vw, 48px); }