/* =========================================================================
   ШАБЛОН 5 — «БАЗИС» (светлый, центрированный, bold rounded, кобальт)
   Отличается от шаблонов 1–4: центрированная одноколоночная вёрстка, плавающая
   пилюля-навбар, насыщенный кобальтовый акцент, округлый шрифт Plus Jakarta
   Sans, мягкие цветные тени, прайс с вкладками-категориями. Данные те же.
   ========================================================================= */
:root {
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --ink: #11213d;
  --ink-soft: #5a6b85;
  --line: #e4ebf6;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --surface-3: #e2ecff;

  --accent: #2f6bff;
  --accent-2: #5fa0ff;
  --accent-deep: #1e4fd6;
  --accent-soft: #dbe7ff;
  --on-accent: #ffffff;
  --good: #15a06b;
  --warn: #d68a1e;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --shadow: 0 6px 16px rgba(31,79,214,.08), 0 30px 60px -30px rgba(31,79,214,.4);
  --shadow-sm: 0 3px 10px rgba(31,79,214,.08), 0 16px 34px -24px rgba(31,79,214,.35);
  --shadow-accent: 0 16px 34px -12px rgba(47,107,255,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--surface-2); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1080px, 92vw); margin: 0 auto; }
section { scroll-margin-top: 100px; }

.eyebrow { font-size: 13px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 15px; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn-soft { background: var(--accent-soft); color: var(--accent-deep); }
.btn-soft:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* =========================================================================
   ПЛАВАЮЩАЯ ПИЛЮЛЯ-НАВБАР
   ========================================================================= */
.topbar { position: sticky; top: 16px; z-index: 50; padding: 0 16px; }
.bar { width: min(1080px, 94vw); margin: 0 auto; display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; padding: 12px 14px 12px 20px; box-shadow: var(--shadow-sm); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; box-shadow: var(--shadow-accent); }
.brand-mark svg { width: 22px; height: 22px; }
/* бренд может сжиматься и обрезать длинное название карьера многоточием,
   чтобы меню в пилюле не обрезалось (полное имя видно в H1/H2 ниже) */
.brand { flex: 0 1 auto; min-width: 0; }
.brand > span:last-child { min-width: 0; }
.brand > span:last-child br { display: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 17px; line-height: 1.15; white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
/* меню не сжимается — оно скрывается целиком на узких экранах (см. медиазапросы ниже) */
.nav { display: flex; gap: 20px; margin: 0 auto; flex: 0 0 auto; }
.nav a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.bar .btn { padding: 11px 20px; }
.bar-phone { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; flex: none; }

/* =========================================================================
   ГЕРОЙ — центрированный
   ========================================================================= */
.hero { position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(680px 360px at 50% -6%, var(--surface-3), transparent 70%), var(--surface-2); }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; pointer-events: none; }
.hero::before { width: 200px; height: 200px; left: 6%; top: 30%; background: radial-gradient(circle, var(--accent-2), transparent 70%); }
.hero::after { width: 260px; height: 260px; right: 4%; top: 18%; background: radial-gradient(circle, #9bc0ff, transparent 70%); }
/* фото в герое (картинка уже содержит дугу и точки) */
.hero.has-photo::before, .hero.has-photo::after { display: none; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.hero-veil { position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(900px 420px at 50% 32%, rgba(255,255,255,.7), rgba(255,255,255,.18) 60%, transparent 80%); }
.hero-inner { position: relative; z-index: 2; padding: 70px 0 78px; }
.hero .pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.hero .pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); margin: 22px auto 0; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-subtitle { color: var(--ink-soft); font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 2.2vw, 26px); margin: 12px auto 0; max-width: 44ch; }
.hero-lead { color: var(--ink-soft); font-size: clamp(17px, 1.8vw, 21px); max-width: 52ch; margin: 20px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.hero-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 26px; box-shadow: var(--shadow-sm); }
.hero-stat b { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--accent); display: block; line-height: 1; }
.hero-stat span { font-size: 13px; color: var(--ink-soft); margin-top: 6px; display: block; }

/* =========================================================================
   СЕКЦИИ
   ========================================================================= */
.section { padding: 76px 0; }
.section--white { background: var(--surface); }
.section-head { max-width: 60ch; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 12px; }

/* =========================================================================
   ПРАЙС — ВКЛАДКИ КАТЕГОРИЙ
   ========================================================================= */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
.tab { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; padding: 11px 20px; border-radius: 999px; cursor: pointer; border: 2px solid var(--line); background: #fff; color: var(--ink-soft); transition: all .15s; }
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-accent); }
.price-meta { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 26px; }
.dl5 { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .12s, box-shadow .2s; }
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mcard .m-name { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.mcard .m-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.mcard .m-bulk { font-size: 12.5px; color: var(--accent); margin-top: 2px; }
.mcard .m-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mcard .m-price { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--ink); line-height: 1; }
.mcard .m-price small { font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.m-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--good); }
.m-stock i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.m-stock.out { color: var(--warn); }
.m-stock.out i { background: var(--warn); }
.price-note5 { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 26px; }

