/* =========================================================
   Загоретех ЕООД — modern site theme
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f4f1;
  --ink: #18140f;
  --ink-soft: #635c52;
  --ink-faint: #9b9186;
  --border: #ebe5db;
  --accent: #e8590c;
  --accent-2: #ff8a3d;
  --accent-dark: #c2470a;
  --accent-soft: #fff1e6;
  --accent-grad: linear-gradient(135deg, #ff8f47, #e8590c 60%, #c2470a);
  --teal: #0f7a72;
  --teal-soft: #e6f5f3;
  --dark: #15100b;
  --dark-soft: #201810;
  --dark-border: #362a1e;
  --radius: 16px;
  --radius-sm: 9px;
  --shadow: 0 14px 34px -14px rgba(24, 20, 15, 0.22);
  --shadow-sm: 0 6px 16px -8px rgba(24, 20, 15, 0.16);
  --container: 1180px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Sora", "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; font-family: var(--font-head); }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 22px -8px rgba(232, 89, 12, .55); }
.btn-accent:hover { box-shadow: 0 14px 28px -8px rgba(232, 89, 12, .65); filter: brightness(1.04); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------------- Header ---------------- */
.topbar {
  background: var(--dark);
  color: #cfd3dc;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #cfd3dc; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-links span, .topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-social a { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); }
.topbar-social a:hover { background: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch a {
  padding: 3px 11px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .03em;
  color: #a9adb8;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: var(--accent-grad); color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.brand img { height: 46px; width: auto; }
.brand-tagline { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: stretch; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  font-weight: 700; font-size: 14.5px;
  border-radius: 999px;
  color: var(--ink);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.open > a { background: var(--accent-soft); color: var(--accent-dark); }
.main-nav .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .6; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.main-nav > ul > li:hover > .dropdown,
.main-nav > ul > li.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--ink); }
.dropdown a:hover { background: var(--bg-alt); color: var(--accent-dark); }
.dropdown .sub-list { padding-left: 10px; margin-bottom: 4px; }
.dropdown .sub-list a { font-weight: 500; font-size: 13.5px; color: var(--ink-soft); padding: 6px 12px; }
.dropdown .group-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); padding: 8px 12px 2px; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.mobile-nav-close { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  color: #fff;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(21,16,11,.97) 15%, rgba(21,16,11,.58) 55%, rgba(232,89,12,.4) 130%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 90px 0; }
.hero-content h1 { font-size: clamp(32px, 4.4vw, 52px); }
.hero-content p.lead { font-size: 18px; color: #d9dce3; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; font-weight: 800; color: #fff; }
.hero-stats div span { font-size: 13px; color: #b7bcc7; }

.page-hero {
  position: relative;
  color: #fff;
  background: var(--dark);
  padding: 76px 0 56px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 260px at 15% 0%, rgba(232,89,12,.35), transparent 60%);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #b7bcc7; margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); }
.page-hero p { color: #ccd0da; max-width: 640px; font-size: 16px; margin-bottom: 0; }

/* ---------------- Sections ---------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { color: var(--ink-soft); font-size: 16.5px; }

/* Highlight / feature cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; }
.feature-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 0; }

/* Catalog cards (categories/products) */
.card-link {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-top-color .2s ease;
  height: 100%;
}
.card-link:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-top-color: var(--accent); }
.card-media { aspect-ratio: 4/3; background: var(--bg-alt) center/cover no-repeat; position: relative; }
.card-media .count-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(15,122,114,.88); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 18px 20px 20px; }
.card-body h3 { font-size: 16.5px; margin-bottom: 6px; }
.card-body p { font-size: 13.8px; color: var(--ink-soft); margin-bottom: 10px; }
.card-arrow { font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover .card-arrow { gap: 10px; }

/* Product detail */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.prose p { color: var(--ink-soft); font-size: 16px; }
.spec-list { border-top: 1px solid var(--border); margin-top: 8px; }
.spec-list .spec-row { display: grid; grid-template-columns: 240px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.spec-list .spec-row.no-label { grid-template-columns: 1fr; }
.spec-list dt { font-weight: 700; font-size: 14px; color: var(--ink); }
.spec-list dd { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.spec-list .bullet::before { content: "—"; color: var(--accent); font-weight: 800; margin-right: 10px; }

.side-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  position: sticky;
  top: 96px;
}
.side-card h3 { font-size: 18px; }
.side-card p { color: #c6cad4; font-size: 14px; }
.side-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.side-card .side-contact { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; font-size: 14.5px; }
.side-card .side-contact a { display: flex; align-items: center; gap: 10px; color: #e7e9ee; }
.side-card .side-contact a:hover { color: var(--accent); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.07); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,12,16,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .2s ease;
  padding: 40px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.25); cursor: pointer;
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); }

/* About page */
.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stat-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-box strong { display: block; font-size: 26px; font-weight: 800; color: var(--accent); }
.stat-box span { font-size: 12.5px; color: var(--ink-soft); }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { aspect-ratio: 4/5; object-fit: cover; }

/* Video grid */
.video-card { border-radius: var(--radius); overflow: hidden; background: var(--dark); position: relative; cursor: pointer; }
.video-card .thumb { aspect-ratio: 16/9; background: #000 center/cover no-repeat; position: relative; }
.video-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75)); }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center; z-index: 2;
  box-shadow: 0 8px 24px -6px rgba(232,89,12,.7); transition: transform .2s ease;
}
.video-card:hover .play-btn { transform: scale(1.1); }
.play-btn::before { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.video-card .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; font-weight: 700; font-size: 14px; }

.video-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,12,16,.92);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.video-modal.is-open { opacity: 1; visibility: visible; }
.video-modal .frame-wrap { width: min(920px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.video-modal iframe { width: 100%; height: 100%; border: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.contact-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ic {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; font-weight: 800;
}
.contact-row h4 { margin: 0 0 3px; font-size: 15px; }
.contact-row p, .contact-row a { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.contact-row a:hover { color: var(--accent); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--dark), var(--dark-soft));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; margin-bottom: 6px; }
.cta-band p { color: #c6cad4; margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--dark); color: #b7bcc7; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--dark-border); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); }
.footer-brand strong { color: #fff; font-size: 16px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--accent); }

/* Mobile */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: #fff;
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: .2s;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }

  body.nav-open .main-nav {
    display: block;
    position: fixed; inset: 0; top: 0; z-index: 60;
    background: #fff; padding: 90px 24px 40px; overflow-y: auto;
  }
  body.nav-open .main-nav > ul { flex-direction: column; align-items: stretch; }
  body.nav-open .main-nav > ul > li > a { padding: 14px 4px; border-bottom: 1px solid var(--border); border-radius: 0; }
  body.nav-open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
    display: none; padding-left: 10px;
  }
  body.nav-open li.open > .dropdown { display: block; }
  .mobile-nav-close {
    display: none;
  }
  body.nav-open .mobile-nav-close {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 20px; right: 24px; z-index: 61;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-alt); border: 1px solid var(--border); color: var(--ink);
    font-size: 20px; cursor: pointer;
  }

  .hero-stats { gap: 24px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-layout, .about-layout, .contact-grid { grid-template-columns: 1fr; }
  .spec-list .spec-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .side-card { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media img { aspect-ratio: 16/10; }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .stat-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-links span.topbar-address { display: none; }
  .topbar-links { justify-content: center; gap: 14px; font-size: 12px; }
  .topbar-right { justify-content: center; }
  .brand img { height: 38px; }
  .hero { min-height: 0; }
  .hero-content { padding: 56px 0; }
  .hero-stats { gap: 22px; margin-top: 32px; }
  .cta-band h2 { font-size: 21px; }
}
