/* ═══════════════════════════════════════
   CIG — Медија Агенција | style.css
   Споделен CSS за сите страни
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── VARIABLES ── */
:root {
  --blue:      #1557D0;
  --blue-dark: #0E3FA8;
  --blue-light:#EBF1FF;
  --gold:      #E8A020;
  --white:     #FFFFFF;
  --off:       #F7F9FC;
  --text:      #1A2236;
  --muted:     #5A6880;
  --border:    #DDE3F0;
  --radius:    14px;
  --shadow:    0 4px 24px rgba(21,87,208,.10);
  --shadow-lg: 0 12px 48px rgba(21,87,208,.16);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:'Outfit',sans-serif; color:var(--text); background:#fff; overflow-x:hidden; }
a { text-decoration:none; color:inherit; }
button { border:none; cursor:pointer; font-family:'Outfit',sans-serif; }

/* ── NAVBAR ── */
nav {
  position:fixed; top:0; left:0; right:0; z-index:200;
  height:68px; display:flex; align-items:center; justify-content:space-between;
  padding:0 6%; background:rgba(255,255,255,.96);
  backdrop-filter:blur(16px); border-bottom:1px solid var(--border);
  transition:box-shadow .3s;
}
nav.scrolled { box-shadow:0 2px 20px rgba(21,87,208,.08); }
.logo {
  font-family:'Fraunces',serif; font-weight:900; font-size:1.55rem;
  color:var(--blue); text-decoration:none;
}
.nav-links { display:flex; gap:2rem; list-style:none; align-items:center; }
.nav-links a {
  font-size:.875rem; font-weight:500; color:var(--muted);
  transition:color .2s; position:relative; padding-bottom:3px;
}
.nav-links a::after {
  content:''; position:absolute; bottom:0; left:0;
  width:0; height:2px; background:var(--blue); transition:width .25s;
}
.nav-links a:hover, .nav-links a.active { color:var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.nav-cta {
  padding:10px 24px; background:var(--blue); color:#fff !important;
  border-radius:8px; font-weight:600; font-size:.85rem;
  box-shadow:0 2px 12px rgba(21,87,208,.3);
  transition:background .2s, transform .2s, box-shadow .2s;
}
.nav-cta:hover {
  background:var(--blue-dark) !important; transform:translateY(-1px);
  box-shadow:0 4px 20px rgba(21,87,208,.35);
}
.nav-cta::after { display:none !important; }

/* ── HAMBURGER (mobile) ── */
.nav-toggle {
  display:none; flex-direction:column; gap:5px; cursor:pointer;
  background:none; padding:4px;
}
.nav-toggle span {
  display:block; width:24px; height:2px;
  background:var(--text); border-radius:2px; transition:all .3s;
}
.nav-links.open {
  display:flex; flex-direction:column;
  position:fixed; top:68px; left:0; right:0;
  background:#fff; border-bottom:1px solid var(--border);
  padding:1.5rem 6%; gap:1.2rem; z-index:199;
}

/* ── BUTTONS ── */
.btn-blue {
  display:inline-block; padding:13px 30px; background:var(--blue);
  color:#fff; border-radius:8px; font-weight:600; font-size:.92rem;
  transition:all .22s; box-shadow:0 2px 16px rgba(21,87,208,.28); cursor:pointer;
}
.btn-blue:hover { background:var(--blue-dark); transform:translateY(-2px); box-shadow:0 6px 24px rgba(21,87,208,.35); }
.btn-white {
  display:inline-block; padding:12px 28px; background:#fff;
  color:var(--blue); border-radius:8px; font-weight:600; font-size:.92rem;
  transition:all .22s; cursor:pointer;
}
.btn-white:hover { background:var(--blue-light); transform:translateY(-2px); }
.btn-outline {
  display:inline-block; padding:12px 28px; background:transparent;
  color:var(--blue); border-radius:8px; font-weight:600; font-size:.92rem;
  border:2px solid var(--blue); cursor:pointer; transition:all .22s;
}
.btn-outline:hover { background:var(--blue); color:#fff; transform:translateY(-2px); }

/* ── SHARED ELEMENTS ── */
.section-tag {
  font-size:.72rem; font-weight:700; letter-spacing:.2em;
  text-transform:uppercase; color:var(--blue); display:block; margin-bottom:.6rem;
}
.section-title {
  font-family:'Fraunces',serif; font-size:clamp(1.8rem,3.5vw,2.8rem);
  font-weight:700; line-height:1.18; color:var(--text);
}
.section-title em { font-style:italic; color:var(--blue); }
.section-sub { color:var(--muted); font-size:1rem; line-height:1.75; margin-top:1rem; max-width:560px; }
.underline { display:block; width:44px; height:3px; background:var(--blue); border-radius:2px; margin-top:.9rem; }

/* HEX PATTERN BG */
.hex-bg { position:relative; }
.hex-bg::before {
  content:''; position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg width='60' height='70' viewBox='0 0 60 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 2 L58 17 L58 53 L30 68 L2 53 L2 17 Z' stroke='%231557D0' stroke-width='0.5' fill='none' opacity='0.1'/%3E%3C/svg%3E");
  background-size:60px 70px; pointer-events:none;
}

/* ── PAGE HERO (за внатрешните страни) ── */
.page-hero {
  padding:140px 6% 80px; background:var(--off);
  text-align:center; position:relative;
}
.page-hero h1 {
  font-family:'Fraunces',serif;
  font-size:clamp(2rem,4.5vw,3.5rem); font-weight:900; line-height:1.15;
}
.page-hero p { color:var(--muted); font-size:1rem; line-height:1.75; max-width:580px; margin:1rem auto 0; }

/* ── CTA SECTION ── */
.cta {
  position:relative; padding:100px 6%; text-align:center; overflow:hidden;
  background:
    linear-gradient(to bottom, rgba(8,18,42,.7), rgba(8,18,42,.75)),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1400&q=80') center/cover no-repeat;
}
.cta h2 { font-family:'Fraunces',serif; font-size:clamp(2rem,4vw,3.2rem); font-weight:900; color:#fff; margin-bottom:1rem; }
.cta p { color:rgba(255,255,255,.75); max-width:520px; margin:0 auto 2.5rem; font-size:1rem; line-height:1.75; }
.cta-btns { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ── FOOTER ── */
footer { background:var(--text); padding:70px 6% 30px; color:rgba(255,255,255,.7); }
.ft-top {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem;
  margin-bottom:3rem; padding-bottom:3rem; border-bottom:1px solid rgba(255,255,255,.1);
}
.ft-brand .logo { color:#fff; display:block; margin-bottom:1rem; font-size:1.3rem; }
.ft-brand p { font-size:.87rem; line-height:1.7; max-width:260px; }
.ft-social { display:flex; gap:.5rem; margin-top:1.2rem; }
.ft-social button {
  width:36px; height:36px; border-radius:8px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.6); font-size:.85rem; transition:all .2s; cursor:pointer;
}
.ft-social button:hover { background:var(--blue); border-color:var(--blue); color:#fff; }
.ft-col h4 { font-size:.78rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase; color:#fff; margin-bottom:1rem; }
.ft-col ul { list-style:none; display:flex; flex-direction:column; gap:.55rem; }
.ft-col ul li a { font-size:.87rem; color:rgba(255,255,255,.6); transition:color .2s; }
.ft-col ul li a:hover { color:#fff; }
.ft-bottom {
  display:flex; justify-content:space-between; align-items:center;
  font-size:.8rem; color:rgba(255,255,255,.35); flex-wrap:wrap; gap:.5rem;
}

/* ══════════════════════════════════
   HOME — index.html
══════════════════════════════════ */
.hero {
  min-height:100vh; position:relative;
  display:flex; align-items:center; justify-content:center;
  text-align:center; padding:120px 6% 100px; overflow:hidden;
}
.hero-bg {
  position:absolute; inset:0;
  background:
    linear-gradient(to bottom, rgba(8,18,42,.72) 0%, rgba(8,18,42,.58) 55%, rgba(8,18,42,.8) 100%),
    url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1400&q=80') center/cover no-repeat;
}
.hero-inner { position:relative; z-index:1; max-width:800px; }
.hero-eyebrow {
  font-size:.82rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase;
  color:rgba(255,255,255,.7); margin-bottom:1.2rem;
  animation:fadeUp .7s .1s both;
}
.hero-title {
  font-family:'Fraunces',serif;
  font-size:clamp(3rem,6.5vw,5.5rem);
  font-weight:900; line-height:1.06; color:#fff; margin-bottom:1.8rem;
  animation:fadeUp .7s .2s both;
}
.hero-title span { font-style:italic; color:#7DC4FF; }
.hero-desc {
  font-size:1.05rem; color:rgba(255,255,255,.75);
  line-height:1.8; max-width:520px; margin:0 auto 2.5rem;
  animation:fadeUp .7s .3s both;
}
.hero-btns { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; animation:fadeUp .7s .4s both; }
.stats-bar {
  position:absolute; bottom:0; left:0; right:0;
  background:rgba(255,255,255,.96); backdrop-filter:blur(10px);
  border-top:3px solid var(--blue); display:flex; justify-content:center; flex-wrap:wrap;
}
.stat { padding:22px 52px; text-align:center; border-right:1px solid var(--border); flex:1 0 120px; }
.stat:last-child { border-right:none; }
.stat-n { font-family:'Fraunces',serif; font-size:2rem; font-weight:900; color:var(--blue); line-height:1; }
.stat-l { font-size:.78rem; color:var(--muted); margin-top:4px; }
@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }

/* Services preview on home */
.home-svc { padding:110px 6% 90px; background:var(--off); }
.home-svc-head { text-align:center; margin-bottom:3.5rem; }
.home-svc-head .underline { margin:.9rem auto 0; }
.cards3 { display:grid; grid-template-columns:repeat(3,1fr); gap:1.8rem; }
.card {
  background:#fff; border-radius:var(--radius); border:1.5px solid var(--border);
  overflow:hidden; transition:transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:rgba(21,87,208,.25); }
.card-thumb {
  height:200px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; font-size:4rem;
}
.card-body { padding:1.5rem; }
.card-title { font-family:'Fraunces',serif; font-size:1.15rem; font-weight:700; color:var(--blue); margin-bottom:.6rem; }
.card-desc { font-size:.88rem; color:var(--muted); line-height:1.65; }
.card-more {
  display:inline-flex; align-items:center; gap:5px;
  font-size:.82rem; font-weight:600; color:var(--blue);
  margin-top:.9rem; opacity:0; transform:translateX(-6px); transition:all .25s;
}
.card:hover .card-more { opacity:1; transform:none; }

/* Testimonial */
.testi { background:var(--blue); padding:90px 6%; text-align:center; position:relative; overflow:hidden; }
.testi::before {
  content:'"'; position:absolute; top:-80px; left:50%; transform:translateX(-50%);
  font-family:'Fraunces',serif; font-size:28rem; font-weight:900;
  color:rgba(255,255,255,.04); line-height:1; pointer-events:none;
}
.testi-logo {
  display:inline-flex; align-items:center; gap:.5rem;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2);
  border-radius:100px; padding:7px 18px;
  font-size:.78rem; font-weight:600; color:rgba(255,255,255,.85); letter-spacing:.08em;
  margin-bottom:2.2rem;
}
.testi-logo::before { content:'⬡'; font-size:1rem; color:#fff; }
.testi-q {
  font-family:'Fraunces',serif; font-size:clamp(1.1rem,2.5vw,1.6rem);
  font-style:italic; color:#fff; line-height:1.65; max-width:800px; margin:0 auto 2.5rem;
}
.testi-who { display:flex; align-items:center; justify-content:center; gap:1rem; }
.testi-av {
  width:52px; height:52px; border-radius:50%;
  border:3px solid rgba(255,255,255,.4); background:#1A3A7A;
  display:flex; align-items:center; justify-content:center;
  font-size:1rem; font-weight:700; color:#fff;
}
.testi-nm { font-weight:700; color:#fff; font-size:.95rem; }
.testi-rl { font-size:.78rem; color:rgba(255,255,255,.65); margin-top:2px; }

/* About preview on home */
.about-home {
  padding:110px 6%;
  display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center;
}
.about-home h2 { font-family:'Fraunces',serif; font-size:clamp(1.8rem,3vw,2.5rem); font-weight:700; line-height:1.2; margin-bottom:1.2rem; }
.about-home p { font-size:.95rem; color:var(--muted); line-height:1.75; margin-bottom:.8rem; }
.about-pic { border-radius:20px; overflow:hidden; position:relative; box-shadow:var(--shadow-lg); }
.about-pic-ph {
  width:100%; height:420px;
  background:linear-gradient(135deg,#EBF1FF,#C0D4FF);
  display:flex; align-items:center; justify-content:center; font-size:6rem;
}
.about-badge {
  position:absolute; bottom:24px; left:24px;
  background:#fff; border-radius:12px; padding:14px 20px;
  box-shadow:0 4px 20px rgba(0,0,0,.15);
  display:flex; align-items:center; gap:12px;
}
.badge-n { font-family:'Fraunces',serif; font-size:1.6rem; font-weight:900; color:var(--blue); line-height:1; }
.badge-t { font-size:.74rem; color:var(--muted); }

/* ══════════════════════════════════
   SERVICES — services.html
══════════════════════════════════ */
.icon-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem;
  max-width:720px; margin:3rem auto;
}
.icon-pill {
  background:#fff; border:1.5px solid var(--border); border-radius:12px;
  padding:1.4rem 1rem; text-align:center; cursor:pointer; transition:all .25s;
}
.icon-pill:hover, .icon-pill.active {
  border-color:var(--blue); background:var(--blue-light);
  transform:translateY(-3px); box-shadow:var(--shadow);
}
.icon-pill .ic { font-size:2rem; display:block; margin-bottom:.5rem; }
.icon-pill .lb { font-size:.78rem; font-weight:600; color:var(--blue); line-height:1.3; }

.svc-rows { padding:80px 6%; }
.svc-row {
  display:grid; grid-template-columns:1fr 1fr; gap:5rem;
  align-items:center; padding:70px 0; border-bottom:1px solid var(--border);
}
.svc-row:last-child { border-bottom:none; }
.svc-row.rev { direction:rtl; }
.svc-row.rev > * { direction:ltr; }
.sn { font-size:.72rem; font-weight:700; letter-spacing:.2em; color:var(--blue); margin-bottom:.4rem; }
.svc-row h2 { font-family:'Fraunces',serif; font-size:1.9rem; font-weight:700; color:var(--blue); margin-bottom:1rem; }
.svc-row p { font-size:.93rem; color:var(--muted); line-height:1.75; margin-bottom:1.2rem; }
.svc-row ul { list-style:none; display:flex; flex-direction:column; gap:.5rem; margin-bottom:1.5rem; }
.svc-row ul li { display:flex; align-items:center; gap:.6rem; font-size:.9rem; color:var(--muted); }
.svc-row ul li::before { content:'✓'; color:var(--blue); font-weight:700; }
.svc-vis {
  border-radius:16px; height:280px;
  display:flex; align-items:center; justify-content:center;
  font-size:6rem; background:var(--blue-light);
  border:1.5px solid var(--border); transition:box-shadow .25s;
}
.svc-vis:hover { box-shadow:var(--shadow-lg); }

/* ══════════════════════════════════
   ABOUT — about.html
══════════════════════════════════ */
.about-hero {
  padding:140px 6% 80px; background:var(--off);
  display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; position:relative;
}
.vals { padding:80px 6%; }
.val-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; margin-top:3rem; }
.vc { background:#fff; border:1.5px solid var(--border); border-radius:var(--radius); padding:2rem; transition:all .25s; }
.vc:hover { border-color:var(--blue); box-shadow:var(--shadow); transform:translateY(-3px); }
.vc-n { font-family:'Fraunces',serif; font-size:3rem; font-weight:900; color:var(--blue-light); line-height:1; margin-bottom:.4rem; }
.vc h3 { font-family:'Fraunces',serif; font-size:1.2rem; color:var(--blue); margin-bottom:.6rem; }
.vc p { font-size:.88rem; color:var(--muted); line-height:1.65; }

.team-sec { padding:0 6% 80px; background:var(--off); }
.team4 { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; margin-top:3rem; }
.tc { background:#fff; border:1.5px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:all .25s; }
.tc:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:rgba(21,87,208,.25); }
.tc-ph { height:190px; display:flex; align-items:center; justify-content:center; font-size:3.5rem; }
.tc-info { padding:1.2rem; border-top:1px solid var(--border); }
.tc-info .nm { font-weight:700; font-size:.95rem; color:var(--text); }
.tc-info .rl { font-size:.78rem; font-weight:600; color:var(--blue); margin:.2rem 0 .5rem; }
.tc-info .bio { font-size:.8rem; color:var(--muted); line-height:1.55; }

/* ══════════════════════════════════
   PORTFOLIO — portfolio.html
══════════════════════════════════ */
.pf-hero { padding:140px 6% 40px; }
.pf-hero h1 { font-family:'Fraunces',serif; }
.pf-filters { display:flex; gap:.7rem; flex-wrap:wrap; margin:2rem 0 3rem; }
.pf-btn {
  padding:8px 20px; border-radius:100px; border:1.5px solid var(--border);
  background:#fff; font-size:.82rem; font-weight:600; color:var(--muted);
  cursor:pointer; transition:all .2s; font-family:'Outfit',sans-serif;
}
.pf-btn.active, .pf-btn:hover { background:var(--blue); border-color:var(--blue); color:#fff; }
.pg { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; padding:0 6% 80px; }
.pc { border-radius:var(--radius); overflow:hidden; border:1.5px solid var(--border); transition:all .28s; cursor:pointer; background:#fff; }
.pc:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:rgba(21,87,208,.25); }
.pc-th { height:210px; display:flex; align-items:center; justify-content:center; font-size:3.5rem; position:relative; }
.pc-ov {
  position:absolute; inset:0; background:rgba(21,87,208,.88);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:.9rem; opacity:0; transition:opacity .3s;
}
.pc:hover .pc-ov { opacity:1; }
.pc-inf { padding:1.2rem; }
.pc-cat { font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); margin-bottom:.3rem; }
.pc-tit { font-weight:700; font-size:1rem; color:var(--text); margin-bottom:.2rem; }
.pc-cl { font-size:.8rem; color:var(--muted); }

/* ══════════════════════════════════
   CONTACT — contact.html
══════════════════════════════════ */
.cl { padding:140px 6% 80px; display:grid; grid-template-columns:1fr 1.3fr; gap:5rem; align-items:start; }
.cl-left h1 { font-family:'Fraunces',serif; font-size:clamp(1.8rem,3vw,2.6rem); font-weight:900; line-height:1.2; }
.cl-left p { color:var(--muted); font-size:.95rem; line-height:1.75; margin:1rem 0 2rem; }
.ci-blocks { display:flex; flex-direction:column; gap:.9rem; }
.ci { display:flex; gap:1rem; align-items:flex-start; padding:1.1rem 1.3rem; background:var(--off); border:1.5px solid var(--border); border-radius:10px; transition:all .22s; }
.ci:hover { border-color:var(--blue); background:var(--blue-light); }
.ci-ic { width:38px; height:38px; border-radius:9px; background:var(--blue); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.95rem; flex-shrink:0; }
.ci-h { font-size:.82rem; font-weight:700; color:var(--text); margin-bottom:.15rem; }
.ci-p { font-size:.85rem; color:var(--muted); }
.cf { background:#fff; border:1.5px solid var(--border); border-radius:20px; padding:2.5rem; box-shadow:var(--shadow); }
.cf h3 { font-family:'Fraunces',serif; font-size:1.5rem; font-weight:700; margin-bottom:.3rem; }
.cf > .sub { font-size:.85rem; color:var(--muted); margin-bottom:1.8rem; }
.fg2 { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1rem; }
.fg { display:flex; flex-direction:column; gap:.35rem; }
.fg.full { grid-column:1/-1; }
.fg label { font-size:.78rem; font-weight:700; color:var(--muted); letter-spacing:.05em; }
.fg input, .fg textarea, .fg select {
  background:var(--off); border:1.5px solid var(--border); border-radius:9px;
  padding:11px 14px; font-family:'Outfit',sans-serif; font-size:.9rem;
  color:var(--text); outline:none; transition:all .2s; width:100%;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color:var(--blue); background:#fff; box-shadow:0 0 0 3px rgba(21,87,208,.08);
}
.fg textarea { height:115px; resize:vertical; }
option { background:#fff; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width:900px) {
  .nav-links { display:none; }
  .nav-toggle { display:flex; }
  .cards3, .svc-row, .svc-row.rev, .about-home, .about-hero, .cl, .team4 { grid-template-columns:1fr; }
  .svc-row.rev { direction:ltr; }
  .pg { grid-template-columns:1fr 1fr; }
  .ft-top { grid-template-columns:1fr 1fr; }
  .icon-grid { grid-template-columns:repeat(2,1fr); }
  .val-grid { grid-template-columns:1fr; }
  .stats-bar { flex-wrap:wrap; }
  .stat { flex:1 0 40%; }
}
@media (max-width:500px) {
  .pg { grid-template-columns:1fr; }
  .ft-top { grid-template-columns:1fr; }
  .fg2 { grid-template-columns:1fr; }
  .fg.full { grid-column:1; }
}