/* =========================================================================
   ПРЕИМУЩЕСТВА
   ========================================================================= */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-sm); text-align: center; }
.adv .ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--accent-soft); color: var(--accent); }
.adv .ico svg { width: 26px; height: 26px; }
.adv h3 { font-size: 18px; margin-bottom: 6px; }
.adv p { font-size: 14px; color: var(--ink-soft); }

/* =========================================================================
   ДЕТАЛИ — одна широкая карточка с тремя колонками
   ========================================================================= */
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); }
.detail-col { padding: 30px 28px; }
.detail-col + .detail-col { border-left: 1px solid var(--line); }
.detail-col .ch { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.detail-col .ch .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.detail-col .ch .ico svg { width: 20px; height: 20px; }
.detail-col h3 { font-size: 18px; }
.kv5 { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv5:last-child { border-bottom: 0; }
.kv5 .k { color: var(--ink-soft); }
.kv5 .v { font-weight: 700; text-align: right; }
.tp5 { padding: 9px 0; border-bottom: 1px solid var(--line); }
.tp5:last-child { border-bottom: 0; }
.tp5 b { display: block; font-size: 14.5px; }
.tp5 span { font-size: 12.5px; color: var(--ink-soft); }

/* =========================================================================
   КАРТА — карточка
   ========================================================================= */
.map-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; }
.map-canvas { position: relative; min-height: 420px; background-color: var(--surface-2);
  background-image:
    linear-gradient(0deg, rgba(47,107,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,107,255,.08) 1px, transparent 1px),
    radial-gradient(circle at 64% 44%, rgba(95,160,255,.22), transparent 58%);
  background-size: 42px 42px, 42px 42px, 100% 100%; }
.map-road { position: absolute; background: rgba(17,33,61,.08); }
.map-road.a { top: 0; bottom: 0; left: 60%; width: 15px; transform: rotate(-7deg); }
.map-road.b { left: 0; right: 0; top: 50%; height: 12px; }
.map-road.c { left: 16%; right: 30%; top: 28%; height: 7px; transform: rotate(5deg); }
.map-pin { position: absolute; left: 60%; top: 50%; transform: translate(-50%,-100%); display: flex; flex-direction: column; align-items: center; z-index: 3; }
.map-pin .dot { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); box-shadow: var(--shadow-accent); border: 3px solid #fff; }
.map-pin .tag { margin-top: 14px; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 13px; padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.map-side { padding: 36px; display: flex; flex-direction: column; }
.map-side h3 { font-size: 24px; margin-bottom: 10px; }
.map-side .addr { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.map-side .map-kv { font-size: 14px; color: var(--ink-soft); padding: 8px 0; border-top: 1px solid var(--line); }
.map-side .map-kv b { color: var(--ink); }
.map-kv .copy-coords-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 8px; padding: 2px 7px;
  border: 1px solid currentColor; border-radius: 6px;
  background: transparent; color: inherit; opacity: .65;
  font: inherit; font-size: 12px; line-height: 1.2;
  vertical-align: middle; cursor: pointer;
  transition: opacity .15s ease, color .15s ease;
}
.map-kv .copy-coords-btn:hover { opacity: 1; }
.map-kv .copy-coords-btn:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: 1px; }
.map-kv .copy-coords-btn__icon { display: block; }
.map-kv .copy-coords-btn__done { display: none; }
.map-kv .copy-coords-btn.is-copied { opacity: 1; color: #4caf50; }
.map-kv .copy-coords-btn.is-copied .copy-coords-btn__icon { display: none; }
.map-kv .copy-coords-btn.is-copied .copy-coords-btn__done { display: inline; }
.map-side .btn-row { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }

/* =========================================================================
   ДОКУМЕНТЫ
   ========================================================================= */
.docs-grid5 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.doc5 { display: flex; align-items: center; gap: 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .2s; }
.doc5:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.doc5 .ft { width: 44px; height: 52px; border-radius: 10px; flex: none; display: grid; place-items: end center; padding-bottom: 7px; font-family: var(--font-head); font-weight: 800; font-size: 11.5px; background: var(--accent-soft); color: var(--accent-deep); }
.doc5 .ft--img { padding: 0; overflow: hidden; }
.doc5 .ft--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc5 .d-main { flex: 1; min-width: 0; }
.doc5 .d-main b { font-family: var(--font-head); font-weight: 800; font-size: 15.5px; display: block; }
.doc5 .d-main span { font-size: 12.5px; color: var(--ink-soft); }
.doc5 .dl { color: var(--ink-soft); }
.doc5:hover .dl { color: var(--accent); }
.doc5 .dl svg { width: 22px; height: 22px; }
/* документ-картинка: крупное превью на всю ширину карточки, имя под ним */
.doc5.is-image { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; position: relative; }
.doc5.is-image .ft--img { width: 100%; height: 200px; border-radius: 0; }
.doc5.is-image .d-main { padding: 14px 18px; }
.doc5.is-image .dl { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); color: var(--accent-deep); }
.doc5.is-image .dl svg { width: 18px; height: 18px; }

/* =========================================================================
   ЗАЯВКА + ПОДВАЛ
   ========================================================================= */
.cta5 { position: relative; overflow: hidden; text-align: center; border-radius: var(--radius-xl);
  background: linear-gradient(130deg, var(--accent), var(--accent-deep)); color: #fff; padding: 60px 40px; box-shadow: var(--shadow); }
.cta5::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -60px; top: -120px; background: rgba(255,255,255,.12); }
.cta5 h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); position: relative; z-index: 2; }
.cta5 p { color: rgba(255,255,255,.92); margin: 14px auto 28px; font-size: 17px; max-width: 52ch; position: relative; z-index: 2; }
.cta5 .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.cta5 .btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.cta5 .btn-ghost:hover { background: #fff; color: var(--accent); border-color: #fff; }
.cta5 .btn-white { background: #fff; color: var(--accent); }

footer { padding: 44px 0; text-align: center; }
.foot5 { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.foot5 .brand { justify-content: center; }
.foot5 .muted { color: var(--ink-soft); font-size: 13.5px; }

/* =========================================================================
   ПЕЧАТНЫЙ ПРАЙС
   ========================================================================= */
.print-sheet { display: none; }
@media print {
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; color: #111; background: #fff; font-family: Arial, sans-serif; }
  .print-sheet h1 { font-size: 22px; }
  .print-sheet .ps-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #111; padding-bottom: 12px; margin-bottom: 6px; }
  .print-sheet .ps-sub { color: #555; font-size: 12px; margin: 4px 0 18px; }
  .print-sheet table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .print-sheet th { text-align: left; background: #e7efff; padding: 7px 10px; border: 1px solid #ccc; }
  .print-sheet td { padding: 6px 10px; border: 1px solid #ddd; }
  .print-sheet td.num, .print-sheet th.num { text-align: right; }
  .print-sheet .ps-cat td { background: #d8e6ff; font-weight: 700; }
  .print-sheet .ps-foot { margin-top: 18px; font-size: 11px; color: #555; display: flex; justify-content: space-between; }
  @page { margin: 14mm; }
}

/* =========================================================================
   АДАПТИВ
   ========================================================================= */
/* прячем навигацию раньше — длинное название карьера + ссылки не помещаются в пилюлю */
@media (max-width: 1120px) { .nav { display: none; } }
@media (max-width: 960px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-card { grid-template-columns: 1fr; }
  .detail-col + .detail-col { border-left: 0; border-top: 1px solid var(--line); }
  .map-card { grid-template-columns: 1fr; }
  .map-canvas { min-height: 300px; }
}
@media (max-width: 560px) {
  .bar-phone { display: none; }
  .grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
}
