/* Base */
:root {
  --bg: #F5F5F2;
  --surface: #FFFFFF;
  --text: #1C1C1A;
  --muted: #55554F;
  --accent: #3D6B1F;
  --accent-text: #FFFFFF;
  --plate-bg: #1C1C1A;
  --plate-text: #F5F5F2;
  --line: #DDD9D0;
  --radius-card: 18px;
  --radius-btn: 999px;
  --shadow-soft: 0 1px 2px rgb(28 28 26 / .06), 0 12px 32px rgb(28 28 26 / .08);
  --shadow-photo: 0 2px 6px rgb(28 28 26 / .08), 0 18px 40px rgb(28 28 26 / .12);
  --font-head: 'Gill Sans', 'Gill Sans MT', Calibri, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --pad-side: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, var(--bg) 0%, #ECEDE7 55%, var(--bg) 100%),
    repeating-conic-gradient(rgb(28 28 26 / .025) 0% 25%, transparent 0% 50%);
  background-size: 100% 1600px, 6px 6px;
  background-attachment: fixed, fixed;
  min-height: 100%;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.1rem, 3.4vw + 1rem, 3.55rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 2.2vw + 1rem, 2.6rem); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 1.1vw + 0.9rem, 1.5rem); line-height: 1.25; }

p { margin: 0 0 16px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

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

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--pad-side);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

.accent {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw + 0.7rem, 2.6rem);
  line-height: 1.15;
  color: var(--accent);
  max-width: none;
}

/* Header */
.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.site-head-top {
  background: var(--plate-bg);
  color: var(--plate-text);
  font-size: 15px;
}

.head-top-row {
  display: flex;
  justify-content: flex-end;
  padding-block: 6px;
}

.head-contacts { margin: 0; display: flex; align-items: center; gap: 12px; }
.head-contacts a { color: var(--plate-text); text-decoration: none; }
.head-contacts a:hover { text-decoration: underline; }
.head-sep {
  width: 1px;
  height: 14px;
  background: #8E8E88;
}

.head-main-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 64px;
  flex-wrap: wrap;
  position: relative;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 10px 0;
  margin-right: auto;
}

.menu-link {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.menu-link:hover,
.menu-link:focus-visible {
  background: #E7EBE0;
  border-color: #C9D1BC;
  color: var(--text);
}

.menu-link[aria-current="page"],
.menu-link.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .01em;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-btn);
  min-height: 44px;
  padding: 6px 18px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  gap: 10px;
}

.menu-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text);
}

.menu-toggle-text { font-size: 15px; }

/* Call float */
.call-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 60;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: var(--radius-btn);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-photo);
  transition: background-color .2s ease, transform .15s ease;
}
.call-float:hover { background: #2F5617; }
.call-float:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; background: #2F5617; }
.call-float:active { transform: scale(.96); }

/* Sections */
.section {
  margin: clamp(16px, 2vw, 24px) auto;
  padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 4vw, 56px);
  background: var(--surface);
  border-radius: var(--radius-card);
  max-width: calc(1200px + 2 * var(--pad-side));
  margin-inline: auto;
  box-shadow: var(--shadow-soft);
}

.section-lead {
  color: var(--muted);
  font-size: 1.05em;
  margin-bottom: 32px;
  max-width: 62ch;
}

/* Hero */
.hero {
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  padding-block: clamp(24px, 4vw, 48px);
  background: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: 0;
  align-items: start;
  width: 100%;
}

.plate {
  background: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-photo);
}

.hero-plate {
  position: relative;
  z-index: 2;
  margin-right: clamp(-12px, -3vw, -60px);
  padding-bottom: clamp(24px, 3vw, 40px);
}

.hero-plate h1 { color: var(--plate-text); max-width: 12ch; }

.hero-text {
  color: #D8D8D2;
  font-size: clamp(1rem, .6vw + .9rem, 1.15rem);
  max-width: 54ch;
}

.hero-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 24px;
  padding: 0;
}

.hero-steps h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #B9CDA5;
}

