/* sqr.kz — стили страницы-заглушки и страницы 404 */

:root {
  --paper: #eee9dc;
  --band: #e5decc;
  --surface: #f8f5ee;
  --ink: #1b2a2d;
  --body: #435250;
  --muted: #7a817b;
  --line: #d6cdb8;
  --teal: #129692;
  --teal-dark: #0f7c78;
  --pink: #e62f5b;

  /* Все шрифты в списках поддерживают казахские буквы: Ә Ғ Қ Ң Ө Ұ Ү Һ І */
  --sans: "Golos Text", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --serif: "Cormorant Garamond", "PT Serif", "Noto Serif", serif;

  --radius-lg: 24px;
  --radius-md: 20px;
  --pad-x: 40px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body,
h1, h2, p, figure { margin: 0; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Языки: виден только текст текущего языка */
[data-lang="kk"] [lang="ru"],
[data-lang="kk"] [lang="en"],
[data-lang="ru"] [lang="kk"],
[data-lang="ru"] [lang="en"],
[data-lang="en"] [lang="kk"],
[data-lang="en"] [lang="ru"] { display: none; }

/* --- Шапка --- */
.site-header { border-bottom: 1px solid var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__name {
  display: block;
  font: 700 24px/1 var(--sans);
  letter-spacing: 0.5px;
}

.brand__tagline {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 600 10px/1.2 var(--sans);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-switch { display: flex; gap: 4px; }

.lang-switch button {
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 500 15px/1 var(--sans);
  cursor: pointer;
}

.lang-switch button:hover { background: var(--band); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); }

/* --- Первый экран --- */
.hero { flex: 1; display: flex; align-items: center; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 72px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--body);
  font: 500 14px/1.3 var(--sans);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 2s ease-in-out infinite;
}

.eyebrow {
  color: var(--teal-dark);
  font: 600 13px/1.3 var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__title {
  margin: 16px 0 24px;
  font: 600 clamp(44px, 6vw, 76px)/1 var(--serif);
  letter-spacing: -0.5px;
}

.hero__lead {
  max-width: 560px;
  color: var(--body);
  font-size: 19px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--body);
  font-size: 14px;
}

/* --- Блок соцсетей --- */
.follow {
  max-width: 520px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.follow__title {
  margin-bottom: 14px;
  font: 500 16px/1.4 var(--sans);
}

.follow__links { display: flex; gap: 10px; }

.follow__handle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-1px); }

.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--band); }

/* --- Фото --- */
.hero__media { position: relative; }

.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--band);
}

.hero__media figcaption {
  position: absolute;
  top: 28px;
  right: -28px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgb(22 40 43 / 16%);
}

.hero__media figcaption b { display: block; font-weight: 500; }
.hero__media figcaption span { color: var(--muted); font-size: 14px; }

/* --- Подвал --- */
.site-footer { border-top: 1px solid var(--line); }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* --- Страница 404 --- */
.notfound {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  text-align: center;
}

.notfound img { margin: 0 auto; }
.notfound .eyebrow { margin-top: 24px; }
.notfound .hero__title { margin: 12px 0; font-size: clamp(36px, 6vw, 56px); }
.notfound p { color: var(--body); }
.notfound .btn { margin-top: 28px; }

/* --- Анимация: только мигающая точка статуса --- */
@keyframes pulse { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  .status__dot { animation: none; }
  .btn { transition: none; }
}

/* --- Планшет --- */
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .hero__media { max-width: 440px; }
}

/* --- Телефон --- */
@media (max-width: 560px) {
  :root { --pad-x: 20px; }

  .site-header .wrap { height: 68px; }
  .hero__lead { font-size: 16px; }
  .follow { padding: 20px; }
  .follow__links { flex-direction: column; }
  .hero__media figcaption { top: 12px; right: 12px; }
}
