/*
Theme Name: Зянкин KZ
Theme URI: https://zyankin.kz
Author: Владимир Зянкин
Author URI: https://zyankin.com
Description: Тема студии дизайна Владимира Зянкина. Повторяет вёрстку прежнего сайта на Next.js один в один: главная с секциями, кейсы (тип записи «Работы»), блог, три языка через Polylang, JSON-LD и карта сайта с hreflang.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zyankin
Tags: portfolio, blog, translation-ready, custom-menu, featured-images, three-columns
*/

/* =========================================================
   ЗЯНКИН — design studio site
   ========================================================= */


/* ---------- Fonts (self-hosted, no external requests) ----------
   Inter covers latin + cyrillic + cyrillic-ext, so it serves every locale.
   Unbounded is the display face for ru/en, but it has no Kazakh letters
   (Ә Ғ Қ Ң Ө Ү Һ Ұ are simply absent from the family), so the kk locale
   switches its display face to Montserrat, which covers them fully. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/montserrat-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  --ink: #0a0a0a;
  --paper: #f5f4f0;
  --paper-dim: #e8e6df;
  --accent: #d7ff3d;
  --accent-2: #ff4d1c;
  --line: rgba(10, 10, 10, 0.12);
  --line-on-dark: rgba(245, 244, 240, 0.16);

  --font-display: "Unbounded", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kazakh: Unbounded has no Ә Ғ Қ Ң Ө Ү Һ Ұ, so headings would break into
   two different faces mid-word. Montserrat covers the whole alphabet. */
html[lang="kk"] {
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, blockquote, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}


.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--ink);
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-small { padding: 0.65rem 1.3rem; font-size: 0.85rem; }
.btn-wide { width: 100%; padding: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled,
.site-header.force-light {
  background: rgba(245, 244, 240, 0.85);
  backdrop-filter: blur(10px);
  padding-block: 0.7rem;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

/* Everything except the nav keeps its intrinsic width: without this the
   logo image is the first thing flex squeezes once the phone number and the
   three-way language switch are in the row. */
.logo,
.lang-dd,
.lang-switch,
.header-cta,
.nav-toggle {
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  z-index: 110;
}
.logo-img {
  height: 1.55rem;
  width: auto;
  display: block;
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-desktop a {
  position: relative;
  padding-block: 0.2rem;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transition: right 0.3s var(--ease);
}
.nav-desktop a:hover::after { right: 0; }

.header-cta { display: none; }

/* ---------- Language dropdown (header) ---------- */
.lang-dd { position: relative; flex-shrink: 0; }
.lang-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-dd-toggle:hover { background: var(--ink); color: var(--paper); }
.lang-dd-toggle svg { transition: transform 0.3s var(--ease); }
.lang-dd-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang-dd-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.3rem;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 0.9rem;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 120;
}
.lang-dd-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dd-menu a,
.lang-dd-menu span {
  display: block;
  padding: 0.45rem 0.9rem;
  border-radius: 0.6rem;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-dd-menu a:hover { background: var(--paper-dim); }
.lang-dd-menu [aria-current] { background: var(--ink); color: var(--paper); }

/* ---------- Language row (mobile menu) ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.5rem;
  border-radius: 100px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-switch a:hover { background: var(--paper-dim); }
.lang-switch [aria-current] { background: var(--ink); color: var(--paper); }

.nav-mobile-footer .lang-switch {
  margin-top: 0.7rem;
  align-self: flex-start;
  border-color: var(--line-on-dark);
  font-size: 0.8rem;
}
.nav-mobile-footer .lang-switch a:hover { background: rgba(245, 244, 240, 0.12); }
.nav-mobile-footer .lang-switch [aria-current] { background: var(--paper); color: var(--ink); }

/* The phone lives in the hero rather than the header: it stays inside the
   first screen, which is what the SEO brief asks for, without crowding the
   header row. */
.hero-phone {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  padding-inline: 0.4rem;
}
.hero-phone:hover { color: var(--accent-2); }


.nav-toggle {
  position: relative;
  z-index: 110;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile nav overlay ---------- */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 6rem var(--gutter) 3rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile > a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 3.2rem);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.3rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.nav-mobile-num {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}
.nav-mobile-footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0.8;
}
.nav-mobile-footer a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: none;
  word-break: break-word;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 5rem;
}
/* Shares the container width with the header, so the headline starts on the
   same vertical line as the logo instead of running wider past 1280px. */
.hero-inner { max-width: var(--container); }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #55524a;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent-2);
  border-radius: 50%;
  margin-right: 0.6rem;
}
.eyebrow-light { color: rgba(245, 244, 240, 0.6); }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8.5vw, 6.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: normal;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 62%, var(--accent) 62%);
}
.hero-sub {
  margin-top: 2rem;
  max-width: 530px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #3b382f;
}
.hero-actions {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6858;
}
.hero-scroll span {
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(180deg, var(--ink), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 100%;
  background: var(--accent-2);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-block: 1.1rem;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: 0.02em;
}
.marquee-track span { padding-inline: 0.6rem; }
.marquee-track .dot { color: var(--accent); font-size: 0.8em; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section head ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(3rem, 7vw, 5rem); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.8vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.section-head h2.light { color: var(--paper); }

/* ---------- Services ---------- */
.services { padding-block: clamp(4rem, 10vw, 8rem); }
.service-list { border-top: 1.5px solid var(--ink); }
.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  border-bottom: 1.5px solid var(--ink);
  transition: background 0.4s var(--ease);
}
.service-row:hover { background: rgba(10, 10, 10, 0.035); }
.service-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #8a876f;
  padding-top: 0.4rem;
}
.service-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}
.service-body p { max-width: 56ch; color: #3b382f; font-size: 1.05rem; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.tag-list li {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: #4a473c;
}
.service-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  opacity: 0.5;
  align-self: center;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease), -webkit-text-stroke 0.4s var(--ease);
}
.service-row:hover .service-mark {
  color: var(--accent-2);
  -webkit-text-stroke: 1.5px var(--accent-2);
  opacity: 1;
}