.hero-steps p {
  font-size: .92rem;
  line-height: 1.5;
  color: #D8D8D2;
  margin: 0;
}

.hero-btn { margin-top: 0; }

.hero-photo {
  margin: 0;
  position: relative;
  z-index: 1;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 640px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-photo);
}

/* Intro */
.intro-grid .prose { max-width: 640px; }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.owner-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: border-color .25s ease;
}
.owner-card:hover { border-color: var(--accent); }

/* Tiles / cards */
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}

.tile:hover { border-color: var(--accent); }

.tile-photo { margin: 0; }
.tile-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tile-body { padding: clamp(20px, 2.4vw, 30px); }
.tile-body h3 { margin-bottom: 10px; }
.tile-body h3 a { color: inherit; text-decoration: none; }
.tile-body h3 a:hover { color: var(--accent); text-decoration: underline; }
.tile-body p { font-size: .97rem; }

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
  align-items: stretch;
}
.grid-three .tile { display: flex; flex-direction: column; }
.grid-three .tile-body { display: flex; flex-direction: column; flex: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgb(28 28 26 / .18);
}

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

.btn:active { transform: translateY(0) scale(.97); }

.plate .btn,
.btn-solid {
  border-color: var(--plate-text);
  color: var(--plate-text);
}
.plate .btn:hover,
.btn-solid:hover { background: var(--plate-text); color: var(--plate-bg); }

/* Form */
.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.lead-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 36px);
}

.lead-wrap h3 { margin-bottom: 20px; }

.lead { max-width: none; }

.lead-field { margin-bottom: 16px; }

.lead-label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 6px;
}

.lead-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 46px;
}

.lead-input::placeholder { color: #6E6E67; }

.lead-input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.lead-area { resize: vertical; min-height: 120px; }

.lead-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .92rem;
  margin: 20px 0;
}

.lead-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }

.lead-note {
  font-size: .9rem;
  color: var(--muted);
  margin: 16px 0 20px;
}

.lead-send { width: 100%; border-color: var(--accent); color: var(--accent); }
.lead-send:hover { background: var(--accent); color: var(--accent-text); }

.lead.is-sending .lead-send { opacity: .6; pointer-events: none; }

.lead-error {
  display: none;
  color: #8C2F1B;
  font-size: .88rem;
  margin: 6px 0 0;
}
.lead-field.is-error .lead-error { display: block; }
.lead-field.is-error .lead-input { border-color: #8C2F1B; }

/* Prices */
.price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  margin-bottom: 20px;
}

.tab {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  border-radius: var(--radius-btn);
  min-height: 44px;
  padding: 8px 18px;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.tab:hover { background: #E7EBE0; color: var(--text); }

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

.tab[aria-selected="true"] {
  background: var(--plate-bg);
  color: var(--plate-text);
}

.price-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  background: var(--bg);
  margin-bottom: 24px;
  color: var(--muted);
}

.price-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.price-list li:last-child { border-bottom: 0; }
.price-list li:nth-child(odd) { background: var(--bg); }

.price {
  font-weight: 700;
  font-family: var(--font-head);
  white-space: nowrap;
}

.price-note {
  font-weight: 400;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--muted);
}

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg);
  margin-bottom: 12px;
  padding: 0;
}

.faq summary {
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1.1rem;
  list-style: none;
  position: relative;
  padding-right: 52px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq details[open] summary::after { content: "\2013"; }

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

.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
  margin: 0 0 32px;
  padding: 0;
}

.steps .tile { padding: 26px 28px; counter-increment: step; }

.steps .tile::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.steps .tile h3 { margin-bottom: 8px; }
.steps .tile p { font-size: .97rem; color: var(--muted); }

.scope-note { font-size: .95rem; color: var(--muted); }

/* Prose (policies, terms) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .95rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.prose th { font-family: var(--font-head); font-weight: 700; }

/* Inner pages */
.page-head { max-width: 760px; margin-bottom: 32px; }
.page-head h1 { margin-bottom: 20px; }

