/* ==========================================
   RELOLOKI — Main Stylesheet
   Halogen Industrial · Linear-adjacent · Dark
   ========================================== */

@import url('tokens.css');

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Mobile: disable pinch-zoom and horizontal panning, keep vertical scroll */
  touch-action: pan-y;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--fg-1);
  background: var(--bg-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01","cv11","cv09";
  letter-spacing: -0.005em;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  max-width: 100%;
}

img { max-width: 100%; display: block; }

/* Brand close affordance — airplane symbol lifted from the Reloloki logo,
   used as a CSS mask so it tints via currentColor (muted → accent). */
:root { --airplane-icon: url('../assets/images/airplane.svg'); }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.028em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.1; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; }
h4 { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: 96px 0; }

.section--alt { background: var(--bg-1); }

.section__title {
  text-align: center;
  margin-bottom: 16px;
  color: var(--fg-0);
}

.section__title--left { text-align: left; }

.section__subtitle {
  text-align: center;
  color: var(--fg-2);
  max-width: 560px;
  margin: 0 auto 56px;
  font-size: 1rem;
  line-height: 1.6;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-4);
  overflow: hidden;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-3);
  background: var(--bg-2);
  color: var(--fg-0);
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  text-align: center;
  white-space: nowrap;
}

.btn:hover { background: var(--bg-3); transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 0 22px rgba(var(--accent-rgb),.50);
  transition: background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.btn-primary:hover {
  background: var(--accent-press);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 0 30px rgba(var(--accent-rgb),.65);
}

.btn-primary:disabled,
.btn-primary[disabled] {
  background: var(--bg-3);
  color: var(--fg-3);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--line-3);
}

.btn-outline:hover {
  background: var(--bg-2);
  border-color: var(--line-3);
  color: var(--fg-0);
}

.header__cabinet,
.mobile-menu__cabinet {
  background: transparent !important;
  color: var(--fg-2) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: var(--r-pill) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.header__cabinet:hover,
.mobile-menu__cabinet:hover {
  background: var(--bg-2) !important;
  border-color: var(--line-3) !important;
  color: var(--fg-0) !important;
}

.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* WhatsApp quick-contact button (brand green, distinct from coral CTA) */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #25D366;
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
  transition: background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.btn-whatsapp:hover {
  background: #1ebe5b;
  box-shadow: 0 0 18px rgba(37,211,102,.45);
  transform: translateY(-1px);
}

.btn-whatsapp__icon { flex-shrink: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,9,11,0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.header--scrolled { border-bottom-color: var(--line-1); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.header__logo:hover { color: var(--fg-0); }

.header__logo-img { height: 30px; width: auto; display: block; }
.footer__logo-img { height: 26px; width: auto; display: block; }

.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background:
    radial-gradient(circle at 30% 30%, var(--accent) 0%, var(--accent) 22%, transparent 23%),
    linear-gradient(135deg, var(--bg-4), var(--bg-1));
  box-shadow: inset 0 0 0 1px var(--line-3);
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: "";
  position: absolute; inset: 5px; border-radius: 3px;
  background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255,255,255,.04) 3px 4px);
}

.header__logo-icon { font-size: 18px; }

.nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav__link {
  color: var(--fg-2);
  font-weight: 500;
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav__link::after { display: none; }

.nav__link:hover { color: var(--fg-0); background: var(--bg-2); }

/* ---------- Language Dropdown ---------- */
#lang-switcher, #lang-switcher-mobile { position: relative; }

.lang-dropdown { position: relative; }

.lang-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--mono);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  letter-spacing: .06em;
  white-space: nowrap;
}

.lang-dropdown__toggle:hover { border-color: var(--line-3); color: var(--fg-0); }

.lang-dropdown__flag { font-size: 14px; line-height: 1; }

.lang-dropdown__arrow {
  font-size: 9px;
  transition: transform var(--transition);
  color: var(--fg-3);
}

.lang-dropdown__toggle[aria-expanded="true"] .lang-dropdown__arrow { transform: rotate(180deg); }

.lang-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  box-shadow: var(--el-2);
  z-index: 2000;
  padding: 4px 0;
}

.lang-dropdown__menu--open { display: block; }

.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  color: var(--fg-1);
  font-size: 13px;
  font-family: var(--sans);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
  text-align: left;
}

