/* ==========================================================================
   TABLE OF CONTENTS
   1. Fonts & Reset
   2. CSS Variables (edit colors/spacing here)
   3. Base / Typography
   4. Utilities (container, buttons, badges, gradient text)
   5. Scroll-reveal animation engine
   6. Header / Navigation
   7. Hero
   8. Stats strip
   9. About
   10. Services
   11. Benefits
   12. Portfolio
   13. Pricing
   14. Testimonials
   15. Tools strip
   16. Contact
   17. Footer
   18. Back-to-top button
   19. Responsive breakpoints
   ========================================================================== */

/* 1. Fonts & Reset ------------------------------------------------------- */
/* Poppins has no Cyrillic glyphs, so it silently falls back to a system
   font on the Ukrainian page. Montserrat is the same geometric-sans shape
   as Poppins but ships full Cyrillic support, so index.html (lang="uk")
   uses it for headings instead — see the html[lang="uk"] override below. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Montserrat:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }

/* 2. CSS Variables --------------------------------------------------------
   This is the control panel for the whole site's look. Change a value here
   and it updates everywhere it's used.
--------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --surface: #ffffff;
  --surface-alt: #f1f1f6;
  --border: rgba(20, 20, 30, 0.08);
  --border-strong: rgba(20, 20, 30, 0.14);

  /* Text */
  --text: #15151a;
  --text-muted: #6b6b7a;
  --text-soft: #8b8b98;

  /* Accent gradient (Instagram-ish purple -> pink -> orange) */
  --accent-1: #4f5bd5;
  --accent-2: #962fbf;
  --accent-3: #d62976;
  --accent-4: #fa7e1e;
  --gradient: linear-gradient(120deg, var(--accent-1) 0%, var(--accent-2) 35%, var(--accent-3) 68%, var(--accent-4) 100%);
  --gradient-soft: linear-gradient(120deg, rgba(79,91,213,0.12) 0%, rgba(150,47,191,0.12) 35%, rgba(214,41,118,0.12) 68%, rgba(250,126,30,0.12) 100%);

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(20, 20, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 20, 40, 0.09);
  --shadow-lg: 0 24px 60px rgba(20, 20, 40, 0.14);

  /* Type */
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --container-width: 1180px;
  --section-padding: 120px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-height: 84px;
}

/* Ukrainian page (index.html, lang="uk"): swap the heading font to
   Montserrat, which has real Cyrillic glyphs (Inter already covers
   Cyrillic fine, so --font-body doesn't need to change). */
html[lang="uk"] {
  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
}

/* 3. Base / Typography ----------------------------------------------------*/
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 60px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* 4. Utilities --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-padding) 0; }
.section.alt { background: var(--bg-alt); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--gradient);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); background-position: 100% 0; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }

.btn-block { width: 100%; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--gradient-soft);
  color: var(--accent-2);
  flex-shrink: 0;
}
.icon-circle svg { width: 26px; height: 26px; stroke: currentColor; }

/* 5. Scroll-reveal animation engine --------------------------------------
   Add class="reveal" to any element, optionally with a data-animation
   value (fade-up | fade-left | fade-right | zoom-in) and a data-delay
   (milliseconds) to stagger groups of items. JS toggles .is-visible.
--------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal[data-animation="fade-up"] { transform: translateY(40px); }
.reveal[data-animation="fade-left"] { transform: translateX(-40px); }
.reveal[data-animation="fade-right"] { transform: translateX(40px); }
.reveal[data-animation="zoom-in"] { transform: scale(0.92); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Below 768px, sections just appear normally instead of animating in on
   scroll — skips the fade-left/fade-right translateX offsets that were
   contributing to horizontal overflow on small screens, and keeps mobile
   scrolling snappier in general. */
@media (max-width: 767px) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* 6. Header / Navigation --------------------------------------------------*/
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(20,20,40,0.05);
  height: 72px;
}

.nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--surface-alt); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Language switcher — two static pages (index.html = UA, en.html = EN),
   this just links between them. Duplicate a .lang-link to add a third
   language/page; whichever one matches the current page gets "active". */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
}
.lang-link {
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-link:hover { color: var(--text); }
.lang-link.active { background: var(--gradient); color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. Hero ------------------------------------------------------------------
   To add / edit floating badge cards, duplicate a .hero-float block.
--------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 70px) 0 100px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  z-index: -1;
  animation: float-blob 16s ease-in-out infinite;
}
.hero-blob.b1 { width: 420px; height: 420px; top: -120px; right: -100px; background: var(--accent-3); }
.hero-blob.b2 { width: 360px; height: 360px; bottom: -140px; left: -120px; background: var(--accent-1); animation-delay: -6s; }
.hero-blob.b3 { width: 260px; height: 260px; top: 40%; right: 20%; background: var(--accent-4); animation-delay: -3s; opacity: 0.22; }

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin-bottom: 22px;
}

.hero-copy p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-tools span { font-size: 0.85rem; color: var(--text-soft); font-weight: 600; }
.hero-tools .tool-tags { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero visual: overlapping image composition */
.hero-visual {
  position: relative;
  height: 520px;
  justify-self: center;
  width: 100%;
  max-width: 460px;
}
/* aspect-ratio (not a fixed pixel height) keeps these proportioned like real
   Instagram creatives — 4:5 feed-portrait and 1:1 square — at any screen size. */
.hero-visual .ph-main {
  position: absolute;
  top: 0; left: 10%;
  width: 78%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.hero-visual .ph-secondary {
  position: absolute;
  bottom: 0; right: 0;
  width: 48%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 3;
  border: 6px solid var(--bg);
}
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 4;
  animation: float-card 5s ease-in-out infinite;
}
.hero-float.f1 { top: 8%; left: -5%; animation-delay: 0s; }
.hero-float.f2 { bottom: 12%; left: 0; animation-delay: -2.5s; }
.hero-float strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; }
.hero-float span { font-size: 0.78rem; color: var(--text-muted); }
.hero-float .icon-circle { width: 40px; height: 40px; border-radius: 12px; }
.hero-float .icon-circle svg { width: 20px; height: 20px; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Generic placeholder block used everywhere images/videos will later go.
   Every container that holds one (.hero-visual .ph-main, .portfolio-item,
   .portfolio-stack .stack-piece, etc.) is already sized to suit real
   Instagram formats (4:5 feed, 1:1 square, 9:16 story) — so when you
   replace a placeholder, the box around it is already the right shape.
   Swap the <div class="placeholder-media">...</div> for:
     <img class="media-fill" src="your-image.jpg" alt="...">
   or:
     <video class="media-fill" src="your-video.mp4" autoplay muted loop playsinline></video>
   The .media-fill class crops the file to fill that box without distorting it. */
.media-fill { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.placeholder-media {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-soft);
  border: 1.5px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent-2);
  text-align: center;
  padding: 16px;
}
.placeholder-media svg { width: 32px; height: 32px; opacity: 0.7; }
.placeholder-media span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* 8. Stats strip ---------------------------------------------------------
   Duplicate a .stat-item to add another counter. data-target = end number.
--------------------------------------------------------------------------- */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-item span { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }

/* 9. About ----------------------------------------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.about-visual { position: relative; height: 480px; }
.about-visual .shape-bg {
  position: absolute;
  inset: 30px -20px auto auto;
  width: 85%;
  height: 90%;
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
  z-index: 0;
}
.about-visual .ph-photo {
  position: absolute;
  top: 0; left: 0;
  width: 78%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.about-visual .ph-badge {
  position: absolute;
  bottom: 6%;
  right: 2%;
  width: 40%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg);
  z-index: 2;
}

.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 20px; }
.about-copy p { color: var(--text-muted); margin-bottom: 18px; font-size: 1.05rem; }
.about-copy p:last-of-type { margin-bottom: 28px; }

.tool-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-tag {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--surface);
}

/* 10. Services -------------------------------------------------------------
   Duplicate a .service-card to add another service. Grid auto-wraps.
--------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.service-card .icon-circle { margin-bottom: 22px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* 11. Benefits --------------------------------------------------------------
   Duplicate a .benefit-item to add another reason to work with you.
--------------------------------------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}
.benefit-item {
  display: flex;
  gap: 20px;
  padding: 10px 0;
}
.benefit-item .icon-circle {
  width: 46px; height: 46px;
  border-radius: 13px;
}
.benefit-item .icon-circle svg { width: 22px; height: 22px; }
.benefit-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.benefit-item p { color: var(--text-muted); font-size: 0.92rem; }

/* 12. Portfolio --------------------------------------------------------------
   Filter tabs: buttons with data-filter matching .portfolio-item data-category.
   Duplicate a .portfolio-item to add a new work sample (image or video).
   Some items use `.span-tall` / `.overlap` modifiers for the stacked look --
   apply those classes only to a few items, not the whole grid.
--------------------------------------------------------------------------- */
.portfolio-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}
/* Shared pill-tab styling — used by portfolio filters (.filter-btn) and
   pricing category tabs (.price-tab-btn) so both stay visually identical. */
