@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ------------------------------------------------------------------
   INVICEX — "Архитектура цифрового наследия"
   Class convention: semantic BEM (block__element--modifier)
   Palette: snow / graphite / ebony / ochre (primary ~108°)
------------------------------------------------------------------- */

/* ============ TOKENS ============ */
:root{
  --snow:        #f6f4ee;
  --snow-soft:   #efece2;
  --paper:       #ffffff;
  --line:        #e3ddce;
  --line-soft:   #ece8dc;
  --graphite:    #383b39;
  --ink:         #1c1e1c;
  --ebony:       #151715;
  --ebony-soft:  #212422;
  --gold:        #b8912f;
  --gold-deep:   #9a7820;
  --gold-soft:   #d8bd78;
  --muted:       #6f726a;
  --muted-light: #a6a89d;

  --ff-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ff-body:    "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --pad-x: clamp(1.15rem, 4vw, 3rem);
  --gap: clamp(1.5rem, 3vw, 2.75rem);
  --sec-y: clamp(4.5rem, 10vw, 8rem);
  --sec-y-sm: clamp(2.5rem, 5vw, 4rem);

  --r-sm: 2px;
  --r: 4px;
  --r-lg: 6px;

  --sh-sm: 0 1px 2px rgba(20,18,10,.05), 0 6px 18px rgba(20,18,10,.05);
  --sh:    0 2px 6px rgba(20,18,10,.06), 0 22px 50px rgba(20,18,10,.10);
  --sh-lg: 0 30px 80px rgba(20,18,10,.16);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ============ RESET ============ */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
*{ -webkit-tap-highlight-color:transparent; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  font-family:var(--ff-body);
  font-weight:300;
  font-size:clamp(1rem,.96rem + .18vw,1.1rem);
  line-height:1.75;
  color:var(--graphite);
  background:var(--snow);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  min-height:100vh;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
ul,ol{ list-style:none; }
a{ text-decoration:none; color:inherit; }
button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
input,select,textarea{ font:inherit; color:inherit; }
::selection{ background:var(--gold); color:var(--ebony); }

/* ============ LAYOUT ============ */
.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding-inline:var(--pad-x);
}
.section{ padding-block:var(--sec-y); position:relative; }
.section--tight{ padding-block:var(--sec-y-sm); }
.section--ebony{ background:var(--ebony); color:var(--snow); }
.section--ebony .section__lead{ color:var(--muted-light); }
.section--ebony .section__body p{ color:var(--muted-light); }
.section--soft{ background:var(--snow-soft); }
.section__inner{ max-width:820px; }

/* ============ TYPE ============ */
h1,h2,h3,h4{ font-family:var(--ff-display); font-weight:500; line-height:1.04; color:var(--ink); letter-spacing:.2px; }
.section__eyebrow{
  display:inline-flex; align-items:center; gap:.85em;
  font-family:var(--ff-body); font-weight:500;
  font-size:.72rem; letter-spacing:.34em; text-transform:uppercase;
  color:var(--gold-deep); margin-bottom:1.3rem;
}
.section__eyebrow::before{ content:""; width:2.2rem; height:1px; background:var(--gold); }
.section__title{ font-size:clamp(2.1rem,1.3rem + 2.7vw,3.4rem); font-weight:500; }
.section__title em{ font-style:italic; font-weight:400; color:var(--gold-deep); }
.section__lead{
  margin-top:1.35rem; max-width:46ch;
  font-size:clamp(1.05rem,.98rem + .3vw,1.28rem);
  font-weight:300; color:var(--muted); line-height:1.65;
}
.section__body{ margin-top:2.2rem; max-width:60ch; }
.section__body p{ margin-bottom:1.1rem; color:var(--graphite); }
.section__body p:last-child{ margin-bottom:0; }
.head{ margin-bottom:var(--gap); }
.head--split{ display:grid; grid-template-columns:1fr auto; gap:2rem; align-items:end; }
.head--split .section__eyebrow{ margin-bottom:.4rem; }
.head--center{ text-align:center; }
.head--center .section__eyebrow{ justify-content:center; }
.head--center .section__eyebrow::before{ display:none; }
.head--center .section__lead{ margin-inline:auto; }

/* ============ LINKS ============ */
.link{
  position:relative; display:inline-block;
  font-weight:500; color:var(--gold-deep);
  padding-bottom:2px;
  background:linear-gradient(currentColor,currentColor) no-repeat left bottom/0% 1px;
  transition:background-size .45s var(--ease), color .3s;
}
.link:hover{ background-size:100% 1px; color:var(--ink); }
.link--bare{ color:inherit; font-weight:400; }
.link--bare:hover{ color:var(--gold-deep); }

/* ============ BUTTONS ============ */
.btn{
  --bg:transparent; --fg:var(--ink); --bd:rgba(28,30,28,.5);
  position:relative; overflow:hidden; isolation:isolate;
  display:inline-flex; align-items:center; justify-content:center; gap:.65em;
  padding:.95em 1.9em;
  font-family:var(--ff-body); font-weight:500; font-size:.76rem;
  letter-spacing:.2em; text-transform:uppercase;
  color:var(--fg); background:var(--bg);
  border:1px solid var(--bd); border-radius:var(--r-sm);
  transition:color .4s var(--ease), border-color .4s var(--ease);
  will-change:transform;
}
.btn::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:var(--gold); transform:translateY(101%);
  transition:transform .5s var(--ease);
}
.btn:hover{ color:var(--ebony); border-color:var(--gold); }
.btn:hover::before{ transform:translateY(0); }
.btn__arrow{ transition:transform .4s var(--ease); }
.btn:hover .btn__arrow{ transform:translateX(5px); }
.btn--gold{ --bg:var(--gold); --fg:var(--ebony); --bd:var(--gold); }
.btn--gold::before{ background:var(--ebony); }
.btn--gold:hover{ color:var(--snow); border-color:var(--ebony); }
.btn--light{ --fg:var(--snow); --bd:rgba(246,244,238,.4); }
.btn--light::before{ background:var(--snow); }
.btn--light:hover{ color:var(--ebony); border-color:var(--snow); }
.btn--sm{ padding:.65em 1.3em; font-size:.7rem; }

