/* ===== Yerel fontlar (TTF) =====
   /fonts/Rubik-Regular.ttf ve /fonts/Rubik-Bold.ttf dosyalarını ekleyin.
*/
@font-face {
  font-family: "RubikLocal";
  src: url("../fonts/Rubik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RubikLocal";
  src: url("../fonts/Rubik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Temel ===== */
:root{
  --bg:#0e0f12;
  --card:#16171c;
  --ink:#e9e9f0;
  --muted:#a6a8b3;
  --accent:#ff6437; /* rocket alevi */
  --accent-2:#ffc13b; /* sıcak parıltı */
  --border: #262833;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --radius-sm: 12px;
  --speed: .7s;
}
*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1200px 600px at 80% -20%, rgba(255,100,55,.12), transparent 60%) var(--bg);
  color: var(--ink);
  font-family: "RubikLocal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

/* Erişilebilirlik yardımcıları */
.muted{ color: var(--muted); }
.container{
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ===== Sabit Header ===== */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: linear-gradient( to bottom, rgba(14,15,18,.9), rgba(14,15,18,.6) );
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{
  color: var(--ink); text-decoration:none; font-weight:700; letter-spacing:.3px;
  display:inline-block; padding:6px 10px; border-radius: 10px;
}
.brand:hover{ background: rgba(255,255,255,.06); }

/* Menü */
.nav{ position: relative; }
.burger{
  display:none; border:0; background:transparent; padding:8px; border-radius:12px;
}
.burger:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
.burger-line{
  display:block; width:26px; height:2px; background:var(--ink); margin:6px 0; transition: transform .3s ease, opacity .3s ease;
}
.menu{
  list-style:none; margin:0; padding:0; display:flex; gap: 18px;
}
.menu a{
  color:var(--ink); text-decoration:none; padding:10px 12px; border-radius:12px;
}
.menu a:hover{ background: rgba(255,255,255,.06); }

/* ===== Butonlar ===== */
.btn{
  display:inline-block; text-decoration:none; border-radius: 14px;
  padding: 12px 16px; border:1px solid var(--border); transition: transform .2s ease, background .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn.ghost:hover{ transform: translateY(-2px); border-color: var(--muted); }
.btn.solid{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #121214; font-weight:700; border-color: transparent;
}
.btn.solid:hover{ transform: translateY(-2px) scale(1.02); }

/* ===== Footer ===== */
.site-footer{
  border-top: 1px solid var(--border);
  background: #0c0d10;
  padding: 32px 0 44px;
}
.footer-inner{ text-align:center; }
.footer-brand{ font-weight:700; margin-bottom: 6px; }

/* ===== Reveal (IntersectionObserver ile) ===== */
.reveal-on-scroll{
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-on-scroll.in-view{
  opacity: 1; transform: none;
}

/* ===== Medya Sorguları (global) ===== */
@media (max-width: 1024px){
  .menu a{ padding: 10px; }
}
@media (max-width: 800px){
  .burger{ display:block; }
  .menu{
    position: absolute; right:0; top: 56px;
    background: var(--card); border:1px solid var(--border); border-radius: 14px;
    padding:10px; display:none; flex-direction: column; gap: 6px; min-width: 220px; box-shadow: var(--shadow);
  }
  .menu.open{ display:flex; }
}
@media (max-width: 380px){
  .brand{ font-size: 15px; }
}
:root{
  /* ... ваши переменные ... */
  --header-h: 64px; /* дефолтная высота хэдера */
}

/* БЫЛО: position: sticky */
.site-header{
  position: fixed; /* фиксируем */
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(14,15,18,.9), rgba(14,15,18,.6));
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--border);
}

/* отступ под фиксированный хедер */
.site-main{
  padding-top: calc(var(--header-h) + 12px);
}

/* чтобы переход по якорям не прятался под хедером */
section, [id]{
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Мобильное меню: позиционируем относительно окна */
@media (max-width: 800px){
  .menu{
    position: fixed;
    right: 4%;
    top: calc(var(--header-h) + 8px);
    background: var(--card);
    border:1px solid var(--border);
    border-radius: 14px;
    padding:10px;
    display:none;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
    box-shadow: var(--shadow);
    z-index: 60;
  }
  .menu.open{ display:flex; }
}
/* ===== Footer (общий) ===== */
.footer{
  border-top: 1px solid var(--border);
  background: #0c0d10;
  padding: 32px 0 44px;
}
.footer-container{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-column{ min-width: 240px; }
.footer-brand{
  font-weight: 700;
  margin: 0 0 6px;
}
.footer a{
  color: var(--ink);
  text-decoration: none;
}
.footer a:hover{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer-links{
  display: flex;
  gap: 14px;
  align-items: center;
}
@media (max-width: 640px){
  .footer-container{
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links{ gap: 10px; }
}
/* Активная страница в меню */
.menu a.current{
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
}
/* ===== Thank You page ===== */
.thankyou-section{
  min-height: 100svh; /* занимает весь экран, даже на мобильных */
  display: grid;
  place-items: center;
  padding: 36px 0 48px;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255,193,59,.07), transparent 60%),
    linear-gradient(180deg, rgba(255,100,55,.05), transparent 40%),
    transparent;
}

.thankyou-container{
  width: min(720px, 92%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 22px 18px;
}

.thankyou-title{
  font-size: clamp(24px, 3.2vw, 36px);
  margin: 6px 0 10px;
}

.thankyou-message{
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

/* Глобальная кнопка CTA (универсальная) */
.cta-button{
  display: inline-block;
  padding: 12px 16px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #121214;
  box-shadow: var(--shadow);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}

@media (hover:hover){
  .cta-button:hover{
    transform: translateY(-2px) scale(1.02);
    filter: saturate(1.05);
    box-shadow: 0 14px 32px rgba(0,0,0,.35);
  }
}

.cta-button:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,100,55,.25), var(--shadow);
}

/* Адаптив */
@media (max-width: 520px){
  .thankyou-container{ padding: 18px 14px; }
  .thankyou-message{ font-size: 15px; }
}

/* Уважение к настройке «уменьшить анимацию» */
@media (prefers-reduced-motion: reduce){
  .cta-button{ transition: none; }
}