.filter-btn, .price-tab-btn {
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.filter-btn:hover, .price-tab-btn:hover { color: var(--text); }
.filter-btn.active, .price-tab-btn.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* All cells share one fixed row-height unit (--pf-row); .span-wide/.span-tall
   just multiply how many columns/rows a card occupies. This keeps every row
   perfectly aligned with no ragged gaps, no matter how many cards or what mix
   of sizes you use. Real photos/videos still look right inside any cell
   shape because .media-fill (object-fit:cover) crops them to fit — see the
   placeholder-media comment above. */
.portfolio-grid {
  --pf-row: 260px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: var(--pf-row);
  gap: 22px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.4s ease, transform 0.5s ease, box-shadow 0.35s ease;
}
.portfolio-item.span-wide { grid-column: span 2; }
.portfolio-item.span-tall { grid-row: span 2; }
.portfolio-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); z-index: 5; }
.portfolio-item.is-hidden { display: none; }

.portfolio-item .placeholder-media { border-radius: var(--radius-md); }

.portfolio-item .item-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.portfolio-item:hover .item-overlay { opacity: 1; transform: translateY(0); }
.portfolio-item .item-overlay strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; }
.portfolio-item .item-overlay span { font-size: 0.78rem; opacity: 0.85; }

.portfolio-item .play-badge {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
}
.portfolio-item .play-badge svg { width: 14px; height: 14px; }

/* Overlapping "stacked" showcase — used for a couple of highlight items */
.portfolio-stack {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-stack .stack-piece {
  position: absolute;
  width: 58%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--bg);
  transition: transform 0.4s ease;
}
.portfolio-stack .stack-piece.p1 { transform: rotate(-9deg) translate(-34%, -8%); z-index: 1; }
.portfolio-stack .stack-piece.p2 { transform: rotate(6deg) translate(20%, 10%); z-index: 2; }
.portfolio-stack .stack-piece.p3 { transform: rotate(-2deg); z-index: 3; }
.portfolio-stack:hover .stack-piece.p1 { transform: rotate(-14deg) translate(-40%, -14%); }
.portfolio-stack:hover .stack-piece.p2 { transform: rotate(10deg) translate(26%, 16%); }
.portfolio-stack:hover .stack-piece.p3 { transform: rotate(0deg) scale(1.03); }

.portfolio-cta { text-align: center; margin-top: 50px; }

/* 13. Pricing — categorized price list -----------------------------------
   Structure: .pricing-tabs (one .price-tab-btn per category) sits above a
   stack of .price-category panels. Only the panel whose data-category
   matches the active tab's data-tab is shown (see main.js). Each panel
   holds a .price-list of ".price-row" items — the same row component
   used no matter which category it's in.

   To add a whole new category:
     1. Copy a .price-tab-btn button, edit its label + data-tab value.
     2. Copy a .price-category block, give it a matching data-category,
        and edit/duplicate the .price-row items inside.

   To add an option within a category: duplicate a .price-row.
   Mark at most one row per category as the highlighted deal with
   class="price-row best" + a <span class="row-badge">Label</span>.

   Per-row pieces (all optional, just delete what you don't need):
     .price-row-info   -> name + short description
     .price-figure      -> big total price
     .per-unit           -> rate per item; wrap the old rate in
                            <span class="strike"> and the new rate in
                            <span class="now"> to show a discount
     .savings-tag        -> small "Save X%" pill
--------------------------------------------------------------------------- */
.pricing-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.price-category { display: none; }
.price-category.active { display: block; animation: tab-fade-in 0.45s ease; }

