﻿/* ═══════════════════════════════════════════
   ФЕРАМ — main.css
   ═══════════════════════════════════════════ */

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; font-feature-settings: 'cv02','cv03','cv04','cv11'; overflow-x: hidden; background: #F7F8F5; color: #fff; }
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; }
.line-clamp-2 { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.mag-btn { position:relative; display:inline-flex; align-items:center; justify-content:center; will-change:transform; }
.tilt-card { will-change:transform; transform-style:preserve-3d; }
#site-header { transition: transform .4s cubic-bezier(.4,0,.2,1); }
#site-header.hide { transform: translateY(-130%); }
#nav-inner {
  background: rgba(9,9,9,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
#site-header.scrolled #nav-inner {
  background: rgba(6,6,6,0.95);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 1px 0 rgba(22,163,74,0.15), inset 0 1px 0 rgba(255,255,255,0.07);
}
.nav-link {
  position: relative; color: rgba(255,255,255,0.55); font-size: 13.5px; font-weight: 500;
  padding: 6px 16px; border-radius: 8px; transition: color .2s ease, background .2s;
  letter-spacing: .015em; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 1px; left: 16px; right: 16px;
  height: 1.5px; background: #16A34A; border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { background: rgba(255,255,255,0.05); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: #16A34A; color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 9px 22px; border-radius: 10px;
  transition: background .2s, box-shadow .2s, transform .15s;
  cursor: pointer; white-space: nowrap; letter-spacing: .01em;
  box-shadow: 0 0 0 1px rgba(22,163,74,0.4); text-decoration: none;
}
.nav-cta:hover { background: #15803d; box-shadow: 0 0 24px rgba(22,163,74,0.45), 0 0 0 1px rgba(22,163,74,0.5); transform: translateY(-1px); }
.nav-phone {
  display: none; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,0.5); transition: color .2s; cursor: pointer; white-space: nowrap; text-decoration: none;
}
@media (min-width: 1024px) {
  .nav-phone { display: flex; }
}
.nav-phone:hover { color: rgba(255,255,255,0.9); }
.nav-sep { width:1px; height:18px; background: rgba(255,255,255,0.1); flex-shrink:0; }

#burger { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.nav-cta-mini { display: none; }
#mobile-menu { opacity: 0; transition: opacity .3s ease; height: 100vh; height: 100dvh; padding-top: 88px; }
#mobile-menu.is-open { opacity: 1; }
#mobile-menu.is-open #mob-footer { opacity: 1 !important; transform: none !important; }
#mob-footer { flex-shrink: 0; }
html:has(#mobile-menu.is-open) #nav-cta { opacity: 0; pointer-events: none; transition: opacity .2s; }
html:has(#mobile-menu.is-open) #nav-mob-phone { opacity: 0; pointer-events: none; transition: opacity .2s; }
@media (max-width: 767px) { #nav-cta { display: none !important; } .nav-right { gap: 2px !important; } }

.mobile-nav-link {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 36px; font-weight: 800; font-family: 'Manrope', sans-serif;
  color: rgba(255,255,255,.8); text-decoration: none;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 3px 0 0 transparent;
  opacity: 0; transform: translateY(20px);
  transition: color .2s ease, background .25s ease, box-shadow .25s ease,
              opacity .38s ease, transform .38s ease;
  letter-spacing: -.035em; line-height: 1;
}
.mobile-nav-link:last-child { border-bottom: none; }
#mobile-menu.is-open .mobile-nav-link:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
#mobile-menu.is-open .mobile-nav-link:nth-child(2) { opacity:1; transform:none; transition-delay:.12s; }
#mobile-menu.is-open .mobile-nav-link:nth-child(3) { opacity:1; transform:none; transition-delay:.19s; }
#mobile-menu.is-open .mobile-nav-link:nth-child(4) { opacity:1; transform:none; transition-delay:.26s; }
.mobile-nav-link:hover, .mobile-nav-link:active {
  color: #fff;
  background: linear-gradient(90deg, rgba(22,163,74,.1) 0%, transparent 60%);
  box-shadow: inset 3px 0 0 rgba(22,163,74,.65);
}
.mobile-nav-link.mob-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(22,163,74,.08) 0%, transparent 60%);
  box-shadow: inset 3px 0 0 #16A34A;
}
.mob-arr { color: rgba(22,163,74,.7); flex-shrink:0; transition: transform .2s ease, color .2s; }
.mobile-nav-link.mob-active .mob-arr { color: #16A34A; }
.mobile-nav-link:hover .mob-arr { transform: translate(3px,-3px); color: #16A34A; }
.mob-tag {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(22,163,74,.65); margin-bottom: 5px;
}
.mob-title {
  display: block; font-size: 40px; font-weight: 800;
  color: rgba(255,255,255,.85); letter-spacing: -.035em; line-height: 1;
  transition: color .2s ease;
}
.mobile-nav-link:hover .mob-title, .mobile-nav-link:active .mob-title { color: #fff; }
.mobile-nav-link.mob-active .mob-title { color: #fff; }
.mob-link-inner { display: flex; align-items: center; gap: 18px; }
.mob-num {
  font-family: 'Unbounded', sans-serif; font-size: 10px; font-weight: 800;
  color: rgba(22,163,74,.4); letter-spacing: .1em; flex-shrink: 0;
  transition: color .2s ease;
}
.mobile-nav-link:hover .mob-num, .mobile-nav-link.mob-active .mob-num { color: rgba(22,163,74,.9); }

#burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 20px; }
#scroll-progress { position:fixed; top:0; left:0; height:3px; background:#16A34A; z-index:9998; transform-origin:left; width:0; }
.mq-mask {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}
.mq-row { display:flex; align-items:center; width:max-content; will-change:transform; transform:translateZ(0); backface-visibility:hidden; }
.mq-fwd { animation: mq-scroll-left 26s linear infinite; }
@media (max-width: 767px) {
  .mq-fwd { animation: mq-scroll-left 18s linear infinite; }
  .plogo { padding:8px 28px !important; }
}

@keyframes mq-scroll-left { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
.plogo { display:inline-flex; align-items:center; padding:8px 52px; flex-shrink:0; opacity:.52; transition:opacity .3s,filter .3s,transform .25s; cursor:default; }
.plogo img { display:block; width:auto; }
.plogo:hover { opacity:1; filter:drop-shadow(0 0 10px rgba(22,163,74,.55)); transform:scale(1.07); }
@media (hover: none) { .plogo:hover { opacity:.52; filter:none; transform:none; } }
.plogo-sep { width:1px; height:32px; background:rgba(255,255,255,.07); flex-shrink:0; }
.cf-input {
  width:100%; padding:14px 18px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1);
  border-radius:14px; color:#fff; font-size:14px; font-family:'Plus Jakarta Sans',sans-serif;
  outline:none; transition:border-color .25s,box-shadow .25s,background .25s; -webkit-appearance:none; appearance:none;
}
.cf-input::placeholder { color:rgba(255,255,255,.28); }
.cf-input:focus { border-color:rgba(22,163,74,.75); background:rgba(255,255,255,.08); box-shadow:0 0 0 3px rgba(22,163,74,.13); }
#page-loader { position:fixed;inset:0;z-index:99999;background:#0D0D0D url('/assets/images/loader-bg.webp') center/cover no-repeat;display:none;align-items:center;justify-content:center; }
#loader-body { text-align:center; }
#loader-svg  { display:block;overflow:visible; }
#loader-sub  { opacity:0;margin-top:28px;font-size:11px;font-weight:600;letter-spacing:.38em;text-transform:uppercase;color:rgba(255,255,255,.32); }
#loader-bar  { width:200px;height:1px;background:rgba(255,255,255,.08);margin:22px auto 0;overflow:hidden; }
#loader-bar-fill { height:100%;width:0%;background:linear-gradient(90deg,#16A34A,#86efac);box-shadow:0 0 8px 2px rgba(22,163,74,.6); }
#hero-badge, #hero-title, #hero-sub, #hero-btns, #hero-stats { opacity: 0; }
@media (max-width: 767px) {
  #hero-badge, #hero-title, #hero-sub, #hero-btns, #hero-stats { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #hero-badge, #hero-title, #hero-sub, #hero-btns, #hero-stats { opacity: 1; }
}
.bc {
  display:flex; align-items:center; gap:6px;
  font-size:13px; color:#9CA3AF; flex-wrap:wrap;
}
.bc a { color:inherit; text-decoration:none; transition:color .15s; }
.bc a:hover { color:#16A34A; }
.bc-sep { opacity:.45; font-size:12px; }
.bc-cur { color:#111827; font-weight:600; }
.bc-strip {
  background:#F5F5F7; border-bottom:1px solid #E4E6EC;
  padding:10px 48px; font-size:13px; color:#94A3B8;
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
}
.bc-strip a { color:inherit; text-decoration:none; transition:color .13s; }
.bc-strip a:hover { color:#16A34A; }
.ghost-title {
  position: absolute; font-weight: 900;
  font-size: clamp(28px, 8vw, 150px); color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.07);
  line-height: 1; letter-spacing: -.03em;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #16A34A;
}
.section-label::before { content:''; display:block; width:28px; height:1.5px; background:#16A34A; }
.page-hero { background:#F7F8F5; padding:48px 0 80px; position:relative; overflow:hidden; }
.page-hero::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 80% 60% at 55% 50%, rgba(22,163,74,0.06) 0%, transparent 65%);
  pointer-events:none;
}
.cat-card { text-decoration: none; display: block; }
.project-card {
  border-radius:16px; overflow:hidden; background:#1A1A1A; cursor:pointer;
  transition:transform .3s, box-shadow .3s; text-decoration:none; display:block;
}
.project-card:hover { transform:translateY(-4px); box-shadow:0 20px 40px rgba(0,0,0,0.3); }
.adv-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 32px;
  transition: border-color .3s, background .3s;
}
.adv-card:hover { border-color: rgba(22,163,74,0.25); background: rgba(22,163,74,0.03); }
footer a { text-decoration:none; }
html.no-gsap .reveal-up  { opacity:0; transform:translateY(40px);  transition:opacity .75s ease,transform .75s ease; }
html.no-gsap .reveal-left  { opacity:0; transform:translateX(-40px); transition:opacity .75s ease,transform .75s ease; }
html.no-gsap .reveal-right { opacity:0; transform:translateX(40px);  transition:opacity .75s ease,transform .75s ease; }
html.no-gsap .reveal-up.in-view,
html.no-gsap .reveal-left.in-view,
html.no-gsap .reveal-right.in-view { opacity:1; transform:none; }
html.no-gsap .stagger-reveal > *        { opacity:0; transform:translateY(30px); transition:opacity .7s ease,transform .7s ease; }
html.no-gsap .stagger-reveal > *.in-view { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  .mq-fwd { animation: none !important; }
  *, *::before, *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}
@media (max-width: 1024px) {
  #cat-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
  #hero-title { font-size: 2.6rem !important; line-height: 1.1 !important; }
  #hero-sub   { font-size: 16px !important; }
  #cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .plogo { padding: 8px 28px !important; }
  .bc-strip { padding: 10px 24px; }
}
@media (max-width: 480px) {
  #hero-title { font-size: 2rem !important; }
  #hero-sub   { font-size: 14px !important; }
  #hero-stats { gap: 20px !important; margin-top: 36px !important; flex-wrap: wrap; }
  #cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .cat-card { aspect-ratio: 1/1 !important; }
  .plogo { padding: 8px 18px !important; }
  .mobile-nav-link { font-size: 32px !important; }
  .mob-title { font-size: 32px !important; }
}
@media (max-width: 400px) {
  .nav-cta-full { display: none; }
  .nav-cta-mini { display: inline; }
  .nav-cta { padding-left: 14px !important; padding-right: 14px !important; }
}
footer.fp-footer { background:#F7F8F5; padding:0 48px; }
.fp-inner { width:100%; }
.fp-cols { display:grid; grid-template-columns:1fr 1fr 1fr 1fr; gap:48px; padding-bottom:36px; border-top:1px solid #DFE1DA; padding-top:40px; opacity:0; transform:translateY(12px); transition:opacity .5s ease,transform .5s ease; }
.fp-cols--visible { opacity:1; transform:none; }
.fp-col-title { font-size:13px; font-weight:700; color:#1A1A1A; margin-bottom:18px; padding-bottom:10px; border-bottom:2px solid #16A34A; display:inline-block; }
.fp-col-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.fp-col-list--2col { display:grid; grid-template-columns:auto auto; gap:8px 32px; justify-content:start; }
.fp-clink { font-size:13.5px; color:#555250; text-decoration:none; transition:color .18s; }
.fp-clink:hover { color:#0D0D0D; }
.fp-hours { display:flex; flex-direction:column; gap:9px; margin-bottom:24px; }
.fp-hours-row { display:grid; grid-template-columns:auto 1fr; align-items:baseline; font-size:13px; gap:0 16px; }
.fp-hours-day { color:#555250; }
.fp-hours-time { color:#0D0D0D; font-weight:600; }
.fp-hours-off .fp-hours-time { color:#B0ADA9; }
.fp-socs-label { font-size:11px; color:#8A8784; display:block; margin-bottom:14px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.fp-phone { font-size:22px; font-weight:800; color:#0D0D0D; text-decoration:none; display:block; margin-bottom:14px; font-family:'Manrope',sans-serif; letter-spacing:-.03em; line-height:1.15; transition:color .2s; }
.fp-phone:hover { color:#16A34A; }
.fp-phone-sub { font-size:12px; color:#8A8784; display:block; margin-bottom:18px; }
.fp-email { font-size:14px; font-weight:600; color:#0D0D0D; text-decoration:none; display:block; margin-bottom:2px; transition:color .2s; }
.fp-email:hover { color:#16A34A; }
.fp-email-sub { font-size:12px; color:#8A8784; display:block; margin-bottom:18px; }
.fp-addr { font-size:14px; font-weight:600; color:#0D0D0D; display:block; margin-bottom:2px; }
.fp-addr-sub { font-size:12px; color:#8A8784; }
.fp-bottom { border-top:1px solid #DFE1DA; padding:18px 0; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.fp-copy { font-size:12px; color:#8A8784; }
.fp-socs { display:flex; gap:8px; }
.fp-soc { width:36px; height:36px; border-radius:50%; border:1.5px solid #D4D6D0; color:#6B6864; display:flex; align-items:center; justify-content:center; text-decoration:none; transition:border-color .2s,color .2s,transform .2s; }
.fp-soc:hover { border-color:#16A34A; color:#16A34A; transform:translateY(-2px); }

@media(max-width:1100px){
  .fp-cols { grid-template-columns:1fr 1fr; gap:32px; }
}
@media(max-width:600px){
  footer.fp-footer { padding:20px 16px 0; }
  .fp-inner { width:100%; }
  .fp-cols { grid-template-columns:1fr 1fr; gap:20px 16px; padding-top:24px; padding-bottom:24px; }
  .fp-col:nth-child(1) { order:1; } 
  .fp-col-list--2col { grid-template-columns:1fr; }
  .fp-col-list--2col li:nth-child(n+6) { display:none; }
  .fp-col:nth-child(2) { order:3; } 
  .fp-col:nth-child(3) { order:4; } 
  .fp-col:nth-child(4) { order:2; } 
  .fp-col-title { margin-bottom:12px; }
  .fp-col-list { gap:8px; }
  .fp-phone { font-size:18px; }
  .fp-bottom { padding:14px 0; font-size:11px; }
}
#back-top {
  position:fixed; bottom:28px; right:28px; z-index:1001;
  width:46px; height:46px; border-radius:14px; border:none;
  background:#16A34A; color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 20px rgba(22,163,74,.4);
  opacity:0; transform:translateY(12px) scale(.9);
  transition:opacity .25s, transform .25s, background .15s, box-shadow .15s;
  pointer-events:none;
}
#back-top.show { opacity:1; transform:none; pointer-events:auto; }
#back-top:hover { background:#15803d; box-shadow:0 6px 28px rgba(22,163,74,.5); transform:translateY(-2px); }
