/* Мария Осипова — ландшафтный дизайн. osipova-garden.ru
   Local-only: no CDNs, no external fonts, no build step. */

/* ---------- Fonts (self-hosted, cyrillic + latin subsets) ---------- */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-normal-400-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-normal-400-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-normal-400-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-normal-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-italic-400-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-italic-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-normal-600-cyrillic.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-normal-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f4f0e7;          /* warm parchment */
  --surface: #ebe6d9;     /* slightly deeper parchment */
  --fg: #1f241d;          /* near-black with a green cast */
  --muted: #5b6055;       /* olive grey */
  --border: #d9d2c0;
  --accent: #2f4a34;      /* deep garden green */
  --accent-on: #f4f0e7;
  --ink: #22291f;         /* dark band background */
  --ink-on: #eae5d8;
  --ink-muted: #a9b0a0;
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 2px;
  --space-section: clamp(56px, 8vw, 112px);
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-wrap: break-word;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 7.4vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--ink { background: var(--ink); color: var(--ink-on); }
.section--ink .muted { color: var(--ink-muted); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-weight: 500;
}
.section--ink .eyebrow { color: var(--ink-muted); }

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.section--ink .lede { color: var(--ink-muted); }

.lead-head { max-width: 20ch; }

.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* Section heading block: numbered rail + title + intro */
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 40px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .sec-head .sec-head__side { padding-bottom: 6px; }
}
.sec-head__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 231, 0.94);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  min-height: 44px;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}
.brand__role {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 520px) { .brand__role { display: none; } }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__links { display: none; }
@media (min-width: 960px) {
  .nav__links { display: flex; gap: 2px; }
  .nav__toggle { display: none; }
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.94rem;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.nav__link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav__link[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.nav__toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav__burger { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav__burger::before, .nav__burger::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav__burger::before { top: -6px; }
.nav__burger::after { top: 6px; }

.nav__menu { display: none; }
@media (max-width: 959px) {
  .nav__menu { display: block; width: 100%; }
  .site-header__inner { flex-wrap: wrap; row-gap: 0; }
  .nav { flex: 0 0 auto; }
}
.nav__menu > summary { list-style: none; }
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 12px 30px rgba(31, 36, 29, 0.08);
}
.nav__drawer a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  font-size: 1.02rem;
}
.nav__drawer a:hover { color: var(--accent); }
.nav__drawer a.btn { color: var(--accent-on); }
.nav__drawer a.btn:hover { color: var(--accent-on); background: #22392a; }
.nav__drawer .btn { margin: 14px var(--gutter) 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-on); }
.btn--primary:hover { background: #22392a; color: var(--accent-on); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--onink { background: transparent; color: var(--ink-on); border-color: rgba(234, 229, 216, 0.35); }
.btn--onink:hover { border-color: var(--ink-on); color: var(--ink-on); }
.btn--wide { width: 100%; }
.btn__arrow { font-family: var(--font-display); }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 500;
}
.link-underline:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 64px; }
}
.hero__title { margin-bottom: 0.5em; }
.hero__title em { font-style: italic; }
.hero__text { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__meta {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero__figure { position: relative; margin: 0; }
.hero__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__caption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

/* ---------- Philosophy split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 56px);
}
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; }
  .split--reverse { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  margin: 0;
  color: var(--fg);
}
.pullquote em { font-style: italic; }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
}
@media (min-width: 640px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.work { grid-column: span 1; margin: 0; }
.work--full { grid-column: 1 / -1; }
.work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface);
}
.work--full img { aspect-ratio: 16 / 9; }
.work__cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.work__title { font-weight: 500; }
.work__note { color: var(--muted); text-align: right; }
.work__num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ---------- Services / prices ---------- */
.prices { display: grid; gap: 0; }
.price {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 40px;
  padding-block: clamp(26px, 3.4vw, 40px);
  border-top: 1px solid var(--border);
}
@media (min-width: 820px) {
  .price { grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 200px); align-items: start; }
}
.price__name { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0; }
.price__sub { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; }
.price__list { margin: 0; padding-left: 1.05em; color: var(--muted); }
.price__list li { margin-bottom: 4px; }
.price__amount {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--fg);
  white-space: nowrap;
}
.price__amount small { display: block; font-family: var(--font-body); font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
.price__note { font-size: 0.86rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 40px;
  padding-block: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--border);
}
@media (min-width: 760px) {
  .step { grid-template-columns: 120px minmax(0, 220px) minmax(0, 1fr); }
}
.step__num { font-size: 0.82rem; letter-spacing: 0.2em; color: var(--accent); }
.step__name { margin: 0; font-size: 1.2rem; }
.step__text { margin: 0; color: var(--muted); max-width: 56ch; }

/* ---------- Bot block ---------- */
.bot {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(32px, 4.5vw, 56px);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}
@media (min-width: 900px) {
  .bot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.bot__title { margin-bottom: 0.4em; }
.bot__list { list-style: none; margin: 0; padding: 0; }
.bot__list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-block: 11px;
  border-top: 1px solid var(--border);
  font-size: 0.97rem;
}
.bot__list li:first-child { border-top: 0; }
.bot__list b { font-weight: 500; }
.bot__num { font-family: var(--font-display); font-size: 0.85rem; color: var(--accent); letter-spacing: 0.1em; }
.bot__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.bot__handle { font-size: 0.9rem; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 60px); }
@media (min-width: 860px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.about__body p { color: var(--muted); max-width: 54ch; }
.about__body p:first-of-type { color: var(--fg); font-size: 1.08rem; }

/* ---------- Form ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9rem; color: var(--muted); }
.field input, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid transparent; }
.field input:invalid:not(:placeholder-shown), .field textarea:invalid:not(:placeholder-shown) { border-color: #a4442f; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form__status { font-size: 0.9rem; color: var(--muted); }
.form__status[data-state="ok"] { color: var(--accent); }
.form__status[data-state="error"] { color: #a4442f; }
.contact__aside { display: grid; gap: 26px; align-content: start; }
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li { padding-block: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.contact__list span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 36px 40px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a, .site-footer__social a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---------- Page head (inner pages) ---------- */
.pagehead { padding-block: clamp(34px, 5vw, 70px) clamp(24px, 3vw, 40px); }
.pagehead h1 { max-width: 18ch; }
.pagehead .lede { margin-top: 18px; }

/* ---------- Misc ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-on); padding: 12px 18px;
}
.skip:focus { left: 12px; top: 12px; }
.tag {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border); padding: 4px 10px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
