/* ============================================================
   BYPLAN — styles.css (volume / mock-match)
   Version: 0.3
   Goal: make hero "объемным" как в референсе
   ============================================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

body{
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: #1C1B1B;
  background: var(--bg);
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, li, a, button, input, textarea, select {
  font-family: inherit;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-underline-offset: 0.2em; }
a:hover{ opacity: .92; }
button{ font: inherit; }
button, [role="button"]{ cursor: pointer; }
ul, ol{ padding-left: 1.2rem; }
p{ margin: 0 0 12px 0; }

:root{
  /* Layout */
  --container: 1120px;
  --pad: 20px;

  /* Fonts */
  --font: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --logo-font: "Bodoni Moda", "Playfair Display", Georgia, serif;

  /* Type scale */
  --h1: clamp(2.35rem, 4.2vw, 3.75rem);
  --h2: clamp(1.55rem, 2.4vw, 2.15rem);
  --h3: 1.05rem;

  /* Theme */
  --bg: #EDE8EC;
  --text: #1C1B1B;
  --muted: rgba(28,27,27,.72);

  --border: rgba(40, 40, 40, .18);
  --border-strong: rgba(30, 30, 30, .26);

  --accent: #1C1B1B;     /* black button */
  --brand: #6E4C3D;      /* logo brown */

  --radius: 26px;
  --radius-sm: 16px;

  --shadow-hero: 0 34px 95px rgba(0,0,0,.52);
  --shadow-soft: 0 14px 38px rgba(0,0,0,.16);
  --shadow-btn: 0 18px 45px rgba(0,0,0,.22);

  --blur: 10px;
}

/* Containers / sections */
.container{ max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section{ padding: 64px 0; }
.section--alt{ background: rgba(255,255,255,.22); border-top: 1px solid rgba(0,0,0,.06); border-bottom: 1px solid rgba(0,0,0,.06); }

/* Headings */
h1, h2, h3{ margin: 0 0 12px 0; letter-spacing: -0.02em; }
h1{ font-size: var(--h1); line-height: 1.05; font-weight: 800; }
h2{ font-size: var(--h2); line-height: 1.15; font-weight: 800; }
.h3{ font-size: var(--h3); margin-top: 0; font-weight: 750; }
.lead{ font-size: 1.05rem; color: var(--muted); max-width: 62ch; }
.muted{ color: var(--muted); }

/* Accessibility */
.skip-link{
  position: absolute;
  top: 0; left: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  transform: translateY(-120%);
  z-index: 2000;
}
.skip-link:focus{ transform: translateY(0); }

:focus-visible{
  outline: 3px solid rgba(110,76,61,.35);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Header: hide for mock-match */
.site-header{ display: none; }

/* ============================================================
   HERO STAGE (dark background + single "canvas" card)
   ============================================================ */
.hero-stage{
  background: #6a6a6a;
  padding: 44px 18px;
}

.hero.section{ padding: 0; }

.hero{
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;

  /* Depth */
  box-shadow: var(--shadow-hero);
  border: 1px solid rgba(255,255,255,.12);

  /* Background photo + “sheet” + readable left gradient */
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 420px at 52% 112%,
      rgba(237,232,236,.92) 0%,
      rgba(237,232,236,.72) 46%,
      rgba(237,232,236,0) 76%),
    linear-gradient(90deg,
      rgba(237,232,236,.94) 0%,
      rgba(237,232,236,.83) 52%,
      rgba(237,232,236,.36) 100%),
    url("../img/hero-bg.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Use webp when supported */
@supports (background-image: image-set(url("a.webp") type("image/webp"))) {
  .hero{
    background-image:
      radial-gradient(1200px 420px at 52% 112%,
        rgba(237,232,236,.92) 0%,
        rgba(237,232,236,.72) 46%,
        rgba(237,232,236,0) 76%),
      linear-gradient(90deg,
        rgba(237,232,236,.94) 0%,
        rgba(237,232,236,.83) 52%,
        rgba(237,232,236,.36) 100%),
      image-set(
        url("../img/hero-bg.webp") type("image/webp"),
        url("../img/hero-bg.jpg") type("image/jpeg")
      );
  }
}

/* Volume overlays (generated PNG layers) */
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    url("../img/layers/overlay_highlight.png"),
    url("../img/layers/overlay_haze.png"),
    url("../img/layers/overlay_vignette.png"),
    url("../img/layers/overlay_grain.png");

  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  opacity: 1;

  /* Slight inner shading like in mock */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.10);
}

/* Keep content above overlays */
.hero > *{ position: relative; z-index: 1; }

/* Inner padding (we override .container here) */
.hero .container{
  max-width: none;
  padding: 62px 66px 58px;
}

.hero-logo{
  position: absolute;
  top: 26px;
  right: 34px;
  font-family: var(--logo-font);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.55rem);
  color: var(--brand);
  letter-spacing: .02em;
  line-height: 1;
  z-index: 2;
}

/* Hero layout: single column like mock */
.hero-grid{
  display: block;
}
.hero-grid > div{
  max-width: 740px;
}

/* Hide right media card to match reference */
.hero-media{ display: none; }

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 999px;
  color: rgba(28,27,27,.78);
  font-size: 0.95rem;

  background: rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
  margin-bottom: 14px;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid rgba(0,0,0,.12);

  background: rgba(255,255,255,.26);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.btn--primary{
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-btn);
}

.btn--ghost{
  color: rgba(28,27,27,.9);
  background: rgba(255,255,255,.18);
  border-color: rgba(0,0,0,.14);
}

/* Chips row */
.trust-mini{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.pill{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: rgba(28,27,27,.78);

  background: rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  box-shadow: inset 0 1px 0 rgba(255,255,255,.30);
}

/* ============================================================
   Rest of site: keep clean (minimal, not fighting hero look)
   ============================================================ */
.card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.55);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.cards{ display:grid; gap:14px; grid-template-columns: repeat(3, minmax(0,1fr)); }

.pricing{ display:grid; gap:14px; grid-template-columns: repeat(4, minmax(0,1fr)); }

.price-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.55);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.price-card--featured{
  border-color: rgba(110,76,61,.28);
  background: rgba(255,255,255,.72);
  box-shadow: 0 22px 58px rgba(0,0,0,.18);
}

.faq{ display:grid; gap:10px; }
.faq-item{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.60);
  box-shadow: var(--shadow-soft);
}

.review{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.60);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.site-footer{ border-top: 1px solid rgba(0,0,0,.08); padding: 28px 0; color: rgba(28,27,27,.75); }
.footer-note--legal{
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(28,27,27,.62);
  max-width: 72ch;
}
.footer-version{
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(28,27,27,.55);
}
.footer-legal{
  margin-top: 14px;
}
.footer-legal > summary{
  list-style: none;
}
.footer-legal > summary::-webkit-details-marker{
  display: none;
}
.footer-legal__toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-legal__toggle::after{
  content: "▾";
  font-size: 0.9em;
  transition: transform 200ms ease;
}
.footer-legal[open] > summary::after{
  transform: rotate(180deg);
}
.footer-legal__panel{
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow-soft);
  max-height: 50vh;
  overflow: auto;
}
.footer-legal__text{
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(28,27,27,.72);
  white-space: pre-line;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .pricing{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero .container{ padding: 44px 22px 40px; }
  .hero-logo{ right: 20px; top: 18px; }
}

@media (max-width: 640px){
  .pricing{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .hero-stage{ padding: 22px 12px; }
  .hero-actions{ gap: 10px; }
  .btn{ width: 100%; justify-content: center; }
  .hero-grid > div{ max-width: none; }
}
