/* ═══════════════════════════════════════════════════════
   veebikoht.ee — stylesheet v3
   Dark, amber accent, card-based layout
   ═══════════════════════════════════════════════════════ */

.anchor-offset {
  scroll-margin-top: 90px;
}

/* yellow CTA: keep it in one line on mobile */
@media (max-width: 767px) {
  .button.primary {        /* если у жёлтой другой класс — скажи, заменю точно */
    white-space: nowrap;
    min-width: 0;
  }

  .hero-cta {              /* контейнер кнопок */
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-cta .button {
    flex: 1 1 200px;
  }
}
@media (max-width: 767px) {
  .hero {
    padding: 0 !important;
  }
}
/* Hide .nav-cta on phones */
@media (max-width: 767px) {
  .nav-cta {
    display: none !important;
  }
}
:root {
  --bg:          #0d0f14;
  --bg-2:        #13161e;
  --bg-card:     #181c26;
  --border:      rgba(255,255,255,0.07);
  --accent:      #e8a830;
  --accent-dim:  rgba(232,168,48,0.10);
  --accent-hover:#f5bf55;
  --text:        #eaebf0;
  --text-muted:  #8a8fa8;
  --text-faint:  #3a3f55;
  --green:       #3ecf6e;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-w:  1120px;
  --r:      12px;
  --r-sm:   8px;
  --ease:   200ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ─── Notification ───────────────────────────────────── */
.notification {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 1000; padding: .8rem 1.5rem; border-radius: var(--r);
  font-size: .9rem; font-weight: 500; max-width: min(92vw, 520px);
  box-shadow: 0 8px 32px rgba(0,0,0,.5); animation: slideDown .3s ease; text-align: center;
}
.notification--success { background: #122d1a; border: 1px solid #2a7a3f; color: #7de09a; }
.notification--error   { background: #2d1212; border: 1px solid #7a2a2a; color: #e09090; }
@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(13,15,20,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--text); letter-spacing: -.01em;
}
.logo:hover { color: var(--text); }
.logo-sm { font-size: 1rem; }
.logo-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%; margin-bottom: 1px; flex-shrink: 0;
}
.logo-tld { color: var(--accent); }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav a { font-size: .875rem; color: var(--text-muted); font-weight: 500; }
.header-nav a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: .4rem 1.1rem; background: var(--accent);
  color: #0d0f14 !important; border-radius: var(--r-sm);
  font-weight: 700; font-size: .85rem;
  transition: background var(--ease), transform var(--ease);
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); color: #0d0f14 !important; }
@media (max-width: 600px) { .header-nav a:not(.nav-cta) { display: none; } }

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem .8rem; border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 700; cursor: pointer; border: none;
  text-decoration: none;
  transition: background var(--ease), transform var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #0d0f14; }
.btn-primary:hover {
  background: var(--accent-hover); color: #0d0f14;
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(232,168,48,.28);
}
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-submit { width: 100%; padding: .9rem 2rem; font-size: 1rem; border-radius: var(--r); }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; padding: 7rem 0 5rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 20%, transparent 80%);
}
.hero-glow {
  position: absolute; top: -5%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,168,48,.07) 0%, transparent 65%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -.03em; color: #fff;
  margin-bottom: 1.25rem; animation: fadeUp .55s ease both;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-muted);
  margin-bottom: 2rem; line-height: 1.65; animation: fadeUp .55s .1s ease both;
}
.price-block {
  display: flex; flex-direction: column; gap: 1.6rem;
  margin-bottom: 2.25rem; animation: fadeUp .55s .2s ease both;
}
.price-badge {
  display: inline-flex; align-items: baseline; gap: .2rem;
  background: var(--accent-dim); border: 1px solid rgba(232,168,48,.25);
  color: var(--accent); padding: .45rem 2.1rem; border-radius: 999px;
  font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; width: fit-content;
}
.price-period { font-size: .8rem; font-weight: 600; opacity: .8; }
.price-bonus { font-size: .9rem; color: var(--green); font-weight: 600; padding-left: .25rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp .55s .3s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Sections ───────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-dark {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-form { background: var(--bg-2); border-top: 1px solid var(--border); }
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .65rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.025em;
  color: #fff; margin-bottom: 2.5rem;
}

/* ─── Cards (shared) ─────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  transition: border-color var(--ease), transform var(--ease);
}
.card:hover { border-color: rgba(232,168,48,.25); transform: translateY(-3px); }
.card-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1rem; }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Steps ──────────────────────────────────────────── */
.steps { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 200px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2rem 1.5rem; text-align: center;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--accent-dim); border: 1.5px solid rgba(232,168,48,.3);
  color: var(--accent); border-radius: 50%;
  font-size: 1.1rem; font-weight: 800; margin: 0 auto 1rem;
  font-family: var(--font-display);
}
.step h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.step p  { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }
.step-arrow { font-size: 1.5rem; color: var(--text-faint); align-self: center; flex-shrink: 0; padding-bottom: 1rem; }
@media (max-width: 640px) {
  .step-arrow { display: none; }
  .steps { flex-direction: column; }
  .step { width: 100%; }
}

