/* ── Shared styles for all pages — Жёлудь ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #fbf6ec;
  --card:    #ffffff;
  --ink:     #2d3a1f;
  --muted:   #5d6b4c;
  --primary: #5a7a2e;
  --p-ink:   #3a5218;
  --accent:  #e07a2f;
  --brown:   #8b5a2b;
  --soft:    #e8efd7;
  --ff-head: 'Unbounded', sans-serif;
  --ff-sans: 'Onest', system-ui, sans-serif;
  --ff-hand: 'Caveat', cursive;
}

html { scroll-behavior: smooth; }
body { font-family: var(--ff-sans); background: var(--bg); color: var(--ink); line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ── Decorative leaves ───────────────────────────────────── */
.leaf-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.leaf-bg svg { position: absolute; opacity: .35; }

/* ── NAV ─────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,246,236,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(90,122,46,.12);
}
nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 64px; gap: 20px; }

.nav-logo { display: flex; align-items: center; gap: 13px; }
.nav-logo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.nav-logo-name { font-family: var(--ff-head); font-size: 17px; font-weight: 600; color: var(--p-ink); line-height: 1; }
.nav-logo-sub  { font-size: 11px; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; gap: 28px; list-style: none; font-size: 15px; }
.nav-links a { color: var(--ink); transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--ff-sans); font-size: 14px; font-weight: 500;
  cursor: pointer; border: none;
  transition: opacity .15s, transform .12s, box-shadow .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-green  { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(90,122,46,.32); }
.btn-green:hover { box-shadow: 0 12px 30px rgba(90,122,46,.4); }
.btn-outline { background: transparent; border: 1.5px solid rgba(45,58,31,.25); color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(224,122,47,.3); }

/* ── Social buttons ──────────────────────────────────────── */
.social-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 500;
  text-decoration: none; transition: opacity .15s, transform .1s;
}
.social-btn:hover { opacity: .88; transform: translateY(-1px); }
.social-tg { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.2); }
.social-tg.on-light { background: #229ed9; color: white; }
.social-ig { background: rgba(255,255,255,.08); color: white; border: 1px solid rgba(255,255,255,.15); }
.social-ig.on-light { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: white; }

/* ── Section chrome ──────────────────────────────────────── */
.section { padding: 80px 64px; position: relative; z-index: 2; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--p-ink); color: white; }

.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.section-title { font-family: var(--ff-head); font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; color: var(--p-ink); }

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero { padding: 72px 64px 64px; position: relative; z-index: 2; }
.page-hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.page-hero h1 { font-family: var(--ff-head); font-size: clamp(36px, 4vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; color: var(--p-ink); }
.page-hero h1 span { font-family: var(--ff-hand); color: var(--accent); font-size: 1.25em; letter-spacing: 0; }
.page-hero-img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }

/* ── HERO (home) ─────────────────────────────────────────── */
.hero { padding: 60px 64px 100px; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--soft); color: var(--p-ink); padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; margin-bottom: 28px; }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero-h1 { font-family: var(--ff-head); font-size: clamp(42px, 5vw, 64px); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; color: var(--p-ink); margin: 0; }
.hero-h1-hand { display: block; font-family: var(--ff-hand); font-size: clamp(52px, 6.5vw, 88px); font-weight: 400; color: var(--accent); line-height: 1; letter-spacing: 0; }
.hero-desc { font-size: 18px; line-height: 1.6; color: var(--muted); margin-top: 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-illus { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; }
.hero-illus-bg { position: absolute; inset: 40px 0 0 40px; background: var(--soft); border-radius: 32px; }
.hero-illus img { position: relative; z-index: 1; width: 80%; max-width: 420px; filter: drop-shadow(0 20px 50px rgba(0,0,0,.13)); }

/* ── About section ───────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text p { font-size: 17px; line-height: 1.65; color: var(--muted); margin-top: 20px; }
.photo-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-ph { border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.photo-ph span { font-family: ui-monospace,monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(70,50,30,.5); padding: 6px 12px; background: rgba(255,255,255,.65); border-radius: 8px; }
.photo-real { border-radius: 20px; overflow: hidden; }
.photo-real img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-green  { background: repeating-linear-gradient(135deg,#dbe6c8 0 14px,#c8d9b1 14px 28px); }
.ph-orange { background: repeating-linear-gradient(135deg,#fcd9b4 0 14px,#f6c48a 14px 28px); }
.ph-warm   { background: repeating-linear-gradient(135deg,#f4e4cf 0 14px,#e8d3b5 14px 28px); }
.ph-brown  { background: repeating-linear-gradient(135deg,#d9c2a3 0 14px,#c4a883 14px 28px); }

/* ── Services ────────────────────────────────────────────── */
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; flex-wrap: wrap; gap: 16px; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card { background: var(--card); padding: 36px 32px; border-radius: 24px; border: 1px solid rgba(90,122,46,.1); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(60,80,30,.12); }
.service-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 22px; }
.icon-green  { background: var(--primary); }
.icon-orange { background: var(--accent); }
.service-card h3 { font-family: var(--ff-head); font-size: 19px; font-weight: 500; color: var(--p-ink); letter-spacing: -.01em; margin-bottom: 12px; line-height: 1.3; }
.service-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.service-card-full { display: flex; flex-direction: column; }
.service-card-full .service-detail { font-size: 14px; line-height: 1.65; color: var(--muted); margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(90,122,46,.1); }