/* ---------- Work ---------- */
.work { padding-block: clamp(4rem, 10vw, 8rem); background: var(--paper-dim); }
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.work-card {
  display: block;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 8px 8px 0 var(--ink);
}
.work-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-dim);
}
.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s var(--ease);
}
.work-card-logo {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}
.work-card-logo.is-dark { background: var(--ink); }
.work-card-logo.is-light { background: var(--paper-dim); }
.work-card-logo img { max-width: 65%; max-height: 55%; object-fit: contain; }
.work-card:hover .work-card-img img { transform: scale(1.04); }
.work-card-body { padding: 1.75rem; }
.work-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}
.work-tag-invert { background: var(--accent); color: var(--ink); }
.work-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.work-card p { color: #4a473c; font-size: 0.98rem; }
.work-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}
.work-card-cta {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  min-height: 100%;
}
.work-card-cta .work-card-body { padding: 2.25rem; }
.work-card-cta h3 { color: var(--paper); }
.work-card-cta p { color: rgba(245, 244, 240, 0.65); }
.work-card-cta .work-link { color: var(--accent); }
/* The listing page has no tinted band under the cards, and the hero above it
   already supplies the gap — its own top padding would double it. */
.work-page { background: none; padding-top: 0; }
.work-note {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: #6b6858;
  max-width: 60ch;
}
.work-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Blog ---------- */
.blog { padding-block: clamp(4rem, 10vw, 8rem); }
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.blog-card {
  display: block;
  border: 1.5px solid var(--ink);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 8px 8px 0 var(--ink);
}
.blog-card-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-dim);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1.75rem; }
.blog-card time {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a876f;
  margin-bottom: 1rem;
}
/* The listing marks card titles up as h2 (the page heading is the h1 above
   them); the home page teaser uses h3. Both get the same look. */
.blog-card h2,
.blog-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.blog-card p { color: #4a473c; font-size: 0.95rem; }
.blog-card .work-link { margin-top: 1.1rem; }

/* ---------- Video ---------- */
.video { padding-block: clamp(4rem, 10vw, 8rem); background: var(--paper-dim); }
.video-frame {
  position: relative;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: var(--ink);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.video-play svg { margin-left: 0.25rem; }
.video-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-frame.is-playing .video-poster,
.video-frame.is-playing .video-play { display: none; }

/* ---------- Case page ---------- */
.case-hero { padding-top: clamp(7rem, 14vw, 9rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.case-back {
  /* Block-level so the eyebrow below starts on its own line — as inline-flex
     the two ran together and the margin-bottom did nothing. */
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: #6b6858;
  margin-bottom: 2rem;
  transition: color 0.25s ease, gap 0.25s ease;
}
.case-back:hover { color: var(--ink); gap: 0.75rem; }
.case-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 16ch;
  text-wrap: balance;
}
.case-subtitle {
  margin-top: 1.5rem;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #3b382f;
}
.case-video-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.7rem 1.3rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  transition: background 0.25s ease, color 0.25s ease;
}
.case-video-link:hover { background: var(--ink); color: var(--paper); }

.case-meta { padding-block: clamp(2.5rem, 6vw, 4rem); }
.case-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
/* The labels are real <h2>s — they are the case's section headings — but keep
   the eyebrow look they had as spans. */
.case-meta-item h2 {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a876f;
  margin-bottom: 0.6rem;
}
.case-meta-item p { font-size: 1.02rem; color: #2a2820; max-width: 42ch; }

.case-gallery { padding-block: clamp(3rem, 8vw, 5rem); }
/* Six-column track so each image can claim a share of the row based on how
   large its source actually is. Blowing a 300px mockup up to 1184px only
   showed off the compression. */
.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.case-gallery-grid img {
  grid-column: span 6;
  width: 100%;
  height: auto;
  display: block;
  border: 1.5px solid var(--ink);
  border-radius: 1rem;
}
/* Small sources: three per row on desktop, two on phones. */
.case-gallery-grid img.is-narrow { grid-column: span 2; }
@media (max-width: 719px) {
  .case-gallery-grid img.is-narrow { grid-column: span 3; }
}

.case-cta { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 9vw, 6rem); text-align: center; }
.case-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  text-wrap: balance;
}
.case-cta .btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.case-cta .btn-primary:hover { background: var(--paper); border-color: var(--paper); }

@media (min-width: 720px) {
  .case-meta-grid { grid-template-columns: repeat(3, 1fr); }
  .case-meta-grid.case-meta-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Process (dark) ---------- */
.process { background: var(--ink); color: var(--paper); padding-block: clamp(4rem, 10vw, 8rem); }
.process-list { border-top: 1px solid var(--line-on-dark); }
.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line-on-dark);
  align-items: baseline;
}
.process-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--accent);
}
.process-list h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin-bottom: 0.4rem;
}
.process-list p { color: rgba(245, 244, 240, 0.65); max-width: 55ch; }

