/* ===================================================================
   Doernane Technology — Website
   =================================================================== */

:root{
  /* Brand ramp — constant across themes (used for gradients / fixed dark bands) */
  --primary: #14509a;
  --primary-dark: #0a3568;
  --primary-darker: #071f3f;
  --primary-light: #2f7cd9;
  --accent: #00b4d8;

  /* Brand text — safe as foreground text in both themes */
  --brand-text: #14509a;

  /* Semantic surface / text tokens — redefined under dark mode below */
  --page-bg: #ffffff;
  --section-alt-bg: #f4f7fa;
  --surface-bg: #ffffff;
  --border: #e6ebf0;
  --border-strong: #cdd6df;
  --heading: #071f3f;
  --text: #16202c;
  --text-soft: #4a5a6a;
  --text-muted: #7a8a99;
  --input-bg: #f4f7fa;
  --tag-bg: rgba(20,80,154,.08);
  --icon-chip-bg: rgba(20,80,154,.08);
  --header-bg: rgba(255,255,255,.85);
  --header-bg-solid: rgba(255,255,255,.96);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(13,27,42,.06);
  --shadow-md: 0 10px 30px rgba(13,27,42,.10);
  --shadow-lg: 0 20px 50px rgba(10,53,104,.16);
  --container: 1180px;
  --ff-heading: 'Poppins', sans-serif;
  --ff-body: 'Inter', sans-serif;
}

/* Dark theme — applied automatically when the OS is dark (unless the user
   picked "light" explicitly), or forced via [data-theme="dark"] */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --page-bg: #0b1420;
    --section-alt-bg: #0f1c2c;
    --surface-bg: #12233a;
    --border: #223245;
    --border-strong: #2c3d52;
    --heading: #f2f6fa;
    --text: #dce4ec;
    --text-soft: #aebccb;
    --text-muted: #7c8ea3;
    --input-bg: #0f1c2c;
    --tag-bg: rgba(47,124,217,.18);
    --icon-chip-bg: rgba(47,124,217,.16);
    --header-bg: rgba(11,20,32,.85);
    --header-bg-solid: rgba(11,20,32,.96);
    --brand-text: #5aa3ec;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --page-bg: #0b1420;
  --section-alt-bg: #0f1c2c;
  --surface-bg: #12233a;
  --border: #223245;
  --border-strong: #2c3d52;
  --heading: #f2f6fa;
  --text: #dce4ec;
  --text-soft: #aebccb;
  --text-muted: #7c8ea3;
  --input-bg: #0f1c2c;
  --tag-bg: rgba(47,124,217,.18);
  --icon-chip-bg: rgba(47,124,217,.16);
  --header-bg: rgba(11,20,32,.85);
  --header-bg-solid: rgba(11,20,32,.96);
  --brand-text: #5aa3ec;
  color-scheme: dark;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--ff-body);
  color:var(--text);
  background:var(--page-bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background-color .25s ease, color .25s ease;
}
h1,h2,h3,h4{
  font-family:var(--ff-heading);
  color:var(--heading);
  line-height:1.2;
  margin:0 0 .6em;
}
p{ margin:0 0 1em; color:var(--text-soft); }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
input,select,textarea{ font-family:inherit; font-size:1rem; }

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

/* ---------- Progress bar ---------- */
.progress-bar{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background:linear-gradient(90deg,var(--primary),var(--accent));
  z-index:1100; transition:width .1s linear;
}

/* ---------- Skeleton page loader ----------
   Each page builds its own composition from these building blocks so the
   loader roughly matches that page's real layout instead of one generic
   shape everywhere. */
.page-loader{
  position:fixed; inset:0; z-index:5000; overflow:hidden;
  background:var(--page-bg);
  padding:0 24px 40px;
  opacity:1; visibility:visible;
  transition:opacity .4s ease, visibility .4s ease;
}
.page-loader.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.page-loader__inner{ max-width:1180px; margin:0 auto; }
.page-loader__top{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}

.skeleton{
  display:block; border-radius:8px; flex:none;
  background:linear-gradient(90deg, var(--border) 25%, var(--section-alt-bg) 37%, var(--border) 63%);
  background-size:400% 100%;
  animation:skeleton-shimmer 1.4s ease infinite;
}
@keyframes skeleton-shimmer{
  0%{ background-position:100% 50%; }
  100%{ background-position:0 50%; }
}