@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.price-category-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

/* Fixed-width columns (not flex) so the price column lines up across every
   row regardless of how long each option's name/description text is. */
.price-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px auto;
  align-items: center;
  gap: 28px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.price-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.price-row.best {
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
  box-shadow: var(--shadow-md);
  margin-top: 8px;
}
.price-row.best:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.row-badge {
  position: absolute;
  top: -15px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.row-badge svg { width: 13px; height: 13px; }

.price-row-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.price-row-info p { color: var(--text-muted); font-size: 0.92rem; }

.price-row-figures {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.price-figure { text-align: right; }
.price-figure .total {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.15;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.price-figure .per-unit {
  display: block;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 6px;
}
.price-figure .per-unit .strike {
  text-decoration: line-through;
  opacity: 0.6;
  margin-right: 4px;
}
.price-figure .per-unit .now { color: var(--accent-2); font-weight: 700; }

.savings-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(150, 47, 191, 0.08);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  margin-top: 8px;
  white-space: nowrap;
}

.price-row-cta { flex-shrink: 0; }
.price-row-cta .btn { padding: 13px 24px; font-size: 0.88rem; }

.price-list-note {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 26px;
}

/* 14. Testimonials -----------------------------------------------------------
   Duplicate a .testimonial-card to add another client quote.
--------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 18px; color: var(--accent-4); }
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial-quote { font-size: 0.98rem; color: var(--text); margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .ph-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* 15. Tools strip --------------------------------------------------------- */
.tools-strip { padding: 60px 0; }
.tools-strip .section-head { margin-bottom: 36px; }
.tools-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.tools-row .tool-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-soft);
  opacity: 0.8;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.tools-row .tool-logo:hover { opacity: 1; color: var(--text); }
.tools-row .tool-logo .icon-circle { width: 40px; height: 40px; border-radius: 12px; }
.tools-row .tool-logo .icon-circle svg { width: 20px; height: 20px; }

/* 16. Contact ----------------------------------------------------------------
   Duplicate a .contact-info-card to add another contact channel.
--------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
}

.contact-info-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.contact-info-card:first-child { border-top: none; padding-top: 0; }
.contact-info-card h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { color: var(--text-muted); font-size: 0.95rem; }
.contact-info-card a:hover { color: var(--accent-2); }

.contact-socials { display: flex; gap: 12px; margin-top: 30px; }
.social-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.social-icon svg { width: 19px; height: 19px; }
.social-icon:hover { background: var(--gradient); color: #fff; border-color: transparent; transform: translateY(-3px); }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: var(--bg);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.82rem; color: var(--text-soft); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(150, 47, 191, 0.08);
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.form-success.show { display: block; }

/* 17. Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-about { max-width: 340px; }
.footer-about p { color: var(--text-muted); font-size: 0.92rem; margin-top: 14px; }
.footer-links { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.9rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* 18. Back-to-top button --------------------------------------------------*/
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 20px; height: 20px; }

/* 19. Responsive ----------------------------------------------------------*/
@media (max-width: 1024px) {
  :root { --section-padding: 90px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin: 0 auto; height: 400px; }
  .about-visual { height: 380px; max-width: 460px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); --pf-row: 230px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg);
    padding: 20px 24px 30px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.mobile-open a { width: 100%; padding: 14px 16px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); --pf-row: 280px; }
  .portfolio-stack { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }

  .price-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 24px 24px;
  }
  .price-row.best { margin-top: 16px; }
  .price-row-figures { justify-content: space-between; gap: 16px; }
  .price-figure { text-align: left; }
  .price-row-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  :root { --section-padding: 70px; }
  .container { padding: 0 20px; }
  .nav-actions .btn-primary { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-visual { height: 320px; }
  .about-visual { height: 300px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; --pf-row: 210px; }
  .portfolio-item.span-wide { grid-column: span 2; }
  .portfolio-stack { grid-column: span 2; }
  .contact-form-wrap { padding: 26px 20px; }
  .footer-links { gap: 34px; }
  .btn-primary-mob-sm{
    font-size: 12px;
    width: 100%;
  }
}