/* ---------- About ---------- */
.about { padding-block: clamp(4rem, 10vw, 8rem); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
}
.about-text p { font-size: 1.1rem; color: #2a2820; margin-bottom: 1.25rem; max-width: 60ch; }
.about-text blockquote {
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--accent-2);
  background: var(--paper-dim);
  border-radius: 0 1rem 1rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.4;
}
.about-text cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: #6b6858;
}
.about-stats {
  display: grid;
  gap: 1.5rem;
}
.stat {
  border-top: 1.5px solid var(--ink);
  padding-top: 1.25rem;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
}
.stat-label { color: #4a473c; font-size: 0.95rem; }

/* ---------- Contact (dark) ---------- */
.contact { background: var(--ink); color: var(--paper); padding-block: clamp(4rem, 10vw, 8rem); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
}
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.55);
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line-on-dark);
  color: var(--paper);
  padding-block: 0.7rem;
  font-size: 1.05rem;
  transition: border-color 0.3s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); margin-top: 0.5rem; }
.contact-form .btn-primary:hover { background: var(--paper); }
.form-note { margin-top: 0.9rem; font-size: 0.85rem; color: rgba(245, 244, 240, 0.5); }

.contact-channels { display: flex; flex-direction: column; }
.channel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line-on-dark);
  font-family: var(--font-display);
  transition: padding-left 0.3s var(--ease), color 0.3s ease;
}
.channel span { color: rgba(245, 244, 240, 0.55); font-size: 0.9rem; }
.channel strong { font-weight: 600; font-size: 1.1rem; }
.channel:hover { padding-left: 0.6rem; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 3rem; border-top: 1.5px solid var(--ink); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.logo-footer .logo-img { height: 1.3rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.9rem; font-family: var(--font-display); }
.footer-meta { font-size: 0.8rem; color: #6b6858; text-align: right; }
.footer-meta p + p { margin-top: 0.2rem; }

/* ---------- Reveal ----------
   Pure CSS on purpose. This used to be hidden by a class that JavaScript
   added, with an IntersectionObserver switching it back on — which meant any
   page whose observer did not fire showed nothing at all. Landing straight on
   an anchor such as /#work did exactly that.

   Now the content is visible by default and cannot end up hidden. Browsers
   with scroll-driven animations get the entrance effect; the rest just show
   the content, which is the correct fallback. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in 1s var(--ease) both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.3fr 1fr; }
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
  .about-stats { align-content: start; }
}

@media (min-width: 960px) {
  .service-row { grid-template-columns: 4rem 1fr auto; }
}

/* The desktop row carries logo + seven nav items + language + CTA. Below
   this width they no longer fit side by side, so the burger stays. */
@media (min-width: 1080px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  /* Without this the overlay still paints: its content is taller than the
     viewport, and justify-content:center lets the overflow spill past the
     translated-away box, so the footer rows show through the page. */
  .nav-mobile { display: none; }
}

@media (min-width: 1100px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 719px) {
  .service-row { grid-template-columns: 1fr; }
  .service-num { padding-top: 0; }
  .service-mark { display: none; }
  .process-list li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- H1 keyword kicker ----------
   The slogan keeps the visual weight, but the H1 now opens with the phrase
   the page is actually about, as the SEO brief requires. Visible text, not a
   hidden block. */
.hero-kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6858;
  margin-bottom: 1.4rem;
  line-height: 1.4;
}
.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-2);
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(4rem, 10vw, 8rem); background: var(--paper-dim); }
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.faq-item {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}
.faq-item p { color: #3d3b34; }

/* ---------- Article ---------- */
/* Same rhythm as the work listing: the hero already provides the gap above
   the cards, so the section adds nothing on top of it. */
.blog-page { background: var(--paper); padding-top: 0; }
.article-cover { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.article-cover img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  border: 1.5px solid var(--ink);
}
.article-body { padding-bottom: clamp(4rem, 9vw, 7rem); }
/* Full container width, matching the cover image above it. */
.article-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2b2a25;
  margin-bottom: 1.3rem;
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  line-height: 1.2;
  margin: 2.6rem 0 1.1rem;
}
.article-list { margin: 0 0 1.5rem; }
.article-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2b2a25;
}
.article-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 1.5px;
  background: var(--ink);
}
.article-credit {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: #6b6858;
}