/* building blocks */
.skeleton--logo{ width:150px; height:32px; }
.skeleton--nav{ width:340px; height:18px; display:none; }
.skeleton--pill{ width:230px; height:26px; border-radius:999px; }
.skeleton--line{ height:20px; margin-bottom:16px; }
.skeleton--title{ height:34px; margin-bottom:14px; }
.skeleton--btn{ width:150px; height:46px; border-radius:999px; }
.skeleton--stat{ width:88px; height:42px; }
.skeleton--visual{ width:100%; max-width:340px; aspect-ratio:1/1; border-radius:24px; }
.skeleton--panel{ width:100%; height:230px; border-radius:16px; }
.skeleton--card{ flex:1 1 280px; height:200px; border-radius:16px; }
.skeleton--icon{ width:34px; height:34px; border-radius:50%; }
.skeleton--field{ width:100%; height:46px; border-radius:10px; margin-bottom:14px; }
.skeleton--step{ flex:1 1 200px; height:110px; border-radius:16px; }
.skeleton--404{ width:260px; height:80px; }
.skeleton--avatar{ width:90px; height:90px; border-radius:50%; }
.pl-team-card{ flex:1 1 180px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.skeleton--w80{ width:80%; }
.skeleton--w70{ width:70%; }
.skeleton--w60{ width:60%; }
.skeleton--w55{ width:55%; }
.skeleton--w40{ width:40%; }

/* layout helpers */
.pl-row{ display:flex; gap:16px; align-items:center; }
.pl-row-wrap{ display:flex; gap:20px; flex-wrap:wrap; }
.pl-hero-band{ padding:44px 0; margin:0 -24px 56px; background:var(--section-alt-bg); }
.pl-hero-band .page-loader__inner{ padding:0 24px; }
.pl-split{ display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:center; }
.pl-split--rev{ grid-template-columns:.9fr 1.1fr; }
.pl-split--rev .pl-split__visual{ order:-1; }
.pl-col{ flex:1; min-width:0; }
.pl-mt-lg{ margin-top:56px; }
.pl-mt-md{ margin-top:36px; }
.pl-center{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:18px; height:calc(100vh - 76px);
}
.pl-row .skeleton--line{ margin-bottom:0; flex:1; }

@media (min-width: 860px){
  .skeleton--nav{ display:block; }
}
@media (max-width: 860px){
  .pl-split, .pl-split--rev{ grid-template-columns:1fr; gap:32px; }
  .pl-split--rev .pl-split__visual{ order:0; }
  .skeleton--visual{ max-width:220px; margin:0 auto; }
}
@media (max-width: 620px){
  .pl-hero-band{ padding:30px 0; margin-bottom:36px; }
  .pl-mt-lg{ margin-top:36px; }
  .skeleton--card{ flex:1 1 100%; height:140px; }
  .skeleton--step{ flex:1 1 100%; height:90px; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px; border-radius:999px;
  font-weight:600; font-size:.95rem;
  transition:all .25s ease;
  white-space:nowrap;
}
.btn--primary{ background:var(--primary); color:#fff; box-shadow:0 8px 20px rgba(20,80,154,.28); }
.btn--primary:hover{ background:var(--primary-dark); transform:translateY(-2px); box-shadow:0 12px 26px rgba(20,80,154,.35); }
.btn--outline{ border:2px solid var(--border-strong); color:var(--heading); }
.btn--outline:hover{ border-color:var(--primary); color:var(--brand-text); transform:translateY(-2px); }
.btn--ghost{ color:var(--heading); font-weight:600; }
.btn--ghost:hover{ color:var(--brand-text); }
.btn--light{ background:#fff; color:var(--primary-dark); }
.btn--light:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(0,0,0,.18); }
.btn--sm{ padding:10px 18px; font-size:.85rem; }
.btn--block{ width:100%; justify-content:center; }

/* ---------- Header ---------- */
.header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:var(--header-bg);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:all .3s ease;
}
.header.scrolled{
  background:var(--header-bg-solid);
  box-shadow:var(--shadow-sm);
  border-bottom-color:var(--border);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{ display:flex; align-items:center; }
.brand__logo{ height:38px; width:auto; }
.brand__logo--dark{ display:none; }
:root[data-theme="dark"] .brand__logo--light{ display:none; }
:root[data-theme="dark"] .brand__logo--dark{ display:block; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .brand__logo--light{ display:none; }
  :root:not([data-theme="light"]) .brand__logo--dark{ display:block; }
}

.nav__list{ display:flex; align-items:center; gap:30px; }
.nav__link{
  position:relative; display:inline-flex; align-items:center; gap:6px;
  font-weight:600; font-size:.95rem; color:var(--text);
  padding:6px 0; transition:color .2s ease;
}
.nav__link::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px;
  background:var(--primary); transition:width .25s ease;
}
.nav__link:hover, .nav__link.active{ color:var(--brand-text); }
.nav__link:hover::after, .nav__link.active::after{ width:100%; }
.nav__caret{ font-size:.65rem; opacity:.7; transition:transform .25s ease; }

.nav__has-dropdown{ position:relative; }
.nav__dropdown{
  position:absolute; top:calc(100% + 18px); left:50%; transform:translate(-50%,8px);
  min-width:280px; background:var(--surface-bg); border:1px solid var(--border);
  border-radius:var(--radius-sm); box-shadow:var(--shadow-lg);
  padding:10px; display:flex; flex-direction:column; gap:2px;
  opacity:0; visibility:hidden; transition:opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav__has-dropdown:hover .nav__dropdown,
.nav__has-dropdown:focus-within .nav__dropdown{
  opacity:1; visibility:visible; transform:translate(-50%,0);
}
.nav__has-dropdown:hover .nav__caret{ transform:rotate(180deg); }
.nav__dropdown a{
  display:flex; align-items:center; gap:12px;
  padding:11px 14px; border-radius:8px; font-size:.9rem; font-weight:600;
  color:var(--text-soft); transition:.2s;
}
.nav__dropdown a i{ color:var(--brand-text); width:18px; text-align:center; }
.nav__dropdown a:hover{ background:var(--tag-bg); color:var(--brand-text); }

.header__actions{ display:flex; align-items:center; gap:10px; }
.header__actions .btn--ghost span{ display:none; }

.theme-toggle{
  width:42px; height:42px; border-radius:50%;
  background:var(--tag-bg); color:var(--brand-text);
  display:flex; align-items:center; justify-content:center; font-size:1.05rem;
  transition:.2s;
}
.theme-toggle:hover{ background:var(--primary); color:#fff; }

.burger{
  display:none; flex-direction:column; gap:5px; padding:6px;
}
.burger span{ width:24px; height:2px; background:var(--text); border-radius:2px; transition:.3s; }
.burger.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2){ opacity:0; }
.burger.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumb ---------- */
.breadcrumb{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-size:.85rem; font-weight:600; color:var(--text-muted); margin-bottom:18px;
}
.breadcrumb a{ color:var(--text-muted); }
.breadcrumb a:hover{ color:var(--brand-text); }
.breadcrumb i{ font-size:.65rem; }
.breadcrumb span{ color:var(--brand-text); }

/* ---------- Hero (home) ---------- */
.hero{
  position:relative;
  padding:170px 0 90px;
  overflow:hidden;
  background:linear-gradient(180deg,var(--section-alt-bg) 0%, var(--page-bg) 100%);
}
.hero__photo{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.hero__photo img{
  width:100%; height:100%; object-fit:cover;
  filter:blur(12px); transform:scale(1.08);
}
.hero__photo-overlay{
  position:absolute; inset:0;
  background:linear-gradient(100deg, var(--page-bg) 0%, var(--page-bg) 30%, transparent 85%);
  opacity:.92;
}
.hero__inner{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.15fr .85fr; gap:50px; align-items:center;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px; border-radius:999px;
  background:var(--tag-bg); color:var(--brand-text);
  font-weight:600; font-size:.82rem; margin-bottom:22px;
}
.hero__title{
  font-size:clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight:700; margin-bottom:.45em;
}
.hero__title span{ color:var(--brand-text); }
.hero__text{ font-size:1.08rem; max-width:560px; }
.hero__cta{ display:flex; gap:16px; flex-wrap:wrap; margin:30px 0 46px; }

.hero__stats{ display:flex; gap:36px; flex-wrap:wrap; }
.stat strong{ display:block; font-family:var(--ff-heading); font-size:1.6rem; color:var(--heading); }
.stat span{ font-size:.85rem; color:var(--text-muted); }

.hero__visual{ display:flex; justify-content:center; }
.hero__logo{
  width:min(100%, 380px);
  filter:drop-shadow(0 24px 50px rgba(10,53,104,.18));
  animation:float 6s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-14px); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  position:relative; padding:150px 0 60px;
  background:linear-gradient(120deg, var(--primary-darker), var(--primary-dark) 65%, var(--primary));
  color:#fff;
}
.page-hero h1{ color:#fff; font-size:clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom:.3em; }
.page-hero p{ color:rgba(255,255,255,.78); max-width:640px; font-size:1.05rem; margin:0; }
.page-hero .breadcrumb{ color:rgba(255,255,255,.6); }
.page-hero .breadcrumb a{ color:rgba(255,255,255,.6); }
.page-hero .breadcrumb a:hover{ color:#fff; }
.page-hero .breadcrumb span{ color:#fff; }

/* ---------- Sections ---------- */
.section{ padding:100px 0; }
.section--alt{ background:var(--section-alt-bg); }
.section--tight{ padding:70px 0; }
.section__head{ max-width:680px; margin:0 auto 54px; text-align:center; }
.section__head h2{ font-size:clamp(1.7rem, 3vw, 2.4rem); }
.tag{
  display:inline-block; padding:6px 16px; border-radius:999px;
  background:var(--tag-bg); color:var(--brand-text);
  font-weight:700; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase;
  margin-bottom:16px;
}

/* About split (image + content side by side) */
.about-split{ display:grid; grid-template-columns:.85fr 1fr; gap:60px; align-items:center; }
.about-split__visual{ position:relative; }
.about-split__image{
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-lg);
  border:1px solid var(--border); aspect-ratio:4/5; background:var(--input-bg);
}
.about-split__image img{ width:100%; height:100%; object-fit:cover; display:block; }
.about-split__badge{
  position:absolute; left:-20px; bottom:-20px; background:var(--surface-bg);
  border:1px solid var(--border); border-radius:var(--radius-sm); padding:16px 20px;
  box-shadow:var(--shadow-md); display:flex; align-items:center; gap:12px; max-width:220px;
}
.about-split__badge i{ font-size:1.4rem; color:var(--brand-text); flex:none; }
.about-split__badge strong{ display:block; font-family:var(--ff-heading); color:var(--heading); font-size:.95rem; }
.about-split__badge span{ font-size:.78rem; color:var(--text-muted); }
.about-split__content{ text-align:left; }
.about-split__content p{ font-size:1.05rem; }

.check-list{ display:flex; flex-direction:column; gap:16px; margin:22px 0 26px; list-style:none; padding:0; }
.check-item{ display:flex; align-items:center; gap:16px; }
.check-item__icon{
  width:24px; height:24px; border-radius:50%; flex:none;
  background:linear-gradient(135deg,var(--primary),var(--primary-light)); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:.65rem;
  box-shadow:0 3px 8px rgba(20,80,154,.3), 0 0 0 3px var(--tag-bg);
}
.check-item__label{ font-size:.98rem; color:var(--text-soft); font-weight:500; line-height:1.5; }

/* About grid: intro text + areas-of-work panel (no photo) */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; margin-bottom:80px; }
.about-grid__text p{ font-size:1.08rem; }
.about-grid__panel{
  background:var(--surface-bg); border:1px solid var(--border); border-radius:var(--radius);
  padding:38px; box-shadow:var(--shadow-sm); position:relative; overflow:hidden;
}
.about-grid__panel::before{
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background:linear-gradient(90deg,var(--primary),var(--accent));
}
.about-grid__panel h3{
  display:flex; align-items:center; gap:12px; font-size:1.1rem; margin-bottom:22px;
}
.about-grid__panel h3 i{
  width:38px; height:38px; border-radius:11px; flex:none;
  background:var(--tag-bg); color:var(--brand-text);
  display:flex; align-items:center; justify-content:center; font-size:1rem;
}
.about-grid__panel .check-list{ margin:0; }

/* Mission / Vision / Values */
.mvv-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
}
.mvv-card{
  background:var(--surface-bg); border:1px solid var(--border); border-radius:var(--radius);
  padding:36px 30px; box-shadow:var(--shadow-sm); transition:.3s;
}
.mvv-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-6px); }
.mvv-card__icon{
  width:56px; height:56px; border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary-light));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; margin-bottom:20px;
}
.value-list{ display:flex; flex-wrap:wrap; gap:8px; }
.value-list li{
  padding:6px 14px; border-radius:999px; background:var(--input-bg);
  color:var(--brand-text); font-size:.85rem; font-weight:600;
}

