/* ==========================================================================
   Dugal Ruby Adventures — main stylesheet
   ========================================================================== */

:root {
  --primary: #001853;
  --primary-rgb: 0, 24, 83;
  --secondary: #009ea9;
  --secondary-rgb: 0, 158, 169;
  --accent: #FF6B00;
  --accent-rgb: 255, 107, 0;
  --accent-hover: #E05E00;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --text-primary: #001853;
  --text-secondary: #009ea9;
  --text-accent: #FF6B00;
  --text-white: #ffffff;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-brush: 'Caveat', cursive;
  --shadow-sm: 0 2px 8px rgba(11, 61, 145, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 61, 145, 0.08);
  --shadow-lg: 0 16px 36px rgba(11, 61, 145, 0.12);
  --shadow-accent: 0 8px 20px rgba(255, 107, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  --header-h: 96px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-primary); margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 3px; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 2000;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; line-height: 1;
  white-space: nowrap;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn i { transition: transform .3s ease; }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn:hover i.fa-paper-plane { transform: translate(3px, -3px) rotate(-8deg); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(var(--accent-rgb), .38); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #0a2a74; transform: translateY(-2px); }
.btn--outline { border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--ghost { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; padding-inline: 12px; }
.btn--ghost:hover { color: var(--accent); }
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

.link-btn { color: inherit; font-size: inherit; text-align: left; transition: var(--transition); }

/* ---------- Section heads ---------- */
.section { position: relative; padding: 110px 0; }
.section-head { margin-bottom: 50px; }
.section-head.center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.brush-sub {
  display: inline-block;
  font-family: var(--font-brush);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 500;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-title .underline { position: relative; color: var(--accent); white-space: nowrap; }
.section-title .underline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -14px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C 80 2, 200 2, 297 10' stroke='%23FF6B00' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.section-lead { margin-top: 26px; color: var(--text-muted); font-size: 1.1rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
/* The blurred background lives on a pseudo-element: backdrop-filter on the
   header itself would turn it into the containing block of the fixed mobile menu. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  border-bottom: 1px solid rgba(var(--primary-rgb), .06);
  transition: height .35s ease, box-shadow .35s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: background .35s ease;
}
.site-header.is-scrolled { --header-h: 78px; height: 78px; box-shadow: var(--shadow-md); }
.site-header.is-scrolled::before { background: rgba(255,255,255,.96); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1560px; }

.logo { display: inline-flex; align-items: center; }
.logo__img { height: 74px; width: auto; transition: height .35s ease, transform .5s var(--ease-out); }
.site-header.is-scrolled .logo__img { height: 60px; }
.header__logo:hover .logo__img { transform: scale(1.04); }
.logo--light { padding: 10px 18px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.logo--light .logo__img { height: 84px; }

.nav__list { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 40px); }
.nav__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--primary); font-size: 1.05rem;
  padding: 10px 0; position: relative;
}
.nav__link i { font-size: .72em; transition: transform .3s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width .3s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--accent); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.nav__item--drop { position: relative; }
.nav__drop {
  position: absolute; top: calc(100% + 14px); left: -20px; min-width: 300px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition);
}
.nav__drop::before { content: ""; position: absolute; inset: -16px 0 auto 0; height: 16px; }
.nav__item--drop:hover .nav__drop, .nav__item--drop:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item--drop:hover .nav__link i { transform: rotate(180deg); }
.nav__drop a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--primary); font-weight: 500; }
.nav__drop a i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accent-rgb), .1); color: var(--accent); font-size: .85rem; }
.nav__drop a:hover { background: var(--bg-light); color: var(--accent); padding-left: 18px; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.nav__cta-mobile { display: none; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-light); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 0;
  padding: calc(var(--header-h) + 50px) 0 56px;
  display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--primary) url("../../images/hero-poster.jpg") center / cover; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(var(--primary-rgb), .1) 0%, rgba(var(--primary-rgb), .45) 75%),
    linear-gradient(180deg, rgba(var(--primary-rgb), .45) 0%, rgba(var(--primary-rgb), .3) 45%, rgba(var(--primary-rgb), .8) 100%);
}
.hero__path { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__path path { fill: none; stroke: rgba(var(--accent-rgb), .55); stroke-width: 2.2; stroke-dasharray: 10 12; animation: dash 60s linear infinite; }
.hero__path path.alt { stroke: rgba(var(--secondary-rgb), .45); animation-duration: 80s; animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -1000; } }

.hero__content { position: relative; text-align: center; max-width: 1560px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 28px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-brush); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1;
}
.hero__eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .25); }
.hero__eyebrow i { color: var(--accent); font-size: .85em; }

.hero__title { color: #fff; margin: 20px 0 16px; text-transform: uppercase; font-weight: 800; letter-spacing: -0.01em; line-height: 1; }
.hero__title .line { display: block; font-size: clamp(2rem, 4.6vw, 4.2rem); text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.hero__title .brush {
  display: block; font-family: var(--font-brush); font-weight: 700; text-transform: uppercase;
  color: var(--accent); font-size: clamp(2.8rem, 6.4vw, 5.8rem); line-height: .95; margin: 4px 0 2px;
  transform: rotate(-3deg); text-shadow: 0 8px 30px rgba(var(--accent-rgb), .25);
}
.hero__lead { max-width: 780px; margin: 0 auto; font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.9); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; border-radius: 22px; text-align: left;
  background: rgba(var(--primary-rgb), .55); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  animation: floaty 6s ease-in-out infinite;
}
.float-card--left { left: 24px; top: 18%; }
.float-card--right { right: 24px; top: 42%; animation-delay: -3s; }
.float-card strong { display: block; font-size: 1.1rem; }
.float-card small { display: block; color: rgba(255,255,255,.8); font-size: .88rem; }
.float-card em { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: .82rem; color: #7ee7a0; margin-top: 3px; font-weight: 500; }
.float-card__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #ff9a4d); font-size: 1.35rem; box-shadow: var(--shadow-accent); }
.float-card__icon--teal { background: linear-gradient(135deg, var(--secondary), #2fd3d9); box-shadow: 0 8px 20px rgba(var(--secondary-rgb), .35); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@keyframes floaty { 50% { transform: translateY(-12px); } }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.btn--glass { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: #fff; color: var(--primary); border-color: #fff; transform: translateY(-2px); }

.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 24px; }
.hero__chips-label { font-weight: 600; margin-right: 6px; }
.hero__chips-label i { color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .92rem;
  transition: var(--transition);
}
.chip i { color: var(--accent); }
.chip:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }

/* ==========================================================================
   ACTIVITIES — expanding cards
   ========================================================================== */
.activities { background: #fff; overflow: hidden; }
.deco-path {
  position: absolute; inset: 60px 0 auto 0; height: 420px; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath d='M0 340 C 300 200, 500 380, 760 250 S 1200 60, 1440 140' stroke='%23d9dee8' stroke-width='3' fill='none' stroke-dasharray='14 14'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.feature-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: -10px 0 56px; }
.feature-pills li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
  font-weight: 600; color: var(--primary); font-size: .98rem; transition: var(--transition);
}
.feature-pills li i { color: var(--accent); }
.feature-pills li:nth-child(odd) i { color: var(--secondary); }
.feature-pills li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(var(--accent-rgb), .4); }

.expand-cards { display: flex; gap: 20px; height: 640px; }
.x-card {
  position: relative; flex: 1 1 0; min-width: 0;
  border-radius: 34px; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: flex-grow .85s var(--ease-out), box-shadow .4s ease, transform .4s ease;
  outline-offset: 4px;
}
.x-card.is-active { flex-grow: 5.5; cursor: default; }
.x-card:not(.is-active):hover { transform: translateY(-6px); }
.x-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.4s var(--ease-out), filter .8s ease; filter: saturate(.9); }
.x-card.is-active .x-card__img { transform: scale(1); filter: saturate(1.05); }
.x-card__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), .15) 0%, rgba(var(--primary-rgb), .25) 40%, rgba(var(--primary-rgb), .9) 100%);
  transition: background .6s ease;
}
.x-card.is-active .x-card__shade { background: linear-gradient(180deg, rgba(var(--primary-rgb), .35) 0%, rgba(var(--primary-rgb), .1) 35%, rgba(var(--primary-rgb), .88) 100%); }

