/* =========================================================
   ФАБРИКА ГАБИОНОВ — стили сайта
   Палитра и типографика заданы переменными в :root —
   если понадобится подправить цвет/шрифт, меняйте только тут.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* --- цвета --- */
  --orange: #F2600C;
  --orange-dark: #C94E08;
  --ink: #17140F;
  --charcoal: #14120E;
  --stone: #8C8579;
  --stone-light: #C9C2B4;
  --sand: #F6F1E7;
  --sand-line: #E4DCC9;
  --white: #FFFFFF;

  /* --- типографика --- */
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* --- прочее --- */
  --radius: 14px;
  --container: 1180px;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

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

body{
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.hidden-defs{ position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before{
  content: '';
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(242,96,12,.55);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(242,96,12,.65);
  background: var(--orange-dark);
}
.btn-ghost{
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost:hover{
  border-color: rgba(255,255,255,.8);
  transform: translateY(-2px);
}
.btn svg{ width: 18px; height: 18px; flex: none; }

/* =========================== HEADER =========================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header.is-scrolled{
  background: rgba(246,241,231,.97);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--sand-line);
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark-img{ height: 40px; width: auto; display:block; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--white);
  transition: color .35s ease;
}
.brand-name span{ display:block; color: var(--orange); font-size: 12px; letter-spacing: .12em; }

.main-nav{
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}
.main-nav a{
  position: relative;
  padding: 4px 0;
  color: var(--white);
  transition: color .35s ease;
}
.main-nav a::after{
  content:'';
  position:absolute; left:0; right:0; bottom:-2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after{ transform: scaleX(1); }
.main-nav .nav-wa{ display: none; }

.site-header.is-scrolled .brand-name,
.site-header.is-scrolled .main-nav a{
  color: var(--ink);
}

.header-cta{ display:flex; align-items:center; gap:18px; }

.nav-toggle{
  display:none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--sand-line);
  background: var(--white);
  align-items:center; justify-content:center;
  cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:'';
  display:block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }
.nav-toggle.is-open span{ background: transparent; }
.nav-toggle.is-open span::before{ top:0; transform: rotate(45deg); }
.nav-toggle.is-open span::after{ top:0; transform: rotate(-45deg); }

/* =========================== HERO =========================== */
.hero{
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  padding: 168px 0 120px;
  overflow: hidden;
}
.hero-mesh{
  position: absolute;
  inset: -10% -10%;
  z-index: 0;
  opacity: .5;
}
.hero-mesh .line{
  animation: drift 26s linear infinite;
}
@keyframes drift{
  from{ transform: translate(0,0); }
  to{ transform: translate(-120px, 80px); }
}
.hero::after{
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(ellipse 60% 50% at 20% 20%, rgba(242,96,12,.18), transparent 60%),
              linear-gradient(180deg, transparent 40%, var(--charcoal) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero .container{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow{ color: var(--orange); }
.hero h1{
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  margin: 22px 0 22px;
}
.hero h1 em{
  font-style: normal;
  color: var(--orange);
}
.hero p{
  font-size: 17px;
  color: rgba(255,255,255,.72);
  max-width: 48ch;
  margin: 0 0 34px;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-stats{
  display: flex;
  gap: 28px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats div strong{
  display:block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
}
.hero-stats div span{
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

.founder-badge{
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  padding: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  max-width: 520px;
}
.founder-badge-photo{
  flex: none;
  width: 140px;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--orange);
}
.founder-badge-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.founder-badge-info{ display:flex; flex-direction: column; line-height: 1.3; }
.founder-badge-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--white);
}
.founder-badge-role{
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 2px;
  margin-bottom: 8px;
}
.founder-badge-info p{
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 0;
  max-width: 32ch;
}

.hero-mark{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.hero-mark-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.18);
  animation: spin 40s linear infinite;
}
.hero-mark::before{
  content:'';
  position: absolute;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background: linear-gradient(160deg, #FBF7EF 0%, #EDE2C9 100%);
  border: 2.5px solid var(--orange);
  box-shadow: 0 25px 60px -16px rgba(0,0,0,.65), 0 0 70px -5px rgba(242,96,12,.4);
  z-index: 0;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.hero-mark img{
  width: min(340px, 80%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.5));
  opacity: 0;
  transform: scale(.85) rotate(-6deg);
  animation: mark-in 1.1s var(--ease) .2s forwards;
}
@keyframes mark-in{
  to{ opacity: 1; transform: scale(1) rotate(0deg); }
}

/* woven divider between hero and catalog */
.woven-divider{
  display:block;
  width:100%;
  height: 34px;
  margin-top: -1px;
}

/* =========================== SECTION SHELL =========================== */
section{ padding: 96px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head h2{
  font-size: clamp(26px, 3.2vw, 38px);
  margin-top: 14px;
  max-width: 20ch;
}
.section-head p{
  max-width: 40ch;
  color: var(--stone);
  font-size: 15px;
  margin: 0;
}

/* reveal-on-scroll */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* =========================== CATALOG =========================== */
.catalog{ background: var(--sand); }
.catalog-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card{
  position: relative;
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -22px rgba(23,20,15,.28);
  border-color: transparent;
}
.card-icon{
  width: 68px; height: 68px;
  margin-bottom: 16px;
  position: relative;
}
.card-icon svg{ width: 100%; height: 100%; }
.card-corner{
  position:absolute;
  width: 20px; height: 20px;
  top: 14px; right: 14px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .4s ease, transform .4s ease;
}
.card:hover .card-corner{ opacity: 1; transform: scale(1); }
.card h3{
  font-size: 16.5px;
  margin-bottom: 7px;
}
.card p{
  font-size: 13.5px;
  color: var(--stone);
  margin: 0 0 14px;
  line-height: 1.5;
}
.card-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--orange);
}
.card-link svg{
  width: 15px; height: 15px;
  transition: transform .3s var(--ease);
}
.card-link:hover svg{ transform: translateX(4px); }

/* =========================== PORTFOLIO / НАШИ РАБОТЫ =========================== */
.portfolio{ background: var(--sand); padding-top: 0; }
.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.portfolio-item{
  display: block;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--stone-light);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .4s ease;
}
.portfolio-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.portfolio-item::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 60%, rgba(23,20,15,.35));
  opacity: 0;
  transition: opacity .35s ease;
}
.portfolio-item.is-expanded{
  transform: scale(1.22);
  z-index: 5;
  box-shadow: 0 28px 55px -18px rgba(23,20,15,.5);
}
.portfolio-grid.has-expanded .portfolio-item:not(.is-expanded){
  opacity: .55;
}
.portfolio-item:hover img{ transform: scale(1.08); }
.portfolio-item:hover::after{ opacity: 1; }

/* =========================== ABOUT =========================== */
.about{ background: var(--ink); color: var(--white); }
.about .container{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
}
.about .eyebrow{ color: var(--orange); }
.about h2{
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 16px 0 20px;
  max-width: 20ch;
}
.about p{
  color: rgba(255,255,255,.68);
  font-size: 15.5px;
  max-width: 60ch;
  margin: 0 auto 16px;
  text-align: left;
}
.about-points{
  list-style:none;
  padding:0; margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  width: 100%;
  max-width: 560px;
  text-align: left;
}
.about-points li{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  font-size: 14.5px;
  color: rgba(255,255,255,.82);
}
.about-points svg{ flex:none; width:20px; height:20px; margin-top:1px; color: var(--orange); }

/* =========================== CTA =========================== */
.cta{
  background: var(--orange);
  color: var(--white);
  text-align:center;
  position: relative;
  overflow: hidden;
}
.cta .container{ position: relative; z-index: 1; }
.cta .eyebrow{
  color: #17140F;
  font-size: 15px;
}
.cta .eyebrow::before{ display: none; }
.cta h2{
  font-size: clamp(28px, 4vw, 42px);
  max-width: 22ch;
  margin: 0 auto 18px;
}
.cta p{
  color: rgba(255,255,255,.85);
  max-width: 46ch;
  margin: 0 auto 34px;
  font-size: 16px;
}
.cta-actions{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; }
.cta-address{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  font-size: 14px;
  color: rgba(23,20,15,.75);
}
.cta .btn-primary{
  background: var(--ink);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
}
.cta .btn-primary:hover{ background: #26221a; }
.cta .btn-ghost{ border-color: rgba(255,255,255,.5); }

/* =========================== FOOTER =========================== */
.site-footer{
  background: var(--charcoal);
  color: rgba(255,255,255,.55);
  padding: 46px 0 30px;
  font-size: 13.5px;
}
.site-footer .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand{
  display:flex; align-items:center; gap:10px;
  color: rgba(255,255,255,.85);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.footer-brand img{ height: 26px; width:auto; }
.footer-links{ display:flex; gap: 22px; }
.footer-address{ color: rgba(255,255,255,.4); }
.footer-links a:hover{ color: var(--orange); }

/* =========================== FLOATING WHATSAPP =========================== */
.wa-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 24px -6px rgba(37,211,102,.6);
  transition: transform .3s var(--ease);
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float svg{ width: 30px; height: 30px; }

.ig-float{
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #FEC564 0%, #F6702E 25%, #E9276C 50%, #C42FA9 75%, #7B41E0 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 24px -6px rgba(210,45,120,.55);
  transition: transform .3s var(--ease);
}
.ig-float:hover{ transform: scale(1.08); }
.ig-float svg{ width: 30px; height: 30px; }

/* Instagram icon button inline with the contacts CTA */
.btn-icon-social{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(45deg, #FEC564 0%, #F6702E 25%, #E9276C 50%, #C42FA9 75%, #7B41E0 100%);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.35);
  transition: transform .35s var(--ease);
}
.btn-icon-social:hover{ transform: translateY(-2px) scale(1.05); }
.btn-icon-social svg{ width: 24px; height: 24px; }

/* Кнопка WhatsApp в контактах: стрелка-индикатор раскрытия */
.wa-toggle-arrow{
  width: 16px; height: 16px;
  margin-left: 2px;
  transition: transform .3s var(--ease);
}
.wa-toggle.is-open .wa-toggle-arrow{ transform: rotate(180deg); }

/* Раскрывающийся список номеров WhatsApp */
.wa-numbers{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height .4s var(--ease), opacity .3s ease, margin-top .4s var(--ease);
}
.wa-numbers.is-open{
  max-height: 220px;
  opacity: 1;
  margin-top: 18px;
}
.wa-number-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(23,20,15,.92);
  color: var(--white);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  transition: transform .3s var(--ease), background .3s ease;
}
.wa-number-link svg{ width: 17px; height: 17px; flex: none; }
.wa-number-link:hover{
  background: #25D366;
  transform: translateY(-2px);
}

/* Список телефонов в блоке контактов */
.cta-phones{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: rgba(23,20,15,.8);
  font-size: 14.5px;
  font-weight: 600;
}
.phone-link{
  color: rgba(23,20,15,.85);
  text-decoration: none;
}
.phone-sep{ color: rgba(23,20,15,.4); }
@media (min-width: 760px){
  .phone-link{
    pointer-events: none;
    cursor: default;
  }
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 980px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-mark{ order: -1; margin-bottom: 10px; }
  .hero-mark img{ width: 210px; }
  .about .container{ text-align: center; }
  .portfolio-grid{ grid-template-columns: repeat(3, 1fr); }
  .catalog-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px){
  .main-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--sand);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    box-shadow: 0 12px 20px -10px rgba(0,0,0,.15);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s ease;
  }
  .main-nav.is-open{ transform: scaleY(1); opacity: 1; pointer-events:auto; }
  .main-nav a{ padding: 12px 0; border-bottom: 1px solid var(--sand-line); color: var(--ink) !important; }
  .main-nav .nav-wa{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 4px;
    color: var(--orange);
    font-weight: 600;
    border-bottom: none;
  }
  .nav-toggle{ display:flex; }
  .header-cta .header-wa{ display:none; }
  .brand-name{ font-size: 13px; }
  .brand-mark-img{ height: 32px; }
  .hero{ padding: 140px 0 90px; }
  .hero-stats{ flex-wrap: wrap; row-gap: 18px; }
  .section-head{ flex-direction: column; align-items:flex-start; }
  .catalog-grid{ grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .about-points{ grid-template-columns: 1fr; }
  .founder-badge{ margin-top: 22px; max-width: 100%; }
  .cta-actions{ flex-direction: column; align-items: stretch; }
  .cta .btn{ justify-content:center; }
  .btn-icon-social{ align-self: center; }
  .site-footer .container{ flex-direction: column; text-align:center; }
  .footer-links{ justify-content:center; flex-wrap: wrap; }
}

/* Кнопка "Позвонить" больше не используется — заменена списком телефонов в .cta-phones */