/* Values with descriptions (sobre.html) */
.value-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.value-card{
  background:var(--surface-bg); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:26px; transition:.25s;
}
.value-card:hover{ border-color:var(--primary-light); box-shadow:var(--shadow-sm); }
.value-card h4{ display:flex; align-items:center; gap:10px; font-size:1rem; }
.value-card h4 i{ color:var(--brand-text); }
.value-card p{ font-size:.9rem; margin:0; }

/* ---------- Category grid (hub / home overview) ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.cat-card{
  background:var(--surface-bg); border:1px solid var(--border); border-radius:var(--radius);
  padding:32px 28px; transition:.25s; display:flex; flex-direction:column; height:100%;
}
.cat-card:hover{ border-color:var(--primary-light); box-shadow:var(--shadow-md); transform:translateY(-6px); }
.cat-card__icon{
  width:54px; height:54px; border-radius:14px; background:var(--tag-bg); color:var(--brand-text);
  display:flex; align-items:center; justify-content:center; font-size:1.3rem; margin-bottom:18px;
}
.cat-card__image{
  width:100%; aspect-ratio:16/10; border-radius:var(--radius-sm); overflow:hidden;
  margin-bottom:18px; background:var(--input-bg); border:1px solid var(--border);
}
.cat-card__image img{ width:100%; height:100%; object-fit:cover; display:block; }
.cat-card h3{ font-size:1.15rem; }
.cat-card p{ font-size:.92rem; flex:1; }
.cat-card__link{ font-weight:700; color:var(--brand-text); font-size:.9rem; display:inline-flex; align-items:center; gap:8px; margin-top:6px; }
.cat-card:hover .cat-card__link i{ transform:translateX(4px); }
.cat-card__link i{ transition:transform .25s ease; }
.cat-card__link--center{ justify-content:center; }
.cat-card__badge{ align-self:flex-start; }
.cat-card--cta{ background:linear-gradient(135deg,var(--primary-darker),var(--primary-dark)); border:none; }
.cat-card--cta .cat-card__icon{ background:rgba(255,255,255,.12); color:#fff; }
.cat-card--cta h3, .cat-card--cta .cat-card__link{ color:#fff; }
.cat-card--cta p{ color:rgba(255,255,255,.75); }
.value-list--center{ justify-content:center; margin:22px 0 26px; }
.section__foot-link{ text-align:center; margin-top:34px; }

.about-lead{ max-width:820px; margin:0 auto 54px; }
.about-lead p{ text-align:left; font-size:1.08rem; color:var(--text); }
.about-lead ul.bullets{ max-width:560px; margin:0 auto 20px; text-align:left; }
.link-brand{ color:var(--brand-text); font-weight:700; }

/* ---------- Tabs / Services summary ---------- */
.tabs__nav{
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-bottom:44px;
}
.tab-btn{
  display:flex; align-items:center; gap:8px;
  padding:12px 22px; border-radius:999px; border:1px solid var(--border);
  background:var(--surface-bg); color:var(--text-soft); font-weight:600; font-size:.92rem;
  transition:.25s;
}
.tab-btn:hover{ border-color:var(--primary-light); color:var(--brand-text); }
.tab-btn.active{ background:var(--primary); border-color:var(--primary); color:#fff; box-shadow:0 8px 18px rgba(20,80,154,.28); }

.tab-panel{ display:none; }
.tab-panel.active{ display:block; animation:fadeIn .4s ease; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }

.price-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
.price-card{
  background:var(--surface-bg); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:24px; transition:.25s; position:relative;
}
.price-card:hover{ border-color:var(--primary-light); box-shadow:var(--shadow-md); transform:translateY(-4px); }
.price-card h4{ font-size:1.05rem; margin-bottom:.4em; }
.price-card p{ font-size:.88rem; margin-bottom:14px; }
.price-card .badge{
  display:inline-block; padding:4px 12px; border-radius:999px;
  background:var(--input-bg); color:var(--text-soft); font-size:.75rem; font-weight:600; margin-bottom:12px;
}
.price-card strong{ display:block; color:var(--brand-text); font-size:1.02rem; font-family:var(--ff-heading); }

/* ---------- Detailed service cards (category pages) ---------- */
.service-list{ display:flex; flex-direction:column; gap:22px; }
.service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; align-items:start; }
.service-grid--2col{ grid-template-columns:repeat(2,1fr); }
.service-detail{
  background:var(--surface-bg); border:1px solid var(--border); border-radius:var(--radius);
  padding:30px 32px; transition:.25s;
}
.service-detail:hover{ border-color:var(--primary-light); box-shadow:var(--shadow-md); }
.service-detail__head{
  display:flex; justify-content:space-between; align-items:flex-start; gap:20px; flex-wrap:wrap;
  margin-bottom:12px;
}
.service-detail__head h3{ font-size:1.25rem; margin:0; }
.service-detail__price{
  font-family:var(--ff-heading); font-weight:700; color:var(--brand-text);
  font-size:1.15rem; white-space:nowrap; text-align:right;
}
.service-detail__meta{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.service-detail__meta span{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 13px; border-radius:999px; background:var(--input-bg);
  color:var(--text-soft); font-size:.78rem; font-weight:600;
}
.service-detail__meta span i{ color:var(--brand-text); }
.service-detail ul.bullets{ margin:12px 0; }
.service-detail ul.bullets li{
  position:relative; padding-left:22px; font-size:.92rem; color:var(--text-soft); margin-bottom:6px;
}
.service-detail ul.bullets li::before{
  content:'\f00c'; font-family:'Font Awesome 6 Free'; font-weight:900;
  position:absolute; left:0; top:2px; font-size:.7rem; color:var(--accent);
}
.service-detail__ideal{
  margin-top:14px; padding-top:14px; border-top:1px dashed var(--border);
  font-size:.88rem; color:var(--text-muted);
}
.service-detail__ideal strong{ color:var(--text-soft); }

.service-detail__more{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
.service-detail__toggle{
  display:inline-flex; align-items:center; gap:7px;
  font-size:.85rem; font-weight:700; color:var(--text-muted);
  margin:12px 0 16px; transition:color .2s ease;
}
.service-detail__toggle:hover{ color:var(--brand-text); }
.service-detail__toggle i{ font-size:.68rem; transition:transform .3s ease; }
.service-detail__toggle.open i{ transform:rotate(180deg); }

/* Accordion (design services) */
.accordion--narrow{ max-width:760px; margin:0 auto; }
.accordion__item{
  border:1px solid var(--border); border-radius:var(--radius-sm); margin-bottom:14px; overflow:hidden;
  background:var(--surface-bg);
}
.accordion__head{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:18px 22px; font-weight:600; font-family:var(--ff-heading);
  color:var(--heading); font-size:1rem; text-align:left;
}
.accordion__head i:first-child{ color:var(--brand-text); margin-right:10px; }
.accordion__head i:last-child{ transition:transform .3s ease; color:var(--text-muted); }
.accordion__item.open .accordion__head i:last-child{ transform:rotate(180deg); }
.accordion__body{
  max-height:0; overflow:hidden; transition:max-height .35s ease;
  padding:0 22px;
}
.accordion__item.open .accordion__body{ padding:0 22px 20px; }

.mini-list li{
  display:flex; justify-content:space-between; gap:12px;
  padding:10px 0; border-bottom:1px dashed var(--border); font-size:.92rem;
}
.mini-list li:last-child{ border-bottom:none; }
.mini-list li span{ color:var(--text-soft); }
.mini-list li span i{ color:var(--accent); font-size:.7rem; margin-right:8px; }
.mini-list li strong{ color:var(--brand-text); white-space:nowrap; font-weight:700; }

ul.bullets-desc{ display:flex; flex-direction:column; gap:12px; }
ul.bullets-desc li{ font-size:.88rem; border-bottom:1px dashed var(--border); padding-bottom:12px; }
ul.bullets-desc li:last-child{ border-bottom:none; padding-bottom:0; }
ul.bullets-desc li b{ display:block; color:var(--heading); font-size:.92rem; margin-bottom:2px; }
ul.bullets-desc li span.price{ display:block; color:var(--brand-text); font-weight:700; margin-top:4px; font-size:.85rem; }

/* ---------- Steps / Process ---------- */
.steps{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
.step{
  background:var(--surface-bg); border:1px solid var(--border); border-radius:var(--radius);
  padding:30px 26px; position:relative;
}
.step__num{
  font-family:var(--ff-heading); font-weight:800; font-size:2rem;
  color:transparent; -webkit-text-stroke:1.5px var(--primary-light);
  margin-bottom:14px;
}
.step h3{ font-size:1.05rem; }
.step p{ font-size:.9rem; margin:0; }

/* ---------- Team ---------- */
.team-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.team-card{
  background:var(--surface-bg); border:1px solid var(--border); border-radius:var(--radius);
  padding:34px 26px; text-align:center; transition:.25s;
}
.team-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }
.team-card__avatar{
  width:110px; height:110px; border-radius:50%; overflow:hidden; margin:0 auto 20px;
  border:3px solid var(--tag-bg); background:var(--input-bg);
}
.team-card__avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.team-card h3{ font-size:1.1rem; margin-bottom:6px; }
.team-card__role{ font-size:.85rem; color:var(--brand-text); font-weight:600; }

/* ---------- Payments ---------- */
.pay-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:22px;
}
.pay-card{
  background:var(--surface-bg); border:1px solid var(--border); border-radius:var(--radius);
  padding:30px 24px; text-align:center; transition:.25s;
}
.pay-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }
.pay-card i{ font-size:1.8rem; color:var(--brand-text); margin-bottom:14px; }
.pay-card h3{ font-size:1.1rem; margin-bottom:.3em; }
.pay-card p{ font-weight:700; color:var(--heading); margin-bottom:.2em; }
.pay-card span{ font-size:.82rem; color:var(--text-muted); }
.pay-card--wide{ grid-column:span 2; }
.pay-card--wide h3{ margin-bottom:20px; }
.payments-bank{
  list-style:none; margin:0; padding:0; text-align:center;
  display:flex; flex-direction:column; gap:14px;
}
.payments-bank li{
  display:flex; align-items:baseline; justify-content:center; flex-wrap:wrap; gap:8px;
  padding-bottom:14px; border-bottom:1px dashed var(--border);
}
.payments-bank li:last-child{ border-bottom:none; padding-bottom:0; }
.payments-bank li i{ color:var(--accent); font-size:.7rem; }
.payments-bank li span{ font-size:.75rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; }
.payments-bank li p{ margin:0; font-weight:700; color:var(--heading); font-size:.92rem; word-break:break-word; }

