﻿@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-card: rgba(17, 17, 17, 0.85);
  --panel: rgba(10, 10, 10, 0.88);
  --ink: #faf9f7;
  --muted: #9a958c;
  --gold: #d4af37;
  --gold-light: #f4e4bc;
  --gold-dark: #b8962e;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-soft: #c9a227;
  --line: rgba(212, 175, 55, 0.2);
  --line-strong: rgba(212, 175, 55, 0.45);
  --shadow: 0 26px 65px rgba(0, 0, 0, 0.6);
  --border-radius: 16px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(212, 175, 55, 0.04), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(212, 175, 55, 0.03), transparent 40%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 40%, #080808 100%);
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html { overflow-x: clip; }
  body { overflow-x: clip; }
}

/* Scroll progress bar - gold line */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform-origin: left;
  z-index: 100;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.06;
  background-image: radial-gradient(rgba(212, 175, 55, 0.15) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}

/* Golden geometric accent - floating */
.gold-accent {
  position: fixed;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: -1;
  right: -200px;
  top: -150px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 8s ease-in-out infinite;
}

.gold-accent--2 {
  width: 400px;
  height: 400px;
  left: -100px;
  bottom: 20%;
  animation-delay: -4s;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.02) 40%, transparent 70%);
  transition: opacity 0.3s ease;
}

.container { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }

/* ═══ HEADER ═══ */
.header {
  position: sticky;
  top: 10px;
  z-index: 20;
  width: 80vw;
  margin: 0.7rem auto 0;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(8, 8, 8, 0.95) 100%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(212, 175, 55, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header:hover {
  border-color: var(--line-strong);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(212, 175, 55, 0.15),
    0 0 40px rgba(212, 175, 55, 0.06);
}

.logo {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  letter-spacing: normal;
  transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.02); }
.logo::before {
  content: "";
  display: block;
  width: 170px;
  height: 78px;
  background: url("./assets/images/altaris-logo.svg?v=2") center/contain no-repeat;
}
.logo__icon { display: none; }
.logo__stack {
  display: none;
  line-height: 1.02;
}
.logo__word {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  background: linear-gradient(135deg, var(--ink) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo__sub {
  margin-top: -2px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 120;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 10, 0.96);
  color: var(--gold-light);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  width: min(1160px, calc(100% - 2rem));
  margin: 0.7rem auto 0;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(8, 8, 8, 0.95) 100%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(212, 175, 55, 0.08);
}
.site-header:hover {
  border-color: var(--line-strong);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(212, 175, 55, 0.15),
    0 0 40px rgba(212, 175, 55, 0.06);
}
.site-header .container {
  width: 100%;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-logo {
  display: block;
  width: 170px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  transition: color 0.25s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.3s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-light);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.nav { display: flex; gap: 1.2rem; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  transition: color 0.25s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.3s ease;
}
.nav a:hover {
  color: var(--gold-light);
}
.nav a:hover::after { width: 100%; }

.mobile-menu-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.6);
  color: var(--gold);
  cursor: pointer;
}
.mobile-menu-trigger:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}
.mobile-drawer__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 0.9rem 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(8, 8, 8, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(-12px);
  transition: transform 0.22s ease;
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateY(0); }
.mobile-drawer__title { color: var(--gold); }
.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.mobile-drawer__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.8);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-drawer__close:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}
.mobile-drawer__nav {
  display: grid;
  gap: 0.56rem;
}
.mobile-drawer__nav a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(14, 14, 14, 0.85);
}
.mobile-drawer__nav a:hover { border-color: var(--gold); }
.mobile-drawer__actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}
.mobile-drawer__actions .lang-switch {
  width: 100%;
}
.mobile-drawer__actions .btn {
  width: 100%;
}