.crumbs {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 auto 24px;
  max-width: 1200px;
  padding-inline: var(--pad-side);
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.crumbs li { display: flex; gap: 8px; align-items: center; }
.crumbs li + li::before {
  content: "/";
  color: var(--muted);
  opacity: .7;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* Contact block */
.contact-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

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

.contact-list .label {
  display: block;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Thanks / 404 */
.plain-page { text-align: left; }
.plain-page .plate {
  max-width: 760px;
  padding: clamp(32px, 5vw, 56px);
}
.plain-page .plate p { color: #D8D8D2; }

/* Footer */
.site-foot {
  background: var(--plate-bg);
  color: var(--plate-text);
  margin-top: clamp(24px, 3vw, 40px);
  padding: clamp(40px, 6vw, 64px) 0 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.foot-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
  color: #B9CDA5;
}

.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 8px; }
.foot-links a {
  color: #D8D8D2;
  text-decoration: none;
  font-size: .95rem;
}
.foot-links a:hover, .foot-links a:focus-visible { color: #FFFFFF; text-decoration: underline; }

.site-foot address { font-style: normal; font-size: .95rem; color: #D8D8D2; }
.site-foot address p { margin: 0 0 8px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.site-foot ul li { margin-bottom: 8px; color: #D8D8D2; }
.site-foot ul span { color: #B9CDA5; }
.site-foot ul a { color: #D8D8D2; text-decoration: none; }
.site-foot ul a:hover { color: #FFFFFF; text-decoration: underline; }

.foot-copy {
  border-top: 1px solid #3A3A37;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  font-size: .88rem;
  color: #A9A9A2;
}
.foot-copy p { margin: 0; }

/* Reveal */
html.has-js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

html.has-js .reveal.is-shown {
  opacity: 1;
  transform: none;
}

/* Breakpoints */
@media (max-width: 1279px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .form-wrap, .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 849px) {
  .head-main-row { justify-content: space-between; }
  .menu-toggle { display: inline-flex; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    width: auto;
  }
  .menu.is-open { max-height: 480px; visibility: visible; }
  .menu:not(.is-open) { visibility: hidden; }
  .menu-list {
    flex-direction: column;
    padding: 16px var(--pad-side) 24px;
    margin-right: 0;
  }
  .menu-link { display: block; text-align: left; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-plate { margin-right: 0; order: 2; }
  .hero-photo { order: 1; margin-bottom: 16px; }
  .hero-photo img { aspect-ratio: 16 / 9; max-height: 46vh; }
  .hero-steps { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .grid-three { grid-template-columns: minmax(0, 1fr); }
  .price-list li { flex-direction: column; gap: 4px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 639px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .call-float { padding: 0 20px; }
  .head-top-row { justify-content: center; }
  .head-contacts { flex-wrap: wrap; justify-content: center; font-size: 14px; }
}

@media (max-width: 479px) {
  .plate { padding: 24px 20px; }
  .tab { flex: 1 1 100%; }
  .price-list li { padding: 14px 16px; }
  .tile-body { padding: 20px; }
}

/* Short screens */
@media (max-height: 600px) and (min-width: 850px) {
  .hero { min-height: auto; padding-block: 24px; }
  .hero-photo img { max-height: 60vh; }
}

/* Plate links */
.plate a,
.plate ul li a,
.plain-page .plate a {
  color: #B9CDA5;
  text-decoration: underline;
}
.plate a:hover,
.plate a:focus-visible,
.plain-page .plate a:hover {
  color: #FFFFFF;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  html.has-js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile fixes */
@media (max-width: 849px) {
  .section {
    margin-inline: var(--pad-side);
    width: auto;
  }
  .call-float {
    min-height: 44px;
    padding: 0 18px;
    font-size: .95rem;
  }
}

@media (max-width: 639px) {
  body { padding-bottom: 76px; }
  h2 { font-size: clamp(1.55rem, 6vw + 0.4rem, 1.9rem); }
  h3 { font-size: clamp(1.1rem, 2vw + 0.9rem, 1.3rem); }
}