.x-card__badge, .x-card__level {
  position: absolute; top: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 16px; border-radius: var(--radius-pill); font-size: .85rem; font-weight: 600; color: #fff;
  background: rgba(var(--primary-rgb), .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.x-card__badge { left: 24px; opacity: 0; transform: translateY(-10px); transition: opacity .4s ease .35s, transform .4s ease .35s; }
.x-card__badge i { color: #7fe3ff; }
.x-card__level { left: 50%; transform: translateX(-50%); transition: left .7s var(--ease-out), transform .7s var(--ease-out), background .4s; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.x-card:not(.is-active) .x-card__level { font-size: .74rem; padding: 7px 11px; gap: 5px; }
.x-card__level i { color: #ffc043; }
.x-card.is-active .x-card__badge { opacity: 1; transform: none; }
.x-card.is-active .x-card__level { left: calc(100% - 24px); transform: translateX(-100%); background: rgba(var(--secondary-rgb), .85); }

.x-card__vlabel {
  position: absolute; left: 50%; bottom: 130px; z-index: 2;
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  color: #fff; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 1.05rem; white-space: nowrap;
  transition: opacity .3s ease;
}
.x-card.is-active .x-card__vlabel { opacity: 0; transition-delay: 0s; }
.x-card:not(.is-active) .x-card__vlabel { transition-delay: .45s; }

.x-card__icon {
  position: absolute; z-index: 3; left: 50%; bottom: 36px; transform: translateX(-50%);
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 1.6rem; box-shadow: var(--shadow-accent);
  transition: left .75s var(--ease-out), bottom .75s var(--ease-out), transform .75s var(--ease-out), width .4s, height .4s;
}
.x-card.is-active .x-card__icon { left: 30px; bottom: 150px; transform: none; width: 76px; height: 76px; }

.x-card__body {
  position: absolute; z-index: 2; left: 124px; right: 40px; bottom: 36px; color: #fff;
  opacity: 0; transform: translateY(30px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  min-width: 420px;
}
.x-card.is-active .x-card__body { opacity: 1; transform: none; pointer-events: auto; transition: opacity .6s ease .45s, transform .7s var(--ease-out) .45s; }
.x-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.x-card__tags span { padding: 6px 13px; border-radius: 8px; font-size: .82rem; font-weight: 600; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.x-card__tags span.is-accent { background: var(--accent); border-color: var(--accent); }
.x-card__body h3 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 700; margin-bottom: 8px; }
.x-card__body p { color: rgba(255,255,255,.88); max-width: 620px; margin-bottom: 22px; }

/* ==========================================================================
   WHY US
   ========================================================================== */
.why { background: #fff; overflow: hidden; }
.why__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 45%, rgba(255,255,255,.88) 100%),
    url("../../images/advantage-campfire.jpg") center / cover;
}
.why__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23001853' stroke-opacity='.06' stroke-width='1.5'%3E%3Cpath d='M-50 300 C 100 200 200 400 350 300 S 550 200 650 300'/%3E%3Cpath d='M-50 340 C 100 240 200 440 350 340 S 550 240 650 340'/%3E%3Cpath d='M-50 380 C 100 280 200 480 350 380 S 550 280 650 380'/%3E%3Cpath d='M-50 260 C 100 160 200 360 350 260 S 550 160 650 260'/%3E%3Cpath d='M-50 220 C 100 120 200 320 350 220 S 550 120 650 220'/%3E%3C/g%3E%3C/svg%3E");
}
.why__cloud { position: absolute; top: 40px; left: 18%; width: 520px; fill: none; stroke: rgba(var(--primary-rgb), .12); stroke-width: 3; animation: drift 18s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateX(60px); } }
.why__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.why__intro .section-title { margin-bottom: 26px; }
.why__intro > p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 28px; }
.check-list { display: grid; gap: 16px; margin-bottom: 40px; }
.check-list li { display: flex; align-items: center; gap: 16px; font-weight: 600; color: var(--primary); }
.check-list li span { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: .9rem; box-shadow: var(--shadow-accent); }

.why__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.adv-card {
  position: relative; overflow: hidden;
  padding: 58px 44px 50px; border-radius: 28px;
  background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.adv-card:nth-child(even) { transform: translateY(0); }
.adv-card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--secondary)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.adv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.adv-card:hover::before { transform: scaleX(1); }
.adv-card__num {
  position: absolute; top: 18px; right: 26px;
  font-size: 5.6rem; font-weight: 800; line-height: 1; color: rgba(var(--primary-rgb), .05);
  -webkit-text-stroke: 1px rgba(var(--primary-rgb), .04); transition: color .4s;
}
.adv-card:hover .adv-card__num { color: rgba(var(--accent-rgb), .12); }
.adv-card__icon { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 36px; transition: transform .5s var(--ease-out); }
.adv-card:hover .adv-card__icon { transform: rotateY(360deg); }
.adv-card__icon.teal { background: rgba(var(--secondary-rgb), .12); color: var(--secondary); }
.adv-card__icon.orange { background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.adv-card__icon.navy { background: rgba(var(--primary-rgb), .08); color: var(--primary); }
.adv-card h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 14px; }
.adv-card p { color: var(--text-muted); }

/* ==========================================================================
   SLIDERS (styles + reviews)
   ========================================================================== */
.slider-nav { display: flex; gap: 12px; flex: none; }
.slider-btn {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border-color); color: var(--primary); font-size: 1.1rem;
  transition: var(--transition);
}
.slider-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.slider-btn:disabled { opacity: .4; pointer-events: none; }
.slider-track {
  display: grid; grid-auto-flow: column; gap: 30px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 16px 24px 64px; margin: -16px -24px -24px;
  scroll-padding-inline: 24px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }

/* ---------- Styles ---------- */
.styles {
  background-color: var(--bg-light);
  background-image: radial-gradient(rgba(var(--primary-rgb), .07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.styles__track { grid-auto-columns: calc((100% - 90px) / 4); }
.arch-card {
  position: relative; aspect-ratio: 43 / 53; overflow: hidden;
  border-radius: 220px 220px 30px 30px;
  box-shadow: 0 24px 40px rgba(var(--primary-rgb), .14);
  border: 1px solid rgba(var(--primary-rgb), .25);
  isolation: isolate;
}
.arch-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.arch-card:hover img { transform: scale(1.1); }
.arch-card__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--primary-rgb), 0) 35%, rgba(var(--primary-rgb), .92) 100%); transition: background .5s; }
.arch-card:hover .arch-card__shade { background: linear-gradient(180deg, rgba(var(--primary-rgb), .15) 10%, rgba(var(--primary-rgb), .95) 100%); }
.arch-card__icon {
  position: absolute; top: 32px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--accent); font-size: 1.5rem; box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease-out), background .4s, color .4s;
}
.arch-card:nth-child(3n+2) .arch-card__icon { color: var(--primary); }
.arch-card:nth-child(3n) .arch-card__icon { color: var(--secondary); }
.arch-card:hover .arch-card__icon { transform: translateX(-50%) rotate(-12deg) scale(1.08); background: var(--accent); color: #fff; }
.arch-card__body { position: absolute; left: 20px; right: 20px; bottom: 30px; text-align: center; color: #fff; }
.arch-card__body h3 { color: #fff; font-size: 1.55rem; font-weight: 700; margin-bottom: 10px; }
.arch-card__body p { font-size: .94rem; color: rgba(255,255,255,.85); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease-out), opacity .4s, margin .4s; }
.arch-card:hover .arch-card__body p, .arch-card:focus-within .arch-card__body p { max-height: 90px; opacity: 1; margin-bottom: 14px; }
.arch-card__pill { display: inline-block; padding: 7px 18px; border-radius: var(--radius-pill); font-size: .86rem; font-weight: 600; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.arch-card__link { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 0; font-weight: 600; color: #ffb27a; font-size: .92rem; max-height: 0; opacity: 0; overflow: hidden; transition: all .4s ease; }
.arch-card:hover .arch-card__link, .arch-card:focus-within .arch-card__link { max-height: 30px; opacity: 1; margin-top: 12px; }
.arch-card__link:hover { color: #fff; }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-light); }
.rating-row { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.rating-row__badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.3rem; box-shadow: var(--shadow-accent); }
.rating-row b { display: block; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; color: var(--text-dark); }
.stars { color: #fbbf24; display: flex; gap: 4px; font-size: 1.1rem; }

.reviews__track { grid-auto-columns: calc((100% - 60px) / 3); }
.review-card {
  position: relative; display: flex; flex-direction: column;
  padding: 50px 50px 40px; border-radius: 26px; background: #fff;
  border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .3); }
.review-card__quote { position: absolute; top: 36px; right: 36px; font-size: 3.6rem; color: #eef0f4; transition: color .4s; }
.review-card:hover .review-card__quote { color: rgba(var(--accent-rgb), .15); }
.review-card .stars { margin-bottom: 24px; }
.review-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 18px; color: var(--text-dark); }
.review-card p { font-style: italic; color: var(--text-muted); line-height: 1.85; flex: 1; }
.review-card footer { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; border-left: 4px solid var(--accent); padding-left: 16px; border-top-left-radius: 0; }
.review-card footer strong { font-size: 1.12rem; color: var(--text-dark); }
.review-card footer span { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-size: .9rem; }

.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.slider-dots button { width: 12px; height: 12px; border-radius: 10px; background: #d1d5db; transition: var(--transition); }
.slider-dots button.is-active { width: 34px; background: var(--accent); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--bg-light); }
.info-card {
  position: relative; text-align: center;
  padding: 60px 40px 50px; border-radius: 28px; background: #fff;
  box-shadow: var(--shadow-md); border-top: 5px solid var(--primary);
  transition: var(--transition);
  display: flex; flex-direction: column; align-items: center;
}
.info-card--orange { border-top-color: var(--accent); }
.info-card--teal { border-top-color: var(--secondary); }
.info-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.info-card__tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(var(--primary-rgb), .07); color: var(--primary); }
.info-card--orange .info-card__tag { background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.info-card--teal .info-card__tag { background: rgba(var(--secondary-rgb), .1); color: var(--secondary); }
.info-card__icon { width: 92px; height: 92px; border-radius: 50%; margin: 30px 0 24px; display: grid; place-items: center; font-size: 2rem; background: rgba(var(--primary-rgb), .07); color: var(--primary); transition: transform .5s var(--ease-out); }
.info-card--orange .info-card__icon { background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.info-card--teal .info-card__icon { background: rgba(var(--secondary-rgb), .1); color: var(--secondary); }
.info-card:hover .info-card__icon { transform: scale(1.08) rotate(-6deg); }
.info-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.info-card p { color: var(--text-muted); margin-bottom: 26px; }
.info-card__line { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 20px; border-radius: 18px; background: var(--bg-light); font-weight: 600; color: var(--text-dark); line-height: 1.4; }
.info-card__line i { color: var(--accent); }
.info-card--navy .info-card__line i { color: var(--primary); }
a.info-card__line:hover { background: rgba(var(--accent-rgb), .08); color: var(--accent); }

.contact__box { display: grid; grid-template-columns: 1.15fr .85fr; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact__form-wrap { position: relative; padding: 80px 70px; }
.contact__lead { color: var(--text-muted); margin: 22px 0 26px; font-size: 1.08rem; line-height: 1.8; }
.contact__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.c-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: var(--radius-pill); font-size: .9rem; font-weight: 600; }
.c-badge.teal { background: rgba(var(--primary-rgb), .06); color: var(--primary); }
.c-badge.teal i { color: var(--accent); }
.c-badge.orange { background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.c-badge.orange i { color: var(--primary); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; }
.field label b { color: var(--accent); }
.field__control { position: relative; }
.field__control > i { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: 18px 60px 18px 28px; border-radius: var(--radius-pill);
  background: var(--bg-light); border: 1.5px solid var(--border-color); outline: none;
  color: var(--text-dark); transition: var(--transition); appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; position: absolute; right: 0; width: 100%; height: 100%; cursor: pointer; }
.field textarea { border-radius: 22px; resize: vertical; min-height: 150px; padding-right: 28px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa1ad; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e11d48; background: #fff5f7; }
.field.is-valid input:not([type="checkbox"]), .field.is-valid select, .field.is-valid textarea { border-color: #22c55e; }
.field__error { display: block; min-height: 0; color: #e11d48; font-size: .86rem; margin: 6px 0 0 20px; }
.field__error:empty { display: none; }

.field--check .field__error { margin-left: 44px; }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: .95rem; color: var(--text-muted); line-height: 1.55; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--border-color); background: var(--bg-light); display: grid; place-items: center; color: #fff; font-size: .75rem; transition: var(--transition); }
.check__box i { transform: scale(0); transition: transform .25s var(--ease-out); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box i { transform: scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid rgba(var(--accent-rgb), .45); outline-offset: 2px; }
.check a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.field.has-error .check__box { border-color: #e11d48; }

.lead-form__submit { margin-top: 30px; }
.btn .spinner, .news-form__btn .spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-icon { display: none; }
.is-loading { pointer-events: none; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 16px; font-weight: 500; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.err { color: #e11d48; }
.form-status.ok { color: #16a34a; }
.form-flash { padding: 16px 22px; border-radius: 14px; margin-bottom: 24px; font-weight: 600; }
.form-flash.ok { background: #ecfdf5; color: #047857; }
.form-flash.err { background: #fff1f2; color: #be123c; }

.form-success { text-align: center; padding: 50px 30px; border-radius: 24px; background: linear-gradient(160deg, #f0fdf8, #fff 60%); border: 1px solid #d1fae5; animation: popIn .7s var(--ease-out); }
.form-success__icon { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 26px; display: grid; place-items: center; background: #22c55e; color: #fff; font-size: 2.4rem; box-shadow: 0 16px 34px rgba(34,197,94,.35); animation: popIn .7s var(--ease-out) .15s both; }
.form-success h3 { font-size: 1.9rem; margin-bottom: 12px; }
.form-success p { color: var(--text-muted); margin-bottom: 28px; max-width: 440px; margin-inline: auto; }
@keyframes popIn { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }

.contact__aside {
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 70px 50px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), .18), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(var(--secondary-rgb), .22), transparent 50%),
    var(--primary);
}
.contact__aside .info-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center;
  text-align: left; padding: 28px 28px 26px; border-radius: 22px; border-top: 0;
  border-left: 5px solid var(--primary);
}
.contact__aside .info-card--navy { border-left-color: #3b5bdb; }
.contact__aside .info-card--orange { border-left-color: var(--accent); }
.contact__aside .info-card--teal { border-left-color: var(--secondary); }
.contact__aside .info-card:hover { transform: translateX(-6px); }
.contact__aside .info-card__icon { grid-row: 1 / span 3; width: 72px; height: 72px; margin: 0; font-size: 1.6rem; }
.contact__aside .info-card__tag { justify-self: start; font-size: .72rem; padding: 4px 12px; }
.contact__aside .info-card h3 { font-size: 1.3rem; margin: 8px 0 4px; }
.contact__aside .info-card p { margin: 0; font-size: .94rem; }
.contact__aside .info-card__line { grid-column: 1 / -1; justify-content: flex-start; margin-top: 18px; padding: 13px 18px; border-radius: 14px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; color: rgba(255,255,255,.85); overflow: hidden; isolation: isolate; }
.footer__bg { position: absolute; inset: 0; z-index: -1; background: url("../../images/footer-bg.jpg") center / cover; }
.footer__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--primary-rgb), .93) 0%, rgba(var(--primary-rgb), .9) 60%, rgba(var(--primary-rgb), .96) 100%); }
.footer__inner { padding-top: 40px; max-width: 1400px; }
.footer__top { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer__contacts { display: flex; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
.f-contact { display: flex; align-items: center; gap: 16px; padding: 12px 26px 12px 12px; border-radius: 60px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.f-contact:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.f-contact__icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.25rem; box-shadow: var(--shadow-accent); flex: none; }
.f-contact small { display: block; font-size: .88rem; color: rgba(255,255,255,.75); }
.f-contact strong { display: block; color: #fff; font-size: 1.1rem; }

.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; padding: 56px 0 50px; }
.footer__about p { line-height: 1.8; margin-bottom: 22px; }
.footer__meta { display: grid; gap: 10px; font-size: .95rem; }
.footer__meta li { display: flex; gap: 12px; align-items: baseline; }
.footer__meta i { color: var(--accent); width: 16px; }
.footer__follow { color: #fff; font-size: 1.15rem; margin: 26px 0 16px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.footer__social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer__title { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 36px; position: relative; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: -12px; width: 42px; height: 3px; border-radius: 3px; background: var(--accent); }
.footer__links { display: grid; gap: 14px; }
.footer__links a, .footer__links .link-btn { display: inline-flex; align-items: center; gap: 12px; font-size: 1.05rem; color: rgba(255,255,255,.85); }
.footer__links a::before, .footer__links .link-btn::before { content: "\f101"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); font-size: .85rem; transition: transform .3s; }
.footer__links a:hover, .footer__links .link-btn:hover { color: #fff; }
.footer__links a:hover::before, .footer__links .link-btn:hover::before { transform: translateX(4px); }
.footer__news-text { margin-bottom: 22px; font-size: 1.02rem; }
.news-form__field { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; background: #fff; border-radius: 12px; }
.news-form__field > i { color: var(--accent); }
.news-form__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; color: var(--text-dark); }
.news-form__btn { width: 54px; height: 54px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.15rem; flex: none; transition: var(--transition); }
.news-form__btn:hover { background: var(--accent-hover); }
.news-form__note { font-size: .82rem; margin-top: 12px; color: rgba(255,255,255,.65); }
.news-form__note a { color: #ffb27a; text-decoration: underline; }
.news-form .form-status.ok { color: #86efac; }
.news-form .form-status.err { color: #fda4af; }

.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 26px 34px; margin-bottom: 30px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: .98rem; }
.footer__bottom .accent { font-weight: 600; }
.footer__bottom-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.footer__bottom-links a:hover, .footer__bottom-links .link-btn:hover { color: var(--accent); }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); }
body.cookie-open .to-top { bottom: 150px; }

/* ==========================================================================
   COOKIES
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 1500; margin: 0 auto; max-width: 1180px;
  display: flex; align-items: center; gap: 24px;
  padding: 22px 26px; border-radius: 22px;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(var(--primary-rgb), .25); border: 1px solid var(--border-color);
  animation: slideUp .6s var(--ease-out);
}
.cookie-banner[hidden] { display: none; }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.cookie-banner__icon { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accent-rgb), .12); color: var(--accent); font-size: 1.6rem; }
.cookie-banner__text strong { color: var(--primary); font-size: 1.1rem; }
.cookie-banner__text p { font-size: .93rem; color: var(--text-muted); line-height: 1.55; margin-top: 2px; }
.cookie-banner__text a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex: none; }

.cookie-modal { width: min(560px, calc(100% - 32px)); border: 0; padding: 0; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.3); color: var(--text-dark); }
.cookie-modal::backdrop { background: rgba(var(--primary-rgb), .55); backdrop-filter: blur(4px); }
.cookie-modal[open] { animation: popIn .45s var(--ease-out); }
.cookie-modal__inner { padding: 30px 32px; }
.cookie-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cookie-modal__head h3 { font-size: 1.4rem; display: flex; gap: 10px; align-items: center; }
.cookie-modal__head h3 i { color: var(--accent); }
.cookie-modal__close { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-light); color: var(--primary); }
.cookie-modal__close:hover { background: var(--accent); color: #fff; }
.cookie-modal__intro { color: var(--text-muted); font-size: .95rem; margin-bottom: 18px; }
.cookie-opt { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border-color); }
.cookie-opt strong { color: var(--primary); }
.cookie-opt p { color: var(--text-muted); font-size: .88rem; line-height: 1.5; }
.switch { position: relative; flex: none; width: 52px; height: 30px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: #d1d5db; transition: var(--transition); }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: var(--transition); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid rgba(var(--accent-rgb), .45); outline-offset: 2px; }
.switch.is-locked { cursor: not-allowed; opacity: .7; }
.switch.is-locked input:checked + span { background: var(--secondary); }
.cookie-modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-color); }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.page-hero {
  position: relative; isolation: isolate; color: #fff; text-align: center;
  padding: calc(var(--header-h) + 90px) 0 90px;
  background: url("../../images/page-banner.jpg") center 40% / cover;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--primary-rgb), .75), rgba(var(--primary-rgb), .88)); }
.page-hero .brush-sub { color: #7fe3ea; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
.page-hero p { margin-top: 14px; color: rgba(255,255,255,.85); }
.breadcrumbs { display: inline-flex; gap: 10px; align-items: center; margin-top: 22px; padding: 8px 20px; border-radius: var(--radius-pill); background: rgba(255,255,255,.12); font-size: .92rem; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs i { font-size: .7rem; color: var(--accent); }

.legal { background: var(--bg-light); padding: 80px 0 110px; }
.legal__grid { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow-md); }
.legal__toc h4 { font-size: 1.1rem; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.legal__toc h4 i { color: var(--accent); }
.legal__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 4px; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: .93rem; color: var(--text-muted); line-height: 1.4; }
.legal__toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--accent); font-size: .82rem; padding-top: 1px; }
.legal__toc a:hover, .legal__toc a.is-active { background: rgba(var(--accent-rgb), .08); color: var(--primary); }
.legal__content { background: #fff; border-radius: 26px; padding: 60px 64px; box-shadow: var(--shadow-md); }
.legal__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.legal__meta span { display: inline-flex; gap: 8px; align-items: center; padding: 7px 16px; border-radius: var(--radius-pill); background: var(--bg-light); font-size: .88rem; font-weight: 600; color: var(--primary); }
.legal__meta i { color: var(--accent); }
.legal__content h2 { font-size: 1.55rem; margin: 46px 0 16px; padding-top: 6px; display: flex; gap: 14px; align-items: baseline; }
.legal__content h2:first-of-type { margin-top: 0; }
.legal__content h2 .num { color: var(--accent); font-size: 1.1rem; font-weight: 800; }
.legal__content h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.legal__content p, .legal__content li { color: #4b5563; line-height: 1.8; }
.legal__content p + p { margin-top: 12px; }
.legal__content ul { margin: 12px 0; display: grid; gap: 8px; }
.legal__content ul li { position: relative; padding-left: 26px; }
.legal__content ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.legal__content a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal__content strong { color: var(--text-dark); }
.legal__note { margin: 20px 0; padding: 18px 22px; border-left: 4px solid var(--secondary); background: rgba(var(--secondary-rgb), .06); border-radius: 0 14px 14px 0; }
.legal__note.warn { border-color: var(--accent); background: rgba(var(--accent-rgb), .06); }
.legal__contact { margin-top: 18px; padding: 26px 28px; border-radius: 18px; background: var(--bg-light); display: grid; gap: 10px; }
.legal__contact div { display: flex; gap: 14px; align-items: baseline; }
.legal__contact i { color: var(--accent); width: 18px; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.why__cards .reveal:nth-child(2) { transition-delay: .1s; }
.why__cards .reveal:nth-child(3) { transition-delay: .2s; }
.why__cards .reveal:nth-child(4) { transition-delay: .3s; }
.hero .reveal:nth-child(2) { transition-delay: .1s; }
.hero .reveal:nth-child(3) { transition-delay: .2s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1480px) {
  .float-card { display: none; }
}

@media (max-width: 1200px) {
  .nav__list { gap: 22px; }
  .nav__link { font-size: .98rem; }
  .why__grid { grid-template-columns: 1fr; gap: 50px; }
  .styles__track { grid-auto-columns: calc((100% - 60px) / 3); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__contacts { justify-content: flex-start; }
  .contact__form-wrap { padding: 60px 44px; }
  .x-card__body { left: 116px; min-width: 360px; }
}

@media (max-width: 1100px) {
  :root { --header-h: 80px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 999;
    background: #fff; padding: 24px 24px 40px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease-out), visibility .45s;
  }
  .site-header.is-scrolled .main-nav { top: 78px; }
  .main-nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--border-color); }
  .nav__link { width: 100%; padding: 16px 4px; font-size: 1.15rem; justify-content: space-between; }
  .nav__link::after { display: none; }
  .nav__drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 12px; min-width: 0; display: none; }
  .nav__item--drop.is-open .nav__drop { display: block; }
  .nav__item--drop.is-open .nav__link i { transform: rotate(180deg); }
  .nav__cta-mobile { display: flex; width: 100%; margin-top: 26px; }
  body.nav-open { overflow: hidden; }


  .expand-cards { flex-direction: column; height: auto; }
  .x-card { flex: none; height: 110px; transition: height .8s var(--ease-out), box-shadow .4s; }
  .x-card.is-active { height: 520px; }
  .x-card:not(.is-active):hover { transform: none; }
  .x-card__vlabel { writing-mode: horizontal-tb; transform: translateY(50%); left: 110px; bottom: 50%; letter-spacing: .14em; font-size: .95rem; }
  .x-card__icon { left: 24px; bottom: 50%; transform: translateY(50%); width: 60px; height: 60px; font-size: 1.35rem; }
  .x-card.is-active .x-card__icon { left: 24px; bottom: 210px; transform: none; width: 64px; height: 64px; }
  .x-card__level { top: 24px; left: auto; right: 24px; transform: none; }
  .x-card:not(.is-active) .x-card__level { opacity: 0; }
  .x-card.is-active .x-card__level { top: 24px; left: auto; right: 24px; transform: none; }
  .x-card__body { left: 24px; right: 24px; bottom: 28px; min-width: 0; }

  .reviews__track { grid-auto-columns: calc((100% - 30px) / 2); }
  .contact__box { grid-template-columns: 1fr; }
  .contact__aside { padding: 44px 24px; }
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .cookie-banner { flex-wrap: wrap; }
  .cookie-banner__actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .container { padding: 0 16px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .logo__img { height: 56px; }
  .site-header.is-scrolled .logo__img { height: 50px; }

  .hero { min-height: 0; padding: calc(var(--header-h) + 44px) 0 56px; }
  .hero__eyebrow { padding: 10px 18px; }
  .hero__actions .btn { width: 100%; }

  .feature-pills { gap: 10px; }
  .feature-pills li { padding: 10px 16px; font-size: .9rem; }
  .x-card { border-radius: 24px; height: 96px; }
  .x-card.is-active { height: 560px; }
  .x-card__badge { left: 18px; top: 18px; }
  .x-card.is-active .x-card__level { top: 18px; right: 18px; }
  .x-card__level { font-size: .75rem; padding: 6px 12px; }
  .x-card__vlabel { left: 96px; font-size: .82rem; }
  .x-card__icon { left: 18px; width: 56px; height: 56px; }
  .x-card.is-active .x-card__icon { display: none; }
  .x-card__body { left: 18px; right: 18px; bottom: 22px; }
  .x-card__body .btn { width: 100%; }

  .why__cards { grid-template-columns: 1fr; gap: 20px; }
  .adv-card { padding: 40px 30px; }
  .styles__track { grid-auto-columns: 78%; gap: 18px; }
  .reviews__track { grid-auto-columns: 88%; gap: 18px; }
  .review-card { padding: 36px 28px 30px; }
  .contact__form-wrap { padding: 44px 22px; }
  .contact__aside { padding: 30px 16px; }
  .contact__aside .info-card { padding: 22px 18px; column-gap: 16px; }
  .contact__aside .info-card__icon { width: 56px; height: 56px; font-size: 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .lead-form__submit { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .f-contact { width: 100%; }
  .footer__bottom { flex-direction: column; text-align: center; align-items: center; padding: 22px; }
  .legal__content { padding: 36px 22px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; gap: 14px; }
  .cookie-banner__icon { display: none; }
  .cookie-banner__actions { flex-direction: column-reverse; }
  .cookie-banner__actions .btn { width: 100%; }
  body.cookie-open .to-top { bottom: 260px; }
}

/* Second contact line (website) under the email */
.contact__aside .info-card__line--sub { margin-top: 10px; }
.footer__meta a:hover { color: var(--accent); }

/* Toast shown after a remote contact update (?contacts_updated=1) */
.admin-toast {
  position: fixed; top: calc(var(--header-h) + 16px); right: 16px; z-index: 1600;
  display: flex; gap: 14px; align-items: flex-start; max-width: 360px;
  padding: 18px 46px 18px 18px; border-radius: 16px; background: #fff;
  border-left: 5px solid #22c55e; box-shadow: var(--shadow-lg);
  animation: slideUp .5s var(--ease-out);
}
.admin-toast__icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; }
.admin-toast strong { color: var(--primary); }
.admin-toast p { font-size: .9rem; color: var(--text-muted); line-height: 1.5; margin-top: 2px; word-break: break-all; }
.admin-toast__close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; color: var(--text-muted); }
.admin-toast__close:hover { background: var(--bg-light); color: var(--primary); }

.footer__meta a:hover, .f-contact a:hover { color: var(--accent); }
