/* Руслан Романов — лендинг. Стили. */

:root {
  --bg: #FAF8F3;
  --bg-alt: #F1EDE3;
  --ink: #1E2430;
  --ink-soft: #4B5566;
  --ink-soft-2: #5B6472;
  --muted: #8891A0;
  --line: #E7E1D4;
  --line-dark: #333B4A;
  --input-border: #D8D2C2;
  --accent: #C08A2E;
  --accent-text: #77561D;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Work Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }

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

a {
  color: var(--accent-text);
  text-decoration: none;
}
a:not(.btn):hover { color: var(--ink); }

button { font-family: var(--font-sans); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 64px;
}

.section-kicker {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head {
  max-width: 600px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 32px;
  line-height: 1.25;
  color: var(--ink);
}

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: opacity .15s ease;
  text-align: center;
}
.btn:hover { opacity: .88; }

.btn-accent {
  background: var(--accent);
  color: var(--ink);
  padding: 15px 30px;
}

.btn-dark {
  background: var(--ink);
  color: #FFFFFF;
  padding: 14px 28px;
}

.card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 36, 48, .08);
}

/* ---------- NAV ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 64px;
  background: rgba(250, 248, 243, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a:not(.btn) {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a:not(.btn):hover { color: var(--ink); }

.nav-cta {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { display: block; }

.nav-mobile-panel {
  display: none;
}

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

.hero {
  background: var(--ink);
  padding: 88px 64px 76px;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.14;
  color: #FFFFFF;
  letter-spacing: -.01em;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: #B9C0CC;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.hero-link {
  color: var(--line);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 2px;
}
.hero-link:hover { color: #FFFFFF; }

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 16px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
  flex-wrap: wrap;
}

.hero-stat { display: flex; flex-direction: column; gap: 4px; }

.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--accent);
  font-weight: 600;
}

.hero-stat-label { font-size: 13px; color: var(--muted); }

.hero-photo {
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
}

/* ---------- TRUST BAR ---------- */

.trust {
  padding: 44px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.trust-kicker {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.trust-logos {
  width: 100%;
  max-width: 1160px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 20px;
}

.trust-logo {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--ink-soft-2);
  font-weight: 600;
  max-height: 32px;
  display: flex;
  align-items: center;
}

.trust-logo--small { font-size: 17px; }

.trust-logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  height: 84px;
  padding: 10px 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.trust-logo-chip img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.trust-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- GENERIC PADDED SECTIONS ---------- */

.section { padding: 96px 64px; }
.section--alt { background: var(--bg-alt); }
.section--white-bordered {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

/* For whom */

.whom-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whom-card h3 { font-size: 17px; color: var(--ink); font-weight: 600; }
.whom-card p { font-size: 14px; line-height: 1.55; color: var(--ink-soft-2); }

/* Expertise */

.expertise-card {
  border-top: 2px solid var(--accent);
  padding: 26px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.expertise-card h3 { font-size: 18px; color: var(--ink); font-weight: 600; }
.expertise-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft-2); }

/* Cases */

.case-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 32px;
}

.case-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.case-head h3 { font-size: 19px; color: var(--ink); font-weight: 600; }
.case-head span { font-size: 12px; color: var(--muted); white-space: nowrap; }

.case-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.case-stat-num {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--accent-text);
  font-weight: 600;
}
.case-stat-label { font-size: 12px; color: var(--muted); }
.case-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft-2); }

/* Mid CTA */

.mid-cta {
  padding: 48px 64px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  text-align: center;
}
.mid-cta h2 { font-size: 24px; color: var(--ink); margin: 0; }

/* Methodology */

.methodology {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 820px;
}

.tag-pill {
  font-size: 13px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
}

/* AI projects */

.ai-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 30px;
}
.ai-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.ai-card h3 { font-size: 19px; color: var(--ink); font-weight: 600; }
.ai-badge {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid var(--accent-text);
  border-radius: 12px;
  padding: 4px 10px;
  white-space: nowrap;
}
.ai-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft-2);
  margin-bottom: 18px;
}
.ai-card a { font-size: 14px; font-weight: 600; }

/* Process */

.process-step { display: flex; flex-direction: column; gap: 12px; }
.process-num {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--accent-text);
  font-weight: 600;
}
.process-step h3 { font-size: 17px; color: var(--ink); font-weight: 600; }
.process-step p { font-size: 14px; line-height: 1.55; color: var(--ink-soft-2); }

