/* BrightWays, shared styles */

:root {
  --navy: #0b1020;
  --navy-2: #1b2540;
  --yellow: #f6d33f;
  --yellow-dark: #e3bd1f;
  --ink: #161c2c;
  --muted: #586174;
  --line: #e5e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .06), 0 2px 8px rgba(11, 16, 32, .06);
  --shadow-md: 0 2px 6px rgba(11, 16, 32, .06), 0 12px 32px rgba(11, 16, 32, .10);
  --shadow-lg: 0 4px 12px rgba(11, 16, 32, .08), 0 28px 64px rgba(11, 16, 32, .16);
  --wrap: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { margin: 0; }

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(11, 16, 32, .06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

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

.nav a:not(.btn) {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav a:not(.btn):hover {
  color: var(--navy);
  border-bottom-color: var(--yellow);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background-color .15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--navy-2); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover { background: var(--yellow-dark); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}

.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--navy), var(--shadow-md); }

a:focus-visible {
  outline: 3px solid var(--yellow-dark);
  outline-offset: 3px;
}

/* Sections */

section { padding: 96px 0; }

.soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head { max-width: 680px; margin-bottom: 48px; }

.section-head h2 { font-size: clamp(30px, 4vw, 42px); }

.section-head p { margin-top: 16px; color: var(--muted); font-size: 19px; }

.frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Hero */

.hero { padding: 88px 0 104px; }

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

.hero h1 { font-size: clamp(42px, 6vw, 68px); }

.hero .lead {
  margin-top: 24px;
  max-width: 520px;
  font-size: 20px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* About */

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

.split h2 { font-size: clamp(30px, 4vw, 42px); }

.split p { margin-top: 20px; color: var(--muted); }

.split p.big { font-size: 20px; color: var(--ink); }

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

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--yellow);
}

.card h3 { font-size: 21px; }

.card p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* Contact */

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

.contact {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.contact img {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.contact .role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact h3 { margin-top: 4px; font-size: 24px; }

.contact a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--navy);
  text-decoration-color: var(--yellow-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #c4cad8;
  padding: 48px 0;
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .brand { color: #fff; }

.site-footer .tagline { color: var(--yellow); font-style: italic; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }

.site-footer nav a { text-decoration: none; }

.site-footer nav a:hover { color: #fff; text-decoration: underline; }

.site-footer .legal {
  flex-basis: 100%;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}

/* Document pages (privacy) */

.doc { padding: 72px 0 96px; }

.doc .wrap { max-width: 820px; }

.doc h1 { font-size: clamp(36px, 5vw, 52px); }

.doc .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }

.doc .sheet {
  margin-top: 40px;
  padding: 48px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.doc h2 { margin-top: 40px; font-size: 24px; }

.doc h2:first-child { margin-top: 0; }

.doc p, .doc ul { margin-top: 14px; color: #3a4354; }

.doc ul { padding-left: 22px; }

.doc li + li { margin-top: 6px; }

.doc a {
  color: var(--navy);
  font-weight: 600;
  text-decoration-color: var(--yellow-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* 404 */

.notfound {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 64px 0;
  text-align: center;
}

.notfound .panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--yellow);
}

.notfound img {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.notfound .code {
  font-size: clamp(72px, 16vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--navy);
}

.notfound h1 { margin-top: 12px; font-size: 26px; }

.notfound p { margin-top: 12px; color: var(--muted); }

.notfound .actions { justify-content: center; }

/* Responsive */

@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; margin-top: 48px; }
  .contacts { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .contact { flex-direction: column; align-items: flex-start; padding: 24px; }
  .doc .sheet { padding: 28px 22px; }
  .notfound .panel { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
