/* =========================================================
   آروتک کابل | Arotek Cable
   تم روشن مدرن: سفید · قرمز · مشکی · طلایی
   طراحی کاملاً متمایز از تک‌تین
   ========================================================= */
:root {
  --white: #ffffff;
  --snow: #f7f7f8;
  --cloud: #f0f1f3;
  --line: #e6e7eb;
  --ink: #111111;
  --ink-2: #2a2a2e;
  --muted: #6b6f76;
  --red: #e10600;
  --red-dark: #b80500;
  --red-soft: #ffe8e6;
  --gold: #c9a227;
  --gold-soft: #f4e7bc;
  --black: #0a0a0a;
  --shadow: 0 10px 40px rgba(17,17,17,.06);
  --shadow-lg: 0 24px 70px rgba(17,17,17,.10);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --font: 'Vazirmatn', Tahoma, sans-serif;
  --transition: .28s cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--snow);
  min-height: 100vh;
  line-height: 1.85;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: .2s ease; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* Background mesh - light modern */
.bg-mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mesh-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45;
  animation: floaty 12s ease-in-out infinite;
}
.mesh-blob.b1 {
  width: 420px; height: 420px; top: -80px; left: -60px;
  background: radial-gradient(circle, rgba(225,6,0,.18), transparent 70%);
}
.mesh-blob.b2 {
  width: 480px; height: 480px; bottom: 5%; right: -80px;
  background: radial-gradient(circle, rgba(201,162,39,.20), transparent 70%);
  animation-delay: -5s;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(17,17,17,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
}
@keyframes floaty {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.04); }
}

/* Header - floating white bar */
.site-header {
  position: sticky; top: 0; z-index: 1000; padding: .85rem 0;
}
.header-shell {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255,255,255,.9); backdrop-filter: blur(18px);
  border: 1px solid rgba(17,17,17,.06); border-radius: 999px;
  padding: .55rem .7rem .55rem 1rem; box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled .header-shell {
  box-shadow: var(--shadow-lg);
  border-color: rgba(225,6,0,.12);
}
.logo { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.logo-mark {
  width: 48px; height: 48px; border-radius: 16px; overflow: hidden; flex-shrink: 0;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.05);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong {
  font-size: 1.2rem; letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--ink), var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-text small { color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.main-nav { display: flex; align-items: center; gap: .1rem; }
.main-nav a {
  padding: .55rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-2);
}
.main-nav a:hover { background: var(--cloud); }
.main-nav a.active {
  background: var(--ink); color: #fff;
  box-shadow: 0 8px 20px rgba(10,10,10,.18);
}
.header-actions { display: flex; align-items: center; gap: .55rem; }
.header-phone {
  font-size: .85rem; font-weight: 600; color: var(--muted); direction: ltr;
  padding: .4rem .6rem; border-radius: 999px;
}
.header-phone:hover { color: var(--red); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--ink); cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: #fff;
  transition: var(--transition); border-radius: 2px;
}
.nav-toggle span:nth-child(1){ top: 15px; }
.nav-toggle span:nth-child(2){ top: 21px; }
.nav-toggle span:nth-child(3){ top: 27px; }
.nav-toggle.open span:nth-child(1){ top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: .92rem; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .84rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-red {
  background: linear-gradient(135deg, var(--red), #ff2a22);
  color: #fff; box-shadow: 0 12px 28px rgba(225,6,0,.28);
}
.btn-red:hover { box-shadow: 0 16px 34px rgba(225,6,0,.36); }
.btn-dark {
  background: var(--ink); color: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.btn-gold {
  background: linear-gradient(135deg, #d4af37, #f0d78c);
  color: #1a1400; box-shadow: 0 12px 28px rgba(201,162,39,.28);
}
.btn-outline {
  background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline-dark {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(17,17,17,.2);
}
.btn-outline-light {
  background: rgba(255,255,255,.08); color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35);
}

.site-main { position: relative; z-index: 1; min-height: 55vh; padding-top: .5rem; }

/* Hero - split modern light + background slider */
.hero { padding: 1.5rem 0 2.5rem; position: relative; }
.hero-with-slider {
  padding: 2rem 0 3rem;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 3s ease;
}
.hero-bg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-bg-fallback {
  background:
    radial-gradient(circle at 70% 30%, rgba(225,6,0,.28), transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(201,162,39,.22), transparent 45%),
    linear-gradient(145deg, #111 0%, #1c1c1f 55%, #2a1010 100%);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.72) 42%, rgba(17,17,17,.35) 100%),
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(0,0,0,.18));
  z-index: 1;
}
.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--container));
}
.hero-panel {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.25rem;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 32px;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-slider-dots {
  display: flex;
  gap: .45rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(17,17,17,.2);
  transition: .25s ease;
}
.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.hero-copy { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
  padding: .4rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--red-soft); color: var(--red-dark); margin-bottom: 1rem;
  border: 1px solid rgba(225,6,0,.12);
}
.hero-badge i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(225,6,0,.5); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225,6,0,.5); }
  70% { box-shadow: 0 0 0 10px rgba(225,6,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,6,0,0); }
}
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.25; margin-bottom: 1rem;
  letter-spacing: -.03em; color: var(--ink);
}
.hero h1 em {
  font-style: normal; color: var(--red);
  position: relative;
}
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .08em; height: .18em;
  background: linear-gradient(90deg, var(--gold), transparent); opacity: .7; z-index: -1;
}
.hero-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem;
}
.stat-card {
  background: var(--snow); border: 1px solid var(--line); border-radius: 16px;
  padding: .85rem .6rem; text-align: center;
}
.stat-card strong { display: block; font-size: 1.3rem; color: var(--ink); }
.stat-card span { font-size: .75rem; color: var(--muted); }