/* ============ HEADER ============ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(246,244,238,.86);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color .4s, box-shadow .4s, background .4s;
}
.site-header.is-scrolled{
  border-bottom-color:var(--line);
  box-shadow:0 10px 30px rgba(20,18,10,.06);
  background:rgba(246,244,238,.94);
}
.header__wrap{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem;
  padding-block:1.15rem;
  transition:padding .4s var(--ease);
}
.site-header.is-scrolled .header__wrap{ padding-block:.7rem; }
.brand{
  display:inline-flex; align-items:center; gap:.75rem;
  z-index:101;
}
.brand__mark{ width:34px; height:34px; flex:none; }
.brand__name{
  font-family:var(--ff-display); font-weight:600;
  font-size:1.4rem; letter-spacing:.24em; color:var(--ink);
  line-height:1; padding-left:.1em;
}
.brand__sub{
  display:block; margin-top:.35rem;
  font-size:.55rem; letter-spacing:.32em; text-transform:uppercase;
  color:var(--muted); font-weight:400;
}
.header__split{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem;
}
.site-nav{ display:flex; }
.nav__list{ display:flex; gap:clamp(1rem,1.8vw,2.1rem); }
.nav__link{
  position:relative; display:inline-block;
  padding:.35rem 0;
  font-size:.82rem; font-weight:400; letter-spacing:.05em; color:var(--graphite);
  transition:color .3s;
}
.nav__link::after{
  content:""; position:absolute; left:0; bottom:0;
  width:100%; height:1px; background:var(--gold);
  transform:scaleX(0); transform-origin:left;
  transition:transform .4s var(--ease);
}
.nav__link:hover{ color:var(--ink); }
.nav__link:hover::after{ transform:scaleX(1); }
.nav__link--cta{ color:var(--gold-deep); font-weight:500; }
.nav__link--cta::after{ background:var(--ink); }

/* mobile toggle */
.header__toggle{
  display:none; z-index:101;
  width:44px; height:44px; border-radius:var(--r-sm);
  align-items:center; justify-content:center;
  border:1px solid var(--line);
}
.header__toggle span,
.header__toggle span::before,
.header__toggle span::after{
  display:block; width:20px; height:1.5px; background:var(--ink);
  transition:transform .35s var(--ease), opacity .3s;
}
.header__toggle span{ position:relative; }
.header__toggle span::before{ content:""; position:absolute; top:-6px; }
.header__toggle span::after{ content:""; position:absolute; top:6px; }
.site-header.is-open .header__toggle span{ background:transparent; }
.site-header.is-open .header__toggle span::before{ transform:translateY(6px) rotate(45deg); }
.site-header.is-open .header__toggle span::after{ transform:translateY(-6px) rotate(-45deg); }

