/* ============================================================
   Maxim Udalov — site styles
   Light & friendly: warm cream background, coral accent,
   soft shadows, rounded corners, comfortable typography.
   ============================================================ */

:root {
  --bg: #FFF8F0;
  --bg-soft: #FAF1E6;
  --bg-card: #FFFFFF;
  --bg-dark: #1F1B16;
  --bg-dark-soft: #2A241D;

  --text: #1F1B16;
  --text-mute: #6B6357;
  --text-faint: #9C9081;
  --text-on-dark: #FFF8F0;
  --text-on-dark-mute: #C9BFB1;

  --accent: #FF6B35;
  --accent-soft: #FFEDE1;
  --accent-strong: #E55720;
  --info: #2D7FF9;

  --border: #F0E4D2;
  --border-strong: #E2D2B6;

  --shadow-sm: 0 1px 2px rgba(31, 27, 22, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(255, 107, 53, 0.18), 0 4px 12px rgba(31, 27, 22, 0.06);
  --shadow-lg: 0 25px 60px -20px rgba(255, 107, 53, 0.25), 0 8px 20px rgba(31, 27, 22, 0.08);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --max-w: 1180px;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- HEADER ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-weight: 700; font-size: 15px; }
.logo-text small { font-size: 12px; color: var(--text-mute); }

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  color: var(--text-mute);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-mute);
}
.lang-btn.is-active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ---------------- BUTTONS ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
  line-height: 1;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(255, 107, 53, 0.55);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ---------------- SECTIONS ---------------- */

.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 107, 53, 0.2), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(45, 127, 249, 0.18), transparent 40%);
}

.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 17px;
  color: var(--text-mute);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow-light {
  background: rgba(255, 255, 255, 0.08);
  color: #FFB48C;
}

/* ---------------- HERO ---------------- */

.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 24px;
}
.lead {
  font-size: 18px;
  color: var(--text-mute);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-trust li { display: flex; flex-direction: column; line-height: 1.2; }
.hero-trust strong { font-size: 28px; font-weight: 800; color: var(--accent); }
.hero-trust span { color: var(--text-mute); font-size: 14px; max-width: 140px; }

/* Hero photo */
.hero-visual { position: relative; }
.photo-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  aspect-ratio: 4 / 5;
}
.photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.photo-bg {
  position: absolute;
  inset: -20px -20px 20px 20px;
  background: linear-gradient(135deg, #FFD4BD, #FF8A5C);
  border-radius: var(--radius-xl);
  z-index: 1;
}

.float-card {
  position: absolute;
  z-index: 3;
  background: #fff;
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.float-card-1 { top: 20px; left: -24px; }
.float-card-2 { bottom: 30px; right: -16px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%;
}
.dot-green { background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.emoji-mark { font-size: 16px; }

/* ---------------- CARDS GRID ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cases { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-card .card-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--text-mute);
  margin: 0 0 20px;
  font-size: 15px;
}
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-list li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
}
.card-list li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 6px; top: 10px;
}

.card-accent {
  background: linear-gradient(180deg, #FFF8F0 0%, #FFFFFF 100%);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.badge {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------------- PROCESS / STEPS ---------------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.step p { font-size: 14px; color: var(--text-mute); margin: 0; }

/* ---------------- METRICS ---------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.metric strong {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFB48C;
  line-height: 1;
}
.metric span {
  color: var(--text-on-dark-mute);
  font-size: 14px;
}

/* ---------------- CASES ---------------- */

.case-card { display: flex; flex-direction: column; }
.case-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--info);
  margin-bottom: 12px;
}
.case-card h3 {
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 700;
}
.case-period {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.case-card p {
  font-size: 14px;
  color: var(--text-mute);
  margin: 0 0 20px;
  flex: 1;
}
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-stack span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-mute);
}

/* ---------------- STACK ---------------- */

.stack-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stack-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stack-group h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

/* ---------------- ABOUT ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-text h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.about-text p {
  font-size: 16px;
  color: var(--text-mute);
  margin: 0 0 16px;
}
.meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}
.meta div { display: flex; flex-direction: column; gap: 4px; }
.meta dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.meta dd { margin: 0; font-size: 15px; color: var(--text); }

/* ---------------- CONTACT ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-text h2 {
  font-size: clamp(28px, 3.8vw, 38px);
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 80px;
}
.contact-list a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}
.contact-list a:hover { color: var(--accent); }

/* form */
.contact-form { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.contact-form h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.form-sub { margin: -8px 0 8px; color: var(--text-mute); font-size: 14px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}
.form-status {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}
.form-status.is-success { color: #22A559; }
.form-status.is-error { color: #DC2626; }
.form-fineprint { margin: 0; color: var(--text-faint); font-size: 12px; }

/* ---------------- FOOTER ---------------- */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 8px; }
.footer-brand strong { display: block; font-size: 15px; font-weight: 700; }
.footer-brand small { color: var(--text-on-dark-mute); font-size: 12px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  color: var(--text-on-dark-mute);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.footer-nav a:hover { color: #FFB48C; }
.copy { color: var(--text-on-dark-mute); font-size: 13px; }

/* ---------------- 404 PAGE ---------------- */

.error-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.error-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}
.error-main::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.14), transparent 60%);
  pointer-events: none;
}
.error-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 620px;
}
.error-code {
  font-size: clamp(120px, 22vw, 220px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #FF8A5C, #FF6B35);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.error-wrap h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.error-wrap .lead { margin: 0 auto 32px; }
.error-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 980px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .photo-wrap { margin: 0 auto; max-width: 360px; }
  .cards, .cases { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .stack-groups { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 360px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .header-inner { height: 64px; }
  .logo-text small { display: none; }
  .hero { padding: 40px 0; }
  .hero h1 br { display: none; }
  .cards, .cases, .steps, .metrics { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; }
  .hero-trust strong { font-size: 24px; }
  .float-card-1 { left: 8px; top: 8px; }
  .float-card-2 { right: 8px; bottom: 8px; }
  .section-head { margin-bottom: 40px; }
  .card { padding: 24px; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