.header-actions { display: inline-flex; align-items: center; gap: 0.65rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.6);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 0.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.lang-switch a:hover {
  color: var(--gold-light);
}
.lang-switch a.active {
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}
.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.lang-switch__item:hover {
  color: var(--gold-light);
}
.lang-switch__item.is-active {
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.85rem 1.18rem;
  font-weight: 800;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow:
    0 4px 20px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(212, 175, 55, 0.4),
    0 0 40px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn:hover::before { opacity: 1; }
.btn-sm { padding: 0.64rem 0.9rem; font-size: 0.86rem; }
.btn-ghost {
  color: var(--ink);
  background: rgba(17, 17, 17, 0.7);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.9rem;
  align-items: center;
  padding: 6.9rem 0 3.2rem;
  overflow-x: clip;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.eyebrow {
  color: var(--gold);
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  font-weight: 600;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1, h2, h3 {
  margin: 0 0 0.7rem;
  line-height: 1.05;
}

h1, .section-title, .modal__dialog h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.3rem);
  max-width: 22ch;
  letter-spacing: 0.01em;
  text-wrap: balance;
  background: linear-gradient(135deg, var(--ink) 0%, var(--gold-light) 60%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer-text 6s ease-in-out infinite;
}

@keyframes shimmer-text {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-actions { margin: 1.3rem 0 1.6rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Stats with gold accent */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.stats li {
  min-width: 208px;
  padding: 0.75rem 0.88rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.9), rgba(12, 12, 12, 0.9));
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}
.stats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stats li:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.stats li:hover::before { opacity: 1; }
.counter {
  margin-right: 0.25rem;
  font-size: 1.45rem;
  color: var(--gold);
  font-weight: 800;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Hero media - image cards */
.hero-media { position: relative; min-height: 460px; }
.image-card {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0e0e12;
  position: relative;
}
.image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent 40%, transparent 60%, rgba(212, 175, 55, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.image-card:hover img { transform: scale(1.03); }
.image-main { position: absolute; inset: 0 0 42px 40px; }
.image-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  font-size: 0.8rem;
  color: var(--gold-light);
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
}
.image-floating {
  position: absolute;
  width: min(280px, 64%);
  height: 190px;
  left: 0;
  bottom: 0;
}

/* Orbits - gold dashed circles */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.25);
  animation: spin 24s linear infinite;
}
.orbit-a { width: 270px; height: 270px; right: -30px; top: 36px; }
.orbit-b { width: 180px; height: 180px; right: 180px; top: -8px; animation-direction: reverse; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ SECTIONS ═══ */
.section { padding: 3.8rem 0; position: relative; }
.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 1.2rem;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.benefits, .service-grid, .footer-grid, .faq, .media-layout { display: grid; gap: 1rem; }
.benefits { grid-template-columns: repeat(4, 1fr); }

/* Cards - premium black & gold */
.card, .service, .faq-item, .cta-box {
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  background: linear-gradient(165deg, rgba(18, 18, 18, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  padding: 1.15rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.card::before, .service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover, .service:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 175, 55, 0.08);
}
.card:hover::before, .service:hover::before { opacity: 1; }

.card h3, .service h3 {
  color: var(--ink);
  transition: color 0.3s ease;
}
.card:hover h3, .service:hover h3 { color: var(--gold-light); }

.card p, .service p, .faq-item p, .cta-box p { color: var(--muted); }

.company-offer__badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.75rem;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(212, 175, 55, 0.12);
}
.company-offer__price {
  margin: 0.4rem 0 1rem;
  color: var(--ink);
  font-size: 1.06rem;
}
.company-offer__price strong { color: var(--gold-light); }
.company-offer__meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.72rem;
}
.company-offer__meta div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.74rem 0.82rem;
  background: rgba(10, 10, 10, 0.52);
}
.company-offer__meta dt {
  margin: 0 0 0.28rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.company-offer__meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}
.company-offer__actions {
  justify-content: flex-start;
  margin-top: 1rem;
}
.offers-stack {
  display: grid;
  gap: 50px;
}

.topic-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.topic-link:hover {
  color: var(--gold);
  text-decoration: none;
}

.prose { max-width: 80ch; }
.prose a { color: var(--gold); }
.prose ul { color: var(--muted); }

.service-grid { grid-template-columns: repeat(3, 1fr); }
.service ul { margin: 0.62rem 0 0; padding-left: 1.06rem; color: var(--muted); }
.service li { margin: 0.42rem 0; }
.service li::marker { color: var(--gold); }