/* ============ HERO ============ */
.hero{
  position:relative; overflow:hidden;
  padding-block:var(--sec-y);
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(184,145,47,.10), transparent 55%),
    radial-gradient(90% 80% at 0% 120%, rgba(21,23,21,.05), transparent 60%),
    var(--snow);
}
.hero__grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:clamp(2rem,4vw,4.5rem);
  align-items:center;
}
.hero__eyebrow{
  display:inline-flex; align-items:center; gap:.9em;
  font-size:.72rem; letter-spacing:.34em; text-transform:uppercase;
  font-weight:500; color:var(--gold-deep); margin-bottom:1.6rem;
}
.hero__eyebrow::before{ content:""; width:2.6rem; height:1px; background:var(--gold); }
.hero__title{
  font-size:clamp(2.9rem,1.6rem + 4.6vw,5.4rem);
  font-weight:500; color:var(--ink); line-height:1.02;
}
.hero__title em{ font-style:italic; font-weight:400; color:var(--gold-deep); }
.hero__lead{
  margin-top:1.8rem; max-width:42ch;
  font-size:clamp(1.08rem,1rem + .35vw,1.3rem);
  color:var(--muted); font-weight:300; line-height:1.7;
}
.hero__actions{ display:flex; flex-wrap:wrap; gap:1rem; margin-top:2.4rem; }
.hero__meta{
  display:flex; flex-wrap:wrap; gap:1.4rem 2.2rem;
  margin-top:3rem; padding-top:1.8rem;
  border-top:1px solid var(--line);
}
.hero__meta li{ display:flex; flex-direction:column; gap:.25rem; }
.hero__meta span{
  font-size:.66rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--muted); font-weight:400;
}
.hero__meta strong{
  font-family:var(--ff-display); font-weight:600;
  font-size:1.5rem; color:var(--ink); line-height:1;
}
.hero__media{ position:relative; }
.hero__media::before{
  content:""; position:absolute; inset:0;
  border:1px solid var(--gold); opacity:.5;
  transform:translate(16px,16px);
  transition:transform .6s var(--ease);
}
.hero__media:hover::before{ transform:translate(8px,8px); }
.hero__media img{
  position:relative; width:100%; aspect-ratio:4/5; object-fit:cover;
  border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--sh-lg);
}
.hero__badge{
  position:absolute; left:-1.1rem; bottom:2rem; z-index:2;
  background:var(--ebony); color:var(--snow);
  padding:1.1rem 1.4rem; border-radius:var(--r-sm);
  box-shadow:var(--sh); max-width:220px;
}
.hero__badge b{
  display:block; font-family:var(--ff-display); font-weight:600;
  font-size:1.9rem; line-height:1; color:var(--gold-soft);
}
.hero__badge span{ font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted-light); }

