/* ============================================================
   Tas Sheber — кастомные стили поверх Tailwind
   Палитра: тёмно-зелёный графит + приглушённый зелёный акцент
   ============================================================ */

:root {
  --ink:    #0D1610;
  --moss:   #111E14;
  --card:   #172019;
  --accent: #5C8A64;
  --deep:   #3D6344;
  --cream:  #E0D8CC;
  --muted:  #8FA894;
  --line:   #263329;
  --wa:     #25D366;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

::selection {
  background: var(--deep);
  color: var(--cream);
}

/* ---------- Тонкая текстура камня (SVG-шум) ---------- */
.stone-texture {
  position: relative;
}
.stone-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stone-texture > * {
  position: relative;
}

/* ---------- Шапка ---------- */
#site-header {
  background: transparent;
}
#site-header.scrolled {
  background: rgba(13, 22, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.4s ease;
}
.nav-link:hover {
  color: var(--cream);
}

/* Гамбургер */
.burger-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  margin: 3.5px 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
#menu-toggle.open .burger-line:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
#menu-toggle.open .burger-line:nth-child(2) { opacity: 0; }
#menu-toggle.open .burger-line:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Мобильное меню — плавное раскрытие */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(13, 22, 16, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: max-height 0.5s ease, border-color 0.5s ease;
}
.mobile-menu.open {
  max-height: 480px;
  border-bottom-color: var(--line);
}
.mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;           /* удобная зона касания */
  padding: 0 4px;
  color: var(--cream);
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s ease;
}
.mobile-link:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero-section {
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(61, 99, 68, 0.16), transparent 60%),
    linear-gradient(180deg, #0B120D 0%, var(--ink) 100%);
}
.hero-vignette {
  background: linear-gradient(180deg, rgba(13,22,16,0.4) 0%, transparent 30%, transparent 70%, var(--ink) 100%);
}

/* ---------- Кнопки (все ≥ 48px высотой) ---------- */
.btn-wa,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
}
.btn-wa {
  background: var(--wa);
  color: #06130A;
}
.btn-wa:hover {
  background: #30E273;
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-wa-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  margin-top: auto;
  padding: 0 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--wa);
  border-radius: 4px;
  color: var(--wa);
  transition: background-color 0.4s ease, color 0.4s ease;
}
.btn-wa-sm:hover {
  background: var(--wa);
  color: #06130A;
}

/* ---------- Заголовки секций ---------- */
.section-head {
  margin-bottom: 3rem;
}
.section-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
}

/* ---------- Карточки преимуществ ---------- */
.adv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color 0.5s ease, transform 0.5s ease;
}
.adv-card:hover {
  border-color: var(--deep);
  transform: translateY(-3px);
}
.adv-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.adv-icon svg { width: 100%; height: 100%; }
.adv-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.adv-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---------- О компании: статистика ---------- */
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.5s ease;
}
.stat-card:hover { border-color: var(--deep); }
.stat-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Карточки услуг ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.9rem 1.75rem;
  transition: border-color 0.5s ease, transform 0.5s ease;
}
.service-card:hover {
  border-color: var(--deep);
  transform: translateY(-3px);
}
.service-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.service-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.service-list {
  margin-bottom: 1.5rem;
}
.service-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Этапы работы ---------- */
.process-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
  transition: border-color 0.5s ease;
}
.process-step:hover { border-color: var(--deep); }
.process-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  color: var(--deep);
  display: block;
  margin-bottom: 0.6rem;
}
.process-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.process-text {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* ---------- Галерея ---------- */
.gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.5s ease;
}
.gallery-item:hover { border-color: var(--accent); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, opacity 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 12, 9, 0.94);
  opacity: 0;
  transition: opacity 0.4s ease;
}
/* Без этого правила display:flex перебивает атрибут hidden, и закрытый
   лайтбокс остаётся прозрачным слоем поверх страницы, перехватывая клики. */
.lightbox[hidden] { display: none; }
.lightbox.visible { opacity: 1; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
}
.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--cream);
  font-size: 1.3rem;
  background: rgba(23, 32, 25, 0.7);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.3s ease, color 0.3s ease;
  z-index: 101;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev  { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Отзывы ---------- */
.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.9rem 1.75rem;
  transition: border-color 0.5s ease;
}
.review-card:hover { border-color: var(--deep); }
.review-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.review-text::before { content: "« "; color: var(--accent); }
.review-text::after  { content: " »"; color: var(--accent); }
.review-author {
  font-size: 0.9rem;
  color: var(--accent);
}
.review-note {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

/* ---------- Контакты ---------- */
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
}
.contact-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.map-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  transition: border-color 0.5s ease;
}
.map-embed:hover { border-color: var(--deep); }
.map-embed iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  /* Приглушаем яркость карты под тёмную палитру */
  filter: grayscale(0.35) brightness(0.82) contrast(1.05);
}
@media (min-width: 1024px) {
  .map-embed iframe { height: 320px; }
}

/* ---------- Форма ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.75rem;
}
.f-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}
.f-input {
  display: block;
  width: 100%;
  min-height: 48px;           /* удобная зона касания */
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cream);
  font-size: 0.95rem;
  padding: 12px 14px;
  margin-bottom: 1.15rem;
  transition: border-color 0.4s ease;
}
.f-input:focus {
  outline: none;
  border-color: var(--accent);
}
.f-input::placeholder { color: rgba(143, 168, 148, 0.5); }
select.f-input { appearance: none; cursor: pointer; }

/* ---------- Плавающая кнопка WhatsApp ---------- */
.sticky-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #06130A;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.sticky-wa:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ---------- Появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