/* ── Specialists ─────────────────────────────────────────── */
.specialists-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.spec-card { background: var(--card); border-radius: 24px; border: 1px solid rgba(90,122,46,.1); text-align: center; overflow: hidden; position: relative; height: 300px; cursor: pointer; }
.spec-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.spec-card:hover .spec-card-photo { opacity: 1; }
.spec-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,38,8,.88) 0%, rgba(20,38,8,.3) 50%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; opacity: 0; transition: opacity .35s ease; text-align: left; }
.spec-card:hover .spec-card-overlay { opacity: 1; }
.spec-card-overlay-name { color: #fff; font-family: var(--ff-head); font-size: 14px; font-weight: 500; margin-bottom: 5px; line-height: 1.25; }
.spec-card-overlay-desc { color: rgba(255,255,255,.8); font-size: 12px; line-height: 1.55; }
.spec-card-default { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 24px; position: absolute; inset: 0; z-index: 1; transition: opacity .35s ease; }
.spec-card:hover .spec-card-default { opacity: 0; pointer-events: none; }
.spec-avatar { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: white; font-family: var(--ff-head); font-size: 22px; font-weight: 600; box-shadow: inset 0 -4px 8px rgba(0,0,0,.15); }
.spec-name { font-family: var(--ff-head); font-size: 15px; font-weight: 500; color: var(--p-ink); line-height: 1.3; }
.spec-role { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.spec-photo-ph { width: 100%; aspect-ratio: 3/4; border-radius: 20px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }

/* ── Booking ─────────────────────────────────────────────── */
.booking-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.booking-links { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.booking-link { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 14px; font-size: 15px; font-weight: 500; text-decoration: none; transition: opacity .15s, transform .1s; }
.booking-link:hover { opacity: .88; transform: translateX(2px); }
.booking-link-green  { background: var(--primary); color: white; }
.booking-link-arrow { margin-left: auto; opacity: .8; }
.booking-phone { font-size: 14px; color: rgba(255,255,255,.7); }
.booking-phone strong { color: white; }
.step-cards { display: flex; flex-direction: column; gap: 16px; }
.step-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 22px 26px; display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start; }
.step-num { font-family: var(--ff-head); font-size: 28px; font-weight: 300; color: var(--accent); letter-spacing: -.02em; }
.step-title { font-family: var(--ff-head); font-size: 16px; font-weight: 500; margin-bottom: 6px; color: white; }
.step-desc { font-size: 14px; line-height: 1.55; color: #c5d0b0; }

/* ── Contacts ────────────────────────────────────────────── */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: stretch; }
.contact-line { margin-bottom: 22px; }
.contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.contact-val-big { font-family: var(--ff-head); font-size: 22px; font-weight: 500; color: var(--p-ink); }
.contact-val-mid { font-size: 18px; font-weight: 500; color: var(--primary); }
.contact-val-sm { font-size: 15px; color: var(--ink); line-height: 1.6; }
.contact-val-sm span { font-size: 13px; color: var(--muted); }
.map-box { border-radius: 24px; overflow: hidden; border: 1px solid rgba(90,122,46,.15); position: relative; background: repeating-linear-gradient(0deg,var(--soft) 0 2px,transparent 2px 40px), repeating-linear-gradient(90deg,var(--soft) 0 2px,transparent 2px 40px), #f4efde; min-height: 340px; }
.map-road-h { position: absolute; top: 40%; left: 0; right: 0; height: 14px; background: #ecdfc5; }
.map-road-v { position: absolute; top: 0; bottom: 0; left: 55%; width: 14px; background: #ecdfc5; }
.map-park { position: absolute; top: 30px; left: 40px; width: 180px; height: 110px; background: var(--soft); border-radius: 16px; border: 1.5px dashed rgba(90,122,46,.5); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--primary); font-weight: 500; }
.map-pin { position: absolute; top: 48%; left: 62%; transform: translate(-50%,-100%); }
.map-pin-dot { width: 44px; height: 44px; border-radius: 50% 50% 50% 2px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 6px 16px rgba(200,100,40,.35); display: flex; align-items: center; justify-content: center; }
.map-pin-emoji { transform: rotate(-45deg); font-size: 20px; }
.map-pin-label { background: white; padding: 8px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; margin-top: 8px; white-space: nowrap; color: var(--p-ink); box-shadow: 0 4px 12px rgba(0,0,0,.1); line-height: 1.5; }

/* ── Footer ──────────────────────────────────────────────── */
footer { padding: 32px 64px; border-top: 1px solid rgba(90,122,46,.15); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); position: relative; z-index: 2; flex-wrap: wrap; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials .social-btn { background: var(--soft); color: var(--p-ink); border: 1px solid rgba(90,122,46,.15); }
.footer-socials .social-btn:hover { background: var(--primary); color: white; }

/* ── Hamburger ───────────────────────────────────────────── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 14px 24px; }
  .nav-links, .nav-cta { display: none !important; }
  .hamburger { display: flex; }
  .hero { padding: 40px 24px 60px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-illus { height: 280px; margin-top: 16px; }
  .hero-illus img { width: 75%; }
  .section { padding: 56px 24px; }
  .page-hero { padding: 48px 24px 40px; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-img { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .photo-mosaic { grid-template-columns: 1fr 1fr; }
  .photo-mosaic .photo-ph { margin-top: 0 !important; }
  .photo-mosaic .photo-real { margin-top: 0 !important; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .specialists-grid { grid-template-columns: 1fr 1fr; }
  .booking-grid { grid-template-columns: 1fr; gap: 40px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  footer { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .hero-h1 { font-size: 36px; }
  .hero-h1-hand { font-size: 52px; }
  .services-grid { grid-template-columns: 1fr; }
  .specialists-grid { grid-template-columns: 1fr 1fr; }
  .service-card { padding: 24px 20px; }
  .service-card h3 { font-size: 17px; }
  .service-card p { font-size: 14px; }
}
/* Глобальный фикс переполнения */
body { overflow-x: hidden; }
.section, .page-hero { max-width: 100%; }
/* About page grids */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.photos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 960px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
  .photos-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
  .photos-grid { grid-template-columns: 1fr; }
}
/* Tooltips */
.tip {
  border-bottom: 1px dashed var(--muted);
  cursor: help;
  position: relative;
  display: inline;
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-family: var(--ff-sans);
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  max-width: 240px;
  z-index: 200;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  letter-spacing: 0;
}
.tip:hover::after { opacity: 1; }