.lang-dropdown__item:hover { background: var(--bg-3); }

.lang-dropdown__item--active { background: var(--bg-3); color: var(--fg-0); font-weight: 500; }

.lang-dropdown__item-flag { font-size: 14px; line-height: 1; }
.lang-dropdown__item-name { line-height: 1.3; }

.header__cta { padding: 8px 16px; font-size: 13px; }

.hamburger {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* Keep a comfortable ≥44px tap target without enlarging the visual icon. */
.hamburger::before {
  content: '';
  position: absolute;
  inset: -6px;
}

.hamburger__line {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--fg-2);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Branded airplane revealed when the menu is open — replaces the classic X. */
.hamburger__plane {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px; height: 22px;
  background-color: var(--accent);
  -webkit-mask: var(--airplane-icon) center / contain no-repeat;
          mask: var(--airplane-icon) center / contain no-repeat;
  opacity: 0;
  transform: scale(.55) rotate(8deg);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.hamburger--active .hamburger__line { opacity: 0; transform: scale(.4); }
.hamburger--active .hamburger__plane { opacity: 1; transform: scale(1) rotate(0deg); }
/* Take-off lift on hover (desktop / fine pointers). */
.hamburger--active:hover .hamburger__plane { transform: translate(2px, -2px) rotate(-12deg); }

.mobile-menu {
  display: none;
  background: var(--bg-1);
  border-top: 1px solid var(--line-1);
  padding: 20px 24px;
}

.mobile-menu--open { display: block; }

.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }

.mobile-menu__link {
  color: var(--fg-1);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-1);
}

.mobile-menu__link:hover { color: var(--fg-0); }

.mobile-menu__cta { margin-top: 12px; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-0);
  color: var(--fg-0);
  padding: 160px 0 100px;
  min-height: 100vh;
  min-height: 100svh; /* fill the whole first screen — svh excludes mobile URL bar */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-1);
}

/* radial glow behind hero */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb),.10) 0%, transparent 65%);
  pointer-events: none;
}

.hero__bg-pattern {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .55;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero__content { max-width: 780px; }

/* eyebrow pill above h1 — hidden for SaaS hero (kept for legacy markup) */
.hero__content::before {
  content: "";
  display: none;
  align-items: center;
  align-items: center;
  margin-bottom: 28px;
  padding: 4px 14px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--fg-2);
  background: var(--bg-1);
}

.hero__title {
  color: var(--fg-0);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  margin-bottom: 24px;
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--fg-2);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.005em;
}

.hero__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* override for hero context — accent btn already uses --accent */
.hero .btn-primary { /* no override needed */ }

.hero .btn-outline {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--line-3);
}

.hero .btn-outline:hover {
  background: var(--bg-2);
  border-color: var(--line-3);
  color: var(--fg-0);
}

.hero__cabinet-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--fg-3);
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: .04em;
  transition: color var(--transition);
}

.hero__cabinet-link:hover { color: var(--fg-1); }

/* SaaS hero headline — bold uppercase slogan */
.hero__title--saas {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

/* Per-sentence spans (wrapped by main.js). Inline on desktop, one per line on mobile. */
.hero__title--saas .hero-line { display: inline; }

/* free-access caption between the two CTAs */
.hero__free-access {
  display: inline-block;
  margin: 14px auto 18px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: opacity .15s ease;
  white-space: nowrap; /* desktop: single line */
}
.hero__free-access:hover { opacity: .75; }

.hero__buttons--secondary { margin-top: 0; }
/* register + plans CTAs share the same width (matches the mockup) */
.hero__buttons .btn { min-width: 280px; }

.hero__stats {
  display: flex;
  gap: 14px;
  background: transparent;
  overflow: visible;
}

/* Each stat is its own card, outlined and glowing in the brand accent. */
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 48px;
  flex: 1;
  border: 1px solid var(--accent);
  border-radius: var(--r-3);
  background: var(--bg-1);
  box-shadow: 0 0 24px -6px rgba(var(--accent-rgb), .45);
}

.hero__stat-number {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.03em;
  font-family: var(--mono);
}

.hero__stat-label {
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 4px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ---------- Services ---------- */
.service-card {
  background: var(--bg-1);
  border: 0;
  border-radius: 0;
  padding: 40px;
  transition: background var(--duration-fast) var(--ease-out);
}

.service-card:hover { background: var(--bg-2); }

.service-card__icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.service-card__title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-0);
}