.hero-visual {
  position: relative; min-height: 420px;
  background: #111;
  overflow: hidden;
}
.hero-side-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 3s ease;
}
.hero-side-slide.is-active { opacity: 1; transform: scale(1); }
.hero-visual::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.55) 100%);
}
.hero-chip {
  position: absolute; bottom: 1.25rem; left: 1.25rem; right: 1.25rem; z-index: 3;
  background: rgba(10,10,10,.55); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px); border-radius: 18px; padding: 1rem 1.1rem; color: #fff;
}
.hero-chip strong { color: var(--gold); display: block; margin-bottom: .25rem; }
.hero-chip p { font-size: .9rem; opacity: .88; }
.hero-side-dots { display:flex; gap:.4rem; margin-top:.75rem; }
.hero-side-dot {
  width: 8px; height: 8px; border:0; border-radius:999px; padding:0; cursor:pointer;
  background: rgba(255,255,255,.35); transition:.25s ease;
}
.hero-side-dot.is-active { width: 22px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.hero-admin-hint {
  margin-top: .65rem; font-size: .75rem; opacity: .75;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: .5rem;
}

/* کابل افشان مسی واقعی */
.hero-copper-scene {
  background: linear-gradient(155deg, #0a0a0a 0%, #1a1210 45%, #111 100%) !important;
}
.hero-copper-scene .copper-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(225,6,0,.2), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(184,115,51,.22), transparent 40%);
}
.copper-cables { position: absolute; inset: 0; z-index: 1; }
.flex-cable {
  position: absolute; height: 28px; border-radius: 999px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -3px 6px rgba(0,0,0,.35), 0 8px 18px rgba(0,0,0,.25);
  overflow: hidden; animation: cableDrift 7s ease-in-out infinite;
}
.flex-cable::before {
  content:''; position:absolute; inset:0;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.08) 10px 12px);
  opacity:.55;
}
.flex-cable .core {
  position:absolute; right:-8%; top:50%; transform:translateY(-50%);
  width:34%; height:14px; border-radius:999px;
  background: repeating-linear-gradient(90deg, #b87333 0 3px, #d7924c 3px 5px, #8a4f1d 5px 7px, #e0a35d 7px 9px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 10px rgba(184,115,51,.45);
  animation: coreShine 2.8s linear infinite;
}
.flex-cable.red { top:22%; right:-8%; width:88%; transform:rotate(-14deg); background:linear-gradient(180deg,#ff5a4e,#c62828 45%,#8e1b1b); }
.flex-cable.black { top:42%; left:-10%; width:92%; transform:rotate(9deg); background:linear-gradient(180deg,#3a3a3a,#151515 50%,#000); animation-delay:.4s; }
.flex-cable.blue { top:60%; right:-6%; width:84%; transform:rotate(-7deg); background:linear-gradient(180deg,#5b8def,#1e4fd6 48%,#123a9a); animation-delay:.8s; }
.flex-cable.yellow { top:76%; left:-8%; width:80%; transform:rotate(12deg); background:linear-gradient(180deg,#ffe36b,#d4af37 48%,#9a7b12); animation-delay:1.1s; }
.copper-cutaway {
  position:absolute; left:18px; top:18px; width:92px; height:92px; border-radius:50%; z-index:2;
  background: radial-gradient(circle at 35% 30%, #2a2a2a, #111 70%);
  border:3px solid rgba(201,162,39,.55); box-shadow:0 10px 30px rgba(0,0,0,.35);
  display:grid; place-items:center;
}
.cut-ring { position:absolute; inset:10px; border-radius:50%; border:8px solid #1f1f1f; box-shadow:inset 0 0 0 2px #333; }
.cut-strands { position:relative; width:42px; height:42px; }
.cut-strands i {
  position:absolute; width:10px; height:10px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #f0c27a, #b87333 55%, #7a4214);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  animation: strandPulse 2.4s ease-in-out infinite;
}
.cut-strands i:nth-child(1){ top:16px; left:16px; }
.cut-strands i:nth-child(2){ top:6px; left:16px; animation-delay:.1s; }
.cut-strands i:nth-child(3){ top:26px; left:16px; animation-delay:.2s; }
.cut-strands i:nth-child(4){ top:16px; left:6px; animation-delay:.15s; }
.cut-strands i:nth-child(5){ top:16px; left:26px; animation-delay:.25s; }
.cut-strands i:nth-child(6){ top:8px; left:8px; animation-delay:.3s; }
.cut-strands i:nth-child(7){ top:24px; left:24px; animation-delay:.35s; }
.cut-label {
  position:absolute; bottom:-22px; left:50%; transform:translateX(-50%);
  white-space:nowrap; font-size:.72rem; font-weight:700; color:#f0e6c8;
  background:rgba(0,0,0,.35); padding:.15rem .45rem; border-radius:999px;
}
.current-flow {
  position:absolute; z-index:3; width:14px; height:14px; border-radius:50%;
  background:#fff7c2; box-shadow:0 0 12px 4px rgba(225,6,0,.55), 0 0 28px rgba(255,200,80,.45);
  animation: flowRun 3.2s linear infinite;
}
@keyframes cableDrift { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.12)} }
@keyframes coreShine { 0%{background-position:0 0} 100%{background-position:40px 0} }
@keyframes strandPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
@keyframes flowRun {
  0%{top:20%; right:8%; opacity:0}
  10%{opacity:1}
  50%{top:48%; right:45%}
  90%{opacity:1}
  100%{top:78%; right:82%; opacity:0}
}

/* Sections */
.section { padding: 3.75rem 0; position: relative; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  margin-bottom: 1.75rem; flex-wrap: wrap;
}
.section-kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--red); font-weight: 800; font-size: .8rem; letter-spacing: .04em;
  margin-bottom: .4rem; text-transform: uppercase;
}
.section-kicker::before {
  content: ''; width: 18px; height: 3px; border-radius: 99px; background: var(--gold);
}
.section-head h2, .section-title {
  font-size: clamp(1.45rem, 2.8vw, 2rem); color: var(--ink); letter-spacing: -.02em; line-height: 1.3;
}
.section-head p, .section-desc { color: var(--muted); max-width: 36rem; }
.section-soft { background: linear-gradient(180deg, transparent, rgba(255,255,255,.7), transparent); }

/* Cards */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.feature-card, .product-card, .news-card, .team-card, .agency-card,
.office-card, .cert-card, .project-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover, .product-card:hover, .news-card:hover, .team-card:hover,
.agency-card:hover, .office-card:hover, .cert-card:hover, .project-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(225,6,0,.18);
}
.feature-card { padding: 1.4rem; position: relative; }
.feature-card::after {
  content: ''; position: absolute; top: 0; right: 0; width: 64px; height: 64px;
  background: radial-gradient(circle at top right, rgba(225,6,0,.12), transparent 70%);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red-soft), #fff); color: var(--red);
  font-size: 1.3rem; margin-bottom: 1rem; border: 1px solid rgba(225,6,0,.12);
}
.feature-card h3 { margin-bottom: .45rem; color: var(--ink); font-size: 1.05rem; }
.feature-card p { color: var(--muted); font-size: .93rem; }
.feature-card .link-more {
  display: inline-flex; margin-top: 1rem; color: var(--red); font-weight: 700; font-size: .9rem;
}

/* Product */
.product-card .thumb {
  aspect-ratio: 4/3; background: linear-gradient(145deg, #111, #2a2a2e);
  position: relative; overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .cat-badge {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(255,255,255,.92); color: var(--ink); font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px; font-size: .74rem;
  border: 1px solid rgba(0,0,0,.05);
}
.product-card .body { padding: 1.15rem 1.2rem 1.3rem; }
.product-card h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: .4rem; }
.product-card .usage { color: var(--muted); font-size: .88rem; min-height: 2.8em; margin-bottom: .85rem; }
.product-card .meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.price-tag {
  font-weight: 800; color: var(--ink); font-size: .98rem;
  background: linear-gradient(90deg, var(--gold-soft), #fff);
  padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(201,162,39,.25);
}

/* News — عکس بالا، تیتر و خلاصه همیشه زیر عکس */
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.news-card > a.thumb,
.news-card > .thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  background: #111;
  overflow: hidden;
  flex-shrink: 0;
}
.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body {
  display: block !important;
  position: relative;
  z-index: 2;
  padding: 1.15rem 1.2rem 1.3rem;
  background: #fff;
  color: var(--ink);
  flex: 1 1 auto;
}
.news-meta {
  display: flex;
  gap: .7rem;
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: .55rem;
  flex-wrap: wrap;
}
.news-card h3 {
  display: block !important;
  font-size: 1.05rem;
  margin: 0 0 .5rem;
  color: var(--ink) !important;
  line-height: 1.55;
  font-weight: 800;
}
.news-card h3 a {
  color: inherit !important;
  text-decoration: none;
}
.news-card h3 a:hover { color: var(--red) !important; }
.news-card .body > p,
.news-card .news-summary {
  display: block !important;
  color: var(--muted) !important;
  font-size: .92rem;
  line-height: 1.75;
  margin: 0;
  opacity: 1 !important;
  visibility: visible !important;
}
.news-card .news-more {
  display: inline-flex !important;
  margin-top: .85rem;
  color: var(--red);
  font-weight: 700;
}

/* Page hero */
.page-hero {
  padding: 1.5rem 0 1.25rem;
}
.page-hero-inner {
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.page-hero-inner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--ink));
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); margin-bottom: .4rem; letter-spacing: -.02em; }
.page-hero p { color: var(--muted); max-width: 42rem; }
.breadcrumb { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-bottom: .7rem; }
.breadcrumb a { color: var(--red); font-weight: 600; }
.breadcrumb span { opacity: .45; }

/* Toolbar */
.toolbar {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 1.5rem; background: #fff; border: 1px solid var(--line);
  padding: .9rem; border-radius: 20px; box-shadow: var(--shadow);
}
.search-box {
  flex: 1; min-width: 220px; display: flex; gap: .5rem; align-items: center;
  background: var(--snow); border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .3rem .3rem 1rem;
}
.search-box input {
  flex: 1; border: 0; background: transparent; outline: none; padding: .55rem 0; font-size: .95rem;
}
.cat-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.cat-pill {
  padding: .45rem .9rem; border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* Forms */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.05rem; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 700; color: var(--ink); font-size: .9rem; }
.form-control {
  width: 100%; padding: .85rem 1rem; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition); font-size: .95rem;
}
.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(225,6,0,.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.alert {
  padding: 1rem 1.1rem; border-radius: 14px; margin-bottom: 1rem; font-size: .94rem;
}
.alert-success { background: #eaf8ef; color: #0d5c2e; border: 1px solid #bfe8cd; }
.alert-error { background: var(--red-soft); color: #8a100c; border: 1px solid #ffc7c3; }
.alert-info { background: #fff8e8; color: #7a5b00; border: 1px solid #f0df9d; }
.alert-warning { background: #fff4e5; color: #8a5200; border: 1px solid #ffd9a8; }

/* Auth */
.auth-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem; align-items: start; }
.auth-result { display: none; margin-top: 1rem; }
.auth-result.show { display: block; animation: fadeUp .35s ease; }
.auth-icon {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: .75rem;
}
.auth-icon.ok { background: #eaf8ef; }
.auth-icon.bad { background: var(--red-soft); }
.lottery-box {
  background: linear-gradient(160deg, #111 0%, #1c1c1f 100%);
  color: #fff; border-radius: var(--radius); padding: 1.75rem; position: relative; overflow: hidden;
  border: 1px solid rgba(201,162,39,.25);
}
.lottery-box::before {
  content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,6,0,.35), transparent 70%);
  top: -50px; left: -40px;
}
.lottery-box h3 { color: var(--gold); margin-bottom: .75rem; position: relative; }
.lottery-box p { position: relative; opacity: .92; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: center; }
.about-content h2 { margin-bottom: 1rem; color: var(--ink); letter-spacing: -.02em; }
.about-content p { color: var(--muted); margin-bottom: 1rem; white-space: pre-line; }
.about-visual {
  border-radius: 28px; min-height: 340px; overflow: hidden; position: relative;
  background: linear-gradient(145deg, #111, #2a2a2e 60%, #141414);
  border: 1px solid rgba(201,162,39,.2); box-shadow: var(--shadow-lg);
}
.about-visual .ring {
  position: absolute; inset: 14%; border-radius: 50%;
  border: 2px dashed rgba(201,162,39,.4); animation: spin 28s linear infinite;
}
.about-visual .core {
  position: absolute; inset: 32%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.5), rgba(225,6,0,.35), transparent 70%);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.team-grid, .agency-grid, .office-grid, .cert-grid, .project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.team-card { text-align: center; padding: 1.5rem 1.15rem; }
.team-photo {
  width: 108px; height: 108px; border-radius: 28px; margin: 0 auto 1rem;
  background: linear-gradient(145deg, var(--ink), var(--red));
  display: grid; place-items: center; color: #fff; font-size: 2rem; font-weight: 800;
  overflow: hidden; border: 3px solid var(--gold-soft);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { color: var(--ink); font-size: 1.02rem; }
.team-card .pos { color: var(--red); font-weight: 700; font-size: .9rem; margin: .25rem 0 .5rem; }
.team-card .bio { color: var(--muted); font-size: .88rem; margin-bottom: .75rem; }
.team-card .mobile-link {
  display: inline-flex; padding: .4rem .9rem; border-radius: 999px;
  background: var(--snow); color: var(--ink); font-weight: 700; font-size: .86rem; border: 1px solid var(--line);
}

.agency-card, .office-card, .project-card, .cert-card { padding: 1.2rem; }
.agency-card h3, .office-card h3, .project-card h3, .cert-card h3 { color: var(--ink); margin-bottom: .4rem; }
.meta-line { color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700;
  background: var(--red-soft); color: var(--red-dark);
}

/* Article */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; align-items: start; }
.article-body {
  background: #fff; border-radius: var(--radius); padding: 1.75rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.article-body .cover {
  border-radius: 18px; overflow: hidden; margin-bottom: 1.25rem;
  aspect-ratio: 16/9; background: #111;
}
.article-body .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body .content { color: var(--ink-2); font-size: 1.02rem; }
.article-body .content p { margin-bottom: 1rem; }
.side-card {
  background: #fff; border-radius: var(--radius); padding: 1.2rem;
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 1rem;
}
.side-card h3 { font-size: 1rem; margin-bottom: .85rem; color: var(--ink); }
.side-list a {
  display: block; padding: .65rem 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: .92rem;
}
.side-list a:hover { color: var(--red); }
.video-wrap {
  position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden;
  background: #000; margin: 1rem 0;
}
.video-wrap iframe, .video-wrap video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* Portal */
.portal-box {
  max-width: 640px; margin: 1.5rem auto; text-align: center;
  background: #fff; border-radius: 28px; padding: 2.5rem 1.75rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.portal-box .icon-portal {
  width: 84px; height: 84px; margin: 0 auto 1.25rem; border-radius: 24px;
  display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(135deg, var(--ink), #333); color: var(--gold);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.countdown { font-size: 2.2rem; font-weight: 800; color: var(--red); margin: 1rem 0; }

.empty-state {
  text-align: center; padding: 3rem 1rem; color: var(--muted);
  background: #fff; border-radius: var(--radius); border: 1px dashed var(--line);
}
.pagination { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  font-weight: 700; font-size: .9rem;
}
.pagination a:hover, .pagination .active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* CTA */
.cta-band {
  border-radius: 28px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #111 0%, #1a1a1d 55%, #2a1010 100%);
  color: #fff; padding: 2.4rem; border: 1px solid rgba(201,162,39,.2);
}
.cta-band::after {
  content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  right: -70px; top: -90px;
  background: radial-gradient(circle, rgba(225,6,0,.35), transparent 70%);
}
.cta-inner {
  position: relative; z-index: 1; display: flex; justify-content: space-between;
  align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin-bottom: .4rem; }
.cta-band p { opacity: .9; max-width: 34rem; }

/* Footer - light elegant */
.site-footer {
  position: relative; z-index: 1; margin-top: 3rem;
  background: #fff; border-top: 1px solid var(--line);
  padding: 3rem 0 1.4rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 2rem;
}
.footer-brand p { color: var(--muted); margin-top: .75rem; font-size: .92rem; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.footer-links h4, .footer-contact h4 {
  color: var(--ink); margin-bottom: .9rem; font-size: .95rem;
  position: relative; padding-bottom: .5rem;
}
.footer-links h4::after, .footer-contact h4::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 28px; height: 3px;
  border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--gold));
}
.footer-links a {
  display: block; color: var(--muted); padding: .28rem 0; font-size: .9rem;
}
.footer-links a:hover { color: var(--red); }
.footer-contact p { margin-bottom: .4rem; font-size: .9rem; color: var(--muted); }
.footer-contact a:hover { color: var(--red); }
.footer-bottom {
  margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .84rem; color: var(--muted);
}
.footer-domain { color: var(--ink); font-weight: 700; letter-spacing: .03em; }

.back-to-top {
  position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 1.1rem; font-weight: 700;
  box-shadow: 0 10px 28px rgba(0,0,0,.2); opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--red); }

.reveal { opacity: 0; transform: translateY(22px); transition: .65s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Marquee categories strip */
.marquee-wrap {
  overflow: hidden; border-block: 1px solid var(--line); background: #fff;
  margin: 0 0 1rem; padding: .85rem 0;
}
.marquee-track {
  display: flex; gap: 2rem; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-weight: 800; color: var(--ink); letter-spacing: .02em; white-space: nowrap;
}
.marquee-track span i { color: var(--red); font-style: normal; margin: 0 .6rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-panel, .about-grid, .auth-wrap, .article-layout, .footer-top { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .team-grid, .agency-grid, .office-grid, .cert-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 280px; }
  .header-phone { display: none; }
  .hero-bg-overlay {
    background:
      linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.78) 55%, rgba(17,17,17,.4) 100%);
  }
  .hero-with-slider { min-height: auto; }
}
@media (max-width: 768px) {
  .site-header { padding: .65rem 0; }
  .header-shell { border-radius: 22px; padding: .45rem .5rem .45rem .75rem; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: calc(100% + 8px); right: 1rem; left: 1rem;
    background: rgba(255,255,255,.98); border: 1px solid var(--line);
    border-radius: 20px; box-shadow: var(--shadow-lg); padding: .7rem;
    display: none; flex-direction: column; gap: .2rem; z-index: 1001;
  }
  .site-header { position: sticky; }
  .header-shell { position: relative; }
  .main-nav.open { display: flex; animation: fadeUp .25s ease; }
  .main-nav a { padding: .85rem 1rem; border-radius: 14px; }
  .main-nav a.active { background: var(--red); }
  .cards-grid, .team-grid, .agency-grid, .office-grid, .cert-grid, .project-grid, .footer-cols {
    grid-template-columns: 1fr;
  }
  .section { padding: 2.75rem 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .logo-text small { max-width: 120px; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-card strong { font-size: 1.1rem; }
  .form-card { padding: 1.2rem; }
}
