:root{
  --bg: #ffffff;
  --fg: #0f172a;     /* почти чёрный (navy) */
  --muted: #64748b;  /* серый */
  --line: rgba(15, 23, 42, .10);
  --card: rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
  --red: #e11d2e;    /* стильный красный под 2 */
  --radius: 18px;

  --header-h: 76px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.inner{
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner{
  height: var(--header-h);
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  align-items: center;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}
.brand__logo{
  height: 28px;
  width: auto;
}

.nav{
  display: flex;
  justify-content: center;
  gap: 28px;
}
.nav__link{
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  color: rgba(15, 23, 42, .78);
  position: relative;
  padding: 10px 4px;
}
.nav__link:hover{ color: rgba(15, 23, 42, 1); }
.nav__link.is-active{
  color: rgba(15, 23, 42, 1);
}
.nav__link.is-active::after{
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 46, .9), transparent);
  border-radius: 999px;
}

/* Contacts (right) */
.contacts{
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  color: rgba(15, 23, 42, .78);
}
.contacts__item:hover{ color: rgba(15, 23, 42, 1); }

/* Burger + mobile */
.burger{
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  cursor: pointer;
  padding: 10px;
  gap: 6px;
}
.burger span{
  display: block;
  height: 2px;
  background: rgba(15, 23, 42, .85);
  border-radius: 2px;
}

.mobile{
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
}
.mobile__inner{
  padding: 14px 20px 18px;
  display: grid;
  gap: 10px;
}
.mobile__link{
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 600;
  color: rgba(15, 23, 42, .85);
}
.mobile__link:hover{ background: rgba(15, 23, 42, .04); }
.mobile__contacts{
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

/* Sections */
.section{
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  scroll-margin-top: var(--header-h);
}
.section--alt{
  background: linear-gradient(180deg, rgba(15,23,42,.03), rgba(15,23,42,.01));
}
.section__inner{
  width: 100%;
  padding: 60px 0;
}

.section__head{
  margin-bottom: 26px;
  max-width: 820px;
}
.h2{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.03em;
}
.lead{
  margin: 0;
  color: rgba(15, 23, 42, .72);
  font-size: 16px;
  line-height: 1.6;
}

/* Intro */
.intro{
  position: relative;
}
.intro__inner{
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 40px 0 70px;
}
.intro__logo{
  width: min(430px, 92vw);
  height: auto;
  /*filter: drop-shadow(0 18px 30px rgba(2, 6, 23, .12));*/
}

/* Scroll hint */
.scrollhint{
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  display: grid;
  place-items: center;
}
.scrollhint__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(225,29,46,1), rgba(225,29,46,.65));
  animation: bounce 1.4s ease-in-out infinite;
}
@keyframes bounce{
  0%, 100%{ transform: translateY(-4px); opacity: .75; }
  50%{ transform: translateY(6px); opacity: 1; }
}

/* Cards / grids */
.grid3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.h3{
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.card p{
  margin: 0;
  color: rgba(15, 23, 42, .70);
  line-height: 1.6;
}

/* Works */
.work{
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.work:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, .12);
}
.work__thumb{
  aspect-ratio: 16/10;
  border-radius: 14px;
  background:
    radial-gradient(1200px 220px at 30% 20%, rgba(225,29,46,.16), transparent 50%),
    radial-gradient(900px 240px at 70% 80%, rgba(15,23,42,.10), transparent 55%),
    linear-gradient(180deg, rgba(15,23,42,.06), rgba(15,23,42,.02));
  border: 1px solid rgba(15, 23, 42, .08);
}
.work__meta{ display: grid; gap: 4px; }
.work__title{ font-weight: 700; letter-spacing: -0.02em; }
.work__desc{ color: rgba(15,23,42,.70); font-size: 14px; }

/* About */
.stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.stat{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15,23,42,.03);
  padding: 18px;
}
.stat__num{
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.stat__label{
  margin-top: 6px;
  color: rgba(15,23,42,.68);
  font-size: 14px;
}

.cta{
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(225,29,46,.22);
  background: rgba(225,29,46,.10);
  color: rgba(15,23,42,.92);
  font-weight: 700;
}
.btn:hover{
  border-color: rgba(225,29,46,.35);
  background: rgba(225,29,46,.14);
}
.btn--ghost{
  border: 1px solid var(--line);
  background: transparent;
  color: rgba(15,23,42,.86);
}
.btn--ghost:hover{ background: rgba(15,23,42,.04); }

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  background: rgba(15,23,42,.02);
  padding: 18px 0;
}
.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer__brand{
  font-weight: 800;
  letter-spacing: -0.03em;
}
.footer__note{
  color: rgba(15,23,42,.62);
  font-size: 13px;
  margin-top: 2px;
}
.footer__right{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer__link{
  color: rgba(15,23,42,.72);
  font-weight: 600;
  font-size: 14px;
}
.footer__link:hover{ color: rgba(15,23,42,1); }

/* Responsive */
@media (max-width: 980px){
  .header__inner{
    grid-template-columns: 1fr auto;
  }
  .nav, .contacts{ display: none; }
  .burger{ display: inline-flex; }
  .grid3{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; }
}