.service-card__text {
  color: var(--fg-2);
  line-height: 1.6;
  font-size: 13.5px;
}

/* ---------- Plans / Pricing ---------- */
.plans__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-4);
  padding: 28px 24px;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.plan-card:hover {
  background: var(--bg-2);
  border-color: var(--line-3);
  transform: translateY(-2px);
}

.plan-card--featured {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  box-shadow: 0 0 28px rgba(var(--accent-rgb),.20);
}

.plan-card__badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.plan-card__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-0);
  margin-bottom: 10px;
}

.plan-card__price {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.plan-card__desc {
  color: var(--fg-2);
  line-height: 1.6;
  font-size: 13px;
  margin-bottom: 22px;
  flex: 1;
}

.plan-card__cta { width: 100%; }

.plans__note {
  text-align: center;
  margin-top: 32px;
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- How It Works (Steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-1);
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--line-1);
}

.steps::before { display: none; }

.step {
  background: var(--bg-1);
  padding: 32px 28px;
  text-align: left;
  position: relative;
  transition: background var(--duration-fast) var(--ease-out);
}

.step:hover { background: var(--bg-2); }

.step__number {
  width: 28px; height: 28px;
  border-radius: var(--r-1);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
  margin: 0 0 20px;
  letter-spacing: .04em;
}

.step__title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.01em;
}

.step__text {
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.55;
}

.steps__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

/* ---------- About ---------- */
.about { background: var(--bg-0); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 640px;
  gap: 40px;
  align-items: center;
}

.about__text {
  color: var(--fg-2);
  margin-bottom: 28px;
  line-height: 1.65;
  font-size: 15px;
}

.about__list { display: flex; flex-direction: column; gap: 12px; }

.about__list-item {
  padding: 12px 16px 12px 44px;
  position: relative;
  line-height: 1.5;
  font-size: 14px;
  color: var(--fg-1);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-2);
}

.about__list-item::before {
  content: '✓';
  position: absolute;
  left: 16px;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq { background: var(--bg-1); }

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--line-1);
  border-radius: var(--r-3);
  overflow: hidden;
}

.faq__item {
  border: none;
  border-bottom: 1px solid var(--line-1);
  background: var(--bg-1);
  overflow: hidden;
  transition: background var(--duration-fast) var(--ease-out);
}

.faq__item:last-child { border-bottom: none; }

.faq__item:hover { background: var(--bg-2); }

.faq__question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-0);
  font-family: var(--sans);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.faq__question:hover { color: var(--fg-0); }

.faq__icon {
  font-size: 18px;
  font-weight: 300;
  color: var(--fg-3);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
  font-family: var(--mono);
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item--open .faq__answer { max-height: 320px; }

.faq__answer p {
  padding: 0 24px 20px;
  color: var(--fg-2);
  line-height: 1.65;
  font-size: 13.5px;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-0); }

.contact__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--bg-1);
  padding: 36px;
  border-radius: var(--r-4);
  border: 1px solid var(--line-1);
}

.contact-form__group { margin-bottom: 18px; }

.contact-form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fg-2);
}

.contact-form__input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  font-size: 14px;
  font-family: var(--sans);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  background: var(--bg-2);
  color: var(--fg-0);
  letter-spacing: -0.005em;
}

.contact-form__input::placeholder { color: var(--fg-4); }

.contact-form__input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form__textarea { resize: vertical; min-height: 100px; }

.contact-form__submit { width: 100%; margin-top: 4px; }

.contact-info { display: flex; flex-direction: column; gap: 0; }

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-1);
}

.contact-info__item:first-child { padding-top: 0; }
.contact-info__item:last-child { border-bottom: none; }

.contact-info__icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.contact-info__label {
  font-size: 11px;
  color: var(--fg-3);
  margin-bottom: 2px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.contact-info__value { font-weight: 500; color: var(--fg-0); font-size: 14px; }

a.contact-info__value:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-1);
  color: var(--fg-2);
  padding-top: 56px;
  border-top: 1px solid var(--line-1);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo {
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-0);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.footer__logo:hover { color: var(--fg-0); }

.footer__description {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
  color: var(--fg-3);
  max-width: 32ch;
}

