/* ═══════════════════════════════════════════
   DIASON LAZER · Головна таблиця стилів
   diason-lazer.com.ua
   ═══════════════════════════════════════════ */

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

:root {
  --red: #C8102E;
  --red-dark: #A00D24;
  --red-light: #FDECEA;
  --black-hero: #1A1A1A;
  --black-deep: #111111;
  --black-card: #2A2A2A;
  --gray-logo: #3D3D3D;
  --gray-section: #F8F8F8;
  --white: #FFFFFF;
  --gray-border: #E0E0E0;
  --gray-body: #555555;
  --gray-muted: #888888;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── УТИЛІТИ ─────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 24px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--red); text-transform: uppercase; margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: clamp(26px, 3vw, 36px); font-weight: 800;
  color: var(--black-hero); line-height: 1.2; margin-bottom: 8px;
}
.section-title--light { color: var(--white); }
.section-sub {
  font-size: 15px; color: var(--gray-muted);
  max-width: 520px; margin-bottom: 48px;
}

/* ── КНОПКИ ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  padding: 12px 24px; border-radius: 5px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary {
  background: transparent; color: #aaa; border: 1px solid #333;
}
.btn-secondary:hover { color: var(--white); border-color: #555; }
.btn-secondary--light {
  background: var(--white); color: #333;
  border: 0.5px solid var(--gray-border);
}
.btn-secondary--light:hover { border-color: #aaa; }
.btn-tg { background: transparent; color: #aaa; border: 1px solid #333; }
.btn-tg:hover { color: var(--white); border-color: #555; }
.btn-cta-white { background: var(--white); color: var(--red); font-weight: 800; }
.btn-cta-white:hover { opacity: .9; }
.btn-cta-outline {
  background: transparent; color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-cta-outline:hover { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn--full { width: 100%; justify-content: center; }

/* ── HEADER ──────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--black-hero); padding: 0 24px;
  height: 60px; display: flex; align-items: center;
  justify-content: space-between; transition: border-bottom .3s;
}
.header.scrolled { border-bottom: 0.5px solid var(--black-card); }
.header-logo img { height: 34px; width: auto; display: block; }
.header-nav { display: flex; gap: 28px; list-style: none; }
.header-nav a {
  font-size: 12px; font-weight: 500; color: #777;
  text-decoration: none; transition: color .2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--white); }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone {
  font-size: 13px; font-weight: 600; color: var(--white);
  text-decoration: none;
}
.btn-header {
  background: var(--red); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 8px 16px;
  border-radius: 4px; text-decoration: none; transition: background .2s;
}
.btn-header:hover { background: var(--red-dark); }
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: .3s;
}

/* ── MOBILE MENU ─────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--black-hero); z-index: 999;
  padding: 80px 24px 40px; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: none; color: var(--white);
  font-size: 24px; cursor: pointer;
}
.mobile-menu a {
  font-size: 20px; font-weight: 700; color: var(--white);
  text-decoration: none; padding: 10px 0;
  border-bottom: 0.5px solid #2a2a2a;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* ── HERO ГОЛОВНА ────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  background: var(--black-hero); display: flex; align-items: center; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .45;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 80px 24px; width: 100%; }
.hero-label { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero-label-line { width: 38px; height: 4px; background: var(--red); border-radius: 2px; flex-shrink: 0; }
.hero-label span { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--red); text-transform: uppercase; }
.hero h1 { font-size: clamp(32px,5vw,52px); font-weight: 800; color: var(--white); line-height: 1.12; max-width: 620px; margin-bottom: 20px; }
.hero-sub { font-size: 15px; color: #999; line-height: 1.7; max-width: 440px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-triggers { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-trigger { display: flex; align-items: center; gap: 10px; }
.hero-trigger-val { font-size: 20px; font-weight: 800; color: var(--white); line-height: 1; }
.hero-trigger-val .accent { color: var(--red); }
.hero-trigger-label { font-size: 11px; color: #666; line-height: 1.4; }

/* ── HERO СТОРІНКИ ПОСЛУГИ ───────────────── */
.page-hero {
  background: var(--black-hero);
  padding: 72px 24px 64px;
  position: relative; overflow: hidden;
}
.page-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .18;
}
.page-hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.page-hero-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--red); text-transform: uppercase; margin-bottom: 12px; display: block; }
.page-hero h1 { font-size: clamp(28px,4vw,46px); font-weight: 800; color: var(--white); line-height: 1.12; max-width: 680px; margin-bottom: 16px; }
.page-hero-sub { font-size: 16px; color: #888; max-width: 500px; margin-bottom: 32px; }
.page-hero-triggers { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.trigger-badge {
  background: rgba(255,255,255,.05); border: 0.5px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
}
.trigger-badge-icon { font-size: 20px; }
.trigger-badge-val { font-size: 16px; font-weight: 800; color: var(--white); line-height: 1; }
.trigger-badge-val .accent { color: var(--red); }
.trigger-badge-label { font-size: 11px; color: #666; }
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── STATS BAR ───────────────────────────── */
.stats-bar { background: var(--black-deep); }
.stats-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.stat-item {
  padding: 28px 24px; border-right: 0.5px solid var(--black-card);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 26px; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 6px; }
.stat-number .accent { color: var(--red); }
.stat-label { font-size: 10px; color: var(--gray-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ── SERVICES GRID ───────────────────────── */
.services-section { background: var(--gray-section); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.service-card {
  background: var(--white); border: 0.5px solid var(--gray-border);
  border-left: 3px solid var(--red); border-radius: var(--radius);
  padding: 20px; text-decoration: none; display: block;
  transition: transform .2s, border-left-width .2s;
}
.service-card:hover { transform: translateY(-2px); border-left-width: 4px; }
.service-card-img { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; margin-bottom: 14px; display: block; }
.service-card-title { font-size: 15px; font-weight: 700; color: var(--black-hero); margin-bottom: 6px; }
.service-card-desc { font-size: 12px; color: var(--gray-muted); line-height: 1.6; }
.service-card-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--red); margin-top: 12px; }

/* ── ABOUT / COMPANY NUMBERS ─────────────── */
.about-section { background: var(--black-hero); }
.about-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.about-item { padding: 40px 24px; border-right: 0.5px solid var(--black-card); text-align: center; }
.about-item:last-child { border-right: none; }
.about-number { font-size: 48px; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 8px; }
.about-number .accent { color: var(--red); }
.about-label { font-size: 13px; color: var(--gray-muted); line-height: 1.5; }

/* ── PROCESS STEPS ───────────────────────── */
.process-section { background: var(--black-deep); }
.process-steps { display: flex; }
.process-step { flex: 1; padding: 32px 20px; position: relative; }
.process-step::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  border-left: 12px solid var(--black-card);
}
.process-step:last-child::after { display: none; }
.step-number {
  width: 40px; height: 40px; border-radius: 50%; background: var(--black-card);
  color: var(--gray-muted); font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-number.active { background: var(--red); color: var(--white); }
.step-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-desc { font-size: 12px; color: var(--gray-muted); line-height: 1.6; }

/* ── ADVANTAGES ──────────────────────────── */
.advantages-section { background: var(--gray-section); }
.advantages-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.advantage-card { background: var(--white); border: 0.5px solid var(--gray-border); border-radius: 8px; padding: 28px 22px; }
.advantage-icon { width: 44px; height: 44px; background: var(--red-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px; }
.advantage-value { font-size: 24px; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 6px; }
.advantage-title { font-size: 14px; font-weight: 700; color: var(--black-hero); margin-bottom: 6px; }
.advantage-desc { font-size: 12px; color: var(--gray-muted); line-height: 1.6; }

/* ── PORTFOLIO ───────────────────────────── */
.portfolio-section { background: var(--white); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 32px; }
.portfolio-card { border-radius: var(--radius); overflow: hidden; }
.portfolio-card img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .4s; }
.portfolio-card:hover img { transform: scale(1.03); }
.portfolio-caption { padding: 14px 16px; background: var(--white); border: 0.5px solid var(--gray-border); border-top: none; }
.portfolio-caption-title { font-size: 13px; font-weight: 700; color: var(--black-hero); margin-bottom: 4px; }
.portfolio-caption-meta { font-size: 11px; color: var(--gray-muted); }

/* ── CTA BANNER ──────────────────────────── */
.cta-section { background: var(--red); padding: 80px 24px; }
.cta-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.cta-title { font-size: clamp(24px,3vw,36px); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-sub { font-size: 15px; color: rgba(255,255,255,.75); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FORM ────────────────────────────────── */
.form-section { background: var(--black-hero); padding: 80px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.form-info h2 { color: var(--white); margin-bottom: 16px; }
.form-info p { color: var(--gray-muted); margin-bottom: 24px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #aaa; margin-bottom: 12px; }
.contact-list li a { color: #aaa; text-decoration: none; transition: color .2s; }
.contact-list li a:hover { color: var(--white); }
.contact-icon { width: 32px; height: 32px; background: var(--black-card); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-box { background: #222; border-radius: 10px; padding: 32px; }
.form-row { margin-bottom: 14px; }
.form-label { display: block; font-size: 11px; font-weight: 600; color: #777; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.form-input { width: 100%; background: #2e2e2e; border: 0.5px solid #3a3a3a; border-radius: var(--radius); padding: 11px 14px; font-size: 14px; color: var(--white); font-family: var(--font); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.form-input::placeholder { color: #555; }
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.form-file-label { display: flex; align-items: center; gap: 10px; background: #2e2e2e; border: 0.5px dashed #3a3a3a; border-radius: var(--radius); padding: 11px 14px; font-size: 13px; color: #777; cursor: pointer; transition: border-color .2s; }
.form-file-label:hover { border-color: var(--red); color: #aaa; }
.form-file { display: none; }
.form-submit { width: 100%; background: var(--red); color: var(--white); font-size: 14px; font-weight: 700; padding: 14px; border: none; border-radius: var(--radius); cursor: pointer; font-family: var(--font); transition: background .2s; margin-top: 6px; }
.form-submit:hover { background: var(--red-dark); }
.form-note { text-align: center; font-size: 11px; color: #555; margin-top: 10px; }
.hp { display: none !important; }

/* ── CONTENT BLOCKS (сторінки послуг) ────── */
.content-section { background: var(--white); }
.content-section--gray { background: var(--gray-section); }
.content-section--dark { background: var(--black-hero); }

.materials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.material-card { background: var(--white); border: 0.5px solid var(--gray-border); border-radius: var(--radius); padding: 20px; }
.material-card-name { font-size: 15px; font-weight: 700; color: var(--black-hero); margin-bottom: 8px; }
.material-card-params { font-size: 12px; color: var(--gray-muted); line-height: 1.6; }
.material-badge { display: inline-block; background: var(--red-light); color: var(--red); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }

.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table th { background: var(--black-hero); color: var(--white); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; text-align: left; }
.specs-table td { padding: 12px 16px; border-bottom: 0.5px solid var(--gray-border); color: var(--gray-body); }
.specs-table tr:nth-child(even) td { background: var(--gray-section); }
.specs-table td:first-child { font-weight: 600; color: var(--black-hero); }

.equipment-card { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--gray-section); border-radius: 10px; padding: 32px; }
.equipment-card img { width: 100%; border-radius: 8px; object-fit: cover; height: 250px; }
.equipment-card-title { font-size: 22px; font-weight: 800; color: var(--black-hero); margin-bottom: 16px; }
.equipment-card-params { list-style: none; }
.equipment-card-params li { font-size: 14px; color: var(--gray-body); padding: 6px 0; border-bottom: 0.5px solid var(--gray-border); display: flex; justify-content: space-between; }
.equipment-card-params li:last-child { border-bottom: none; }
.equipment-card-params li span { font-weight: 700; color: var(--black-hero); }

.case-card { background: var(--gray-section); border-radius: 10px; overflow: hidden; }
.case-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.case-card-body { padding: 20px; }
.case-card-title { font-size: 16px; font-weight: 700; color: var(--black-hero); margin-bottom: 8px; }
.case-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.case-tag { background: var(--white); border: 0.5px solid var(--gray-border); font-size: 11px; color: var(--gray-muted); padding: 3px 10px; border-radius: 20px; }
.case-card-desc { font-size: 13px; color: var(--gray-muted); line-height: 1.6; }

.mini-case { background: var(--black-card); border-radius: 8px; padding: 24px; }
.mini-case-title { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.mini-case-params { list-style: none; }
.mini-case-params li { font-size: 13px; color: #888; padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.mini-case-params li::before { content: '—'; color: var(--red); flex-shrink: 0; }

/* ── BREADCRUMB ──────────────────────────── */
.breadcrumb { background: var(--black-deep); padding: 12px 24px; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { font-size: 12px; color: #555; text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #888; }
.breadcrumb span { font-size: 12px; color: #333; }
.breadcrumb-sep { color: #333; font-size: 12px; }

/* ── FOOTER ──────────────────────────────── */
.footer { background: var(--black-deep); padding: 48px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo img { height: 32px; margin-bottom: 12px; }
.footer-logo p { font-size: 12px; color: #444; line-height: 1.6; }
.footer-nav h4 { font-size: 11px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 13px; color: #444; text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: #888; }
.footer-bottom { border-top: 0.5px solid #1e1e1e; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: #333; }
.footer-phone a { font-size: 13px; color: #555; text-decoration: none; }
.footer-phone a:hover { color: #888; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .header-nav, .header-phone, .btn-header { display: none; }
  .burger { display: flex; }
  .hero { min-height: 85svh; background-image: url('/img/hero-bcgr.webp'); background-size: cover; background-position: center; }
  .hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.65); }
  .hero-content { z-index: 3; padding: 60px 20px; }
  .hero-video { display: none; }
  .hero-overlay { display: none; }
  .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 0.5px solid var(--black-card); }
  .stat-item:nth-child(odd) { border-right: 0.5px solid var(--black-card); }
  .stat-item:last-child { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-item { border-right: none; border-bottom: 0.5px solid var(--black-card); }
  .about-item:nth-child(odd) { border-right: 0.5px solid var(--black-card); }
  .about-item:last-child { border-bottom: none; }
  .process-steps { flex-direction: column; }
  .process-step::after { display: none; }
  .advantages-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .materials-grid { grid-template-columns: 1fr 1fr; }
  .equipment-card { grid-template-columns: 1fr; }
  .page-hero-triggers { flex-direction: column; gap: 12px; }
  .hero-triggers { flex-direction: column; gap: 16px; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .advantages-grid { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 16px; }
  .specs-table { font-size: 12px; }
  .specs-table th, .specs-table td { padding: 10px; }
}

/* ══════════════════════════════════════════════
   АНІМАЦІЇ
   ══════════════════════════════════════════════ */

/* Fade-in-up при скролі */
.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }
.animate-delay-4 { transition-delay: .4s; }

/* Hero text stagger */
@keyframes slideUp {
  from { opacity:0; transform:translateY(32px); }
  to   { opacity:1; transform:translateY(0); }
}
.hero-label  { animation: slideUp .6s ease both; }
.hero h1     { animation: slideUp .6s .12s ease both; }
.hero-sub    { animation: slideUp .6s .22s ease both; }
.hero-actions{ animation: slideUp .6s .32s ease both; }
.hero-triggers{ animation: slideUp .6s .44s ease both; }

/* Stats bar counter pulse */
@keyframes pulseRed {
  0%,100% { text-shadow: 0 0 0 transparent; }
  50%      { text-shadow: 0 0 12px rgba(200,16,46,.4); }
}
.stat-number { animation: pulseRed 3s ease-in-out infinite; }

/* Service card hover lift + red line */
.service-card {
  transition: transform .25s cubic-bezier(.34,1.56,.64,1),
              border-left-width .2s,
              box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
}

/* Portfolio card scale */
.portfolio-card { overflow: hidden; border-radius: var(--radius); }
.portfolio-card img { transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.portfolio-card:hover img { transform: scale(1.06); }

/* Advantage card glow */
.advantage-card { transition: transform .25s, box-shadow .25s; }
.advantage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200,16,46,.08);
}

/* Button ripple */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transform: scale(0);
  border-radius: inherit;
  transition: transform .4s, opacity .4s;
}
.btn:active::after { transform: scale(2.5); opacity: 0; transition: 0s; }

/* Process step appear */
.process-step { transition: background .2s; }
.process-step:hover { background: rgba(255,255,255,.02); }

/* Material card hover */
.material-card {
  transition: transform .2s, border-color .2s;
}
.material-card:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}

/* Case card hover */
.case-card img { transition: transform .4s ease; }
.case-card:hover img { transform: scale(1.04); }

/* Header logo hover */
.header-logo { transition: opacity .2s; }
.header-logo:hover { opacity: .85; }

/* ── FAQ Block ─────────────────────────────────── */
.faq-section { background: var(--gray-section); }
.faq-list { list-style: none; max-width: 820px; }
.faq-item {
  border-bottom: 0.5px solid var(--gray-border);
}
.faq-question {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  color: var(--black-hero); gap: 16px;
}
.faq-question:hover { color: var(--red); }
.faq-chevron {
  flex-shrink: 0; width: 20px; height: 20px;
  border: 1.5px solid var(--gray-border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--gray-muted);
  transition: transform .3s, background .2s, border-color .2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--red); border-color: var(--red); color: #fff;
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s;
  font-size: 14px; color: var(--gray-body); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 16px; }

/* ── Map ───────────────────────────────────────── */
.map-section { background: var(--white); }
.map-wrap { border-radius: 10px; overflow: hidden; border: 0.5px solid var(--gray-border); }
.map-wrap iframe { display: block; width: 100%; height: 400px; border: none; }

/* ── FIXES ───────────────────────────────────────── */

/* Логотип — прибрати білу смугу (inline baseline gap) */
.header-logo img,
.footer-logo img {
  display: block;
  vertical-align: bottom;
}

/* hero-sub — кращий контраст */
.hero-sub {
  color: #C0C0C0 !important;
  font-size: 17px !important;
}
.page-hero-sub {
  color: #BBBBBB !important;
  font-size: 16px !important;
}

/* Прибрати inline style що додавали раніше */

/* ── TITLE UNDERLINE ANIMATION ───────────────────── */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  transition: width .6s cubic-bezier(.22,.61,.36,1);
}
.section-title.title-underline-active::after {
  width: 48px;
}

/* ── PROCESS STEPS ENHANCED ──────────────────────── */
.process-step {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .45s ease, transform .45s ease;
}
.process-step.animate { opacity: 0; transform: translateX(-16px); }
.process-step.visible  { opacity: 1; transform: translateX(0); }

/* ── HERO VIDEO PARALLAX ─────────────────────────── */
.hero-video {
  will-change: transform;
  transform-origin: center center;
}

/* ── STAT NUMBERS GLOW ON HOVER ──────────────────── */
.stat-item:hover .stat-number {
  color: var(--red);
  transition: color .3s;
}

/* ── CTA BUTTON PULSE ────────────────────────────── */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,.4); }
  50%       { box-shadow: 0 0 0 10px rgba(200,16,46,0); }
}
.btn-primary {
  animation: ctaPulse 2.8s ease-in-out infinite;
}
.btn-primary:hover { animation: none; }

/* ── ADVANTAGE ICON BOUNCE ───────────────────────── */
@keyframes iconBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.advantage-card:hover .advantage-icon {
  animation: iconBounce .5s ease;
}

/* ── SERVICE CARD RED LINE GROW ──────────────────── */
.service-card {
  border-left-width: 3px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1),
              box-shadow .25s,
              border-left-width .2s;
}
.service-card:hover { border-left-width: 5px; }

/* ── STATS BAR PULSE ─────────────────────────────── */
@keyframes pulseRed {
  0%,100% { opacity: 1; }
  50%      { opacity: .75; }
}
.stat-number .accent { animation: pulseRed 2.5s ease-in-out infinite; }

/* ── FLOATING TELEGRAM BUTTON ────────────────────── */
.tg-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 56px; height: 56px;
  background: #229ED9; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(34,158,217,.45);
  text-decoration: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  animation: floatIn .6s .8s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes floatIn {
  from { opacity:0; transform: scale(.4) translateY(40px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}
.tg-float:hover { transform: scale(1.13); box-shadow: 0 8px 28px rgba(34,158,217,.6); }
.tg-float svg  { width: 28px; height: 28px; fill: #fff; }
.tg-float::before {
  content: '';
  position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(34,158,217,.35);
  animation: tgRing 2.4s ease-out infinite;
}
@keyframes tgRing {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── SCROLLBAR GUTTER FIX ────────────────────────── */
html {
  scrollbar-gutter: stable;
}

/* ── PROCESS STEPS HOVER NUMBER ─────────────────── */
.process-step:hover .step-number {
  background: var(--red);
  color: var(--white);
  transform: scale(1.1);
  transition: background .25s, color .25s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.step-number {
  transition: background .25s, color .25s, transform .25s;
}

/* ── MENU UPPERCASE + BRIGHTER COLOR ────────────── */
.header-nav a {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #BBBBBB !important;
  font-size: 11px;
}
.header-nav a:hover,
.header-nav a.active {
  color: #FFFFFF !important;
}

/* ── PROCESS STEPS — HOVER SWITCHES ACTIVE ──────── */
.process-steps:hover .step-number.active {
  background: var(--black-card);
  color: var(--gray-muted);
}
.process-step:hover .step-number {
  background: var(--red) !important;
  color: var(--white) !important;
  transform: scale(1.1);
}

/* ── SAFARI IOS STICKY HEADER FIX ───────────────── */
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  top: env(safe-area-inset-top, 0px);
}

/* ── ABOUT GRID MOBILE FIX ──────────────────────── */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    overflow: hidden;
  }
  .about-item {
    padding: 24px 12px;
    border-right: none !important;
    border-bottom: 0.5px solid var(--black-card) !important;
  }
  .about-item:nth-child(odd) {
    border-right: 0.5px solid var(--black-card) !important;
  }
  .about-item:nth-child(3),
  .about-item:nth-child(4) {
    border-bottom: none !important;
  }
  .about-number {
    font-size: 32px !important;
  }
  .about-label {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .about-number {
    font-size: 26px !important;
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
