/* ===== 32 МАЯ — theme & bespoke ===== */
:root {
  --bg: #ece8e0;
  --bg-alt: #e3ddd2;
  --fg: #16130f;
  --muted: #6c655b;
  --accent: #e0382b;
  --accent-2: #16130f;
  --border: rgba(22, 19, 15, 0.14);
  --card: #f4f1ea;
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

.brand__mark { color: var(--accent); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(224, 56, 43, 0.12), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }
.hero__top {
  display: flex;
  gap: clamp(18px, 4vw, 56px);
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: clamp(28px, 6vw, 64px);
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(46px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__title .accent { color: var(--accent); }
.hero__tag {
  margin-top: clamp(20px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--muted);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(34px, 5vw, 56px); }
.hero__ring {
  position: absolute;
  right: clamp(-160px, -6vw, -40px);
  top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 720px);
  aspect-ratio: 1;
  z-index: 1;
  opacity: 0.5;
  animation: spin 46s linear infinite;
}
.hero__ring svg { width: 100%; height: 100%; }
.hero__ring text {
  fill: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 2px;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ---- Sections variants ---- */
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--accent-2); color: #f4f1ea; }
.section--dark .lead { color: rgba(244, 241, 234, 0.72); }
.section--dark .eyebrow { color: #fff; }
.section--dark .eyebrow::before { background: var(--accent); }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

/* ---- Philosophy ---- */
.phil-card {
  border: 1px solid rgba(244, 241, 234, 0.18);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.5s var(--ease), background 0.4s;
}
.phil-card:hover { transform: translateY(-6px); background: rgba(224, 56, 43, 0.1); }
.phil-card h3 { font-size: clamp(24px, 3vw, 38px); margin-bottom: 16px; color: #fff; }
.phil-card p { color: rgba(244, 241, 234, 0.74); margin: 0; }

/* ---- Services ---- */
.services-list { list-style: none; margin: clamp(34px,4vw,56px) 0 0; padding: 0; }
.services-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 2.6vw, 34px) 0;
  border-top: 1px solid var(--border);
  cursor: default;
  transition: padding-left 0.4s var(--ease), color 0.3s;
}
.services-list li:last-child { border-bottom: 1px solid var(--border); }
.services-list li:hover { padding-left: 18px; color: var(--accent); }
.srv__n { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 15px; width: 42px; }
.srv__t { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 3.4vw, 44px); flex: 1; letter-spacing: -0.02em; }
.services-list .arrow { font-size: 26px; opacity: 0; transform: translateX(-10px); transition: 0.4s var(--ease); }
.services-list li:hover .arrow { opacity: 1; transform: none; }

/* ---- Process ---- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
  margin-top: clamp(40px, 5vw, 70px);
}
.step { position: relative; padding-top: 26px; border-top: 3px solid var(--accent); }
.step__n {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(40px, 5vw, 64px); color: var(--accent);
  line-height: 1; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---- Tech ---- */
.tech-block {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin-bottom: 26px;
}
.tech-block h4 { font-size: 19px; color: #fff; margin-bottom: 6px; }
.tech-block p { color: rgba(244, 241, 234, 0.72); margin: 0; font-size: 15px; }

/* ---- Cases ---- */
.case {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case__tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.case h3 { font-size: clamp(20px, 2.4vw, 26px); }
.case p { color: var(--muted); font-size: 15px; margin: 0; }
.case--feature { background: var(--accent); color: #fff; border-color: transparent; }
.case--feature .case__tag, .case--feature p { color: rgba(255,255,255,0.86); }

/* ---- Team ---- */
.member {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s;
}
.member:hover { transform: translateY(-6px); background: var(--accent-2); color: #f4f1ea; }
.member:hover .member__role { color: var(--accent); }
.member:hover p { color: rgba(244,241,234,0.74); }
.member__role { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.member h3 { font-size: 20px; margin-bottom: 12px; }
.member p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---- Footer ---- */
.footer-title { font-size: clamp(34px, 5vw, 64px); line-height: 0.96; margin-bottom: 18px; text-transform: uppercase; }
.f-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-bottom: 14px; }
.f-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.site-footer a { opacity: 0.82; transition: opacity 0.25s; }
.site-footer a:hover { opacity: 1; color: var(--accent); }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .services-list .arrow { display: none; }
}