.footer__heading {
  color: var(--fg-2);
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__link {
  color: var(--fg-3);
  font-size: 13px;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover { color: var(--fg-1); }

.footer__bottom {
  border-top: 1px solid var(--line-1);
  padding: 18px 0;
  font-size: 11px;
  color: var(--fg-4);
  font-family: var(--mono);
  letter-spacing: .06em;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom-inner > p { margin: 0; }

.footer__legal-link {
  color: var(--fg-3);
  transition: color var(--transition);
}

.footer__legal-link:hover { color: var(--fg-1); }

@media (max-width: 600px) {
  .footer__bottom-inner { justify-content: center; text-align: center; }
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--r-2);
  color: var(--fg-0);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--el-2);
  animation: toastIn 0.25s var(--ease-out), toastOut 0.25s ease 2.75s forwards;
  max-width: 360px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}

.toast--success { border-color: rgba(63,214,140,.3); color: var(--pos); }
.toast--error   { border-color: rgba(242,106,106,.3); color: var(--neg); }
.toast--info    { border-color: rgba(124,168,255,.3); color: var(--info); }

@keyframes toastIn  { from { opacity:0; transform:translateX(24px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform:translateY(-8px); } }

/* ---------- Chat Widget ---------- */
.chat-widget__trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  cursor: pointer;
  box-shadow: var(--el-glow);
  z-index: 9998;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
  animation: pulse 2.5s infinite;
}

.chat-widget__trigger:hover {
  transform: scale(1.08);
  background: var(--accent-press);
}

.chat-widget__trigger--active { animation: none; }

.chat-widget__quick-menu {
  position: fixed;
  bottom: 90px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chat-widget__quick-menu--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-widget__quick-btn {
  background: var(--bg-2);
  color: var(--fg-0);
  border: 1px solid var(--line-3);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--el-1);
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.chat-widget__quick-btn:hover {
  background: var(--bg-3);
  transform: translateY(-1px);
}

/* WhatsApp variant — green, with inline glyph */
.chat-widget__quick-btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff;
  border-color: transparent;
  text-decoration: none;
}

.chat-widget__quick-btn--whatsapp:hover {
  background: #1ebe5b;
}

.chat-widget__quick-btn-icon { display: block; flex-shrink: 0; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.45), var(--el-glow); }
  50% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb),0), var(--el-glow); }
}

.chat-widget__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
}

.chat-widget__overlay--open { display: block; }

.chat-widget__window {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, calc(100vw - 32px));
  height: min(900px, calc(100vh - 32px));
  background: var(--bg-1);
  border-radius: var(--r-4);
  border: 1px solid var(--line-2);
  box-shadow: var(--el-2);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: widgetPopIn 0.22s var(--ease-out);
}

.chat-widget__window--open { display: flex; }

@keyframes widgetPopIn {
  from { opacity:0; transform:translate(-50%,-50%) scale(0.96); }
  to   { opacity:1; transform:translate(-50%,-50%) scale(1); }
}

.chat-widget__header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-1);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-widget__header-title { font-weight: 500; font-size: 14px; color: var(--fg-0); }
.chat-widget__header-subtitle { font-size: 11px; color: var(--fg-3); font-family: var(--mono); letter-spacing: .04em; }
.chat-widget__header-left { flex: 1; min-width: 0; }
.chat-widget__header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.chat-widget__type-switcher { display: none; align-items: center; gap: 4px; }

.chat-widget__type-btn {
  border: 1px solid var(--line-3);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--mono);
  letter-spacing: .04em;
  transition: background var(--duration-fast) var(--ease-out);
}

.chat-widget__type-btn--active {
  background: var(--bg-3);
  color: var(--fg-0);
}

.chat-widget__type-btn--inactive {
  background: transparent;
  color: var(--fg-3);
  border-color: var(--line-2);
}

.chat-widget__type-btn--inactive:hover { background: var(--bg-2); color: var(--fg-1); }

.chat-widget__close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: none;
  border: none;
  color: var(--fg-3);
  cursor: pointer;
  padding: 0;
  transition: color var(--duration-fast) var(--ease-out);
}

/* ≥44px tap target without inflating the compact header. */
.chat-widget__close::before {
  content: '';
  position: absolute;
  inset: -8px;
}

