:root {
  --ink: #17273b;
  --ink-soft: #40536b;
  --paper: #fbf8f1;
  --surface: #ffffff;
  --surface-muted: #f1ece0;
  --line: #e2dacb;
  --accent: #1f6f5c;
  --accent-dark: #165344;
  --accent-soft: #e2f0ea;
  --gold: #c4933f;
  --danger: #a4342c;
  --success: #1f6f5c;
  --shadow: 0 18px 46px rgba(23, 39, 59, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --shell: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(31, 111, 92, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text small {
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--accent-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

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

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 111, 92, 0.22);
}

.button-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.button-wide {
  width: 100%;
}

.header-cta {
  padding: 11px 20px;
  white-space: nowrap;
}

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
  background:
    radial-gradient(circle at 12% 12%, rgba(196, 147, 63, 0.16), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(31, 111, 92, 0.12), transparent 38%),
    var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 34px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts li {
  min-width: 112px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.65);
}

.hero-facts strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-facts span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.hero-figure {
  position: relative;
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 1408 / 768;
  object-fit: cover;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.hero-figure figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(23, 39, 59, 0.82);
  color: #fff;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
}

.section {
  padding: clamp(52px, 8vw, 92px) 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section-accent {
  position: relative;
  color: #f4f1e9;
  background:
    radial-gradient(circle at 82% 18%, rgba(196, 147, 63, 0.2), transparent 38%),
    var(--ink);
}

.section-accent h2,
.section-accent h3 {
  color: #fff;
}

.section-accent .eyebrow {
  color: #e7c484;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-head > p:last-child {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-accent .section-head > p:last-child {
  color: #cfd7e2;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.about-figure {
  margin: 0;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 1408 / 768;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy > p {
  color: var(--ink-soft);
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
  font-weight: 600;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  content: "\2713";
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--accent-soft);
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 0 rgba(23, 39, 59, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 92, 0.4);
  box-shadow: var(--shadow);
}

.card-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.card:nth-child(3n + 2) .card-number {
  background: #f7ecd8;
  color: #8a611f;
}

.card:nth-child(3n + 3) .card-number {
  background: #e6ecf7;
  color: #2f4d7a;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card ul {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.steps p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.lead-copy > p {
  color: #cfd7e2;
}

.lead-points {
  display: grid;
  gap: 9px;
  margin: 22px 0 26px;
}

.lead-points li {
  position: relative;
  padding-left: 26px;
  color: #eef1f5;
}

.lead-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.lead-phone {
  margin: 0;
  color: #cfd7e2;
}

.lead-phone a {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.lead-form {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.req {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 92, 0.16);
}

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

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.consent a {
  color: var(--accent-dark);
}

.form-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.form-note {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

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

.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.contact-card p {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.contact-card a {
  font-weight: 700;
  word-break: break-word;
}

.muted {
  color: #6b7b8e;
  font-size: 0.82rem;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: #f4efe4;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
}

.footer-inner > div p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

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

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #6b7b8e;
  font-size: 0.8rem;
}

.prose {
  max-width: 820px;
  padding: clamp(40px, 6vw, 72px) 0;
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.45rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  display: grid;
  gap: 8px;
  margin: 0 0 1em;
  padding-left: 22px;
  list-style: disc;
}

.prose .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 700;
  text-decoration: none;
}

.staff-page {
  padding: 40px 0 80px;
}

.staff-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.staff-toolbar .field {
  flex: 1 1 260px;
  margin: 0;
}

.staff-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.staff-table th {
  background: var(--surface-muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-table tr:last-child td {
  border-bottom: 0;
}

.staff-empty {
  padding: 28px;
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: -1;
  }

  .cards,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .header-inner {
    min-height: 66px;
    gap: 12px;
  }

  .brand-text small {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts li {
    flex: 1 1 96px;
    min-width: 0;
    padding: 10px 12px;
  }

  .cards,
  .steps,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure figcaption {
    position: static;
    max-width: none;
    margin-top: 10px;
    border-radius: var(--radius-sm);
    background: var(--ink);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