/* ---------- Stats (números que inspiram) ---------- */
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.stat-card{
  background:var(--surface-bg); border:1px solid var(--border); border-radius:var(--radius);
  padding:36px 24px; text-align:center; transition:.25s;
}
.stat-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }
.stat-card i{ font-size:1.8rem; color:var(--brand-text); margin-bottom:16px; }
.stat-card strong{
  display:block; font-family:var(--ff-heading); font-size:2.4rem; font-weight:800;
  color:var(--heading); margin-bottom:6px; line-height:1;
}
.stat-card span{ font-size:.9rem; color:var(--text-muted); font-weight:600; }
.stats-note{ text-align:center; font-size:.8rem; color:var(--text-muted); margin-top:26px; font-style:italic; }

/* ---------- CTA ---------- */
.cta{
  background:linear-gradient(120deg, var(--primary-darker), var(--primary-dark) 55%, var(--primary));
  padding:64px 0;
}
.cta__inner{
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta h2{ color:#fff; margin-bottom:.2em; font-size:1.8rem; }
.cta p{ color:rgba(255,255,255,.8); margin:0; }

/* ---------- Contact ---------- */
.contact-grid{
  display:grid; grid-template-columns:.85fr 1.15fr; gap:50px;
}
.contact-info{ display:flex; flex-direction:column; gap:26px; }
.info-item{ display:flex; gap:16px; align-items:flex-start; }
.info-item i{
  width:46px; height:46px; border-radius:12px; flex:none;
  background:var(--tag-bg); color:var(--brand-text);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem;
}
.info-item span{ display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); margin-bottom:4px; }
.info-item p{ margin:0; font-weight:600; color:var(--text); }
.info-item a:hover{ color:var(--brand-text); }

.socials{ display:flex; gap:12px; margin-top:8px; }
.socials a{
  width:44px; height:44px; border-radius:12px; background:var(--icon-chip-bg);
  display:flex; align-items:center; justify-content:center; color:var(--brand-text);
  font-size:1.1rem; transition:.25s;
}
.socials a:hover{ background:var(--primary); color:#fff; transform:translateY(-3px); }

.contact-form{
  background:var(--surface-bg); border:1px solid var(--border); border-radius:var(--radius);
  padding:34px; box-shadow:var(--shadow-sm);
}
.contact-form__honeypot{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; color:var(--text); }
.form-group__optional{ font-weight:400; color:var(--text-muted); }
.form-group input, .form-group select, .form-group textarea{
  width:100%; padding:13px 16px; border:1px solid var(--border-strong); border-radius:var(--radius-sm);
  background:var(--input-bg); color:var(--text); transition:.2s; resize:vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  outline:none; border-color:var(--primary); background:var(--surface-bg);
  box-shadow:0 0 0 3px rgba(20,80,154,.12);
}
.form-note{ margin:14px 0 0; text-align:center; font-size:.88rem; font-weight:600; color:var(--brand-text); min-height:1.2em; }
.form-note--error{ color:#dc3545; }
:root:not([data-theme="light"]) .form-note--error{ color:#f87171; }
:root[data-theme="dark"] .form-note--error{ color:#f87171; }

/* ---------- Footer (fixed dark band, unaffected by theme) ---------- */
.footer{ background:var(--primary-darker); color:rgba(255,255,255,.75); padding-top:70px; }
.footer__inner{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; padding-bottom:50px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer__logo{ height:34px; margin-bottom:16px; }
.footer__brand p{ color:rgba(255,255,255,.55); font-style:italic; }
.footer__col{ min-width:0; }
.footer__col h4{ color:#fff; font-size:.95rem; margin-bottom:16px; }
.footer__col a, .footer__col span{
  display:block; margin-bottom:10px; font-size:.9rem; color:rgba(255,255,255,.65);
  overflow-wrap:anywhere;
}
.footer__col a:hover{ color:var(--accent); }
.footer__bottom{ padding:22px 0; }
.footer__bottom p{ margin:0; font-size:.82rem; color:rgba(255,255,255,.45); text-align:center; }

/* ---------- Back to top ---------- */
.to-top{
  position:fixed; right:24px; bottom:24px; z-index:900;
  width:48px; height:48px; border-radius:50%;
  background:var(--primary); color:#fff; font-size:1rem;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md); opacity:0; visibility:hidden; transform:translateY(10px);
  transition:.3s;
}
.to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.to-top:hover{ background:var(--primary-dark); }

/* ---------- Reveal animation ----------
   Progressive enhancement: elements are ALWAYS visible by default.
   Only once JS confirms it is running (html.js-ready) do they hide and
   wait to be revealed on scroll — so a JS error or disabled JS never
   hides real content. */
html.js-ready [data-reveal]{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
html.js-ready [data-reveal].in-view{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  html.js-ready [data-reveal]{ opacity:1; transform:none; transition:none; }
}

/* ---------- 404 ---------- */
.error-page{ padding:190px 0 120px; text-align:center; }
.error-page__code{
  font-family:var(--ff-heading); font-weight:800; font-size:clamp(5rem,14vw,9rem);
  color:transparent; -webkit-text-stroke:2px var(--primary-light); line-height:1; margin-bottom:.1em;
}
.error-page h1{ font-size:1.6rem; }
.error-page p{ max-width:460px; margin:0 auto 30px; }
.error-page .hero__cta{ justify-content:center; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1024px){
  .about-split{ grid-template-columns:1fr; gap:44px; max-width:460px; margin:0 auto; }
  .about-split__content{ text-align:center; }
  .about-split__content .value-list{ justify-content:center; }
  .about-split__content .cat-card__link{ justify-content:center; }
  .about-grid{ grid-template-columns:1fr; gap:32px; margin-bottom:56px; }
  .mvv-grid, .steps, .cat-grid, .value-grid, .stats-grid, .service-grid, .team-grid{ grid-template-columns:repeat(2,1fr); }
  .price-grid{ grid-template-columns:repeat(2,1fr); }
  .pay-grid{ grid-template-columns:repeat(2,1fr); }
  .pay-card--wide{ grid-column:span 2; }
  .contact-grid{ grid-template-columns:1fr; }
  .hero__inner{ grid-template-columns:1fr; text-align:center; }
  .hero__text{ margin:0 auto; }
  .hero__cta{ justify-content:center; }
  .hero__stats{ justify-content:center; }
  .hero__visual{ order:-1; margin-bottom:20px; }
  .hero__logo{ width:min(70%, 300px); }
  .service-detail__head{ flex-direction:column; }
  .service-detail__price{ text-align:left; }
}

@media (max-width: 860px){
  .nav{
    position:fixed; top:76px; left:0; right:0;
    /* explicit height, not top+bottom stretch: nav is nested inside the
       fixed header, and Chromium mis-sizes a stretched fixed descendant
       of a fixed ancestor (collapses to content height instead of
       filling the viewport) */
    height:calc(100vh - 76px);
    background:var(--surface-bg); padding:30px 24px;
    transform:translateX(100%); transition:transform .35s ease;
    overflow-y:auto; z-index:999;
  }
  .nav.open{ transform:translateX(0); }
  .nav__list{ flex-direction:column; align-items:stretch; gap:6px; }
  .nav__link{ display:flex; justify-content:space-between; padding:14px 4px; border-bottom:1px solid var(--border); }
  .nav__caret{ display:none; }
  .nav__has-dropdown .nav__dropdown{ display:none; }
  .header__actions .btn--sm.btn--ghost{ display:none; }
  .burger{ display:flex; }
}

@media (max-width: 620px){
  .header__inner{ height:66px; }
  .nav{ top:66px; height:calc(100vh - 66px); }
  .hero{ padding:130px 0 70px; }
  .page-hero{ padding:120px 0 50px; }
  .section{ padding:70px 0; }
  .mvv-grid, .steps, .price-grid, .pay-grid, .cat-grid, .value-grid, .stats-grid, .service-grid, .team-grid{ grid-template-columns:1fr; }
  .pay-card--wide{ grid-column:span 1; }
  .form-row{ grid-template-columns:1fr; }
  .footer__inner{ grid-template-columns:1fr 1fr; }
  .cta__inner{ text-align:center; justify-content:center; }
  .tabs__nav{ justify-content:flex-start; overflow-x:auto; flex-wrap:nowrap; padding-bottom:6px; }
  .tab-btn{ flex:none; }
}