/* Contact */

.contact {
  padding: 100px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-head {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.contact-head h2 { font-size: 34px; color: var(--ink); }
.contact-head p { font-size: 15px; line-height: 1.6; color: var(--ink-soft-2); }

.contact-form {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 14px 16px;
  border: 1px solid var(--input-border);
  border-radius: 2px;
  background: #FFFFFF;
  color: var(--ink);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.contact-submit {
  width: 100%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 16px;
  margin-top: 6px;
}

.contact-alt {
  font-size: 14px;
  color: var(--ink-soft-2);
  text-align: center;
  margin-top: 2px;
}
.contact-alt a { font-weight: 600; }

.contact-note { font-size: 13px; color: var(--muted); margin-top: 4px; }

.form-status {
  font-size: 14px;
  padding: 4px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { color: #2E6F4E; }
.form-status.is-error { color: #B03A2E; }

/* Footer */

.footer {
  padding: 28px 64px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer span { font-size: 13px; color: var(--muted); }

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

@media (max-width: 900px) {
  .container,
  .nav,
  .hero,
  .trust,
  .section,
  .mid-cta,
  .methodology,
  .contact,
  .footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .nav { padding-top: 16px; padding-bottom: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-name { font-size: 17px; }

  .nav-mobile-panel {
    position: fixed;
    inset: 62px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px 22px 24px;
    flex-direction: column;
    gap: 14px;
    z-index: 25;
    box-shadow: 0 12px 24px rgba(30, 36, 48, .1);
  }
  .nav-mobile-panel.is-open { display: flex; }
  .nav-mobile-panel a:not(.btn) {
    font-size: 15px;
    color: var(--ink-soft);
    font-weight: 500;
  }
  .nav-mobile-panel .btn { text-align: center; }

  .hero { padding-top: 40px; padding-bottom: 44px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-photo-wrap { margin-top: 28px; }
  .hero h1 { font-size: 28px; line-height: 1.2; }
  .hero-sub { font-size: 14px; max-width: none; }
  .hero-kicker { font-size: 12px; }
  .hero-ctas { margin-top: 0; }
  .hero-ctas .btn-accent { width: 100%; padding: 15px 22px; }
  .hero-stats { display: none; }

  .trust { padding-top: 32px; padding-bottom: 32px; gap: 16px; }
  .trust-kicker { font-size: 11px; }
  .trust-logos { gap: 16px 24px; }
  .trust-logo { font-size: 15px; }
  .trust-logo--small { font-size: 13px; }
  .trust-logo-chip { height: 64px; padding: 8px 12px; flex: 1 1 40%; }
  .trust-logo-chip img { max-height: 38px; }
  .trust-note { font-size: 12px; }

  .section { padding-top: 48px; padding-bottom: 48px; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 24px; }
  .section-kicker { font-size: 12px; margin-bottom: 10px; }

  .grid-4, .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 16px; }

  .whom-card { padding: 22px; gap: 10px; }
  .whom-card h3 { font-size: 16px; }
  .whom-card p { font-size: 13px; }

  .expertise-card { padding-top: 14px; gap: 8px; }
  .expertise-card h3 { font-size: 16px; }
  .expertise-card p { font-size: 13px; }

  .case-card { padding: 24px; }
  .case-head h3 { font-size: 16px; }
  .case-stats { gap: 24px; margin-bottom: 14px; }
  .case-stat-num { font-size: 21px; }
  .case-card p { font-size: 13px; }

  .mid-cta { padding: 36px 22px; flex-direction: column; gap: 16px; }
  .mid-cta h2 { font-size: 20px; }

  .methodology { padding: 44px 22px; gap: 18px; }
  .tag-pill { font-size: 12px; padding: 7px 14px; }

  .ai-card { padding: 24px; }
  .ai-card h3 { font-size: 16px; }
  .ai-card p { font-size: 13px; }

  .process-step h3 { font-size: 16px; }
  .process-step p { font-size: 13px; }
  .process-num { font-size: 20px; }

  .contact { padding: 56px 22px; }
  .contact-head { margin-bottom: 32px; gap: 12px; }
  .contact-head h2 { font-size: 26px; }
  .contact-head p { font-size: 14px; }
  .contact-note { font-size: 12px; }
  .contact-alt { font-size: 13px; }

  .footer { flex-direction: column; align-items: center; text-align: center; padding: 24px 22px; }
}