.chat-widget__close-icon {
  width: 18px; height: 18px;
  background-color: currentColor;
  -webkit-mask: var(--airplane-icon) center / contain no-repeat;
          mask: var(--airplane-icon) center / contain no-repeat;
  transition: transform var(--transition);
}

.chat-widget__close:hover { color: var(--accent); }
/* Take-off lift on hover. */
.chat-widget__close:hover .chat-widget__close-icon { transform: translate(2px, -2px) rotate(-12deg); }

.chat-widget__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-0);
}

.chat-widget__message {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: var(--r-3);
  font-size: 13.5px;
  line-height: 1.5;
  animation: messageIn 0.22s var(--ease-out);
}

@keyframes messageIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

.chat-widget__message--bot {
  background: var(--bg-2);
  color: var(--fg-1);
  border: 1px solid var(--line-1);
  align-self: flex-start;
  border-bottom-left-radius: var(--r-1);
}

.chat-widget__message--user {
  background: var(--accent);
  color: var(--accent-ink);
  align-self: flex-end;
  border-bottom-right-radius: var(--r-1);
}

.chat-widget__options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-self: flex-start;
  animation: messageIn 0.22s var(--ease-out);
}

.chat-widget__option-btn {
  padding: 8px 18px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  transition: all var(--duration-fast) var(--ease-out);
}

.chat-widget__option-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

/* ---------- Contact Form (inside widget) ---------- */
.chat-widget__contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  animation: messageIn 0.22s var(--ease-out);
}

.chat-widget__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  font-size: 13px;
  font-family: var(--sans);
  background: var(--bg-2);
  color: var(--fg-0);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.chat-widget__input::placeholder { color: var(--fg-4); }

.chat-widget__input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.chat-widget__contact-submit { margin-top: 4px; }

/* ---------- Checklist (inside widget) ---------- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  width: 100%;
  animation: messageIn 0.22s var(--ease-out);
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-1);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
  font-size: 13px;
  color: var(--fg-1);
}

.checklist__item:hover { background: var(--bg-3); }

.checklist__checkbox {
  width: 16px; height: 16px;
  border: 1px solid var(--line-3);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 10px;
  color: var(--accent-ink);
}

.checklist__item--checked .checklist__checkbox {
  background: var(--accent);
  border-color: var(--accent);
}

.checklist__label { line-height: 1.3; }
.checklist__required { color: var(--neg); font-size: 11px; }

.checklist__actions { margin-top: 8px; display: flex; gap: 8px; }
.checklist__actions .btn { flex: 1; }

/* ---------- Upload Form ---------- */
.upload-zone {
  border: 1px dashed var(--line-3);
  border-radius: var(--r-2);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  background: var(--bg-2);
  animation: messageIn 0.22s var(--ease-out);
}

.upload-zone:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.upload-zone--dragover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: scale(1.01);
}

.upload-zone__icon { font-size: 24px; margin-bottom: 8px; }

.upload-zone__text {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}

.upload-zone__text strong { color: var(--accent); }
.upload-zone__hint { font-size: 11px; color: var(--fg-3); margin-top: 6px; font-family: var(--mono); letter-spacing: .04em; }

.upload-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  animation: messageIn 0.22s var(--ease-out);
}

.upload-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-1);
  font-size: 13px;
}

.upload-file-item--error { border-color: rgba(242,106,106,.4); }
.upload-file-item__icon { font-size: 16px; flex-shrink: 0; }
.upload-file-item__info { flex: 1; min-width: 0; }
.upload-file-item__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-0); }
.upload-file-item__size { font-size: 11px; color: var(--fg-3); font-family: var(--mono); }
.upload-file-item__error { font-size: 11px; color: var(--neg); }

.upload-file-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-3);
  font-size: 16px;
  padding: 2px;
  transition: color var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.upload-file-item__remove:hover { color: var(--neg); }

.upload-progress {
  width: 100%; height: 2px;
  background: var(--line-2);
  border-radius: 1px;
  margin-top: 4px;
  overflow: hidden;
}

.upload-progress__bar {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  width: 0%;
  transition: width 0.3s ease;
}

