*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #12110e;
  --surface: #272420;
  --text:    #efefef;
  --muted:   rgba(239, 239, 239, 0.55);
  --border:  #2a2720;
  --accent:  #eebf3b;
  --radius:  8px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(18,17,14,.92);
  backdrop-filter: blur(12px);
}
.site-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav__logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--text);
  flex-shrink: 0;
}
.site-nav__logo span,
.gate__logo span,
.site-footer__brand span { color: var(--accent); }
.site-nav__links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.site-nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
  transition: color .15s;
}
.site-nav__link:hover { color: var(--text); }
.site-nav__cta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 18px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.site-nav__cta:hover { background: var(--accent); color: #000; }

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
}
.hero__h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 32px;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 48px;
}
.hero__cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 14px 32px;
  background: var(--accent);
  color: #000;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
}
.hero__cta:hover { opacity: .85; }

/* ── Section shared ── */
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 48px;
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}
.service-card {
  background: var(--bg);
  padding: 28px 24px;
  transition: background .15s;
}
.service-card:hover { background: var(--surface); }
.service-card__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 16px;
}
.service-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}
.service-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 420px;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 740px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ── Team cards ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.team-card {
  border: 1px solid var(--border);
  padding: 24px;
  transition: border-color .15s;
}
.team-card:hover { border-color: var(--accent); }
.team-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}
.team-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-card__role {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.team-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Values ── */
.cta-block__policy {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: -8px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.value-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.value-card__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.value-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.value-card__desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── CTA / Form ── */
.cta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.cta-block__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.cta-block__sub {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.65;
  margin-top: -12px;
}
.cta-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  flex-wrap: wrap;
}
.cta-form__input {
  flex: 1;
  min-width: 200px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 16px;
  outline: none;
  transition: border-color .15s;
}
.cta-form__input:focus { border-color: var(--accent); }
.cta-form__btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 12px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.cta-form__btn:hover { opacity: .85; }

/* ── "ЕСЛИ" section ── */
.if-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}
.if-item {
  background: var(--bg);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.if-item__icon {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 800;
}
.if-item__q {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.if-item__a {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 120px 0 64px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.page-hero__back {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.page-hero__back:hover { color: var(--text); }
.page-hero__h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero__sub {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.65;
}

/* ── Placeholder ── */
.placeholder-note {
  margin-top: 80px;
  padding: 40px;
  border: 1px dashed var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.placeholder-note strong { color: var(--text); }

/* ── Footer ── */
.site-footer {
  margin-top: 100px;
  padding: 32px 0 52px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer__brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
}
.site-footer__note {
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer__ds {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
  transition: color .15s;
}
.site-footer__ds:hover { color: var(--accent); }

/* ── Password gate ── */
.gate {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate__box { width: 100%; max-width: 320px; padding: 0 28px; }
.gate__logo {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.gate__logo span { color: var(--accent); }
.gate__sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 36px; }
.gate__input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 10px;
  letter-spacing: .2em;
}
.gate__input:focus { border-color: var(--accent); }
.gate__input.error { border-color: #dc2626; }
.gate__error { font-size: 0.8rem; color: #dc2626; margin-bottom: 10px; display: none; }
.gate__error.visible { display: block; }
.gate__btn {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 12px;
  background: var(--accent);
  color: #000;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
}
.gate__btn:hover { opacity: .85; }

/* ── Burger ── */
.burger {
  display: none;
  position: fixed;
  top: 10px;
  right: 16px;
  z-index: 101;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger__line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.burger.is-open .burger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Mobile menu ── */
.mob-menu {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  padding: 32px 24px;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.mob-menu.is-open { display: flex; }
.mob-menu__link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: .02em;
}
.mob-menu__cta {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 14px 24px;
  background: var(--accent);
  color: #000;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 740px) {
  .page { padding: 0 16px; }
  .site-nav__inner { padding: 0 16px; }
  .site-nav__logo { font-size: 1.35rem; transform: translateY(2px); }
  .site-nav__links { display: none; }
  .site-nav__cta { display: none; }
  .burger { display: flex; }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .if-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .cta-block { padding: 28px 20px; }
  .cta-form { flex-direction: column; }
  .hero { padding: 88px 0 48px; }
  .hero__h1 { margin-bottom: 20px; }
  .hero__sub { margin-bottom: 32px; }
  .section { padding: 40px 0; }
  .section__title { margin-bottom: 28px; }
  .page-hero { padding: 88px 0 40px; }
}