@media (min-width: 860px) {
  .faq-list { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Добавления для WordPress
   Всё, что выше, — стили прежнего сайта один в один. Ниже — то,
   без чего редактор WordPress и его разметка выглядели бы иначе.
   ========================================================= */

/* Казахский шрифт. Polylang ставит в <html lang> полную локаль вида «kk-KZ»,
   а точное совпадение по [lang="kk"] её уже не ловит. */
html[lang|="kk"],
body.lang-kk {
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* Фиксированная шапка не должна заезжать под панель администратора. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ---------- Текст статьи из редактора ----------
   Прежний сайт рисовал тело статьи из мини-разметки: «## » — заголовок,
   «- » — пункт списка. Редактор WordPress отдаёт обычные ul/ol, поэтому
   маркер списка описан здесь так же, как раньше описывался .article-list. */
.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.article-body li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2b2a25;
}
.article-body ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 1.5px;
  background: var(--ink);
}
.article-body ol {
  counter-reset: zyankin-list;
}
.article-body ol > li {
  counter-increment: zyankin-list;
}
.article-body ol > li::before {
  content: counter(zyankin-list) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #8a876f;
}

.article-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.25;
  margin: 2rem 0 0.8rem;
}
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--accent-2); }
.article-body strong { font-weight: 600; }

.article-body img,
.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  border: 1.5px solid var(--ink);
}
.article-body figure {
  margin: 2rem 0;
}
.article-body figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6b6858;
}
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--accent-2);
  background: var(--paper-dim);
  border-radius: 0 1rem 1rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.45;
}
.article-body blockquote p { margin-bottom: 0.6rem; }
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}
.article-body th,
.article-body td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.article-body th {
  font-family: var(--font-display);
  font-weight: 600;
}

/* Выравнивания из редактора блоков. */
.alignleft {
  float: left;
  margin: 0 1.5rem 1.5rem 0;
}
.alignright {
  float: right;
  margin: 0 0 1.5rem 1.5rem;
}
.aligncenter {
  display: block;
  margin-inline: auto;
}
.alignwide,
.alignfull {
  max-width: 100%;
}

/* ---------- Постраничная навигация ---------- */
.pagination {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  justify-content: center;
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding-inline: 0.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.pagination .page-numbers:hover { background: var(--ink); color: var(--paper); }
.pagination .page-numbers.current { background: var(--ink); color: var(--accent); }
.pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Политика cookie ---------- */
/* Слова вроде «использования» в крупном заголовке шире узкого экрана. */
.cookie-policy-title { overflow-wrap: break-word; hyphens: auto; }
/* Таблица на телефоне прокручивается внутри себя, а не растягивает страницу. */
.cookie-table {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.cookie-table table { margin-bottom: 0; min-width: 32rem; }
.cookie-table td { vertical-align: top; }
.cookie-policy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.05em 0.35em;
  border-radius: 0.3rem;
  background: var(--paper-dim);
}

.footer-legal-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}
.footer-legal-link:hover { color: var(--ink); }

/* ---------- Уведомление о cookie ----------
   Плашка внизу экрана, не модальное окно: страница под ней работает. Отступы
   от краёв — те же поля контейнера, на телефоне кнопка уходит под текст.
   Под мобильным меню (z-index 110+) она не просвечивает. */
.cookie-notice {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: 44rem;
  margin-inline: auto;
  padding: 1rem 1rem 1rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 1.25rem;
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.18);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice-text {
  flex: 1 1 18rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.cookie-notice-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-notice-button {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.cookie-notice-button:hover { background: var(--paper); border-color: var(--paper); }
.cookie-notice-text a:focus-visible,
.cookie-notice-button:focus-visible,
.footer-legal-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

@media (max-width: 479px) {
  .cookie-notice { padding: 1rem 1.1rem; }
  .cookie-notice-button { width: 100%; }
}

/* ---------- Служебное ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  clip-path: none;
  width: auto;
  height: auto;
}