.upload-progress__bar--done { background: var(--pos); }
.upload-submit { width: 100%; margin-top: 10px; }
.upload-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ---------- Media Queries ---------- */
@media (max-width: 1200px) {
  .container { padding: 0 28px; }
  .nav { gap: 0; }
  .nav__link { padding: 6px 10px; font-size: 13px; }
  .header__cabinet, .header__cta { padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__title { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  .contact__inner { gap: 28px; }
  .hero__stat { padding: 18px 28px; }
  .plans__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) and (min-width: 681px) {
  .nav { gap: 0; }
  .nav__link { font-size: 12px; padding: 5px 8px; }
  .header__cabinet, .header__cta { padding: 5px 10px; font-size: 11px; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 64px 0; }
}

@media (max-width: 680px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .nav, .header__cta, .header__cabinet { display: none; }

  #lang-switcher { margin-right: auto; margin-left: 12px; }
  #lang-switcher-mobile { margin-top: 8px; }
  #lang-switcher-mobile .lang-dropdown__menu {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    max-height: 50vh;
    border-radius: var(--r-4) var(--r-4) 0 0;
    min-width: 100%;
  }

  .hamburger { display: flex; }
  .mobile-menu__cabinet { margin-top: 4px; text-align: center; }

  .hero { padding: 130px 0 64px; min-height: 100vh; min-height: 100svh; }
  .hero__inner { text-align: center; align-items: center; }
  .hero__buttons { justify-content: center; }
  /* mobile: wrap the free-access link onto two lines */
  .hero__free-access { white-space: normal; max-width: 15rem; text-align: center; }
  .hero__title { font-size: 2.25rem; }
  .hero__title--saas .hero-line { display: block; }
  .hero__subtitle { font-size: 1rem; }
  .hero__stats { flex-direction: row; gap: 8px; }
  .hero__stat { padding: 14px 6px; }
  .hero__stat-number { font-size: 1.35rem; }
  .hero__stat-label { font-size: 9.5px; letter-spacing: .06em; }
  .plans__grid { grid-template-columns: 1fr; }

  .grid-2 { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 0; }
  .section__subtitle { margin-bottom: 32px; }

  .chat-widget__window {
    top: 0; left: 0; transform: none;
    width: 100%; height: 100%;
    max-width: 100%; max-height: 100%;
    border-radius: 0;
  }

  .chat-widget__trigger { bottom: 16px; right: 16px; width: 48px; height: 48px; font-size: 20px; }
  .chat-widget__quick-menu { bottom: 78px; right: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 1.85rem; }
  .hero__subtitle { font-size: 0.95rem; }
  .hero__buttons, .steps__cta { flex-direction: column; align-items: stretch; }
  .hero__buttons .btn, .steps__cta .btn { width: 100%; text-align: center; }
  .hero__buttons .btn { min-width: 0; }
  .steps { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .faq__question { padding: 16px 16px; font-size: 13.5px; }
  .faq__answer p { padding: 0 16px 16px; }
  .service-card { padding: 28px; }
  .toast-container { right: 12px; left: 12px; }
  .toast { max-width: 100%; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero { padding: 110px 0 48px; }
  .hero__title { font-size: 1.6rem; }
  h2 { font-size: 1.5rem; }
  .header__inner { height: 56px; }
  .mobile-menu { padding: 16px; }
}

@media (max-width: 680px) { .footer__bottom { padding-bottom: 80px; } }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .chat-widget__trigger { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================
   Cookie Consent Banner
   ========================================== */

.consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  width: 20vw;
  min-width: 260px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-4);
  box-shadow: var(--el-2);
  animation: consentSlideUp 0.25s var(--ease-out);
}

.consent-banner--hiding {
  animation: consentSlideDown 0.3s ease forwards;
}

.consent-banner__text {
  margin: 0;
  color: var(--fg-1);
  font-size: 0.875rem;
  line-height: 1.5;
}

.consent-banner__link {
  display: inline-block;
  margin-top: -4px;
  font-size: 0.8125rem;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.consent-banner__link:hover { color: var(--accent-press); }

.consent-banner__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.consent-banner__btn {
  width: 100%;
  justify-content: center;
}

@keyframes consentSlideUp {
  from { transform: translateY(calc(100% + 20px)); }
  to   { transform: translateY(0); }
}

@keyframes consentSlideDown {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(100% + 20px)); }
}

@media (max-width: 600px) {
  .consent-banner {
    width: calc(100vw - 32px);
    left: 16px;
    bottom: 16px;
    min-width: unset;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner { animation: none; }
  .consent-banner--hiding { animation: none; }
}