/* ─── FAQ ────────────────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem; align-items: start;
}
.faq-header .section-title { margin-bottom: 0; }
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-card); overflow: hidden; transition: border-color var(--ease);
}
.faq-item[open] { border-color: rgba(232,168,48,.2); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1rem 1.25rem;
  font-size: .925rem; font-weight: 600; color: var(--text);
  cursor: pointer; user-select: none; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.3rem; font-weight: 300;
  color: var(--accent); flex-shrink: 0; transition: transform var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-answer {
  padding: .75rem 1.25rem 1.1rem;
  font-size: .875rem; color: var(--text-muted); line-height: 1.7;
  border-top: 1px solid var(--border);
}
@media (max-width: 768px) { .faq-layout { grid-template-columns: 1fr; gap: 2rem; } }

/* ─── Form ───────────────────────────────────────────── */
.form-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.form-intro p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; margin-bottom: .75rem; }
.form-email { margin-top: 1.25rem !important; }
.form-email a { font-size: 1rem; font-weight: 600; }
.form-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 2rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; gap: 2.5rem; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.req { color: var(--accent); }
.opt { font-weight: 400; opacity: .65; }
.field input,
.field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text); font-family: var(--font-body); font-size: .9rem;
  padding: .7rem 1rem; width: 100%; resize: vertical;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,168,48,.12); }
.form-consent { font-size: .78rem; color: var(--text-faint); margin-top: .6rem; line-height: 1.5; text-align: center; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand p { font-size: .875rem; color: var(--text-muted); margin-top: .75rem; line-height: 1.65; }
.footer-links h3,
.footer-contact h3 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-faint); font-weight: 700; margin-bottom: .75rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { font-size: .875rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-contact p { font-size: .875rem; color: var(--text-muted); line-height: 1.9; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.1rem 0; }
.footer-bottom .container {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: var(--text-faint); flex-wrap: wrap; gap: .5rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ─── Scroll to top ──────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(232,168,48,.2);
}
.scroll-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─── Lang switcher ──────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-left: .5rem;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
  padding: .25rem .35rem;
  border-radius: 4px;
  transition: color var(--ease), background var(--ease);
  line-height: 1;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--accent); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-sep {
  color: var(--text-faint);
  font-size: .75rem;
  user-select: none;
}

/* ─── Scroll to top ──────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(232,168,48,.2);
}
.scroll-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .hero { 
    align-items: flex-start; 
    padding-top: calc(100px + env(safe-area-inset-top, 0px) + 18px) !important;
    padding-bottom: 1rem !important;
  }

  .hero-cta {
    display: flex;
    flex-wrap: wrap;      /* кнопки могут переноситься */
    gap: 12px;
  }

  .hero-cta .button {
    flex: 1 1 220px;      /* стараемся держать в ряд, но позволяем перенос */
    min-width: 0;
  }
}

.faq-more {
  margin-top: 12px;
}
