*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #0d0d0d;
  --bg2:    #141414;
  --bg3:    #1a1a1a;
  --border: rgba(255,255,255,0.07);
  --accent: #e8b96a;
  --accent2:#c9973e;
  --text:   #e8e8e8;
  --muted:  #7a7a7a;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 0 32px;
  height: 64px;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.nav-logo span { font-weight: 700; font-size: 1.05rem; color: #e8e8e8; letter-spacing: .5px; }
.nav-logo span em { color: #e8b96a; font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-links a {
  color: #7a7a7a; text-decoration: none;
  font-size: .875rem; font-weight: 500;
  white-space: nowrap; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #e8b96a; }

.nav-cta { display: none; }

.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; justify-content: center; gap: 5px;
  margin-left: auto; flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: #e8e8e8; border-radius: 2px; transition: all .3s;
}

/* ── HERO (homepage) ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px 60px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,185,106,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,185,106,.1); border: 1px solid rgba(232,185,106,.25);
  color: var(--accent); font-size: .8rem; font-weight: 600;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 28px; letter-spacing: .5px;
}
.hero-badge::before { content: '●'; font-size: .6rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-logo {
  width: 110px; height: 110px; border-radius: 20px; object-fit: cover;
  margin: 0 auto 28px; box-shadow: 0 0 40px rgba(232,185,106,.2);
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 20px;
}
h1 span { color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted); max-width: 560px; margin: 0 auto 40px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent); color: #111; font-weight: 700;
  padding: 14px 30px; border-radius: 10px; text-decoration: none;
  font-size: .95rem; transition: all .2s; display: inline-block;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,185,106,.25); }

.btn-outline {
  background: transparent; color: var(--text); font-weight: 600;
  padding: 14px 30px; border-radius: 10px; text-decoration: none;
  font-size: .95rem; border: 1px solid rgba(255,255,255,0.28); transition: all .2s; display: inline-block;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 24px 64px; text-align: center;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(232,185,106,.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; margin-bottom: 14px; }
.page-hero .sub {
  color: var(--muted); font-size: clamp(.95rem, 2vw, 1.1rem);
  max-width: 600px; margin: 0 auto 20px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: .82rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding-bottom: 32px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.bc-sep { opacity: .4; }
.breadcrumb [aria-current] { color: var(--accent); }

/* ── SECTIONS ── */
section { padding: 90px 24px; }
.container { max-width: 1080px; margin: 0 auto; }

.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 16px;
}
.section-desc { color: var(--muted); max-width: 580px; font-size: 1rem; }

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.service-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .2s, box-shadow .25s;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover { border-color: rgba(232,185,106,.35); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(232,185,106,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .88rem; line-height: 1.65; }

.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag {
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--muted); font-size: .73rem; padding: 3px 10px; border-radius: 999px;
}

/* ── SERVICE DETAIL (services.html) ── */
.service-detail {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 44px; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.service-detail::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.service-detail-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.service-detail-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: rgba(232,185,106,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; flex-shrink: 0;
}
.service-detail-header-text h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 800; margin-bottom: 6px; }
.service-detail-lead { color: var(--muted); font-size: .95rem; }
.service-detail p { color: var(--muted); font-size: .9rem; line-height: 1.8; margin-bottom: 18px; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text); }
.feature-list li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; max-width: 360px; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.about-badge-float {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--accent); color: #111;
  font-weight: 800; font-size: .85rem; padding: 12px 20px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(232,185,106,.3);
}
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: .95rem; }
.about-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--text); }
.about-list li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── VALUES ── */
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 20px; margin-top: 40px;
}
.value-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.value-icon { margin-bottom: 14px; }
.value-icon svg { width: 32px; height: 32px; color: var(--accent); }
.value-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: .86rem; line-height: 1.65; }

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 20px; margin-top: 52px;
}
.step {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; position: relative;
}
.step-num {
  font-size: 3rem; font-weight: 900; color: rgba(232,185,106,.12);
  position: absolute; top: 16px; right: 20px; line-height: 1;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .86rem; line-height: 1.6; }

