:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --card: #1e1e1e;
  --text: #f5f4f2;
  --text-2: #b8b2a8;
  --accent: #ff8a3d;
  --accent-light: #ffb066;
  --ok: #6ee79a;
  --danger: #ff7a6b;
  --border: #6b665f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Heebo, Arial, sans-serif; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-light); }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
[id] { scroll-margin-top: 16px; }

.container { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 20; }
.skip-link:focus { top: 12px; color: var(--bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; border-radius: 10px; border: 0; font: 700 16px/1.2 Heebo, Arial, sans-serif; text-decoration: none; cursor: pointer; }
.btn--lg { padding: 16px 26px; border-radius: 12px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: var(--accent-light); color: var(--bg); }
.btn--accent[disabled] { opacity: .65; cursor: progress; }
.btn--dark { background: var(--bg-2); color: var(--text); }
.btn--dark:hover { background: #2a2a2a; color: var(--text); }
.btn--outline { border: 1px solid var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--bg); }

/* Header */
.site-header { background: var(--text); color: var(--bg-2); }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 12px; }
.site-header__logo img { height: 48px; width: auto; }
.site-nav { display: flex; gap: 4px; font-size: 16px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bg-2); text-decoration: none; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.site-nav a:hover { background: #e4e2de; color: var(--bg-2); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero__content { position: relative; padding-block: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero__tagline { color: var(--accent-light); font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.hero h1 { font-size: 64px; line-height: 1.05; font-weight: 900; max-width: 760px; }
.hero p { font-size: 21px; color: #e2ddd4; max-width: 640px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Sections */
.section { padding-block: 80px; display: flex; flex-direction: column; gap: 28px; }
.band { background: var(--bg-2); }
.eyebrow { color: var(--accent); font-weight: 700; }
.section__head h2 { margin-top: 4px; }
h2 { font-size: 40px; font-weight: 900; line-height: 1.15; }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--work { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid--clients { grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; }

.card { background: var(--card); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__num { width: 44px; height: 44px; border-radius: 12px; background: #2a1c12; color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p, .why p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

.work { margin: 0; border-radius: 14px; overflow: hidden; background: var(--card); }
.work img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.work figcaption { padding: 10px 14px; font-size: 14px; color: #d6d1c8; }

.why { border-top: 3px solid var(--accent); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.why__num { color: var(--accent); font-weight: 900; font-size: 28px; }
.why h3 { font-size: 20px; font-weight: 700; }

.portal-cta { background: var(--card); border-radius: 16px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.portal-cta__title { font-weight: 700; font-size: 19px; }
.portal-cta__text { color: var(--text-2); font-size: 15px; }

/* Clients */
.clients { background: var(--text); color: var(--bg-2); }
.clients__inner { padding-block: 56px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.clients h2 { font-size: 30px; text-align: center; }
.grid--clients img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 12px; }

/* Quote */
.quote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.quote__intro { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.quote__intro p { color: var(--text-2); font-size: 17px; line-height: 1.6; }
.quote__phone, .quote__email { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.quote__phone { font-size: 22px; font-weight: 700; color: var(--text); }
.quote__email { color: var(--text-2); font-size: 16px; }

.form { background: var(--card); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--text); font: 16px Heebo, Arial, sans-serif; min-height: 48px; }
.field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 14px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form__status { border-radius: 10px; padding: 12px 14px; font-size: 15px; background: var(--bg-2); }
.form__status[data-kind="ok"] { color: var(--ok); }
.form__status[data-kind="error"] { color: var(--danger); }
.form__status a { color: var(--accent-light); font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid #262626; padding-bottom: 72px; }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; color: var(--text-2); font-size: 14px; }

/* Floating WhatsApp (inline-end = left side in RTL) */
.wa-float { position: fixed; inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #0a0a0a; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.45); z-index: 10; }
.wa-float:hover { background: #4be083; color: #0a0a0a; }

/* Simple centered page (login) */
.simple-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.simple-card { background: var(--card); border-radius: 16px; padding: 32px 24px; max-width: 460px; width: 100%; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.simple-card__logo { background: var(--text); border-radius: 12px; padding: 10px 16px; }
.simple-card__logo img { height: 48px; width: auto; }
.simple-card h1 { font-size: 28px; font-weight: 900; }
.simple-card p { color: var(--text-2); }
.simple-card__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4, .grid--work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quote { grid-template-columns: minmax(0, 1fr); }
  .site-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 56px; }
  .hero__content { padding-block: 72px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 18px; }
  h2 { font-size: 30px; }
  .clients h2 { font-size: 24px; }
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--clients { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .site-nav { font-size: 15px; justify-content: space-between; gap: 0; }
  .site-nav a { padding-inline: 4px; }
  .hero__actions .btn { flex: 1 1 auto; }
}