/* ============ CARDS ============ */
.cards{ display:grid; gap:var(--gap); grid-template-columns:repeat(3,1fr); }
.card{
  position:relative; overflow:hidden;
  background:var(--paper);
  border:1px solid var(--line-soft);
  border-radius:var(--r);
  padding:clamp(1.6rem,2.4vw,2.3rem);
  box-shadow:var(--sh-sm);
  transition:transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card:hover{ transform:translateY(-5px); box-shadow:var(--sh); border-color:var(--line); }
.card::after{
  content:""; position:absolute; left:0; top:0; height:2px; width:0;
  background:var(--gold); transition:width .55s var(--ease);
}
.card:hover::after{ width:100%; }
.card__index{
  font-family:var(--ff-display); font-weight:500; font-size:1.1rem;
  color:var(--gold); letter-spacing:.05em;
}
.card__title{
  margin-top:1rem; font-size:1.5rem; font-weight:500;
}
.card__text{ margin-top:.85rem; color:var(--muted); font-size:.98rem; }
.card__link{ margin-top:1.4rem; display:inline-flex; align-items:center; gap:.5em; }

/* ============ STATS ============ */
.stats{
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:clamp(1rem,3vw,2.5rem);
}
.stat{
  position:relative; padding:1.5rem 0;
  border-top:1px solid var(--line);
}
.section--ebony .stat{ border-top-color:rgba(246,244,238,.22); }
.stat__num{
  font-family:var(--ff-display); font-weight:500;
  font-size:clamp(2.6rem,1.6rem + 3vw,4rem); line-height:1;
  color:var(--gold);
}
.section--ebony .stat__num{ color:var(--gold-soft); }
.stat__label{
  margin-top:.7rem; font-size:.82rem; letter-spacing:.05em;
  color:var(--muted); line-height:1.4;
}
.section--ebony .stat__label{ color:var(--muted-light); }

/* ============ CTA BAND ============ */
.cta{
  position:relative; overflow:hidden;
  background:var(--ebony); color:var(--snow);
  padding-block:var(--sec-y-sm);
}
.cta::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(80% 130% at 100% 0%, rgba(184,145,47,.16), transparent 55%);
  pointer-events:none;
}
.cta__grid{
  position:relative;
  display:grid; grid-template-columns:1.35fr .65fr; gap:2rem;
  align-items:center;
}
.cta__title{
  font-size:clamp(2rem,1.3rem + 2.4vw,3.2rem); font-weight:500;
  color:var(--snow); line-height:1.05;
}
.cta__title em{ font-style:italic; color:var(--gold-soft); font-weight:400; }
.cta__lead{ margin-top:1.2rem; max-width:44ch; color:var(--muted-light); font-size:1.1rem; }
.cta__actions{ display:flex; flex-wrap:wrap; gap:1rem; justify-content:flex-end; }

/* ============ FAQ ============ */
.faq{ max-width:840px; }
.faq__item{
  border-top:1px solid var(--line);
  padding:1.6rem 0;
}
.faq__item:last-child{ border-bottom:1px solid var(--line); }
.faq__q{
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem;
  font-family:var(--ff-display); font-weight:500; font-size:1.35rem;
  color:var(--ink); cursor:pointer;
}
.faq__q::before{
  content:attr(data-index); flex:none;
  font-family:var(--ff-body); font-weight:500; font-size:.8rem;
  letter-spacing:.1em; color:var(--gold); width:2.2rem;
}
.faq__q::after{
  content:"+"; flex:none;
  font-family:var(--ff-display); font-weight:400; font-size:1.6rem;
  color:var(--gold); transition:transform .35s var(--ease);
}
.faq__item.is-open .faq__q::after{ transform:rotate(45deg); }
.faq__a{
  max-height:0; overflow:hidden; opacity:0;
  transition:max-height .5s var(--ease), opacity .4s, margin .4s;
  color:var(--muted); font-size:1rem; line-height:1.75;
}
.faq__item.is-open .faq__a{ opacity:1; margin-top:1rem; }

/* ============ FORMS ============ */
.form__row{ display:grid; grid-template-columns:1fr 1fr; gap:1.4rem; }
.form__field{ display:flex; flex-direction:column; gap:.5rem; margin-bottom:1.4rem; }
.form__field--full{ grid-column:1/-1; }
.form__label{
  font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
  font-weight:500; color:var(--muted);
}
.form__input{
  width:100%;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--r-sm);
  padding:.95rem 1.1rem;
  font-weight:300; color:var(--ink);
  transition:border-color .3s, box-shadow .3s;
}
.form__input:focus{
  outline:none; border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(184,145,47,.14);
}
textarea.form__input{ min-height:130px; resize:vertical; }

