/* Vadim Cherny — Editorial Classical Stylesheet */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f2ede3;
  --ink: #1a1f2c;
  --muted: #525b6e;
  --primary: #1b2a4a;
  --primary-dark: #121d35;
  --accent: #b8872b;
  --accent-soft: #f5ebd6;
  --border: #e3dccd;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(20, 31, 56, 0.06);
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .brand {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.site-header {
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary);
  color: #f8f5ee;
  border: 1.5px solid var(--accent);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero {
  background: linear-gradient(135deg, #141f38 0%, #1f3156 100%);
  color: #f8f5ee;
  padding: 84px 0 78px;
  border-bottom: 4px solid var(--accent);
}

.hero-inner {
  max-width: 800px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e4be6c;
  margin-bottom: 14px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  margin-bottom: 20px;
}

.hero p {
  color: #d7dfee;
  font-size: 1.1rem;
  margin: 0 0 30px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #141f38;
}

.btn-primary:hover {
  background: #cfa041;
  color: #141f38;
}

.btn-outline {
  background: transparent;
  border-color: rgba(248, 245, 238, 0.45);
  color: #ffffff;
}

.btn-outline:hover {
  border-color: #e4be6c;
  color: #e4be6c;
}

.btn-dark {
  background: var(--primary);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.page-header {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 46px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--primary);
}

.page-header h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0;
}

.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--muted);
  max-width: 700px;
  margin: 0 0 36px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  margin: 0 0 14px;
}

.card p:last-child {
  margin-bottom: 0;
}

.clean-list {
  padding-left: 20px;
  color: var(--muted);
  margin: 0;
}

.clean-list li {
  margin-bottom: 10px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.info-table th {
  width: 30%;
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 600;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.quote-block {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
  box-shadow: var(--shadow);
}

.quote-block p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin: 0 0 8px;
  font-style: italic;
}

.quote-block cite {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfc7b5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.96rem;
  background: #ffffff;
  color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.12);
}

.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.94rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #eaf5ee;
  color: #1f5c35;
  border: 1px solid #b8dfc6;
}

.form-status.error {
  display: block;
  background: #fdeeee;
  color: #8c2323;
  border: 1px solid #f0bcbc;
}

.site-footer {
  background: var(--primary-dark);
  color: #c9d3e6;
  padding: 52px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #c9d3e6;
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: #e4be6c;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: #96a4bf;
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 14px;
  }
  .nav-links.open {
    display: flex;
  }
}