/* Media gallery */
.section-media { position: relative; }
.media-layout {
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: 280px 280px;
}
.media-tile {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #121216;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
}
.media-tile:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.1);
}
.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.media-tile:hover img { transform: scale(1.06); }
.media-tile.wide { grid-row: 1 / span 2; }
.media-overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(6px);
  padding: 0.86rem;
}
.media-overlay h3 { margin-bottom: 0.35rem; color: var(--ink); }
.media-overlay p { margin: 0; color: var(--gold-light); }

.tilt { transform-style: preserve-3d; transition: transform 0.23s ease; }

/* FAQ */
.faq-item {
  transition: all 0.3s ease;
}
.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0.75rem 0 0; }

/* CTA box - premium gold accent */
.cta-box {
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 60%),
    linear-gradient(165deg, rgba(25, 24, 20, 0.95) 0%, rgba(12, 11, 10, 0.98) 100%);
  border: 1px solid var(--line);
}
.cta-box h2 {
  background: linear-gradient(135deg, var(--ink), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-actions { margin-top: 1rem; display: flex; gap: 0.74rem; justify-content: center; flex-wrap: wrap; }
.contact-meta { margin-top: 1.1rem; color: var(--muted); }
.contact-meta strong { color: var(--gold-light); }

/* Footer */
.footer {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 calc(1.8rem + 84px + env(safe-area-inset-bottom));
  background: rgba(5, 5, 5, 0.9);
}
.footer-grid { grid-template-columns: repeat(3, 1fr); }
.footer p { color: var(--muted); margin: 0.42rem 0; }
.footer a { color: var(--gold); text-decoration: none; transition: color 0.25s ease; }
.footer a:hover { color: var(--gold-light); }
.footer-credits { margin-top: 1.1rem; text-align: center; }
.footer-credits p { color: var(--muted); font-size: 0.92rem; }
.footer-credits a { text-decoration: underline; color: var(--gold); }

.site-footer {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 calc(1.8rem + 84px + env(safe-area-inset-bottom));
  background: rgba(5, 5, 5, 0.9);
}
.site-footer p {
  color: var(--muted);
  margin: 0.42rem 0;
}
.site-footer a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}
.site-footer a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  margin-top: 1.1rem;
  text-align: center;
}
.footer-bottom p {
  color: var(--muted);
  font-size: 0.92rem;
}

.offer-grid,
.process-grid,
.cta-grid {
  display: grid;
  gap: 1rem;
}
.offer-grid {
  grid-template-columns: repeat(2, 1fr);
}
.process-grid {
  grid-template-columns: repeat(3, 1fr);
}
.cta-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}
.offer-card,
.process-card,
.contact-card {
  border-radius: var(--border-radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.9), rgba(10, 10, 10, 0.88));
  box-shadow: var(--shadow);
}
.offer-card,
.process-card {
  padding: 1.4rem;
}
.contact-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
}
.contact-card a {
  font-weight: 700;
}
.offer-badge,
.info-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.75rem;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(212, 175, 55, 0.12);
}
.offer-meta {
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.72rem;
}
.offer-meta div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.74rem 0.82rem;
  background: rgba(10, 10, 10, 0.52);
}
.offer-meta dt {
  margin: 0 0 0.28rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.offer-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}
.modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 1.4rem));
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(18, 17, 14, 0.98) 0%, rgba(10, 10, 8, 0.98) 100%);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(212, 175, 55, 0.08);
  padding: 1.2rem 1.1rem 1.1rem;
}
.modal__close {
  position: absolute;
  right: 0.65rem;
  top: 0.45rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  cursor: pointer;
  font-size: 1.35rem;
  transition: background 0.25s ease;
}
.modal__close:hover { background: rgba(212, 175, 55, 0.2); }