/* ============ FOOTER ============ */
.site-footer{
  background:var(--ebony); color:var(--muted-light);
  padding-block:clamp(3.5rem,7vw,5.5rem) 2rem;
  position:relative; overflow:hidden;
}
.site-footer::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(70% 100% at 0% 0%, rgba(184,145,47,.08), transparent 55%);
  pointer-events:none;
}
.footer__grid{
  position:relative;
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1.3fr;
  gap:clamp(1.8rem,4vw,3rem);
  padding-bottom:3rem;
  border-bottom:1px solid rgba(246,244,238,.14);
}
.footer__brand .brand__name{ color:var(--snow); }
.footer__brand .brand__sub{ color:var(--muted-light); }
.footer__tag{
  margin-top:1.4rem; max-width:32ch;
  font-family:var(--ff-display); font-style:italic; font-size:1.3rem;
  color:var(--gold-soft); line-height:1.4;
}
.footer__col h4{
  font-family:var(--ff-body); font-weight:500; font-size:.72rem;
  letter-spacing:.24em; text-transform:uppercase; color:var(--snow);
  margin-bottom:1.3rem;
}
.footer__col li{ margin-bottom:.75rem; }
.footer__col a{
  color:var(--muted-light); font-size:.95rem;
  transition:color .3s, padding-left .3s;
}
.footer__col a:hover{ color:var(--gold-soft); padding-left:.35rem; }
.footer__contact li{ display:flex; gap:.7rem; align-items:baseline; margin-bottom:.9rem; font-size:.95rem; }
.footer__contact span{ color:var(--muted); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; flex:none; }
.footer__contact a{ color:var(--snow); }
.footer__contact a:hover{ color:var(--gold-soft); }
.footer__bottom{
  position:relative;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem;
  padding-top:1.8rem; font-size:.82rem; letter-spacing:.04em;
}
.footer__bottom a{ color:var(--muted-light); transition:color .3s; }
.footer__bottom a:hover{ color:var(--gold-soft); }

/* ============ RESPONSIVE ============ */
@media (max-width:1024px){
  .hero__grid{ grid-template-columns:1fr; }
  .hero__media{ max-width:520px; }
  .cards{ grid-template-columns:repeat(2,1fr); }
  .footer__grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:860px){
  .header__toggle{ display:inline-flex; }
  .header__split{
    position:fixed; inset:0; z-index:100;
    flex-direction:column; justify-content:center; gap:1.5rem;
    background:var(--snow);
    padding-inline:var(--pad-x);
    transform:translateY(-100%); opacity:0; visibility:hidden;
    transition:transform .5s var(--ease), opacity .4s, visibility .5s;
  }
  .site-header.is-open .header__split{
    transform:translateY(0); opacity:1; visibility:visible;
  }
  .nav__list{ flex-direction:column; gap:1.4rem; }
  .nav__link{ font-size:1.4rem; font-family:var(--ff-display); font-weight:500; }
  .nav__link--cta{ font-size:1.4rem; }
  .cta__grid{ grid-template-columns:1fr; }
  .cta__actions{ justify-content:flex-start; }
}

@media (max-width:640px){
  .cards{ grid-template-columns:1fr; }
  .stats{ grid-template-columns:1fr 1fr; }
  .form__row{ grid-template-columns:1fr; }
  .footer__grid{ grid-template-columns:1fr; }
  .hero__badge{ left:0; bottom:1rem; }
  .head--split{ grid-template-columns:1fr; }
}
@media (max-width:420px){
  .stats{ grid-template-columns:1fr; }
}

/* ============ MOTION ============ */
@media (prefers-reduced-motion:no-preference){
  html{ scroll-behavior:smooth; }
  .reveal{
    opacity:0; transform:translateY(26px);
    transition:opacity .9s var(--ease), transform .9s var(--ease);
  }
  .reveal.is-in{ opacity:1; transform:none; }
  .reveal--delay-1{ transition-delay:.08s; }
  .reveal--delay-2{ transition-delay:.16s; }
  .reveal--delay-3{ transition-delay:.24s; }
}
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
  .reveal{ opacity:1; transform:none; }
} img,svg,video{max-width:100%;height:auto} *{box-sizing:border-box} html{-webkit-text-size-adjust:100%} 