/* ── BIG OBJECTS ── */
.bigobj-wrap {
  background: linear-gradient(135deg, rgba(232,185,106,.06) 0%, transparent 60%), var(--bg3);
  border: 1px solid rgba(232,185,106,.2); border-radius: 20px; padding: 56px 48px;
}
.bigobj-label-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.bigobj-badge {
  background: var(--accent); color: #111;
  font-size: .78rem; font-weight: 800; letter-spacing: .5px;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase;
}
.bigobj-lead { color: var(--muted); font-size: 1rem; max-width: 700px; line-height: 1.75; margin-bottom: 44px; }
.bigobj-steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px; margin-bottom: 44px;
}
.bos { background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 12px; padding: 24px 22px; transition: border-color .25s; }
.bos:hover { border-color: rgba(232,185,106,.35); }
.bos-num { font-size: .7rem; font-weight: 800; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; }
.bos h4 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.bos p { color: var(--muted); font-size: .84rem; line-height: 1.65; }

.bigobj-cta-block {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: rgba(232,185,106,.06); border: 1px solid rgba(232,185,106,.25);
  border-radius: 14px; padding: 28px 32px;
}
.bigobj-cta-text h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.bigobj-cta-text p { color: var(--muted); font-size: .87rem; max-width: 560px; line-height: 1.6; }

/* ── OBJECT TYPES ── */
.obj-types-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 16px; margin-top: 44px;
}
.obj-type {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: border-color .25s, transform .2s;
}
.obj-type:hover { border-color: rgba(232,185,106,.3); transform: translateY(-3px); }
.obj-type-icon { margin-bottom: 12px; }
.obj-type-icon svg { width: 44px; height: 44px; color: var(--accent); }
.obj-type h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.obj-type p { color: var(--muted); font-size: .82rem; line-height: 1.6; }

