:root {
  --white: #ffffff;
  --blue-deep: #1e3a8a;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #15803d;
  --error: #b91c1c;
  --radius: 10px;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--blue-deep);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; max-width: 22ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo-mark { display: block; flex-shrink: 0; color: #0039a2; fill: currentColor; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-links a.is-active { color: var(--blue); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a.is-active::after { transform: scaleX(1); }

/* Hero */
.hero {
  padding: 120px 0 110px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 { margin-left: auto; margin-right: auto; }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 2em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.btn-ghost { border-color: var(--border); color: var(--blue-deep); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* Sections */
.section { padding: 100px 0; }
.section-alt { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* Services */
.services-head { text-align: center; }
.services-head .section-intro { margin-left: auto; margin-right: auto; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}

.card-icon svg,
.fact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Experience */
.experience {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.experience .section-intro { margin: 0 auto 24px; max-width: 72ch; }

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pills li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--blue-deep);
  font-weight: 500;
  font-size: 0.9rem;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.leader {
  padding: 32px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.leader-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.leader-head h3 { margin: 0; }

.leader-photo {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
}

.leader h3 { font-size: 1.4rem; margin-bottom: 0.5em; }
.leader p:last-child { margin: 0; }

.leader-role {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-facts li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-facts strong {
  display: block;
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-facts div span { color: var(--muted); font-size: 0.95rem; }

.fact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}
.fact-icon svg { width: 20px; height: 20px; }

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--blue-deep);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 140px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form .btn { align-self: flex-start; }

.form-privacy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: 0;
  font-size: 0.95rem;
  min-height: 1.5em;
}
.form-status.is-success,
.form-status.is-error {
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 8px;
  font-weight: 500;
}
.form-status.is-success { color: var(--success); background: #f0fdf4; border-color: #bbf7d0; }
.form-status.is-error { color: var(--error); background: #fef2f2; border-color: #fecaca; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer p { margin: 0; }
.footer-legal {
  flex-basis: 100%;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .about,
  .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 112px; }
  .nav {
    height: auto;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 12px;
  }
  .site-header.is-hidden { transform: translateY(-100%); }
  .logo { white-space: nowrap; }
  .nav-links { gap: 22px; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 80px 0 72px; }
  .experience { padding: 48px 0; }
  .section { padding: 72px 0; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .nav { padding-left: 16px; padding-right: 16px; }
  .nav-links { gap: 12px; font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