.modal-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.modal-form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
}
.modal-form__input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(17, 17, 17, 0.8);
  color: var(--ink);
  padding: 0.72rem 0.78rem;
  font: inherit;
}
.modal-form__textarea {
  resize: vertical;
  min-height: 100px;
}
.modal-form__submit {
  width: 100%;
  margin-top: 0.4rem;
}
.modal-form__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.modal-form__status { color: var(--gold); }
.modal-form__status.is-error { color: #e85a5a; }

/* Messenger capsule */
.messenger-capsule {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: env(safe-area-inset-bottom);
  z-index: 60;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.58rem 0.64rem;
  width: calc(((42px * 3) + (0.5rem * 2) + (0.64rem * 2)) * 1.3);
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0) 45%),
    linear-gradient(165deg, rgba(16, 16, 16, 0.96) 0%, rgba(7, 7, 7, 0.99) 100%);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(212, 175, 55, 0.08),
    0 0 28px rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.messenger-capsule::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.14);
  pointer-events: none;
}
.messenger-pill {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background:
    radial-gradient(90% 100% at 30% 22%, rgba(255, 227, 152, 0.18) 0%, rgba(235, 186, 71, 0.06) 48%, rgba(212, 175, 55, 0.02) 100%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 168, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 175, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.messenger-pill--tg {
  position: relative;
  animation: tg-breathe 2.4s ease-in-out infinite;
}
.messenger-pill--tg::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(244, 218, 144, 0.48);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.24);
  opacity: 0;
  animation: tg-ping 2.4s ease-out infinite;
  pointer-events: none;
}
.messenger-pill--tg::after {
  content: "BOT";
  position: absolute;
  top: -8px;
  right: -7px;
  min-width: 22px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(244, 218, 144, 0.62);
  background: linear-gradient(180deg, rgba(39, 33, 16, 0.98) 0%, rgba(19, 15, 8, 0.98) 100%);
  color: #f5de9a;
  font-family: "Cinzel", serif;
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.06em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), 0 0 12px rgba(212, 175, 55, 0.15);
  pointer-events: none;
}
.messenger-pill:hover {
  color: #ffffff;
  border-color: rgba(244, 218, 144, 0.7);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 177, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(212, 175, 55, 0.22);
}
.messenger-pill:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 168, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

@keyframes tg-breathe {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 232, 168, 0.16),
      inset 0 -1px 0 rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(212, 175, 55, 0.08);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 236, 177, 0.22),
      inset 0 -1px 0 rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(212, 175, 55, 0.14),
      0 0 20px rgba(212, 175, 55, 0.22);
  }
}

@keyframes tg-ping {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  70% {
    transform: scale(1.14);
    opacity: 0;
  }
  100% {
    transform: scale(1.14);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .messenger-pill--tg,
  .messenger-pill--tg::before {
    animation: none;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1020px) {
  .nav { display: none; }
  .main-nav { display: none; }
  .logo { display: none; }
  .mobile-menu-trigger { display: inline-flex; }
  .mobile-menu-trigger { flex: 0 0 44px; }
  .header-actions .btn.btn-sm { display: none; }
  .header-actions { margin-left: auto; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 5.6rem;
  }
  .hero-media { min-height: 380px; order: -1; }
  .image-main { inset: 0 0 30px 22px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .media-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 260px 260px;
  }
  .media-tile.wide { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .offer-grid,
  .process-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 0.7rem 0.84rem;
    justify-content: flex-start;
    gap: 0.6rem;
  }
  .logo::before {
    width: 132px;
    height: 60px;
  }
  .btn, .hero-actions .btn-ghost { width: 100%; }
  .header-actions {
    width: auto;
    min-width: 0;
    margin-left: auto;
  }
  .lang-switch { width: auto; justify-content: space-between; }
  .benefits { grid-template-columns: 1fr; }
  .company-offer__meta { grid-template-columns: 1fr; }
  .stats li { width: 100%; }
  .hero-media { min-height: 330px; }
  .image-main { inset: 0 0 18px 0; }
  .image-floating { width: 62%; height: 130px; left: -2px; }
  .messenger-capsule {
    padding: 0.52rem 0.56rem;
    gap: 0.42rem;
    width: calc(((40px * 3) + (0.42rem * 2) + (0.56rem * 2)) * 1.3);
  }
  .messenger-pill { width: 40px; height: 40px; }
  .site-header {
    padding: 0.7rem 0.84rem;
  }
  .brand-logo {
    width: 132px;
  }
  .header-actions {
    width: auto;
    min-width: 0;
    margin-left: auto;
  }
  .offer-meta {
    grid-template-columns: 1fr;
  }
}


.service-catalog {
  gap: 1rem;
}
.section-intro {
  max-width: 78ch;
  margin: 0 0 1.25rem;
  color: var(--muted);
}
.service-copy {
  max-width: 900px;
}
.service-copy p {
  margin: 0 0 0.9rem;
}
.service-copy p:last-child {
  margin-bottom: 0;
}