/* ── INDUSTRIES ── */
.ind-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px; margin-bottom: 48px;
}
.ind-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: border-color .25s, transform .2s;
}
.ind-card:hover { border-color: rgba(232,185,106,.3); transform: translateY(-3px); }
.ind-icon { margin-bottom: 14px; }
.ind-icon svg { width: 36px; height: 36px; color: var(--accent); }
.ind-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; color: var(--accent); }
.ind-card p { color: var(--muted); font-size: .86rem; line-height: 1.7; margin-bottom: 10px; }
.ind-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ── SEO REGION BLOCKS ── */
.seo-region {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 32px; margin-top: 12px;
}
.seo-region h3 { font-size: .95rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.seo-region p { color: var(--muted); font-size: .82rem; line-height: 1.8; margin-bottom: 8px; }
.seo-highlight {
  display: flex; gap: 20px; align-items: flex-start;
  border-color: rgba(232,185,106,.3); background: rgba(232,185,106,.04);
}
.seo-hl-icon { flex-shrink: 0; margin-top: 2px; }
.seo-hl-icon svg { width: 36px; height: 36px; color: var(--accent); }
.service-icon svg { width: 26px; height: 26px; }
.service-detail-icon svg { width: 30px; height: 30px; }
.ci-h { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.ci-h svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── FAQ ── */
.faq-section { margin-top: 72px; }
.faq-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; }
.faq-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 24px; color: var(--text); font-size: .95rem; font-weight: 600;
  font-family: inherit; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow { flex-shrink: 0; font-size: 1.1rem; transition: transform .3s; color: var(--accent); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner {
  border-top: 1px solid var(--border);
  padding: 16px 24px 20px; color: var(--muted); font-size: .88rem; line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 500px; }

/* ── CTA BLOCK ── */
.cta-block {
  background: linear-gradient(135deg, rgba(232,185,106,.08) 0%, transparent 60%), var(--bg3);
  border: 1px solid rgba(232,185,106,.2); border-radius: 20px;
  padding: 56px 48px; text-align: center; margin-top: 72px;
}
.cta-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 14px; }
.cta-block p { color: var(--muted); max-width: 520px; margin: 0 auto 32px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT ── */
.contact-inner {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 56px; text-align: center; position: relative; overflow: hidden;
}
.contact-glow {
  position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(232,185,106,.07) 0%, transparent 70%);
  pointer-events: none;
}
.contact-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 14px; }
.contact-inner > p { color: var(--muted); max-width: 480px; margin: 0 auto 36px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-link {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; padding: 12px 22px;
  border-radius: 10px; font-size: .92rem; font-weight: 500; transition: all .2s;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.ci-svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-viber:hover { border-color: #7360f2; color: #7360f2; }
.contact-tg:hover    { border-color: #29b6f6; color: #29b6f6; }
.contact-wa:hover    { border-color: #25d366; color: #25d366; }

.contact-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 20px; margin-top: 48px;
}
.contact-info-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.contact-info-card h3 { font-size: .9rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.contact-info-card p { color: var(--muted); font-size: .86rem; line-height: 1.7; }
.contact-info-card a { color: var(--text); text-decoration: none; }
.contact-info-card a:hover { color: var(--accent); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border); padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer p { color: var(--muted); font-size: .82rem; }
footer a { color: var(--accent); text-decoration: none; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .82rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  /* На телефоні — ховаємо посилання, показуємо burger */
  .nav-links { display: none; margin-left: 0; }
  .nav-burger { display: flex; }
  nav { flex-wrap: wrap; padding: 0 16px; height: auto; min-height: 56px; }
  nav.open .nav-links {
    display: flex; flex-direction: column; width: 100%;
    gap: 0; border-top: 1px solid rgba(255,255,255,0.07);
    padding: 8px 0 12px;
  }
  nav.open .nav-links a { padding: 10px 4px; font-size: .95rem; color: #e8e8e8; }

  section { padding: 64px 16px; }

  /* Hero: не центруємо вертикально — щоб не їхало під nav */
  #hero {
    align-items: flex-start;
    padding: 96px 16px 56px;
    min-height: auto;
  }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 300px; text-align: center; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.7rem; }

  /* Page hero */
  .page-hero { padding: 96px 16px 48px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { text-align: center; }
  .about-badge-float { right: 0; }

  /* Service detail */
  .service-detail { padding: 24px 16px; }
  .service-detail-header { flex-direction: column; }

  /* Big objects */
  .bigobj-wrap { padding: 28px 16px; }
  .bigobj-cta-block { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* CTA block */
  .cta-block { padding: 36px 16px; margin-top: 48px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn-primary,
  .cta-btns .btn-outline { width: 100%; max-width: 300px; text-align: center; }

  /* Contact */
  .contact-inner { padding: 32px 16px; }
  .contact-links { flex-direction: column; }
  .contact-link { justify-content: flex-start; width: 100%; }

  /* Footer */
  footer { flex-direction: column; text-align: center; padding: 24px 16px; gap: 16px; }
  .footer-links { justify-content: center; gap: 16px; }

  /* Breadcrumb */
  .breadcrumb { padding-bottom: 24px; }

  /* FAQ */
  .faq-section { margin-top: 48px; }
  .faq-q { padding: 16px 18px; font-size: .9rem; }
  .faq-a-inner { padding: 12px 18px 16px; }

  /* SEO regions */
  .seo-highlight { flex-direction: column; gap: 12px; }
  .seo-region { padding: 20px 16px; }
}

/* ≤480px — телефон */
@media (max-width: 480px) {
  section { padding: 48px 12px; }
  h1 { font-size: clamp(1.9rem, 9vw, 3.8rem); }
  .page-hero h1 { font-size: clamp(1.7rem, 8vw, 3rem); }
  .section-title { font-size: clamp(1.5rem, 7vw, 2.5rem); }

  /* Усі гриди → одна колонка */
  .steps-grid,
  .values-grid,
  .obj-types-grid,
  .bigobj-steps { grid-template-columns: 1fr; }

  /* Два-рядна hero stats */
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Nav padding */
  nav { padding: 10px 12px; }

  /* bigobj-lead менший */
  .bigobj-lead { font-size: .9rem; margin-bottom: 28px; }
}
