/* ===== Шрифты (лежат на сайте, без сторонних серверов) ===== */
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }

/* ===== Цвета — меняются здесь ===== */
:root {
  --paper: #f5f2ea;        /* фон */
  --paper-2: #ebe6da;      /* второй фон */
  --white: #fffdf8;
  --ink: #1b2620;          /* текст */
  --muted: #56605a;
  --green: #2c5a44;        /* основной акцент */
  --green-dark: #1e3a2f;
  --clay: #a85b32;         /* второй акцент (мелкие детали) */
  --line: #d6cfbf;
  --line-dark: #b9b09c;
  --error: #a32a1c;
  --ok: #24643f;
  --sans: "Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); }

a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .55em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .82rem; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 640px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* Маленький «технический» подзаголовок */
.label { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin-bottom: 1rem; }
.label-light { color: #d9c6a8; }

/* ---- Кнопки (прямые углы) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px;
  background: var(--green); color: var(--white); font: inherit; font-weight: 500; font-size: .98rem;
  text-decoration: none; border: 1.5px solid var(--green); border-radius: 0; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--green-dark); border-color: var(--paper); }
.btn-light:hover { background: var(--white); border-color: var(--white); }
.btn-line-light { background: transparent; color: var(--paper); border-color: rgba(245,242,234,.6); }
.btn-line-light:hover { background: var(--paper); color: var(--green-dark); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.text-link { font-weight: 500; }

/* ---- Шапка ---- */
.topbar { background: var(--green-dark); color: #d9d4c7; }
.topbar-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #f5f2ea; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; color: var(--green); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-text small { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { border-bottom-color: var(--clay); }

/* ---- Главный экран ---- */
.hero {
  padding: 72px 0 64px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-text { background: var(--paper); padding: 8px 8px 8px 0; }
.hero h1 { max-width: 620px; }
.hero-figure { margin: 0; position: relative; background: var(--white); border: 1px solid var(--line-dark); padding: 12px; }
.hero-figure img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero-figure figcaption { padding: 10px 2px 0; color: var(--muted); }
.hero-figure::before, .hero-figure::after {   /* «отметки» углов, как на чертеже */
  content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--clay); border-style: solid;
}
.hero-figure::before { top: -7px; left: -7px; border-width: 2px 0 0 2px; }
.hero-figure::after { bottom: -7px; right: -7px; border-width: 0 2px 2px 0; }

.facts-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts-grid > div { padding: 26px 24px 26px 0; display: flex; flex-direction: column; gap: 4px; }
.facts-grid > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.fact-num { font-size: 1.3rem; font-weight: 600; color: var(--green); }
.fact-label { color: var(--muted); font-size: .95rem; }

/* ---- Секции ---- */
.section { padding: 88px 0; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-intro { color: var(--muted); font-size: 1.08rem; }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.service-list li { border-bottom: 1px solid var(--line-dark); }
.service-list a {
  display: grid; grid-template-columns: 56px 1fr 1.3fr 32px; gap: 24px; align-items: baseline;
  padding: 24px 4px; color: var(--ink); text-decoration: none; transition: background .15s, padding .15s;
}
.service-list a:hover { background: var(--white); padding-left: 14px; }
.service-num { color: var(--clay); }
.service-name { font-size: 1.2rem; font-weight: 600; }
.service-short { color: var(--muted); }
.service-arrow { color: var(--green); font-size: 1.2rem; text-align: right; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-dark); background: var(--white); }
.step { padding: 28px 24px 30px; }
.step + .step { border-left: 1px solid var(--line-dark); }
.step-num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1.5px solid var(--green); color: var(--green); font-weight: 500; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.split-figure { margin: 0; border: 1px solid var(--line-dark); padding: 10px; background: var(--white); }
.split-figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.cta-band { background: var(--green-dark); color: #dcd7ca; padding: 64px 0; }
.cta-band h2 { color: var(--paper); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-row p { margin: 0; max-width: 560px; }
.cta-row .actions { margin: 0; }

/* ---- Внутренние страницы ---- */
.page-header {
  padding: 64px 0 52px; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
}
.page-header .container > * { background: var(--paper); display: table; padding-right: 10px; }
.page-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .3em; }
.page-header .lead { margin: 0; }

.practice { padding: 40px 0; border-bottom: 1px solid var(--line-dark); scroll-margin-top: 100px; }
.practice:first-child { padding-top: 0; }
.practice.has-img { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }
.practice img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--line-dark); padding: 8px; background: var(--white); }
.practice .label { margin-bottom: .5rem; }
.practice h2 { font-size: 1.6rem; }
.practice p:last-child { margin: 0; max-width: 680px; }
.note { margin-top: 40px; background: var(--white); border-left: 3px solid var(--clay); padding: 20px 24px; }
.note p { margin: 0; }

.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.fact-card { background: var(--white); border: 1px solid var(--line-dark); padding: 8px 26px; position: sticky; top: 100px; }
.fact-card dl { margin: 0; }
.fact-card dl > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact-card dl > div:last-child { border-bottom: 0; }
.fact-card dt { margin: 0 0 4px; }
.fact-card dd { margin: 0; font-weight: 500; word-break: break-word; }

.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* ---- Контакты и форма ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.contact-item { padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.contact-item h2 { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin-bottom: .4em; }
.contact-item a, .contact-item address { font-style: normal; font-weight: 500; word-break: break-word; }
.contact-item p { margin: 0; }

.form-wrap { background: var(--white); border: 1px solid var(--line-dark); padding: 34px; scroll-margin-top: 100px; }
.notice { background: var(--paper); border-left: 3px solid var(--clay); padding: 14px 16px; font-size: .92rem; margin-bottom: 22px; }
.form-status:empty { display: none; }
.form-status { padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }
.form-status.is-error { background: #f8e6e2; color: var(--error); }
.form-status.is-ok { background: #e3f0e7; color: var(--ok); }

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-dark); border-radius: 0; padding: 11px 12px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); background: var(--white); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; }
.checkbox input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--green); }
.checkbox label { font-weight: 400; font-size: .92rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Подвал ---- */
.site-footer { background: var(--ink); color: #b9bdb5; padding: 56px 0 30px; font-size: .93rem; }
.site-footer a { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #34413a; }
.footer-name { color: var(--paper); font-weight: 600; font-size: 1.08rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer li a { color: #b9bdb5; text-decoration: none; }
.site-footer li a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.disclaimer { font-size: .82rem; color: #99a097; max-width: 760px; margin: 0; }
.disclaimer strong { color: var(--paper); font-weight: 500; }
.copy { margin: 0; font-size: .82rem; color: #99a097; font-family: var(--mono); }

/* ---- Планшет ---- */
@media (max-width: 960px) {
  .hero-grid, .split, .about-grid, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .service-list a { grid-template-columns: 44px 1fr 28px; }
  .service-short { grid-column: 2; }
  .service-arrow { grid-row: 1; grid-column: 3; }
  .practice.has-img { grid-template-columns: 1fr; gap: 20px; }
  .practice img { max-width: 520px; }
  .fact-card { position: static; }
}
/* ---- Телефон ---- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-row span { display: none; }
  .topbar-row { justify-content: flex-end; }
  .header-row { flex-wrap: wrap; gap: 8px 12px; padding-top: 12px; }
  .header-cta { display: none; }
  .nav { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; padding-bottom: 8px; white-space: nowrap; }
  .hero { padding: 44px 0 48px; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid > div { padding: 18px 0; }
  .facts-grid > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line-dark); }
  .field-row, .footer-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 22px 18px; }
  .page-header { padding: 44px 0 36px; }
}
