/* Yulduzcha authors landing (mualliflar.html, authors-ru.html).
   Self-contained: tokens copied from style.css so this page does not change when the kids landing changes.
   Calm studio tone: night blue and warm sun accent, one font family (Nunito), soft shadows only.
   No outlines or rings around the mascot, images or characters. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-var.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky-deep: #0288D1;
  --sky-primary: #0277BD;   /* white text on it: 4.8:1 */
  --sun: #FFD54F;
  --sun-deep: #FFB300;
  --night: #1F3A5F;         /* night on sun: 8:1 */
  --night-deep: #14273F;
  --mist: #F4F7FB;
  --cloud: #FFFFFF;
  --ink: #37474F;
  --ink-soft: #5B6B7B;      /* on white: 5.5:1, on mist: 5.1:1 */
  --line: #E3E9F1;
  --on-night: #F4F7FB;      /* on night: 10.6:1 */
  --on-night-soft: #C9D6E6; /* on night: about 7.8:1 */
  --alert-bg: #FBE4DC;
  --alert-ink: #7A2E1A;     /* on alert-bg: about 8:1 */
  --shadow-soft: 0 12px 28px -12px rgba(31, 58, 95, 0.32);
  --shadow-frame: 0 24px 48px -28px rgba(20, 39, 63, 0.5);
  --radius-btn: 16px;
  --btn-h: 56px;
  --fs-2xs: 0.75rem;        /* 12px: chips, mock text floor */
  --fs-xs: 0.8125rem;       /* 13px: notes, captions, meta */
  --fs-sm: 0.9375rem;       /* 15px: table cells, small UI */
  --fs-body: 1.0625rem;     /* 17px: body */
  --fs-lead: 1.125rem;      /* 18px: lead, hero lede, FAQ questions */
  --fs-h3: 1.25rem;         /* 20px: every h3 */

  --font: Nunito, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
}

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

html {
  color-scheme: light;
  scrollbar-color: var(--sky-deep) var(--mist);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--sun);
  color: var(--night);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--night);
  font-weight: 900;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

section[id],
main[id] {
  scroll-margin-top: 24px;
}

:focus-visible {
  outline: 3px solid var(--night);
  outline-offset: 3px;
  border-radius: 8px;
}

.band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sun);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--night);
  color: var(--cloud);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--cloud);
  color: var(--night);
  box-shadow: 0 10px 22px -20px rgba(31, 58, 95, 0.6);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--night);
  font-size: var(--fs-h3);
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.menu-toggle {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--mist);
  color: var(--night);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--line);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: var(--cloud);
  box-shadow: 0 22px 30px -22px rgba(31, 58, 95, 0.45);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 20px;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--mist);
}

.site-nav .nav-lang {
  color: var(--ink-soft);
}

.site-nav .nav-cta a {
  justify-content: center;
  margin-top: 8px;
  background: var(--night);
  color: var(--cloud);
  font-weight: 800;
}

.site-nav .nav-cta a:hover {
  background: var(--night-deep);
}

/* Inline navigation only where all items fit on one row */
@media (min-width: 1200px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    flex: 1;
    box-shadow: none;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    padding: 0;
  }

  .site-nav a {
    min-height: 42px;
    padding: 0 12px;
    font-size: var(--fs-sm);
  }

  .site-nav .nav-cta {
    margin-left: 12px;
  }

  .site-nav .nav-cta a {
    margin-top: 0;
    min-height: 46px;
    padding: 0 22px;
  }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: 12px 26px;
  border: 0;
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-sun {
  background: var(--sun);
  color: var(--night);
  box-shadow: var(--shadow-soft);
}

.btn-sun:hover {
  background: var(--sun-deep);
}

.btn-primary {
  background: var(--night);
  color: var(--cloud);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--night-deep);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cloud);
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

/* ---------- Dark bands (hero, closing call) ---------- */

.band {
  background: var(--night);
  color: var(--on-night);
}

.band h1,
.band h2 {
  color: var(--cloud);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(48px, 7vw, 104px) 0 clamp(64px, 8vw, 120px);
}

.hero-grid {
  display: grid;
  gap: 52px;
  align-items: center;
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.hero-lede {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--on-night-soft);
  font-size: var(--fs-lead);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 34px;
}

/* Browser-frame mockup, drawn in CSS: no photos, no outlines */
.studio-mock {
  margin: 0;
  min-width: 0;
}

.frame {
  overflow: hidden;
  border-radius: 18px;
  background: var(--cloud);
  color: var(--ink);
  box-shadow: var(--shadow-frame);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--mist);
}

.frame-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--on-night-soft);
}

.frame-bar p {
  margin-left: auto;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--cloud);
  color: var(--ink-soft);
  font-size: var(--fs-xs);
}

.frame-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.mock-nav {
  display: none;
}

.mock-main {
  min-width: 0;
  padding: 20px 20px 22px;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mock-head p {
  color: var(--night);
  font-size: var(--fs-body);
  font-weight: 900;
}

.mock-btn {
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--night);
  color: var(--cloud);
  font-size: var(--fs-xs);
  font-weight: 800;
  white-space: nowrap;
}

.mock-rows li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.mock-rows li + li {
  border-top: 1px solid var(--line);
}

.thumb {
  width: 64px;
  height: 40px;
  border-radius: 10px;
}

.thumb-1 {
  background: linear-gradient(135deg, #4FC3F7 0%, #B3E5FC 100%);
}

.thumb-2 {
  background: linear-gradient(135deg, #1F3A5F 0%, #4FC3F7 100%);
}

.thumb-3 {
  background: linear-gradient(135deg, #FFD54F 0%, #FFB300 100%);
}

.mock-text {
  min-width: 0;
}

.mock-title {
  overflow: hidden;
  color: var(--night);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-meta {
  color: var(--ink-soft);
  font-size: var(--fs-xs);
}

.mock-reason {
  margin-top: 2px;
  color: var(--alert-ink);
  font-size: var(--fs-2xs);
}

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--fs-2xs);
  font-weight: 800;
  white-space: nowrap;
}

.chip-ok {
  background: var(--sun);
  color: var(--night);
}

.chip-wait {
  background: #DCE8F5;
  color: var(--night);
}

.chip-no {
  background: var(--alert-bg);
  color: var(--alert-ink);
}

.studio-mock figcaption {
  margin-top: 16px;
  color: var(--on-night-soft);
  font-size: var(--fs-xs);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.tint {
  background: var(--mist);
}

.section-head {
  max-width: 44rem;
}

.section h2 {
  font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lead {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: var(--fs-lead);
}

/* Why: four plain points, no cards */
.points {
  display: grid;
  gap: 40px;
  margin-top: 52px;
}

.points h3 {
  margin-bottom: 10px;
  font-size: var(--fs-h3);
}

.points p {
  color: var(--ink);
}

/* How it works: a real sequence, so numbers are allowed */
.steps {
  display: grid;
  gap: 36px;
  margin-top: 56px;
}

.steps li {
  position: relative;
  padding-left: 76px;
}

.step-n {
  position: absolute;
  top: -4px;
  left: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--night);
  font-size: var(--fs-h3);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.steps h3 {
  margin-bottom: 8px;
  font-size: var(--fs-h3);
}

/* Rules */
.rules {
  display: grid;
  gap: 32px;
  margin-top: 52px;
}

.rules h3 {
  margin-bottom: 6px;
  font-size: var(--fs-h3);
}

/* Specs table */
.specs {
  width: 100%;
  margin-top: 52px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--fs-sm);
}

.specs th,
.specs td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.specs thead th {
  border-bottom: 2px solid var(--night);
  color: var(--night);
  font-size: var(--fs-sm);
  font-weight: 900;
}

.specs tbody th {
  width: 30%;
  color: var(--night);
  font-weight: 800;
}

.specs td {
  color: var(--ink);
}

.specs-note {
  margin-top: 16px;
  max-width: 70ch;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* FAQ */
.faq {
  max-width: 820px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding: 16px 0;
  color: var(--night);
  font-size: var(--fs-lead);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--night);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
  background: var(--sun);
}

.faq summary:hover {
  color: var(--sky-primary);
}

.faq details p {
  max-width: 66ch;
  padding: 0 0 24px;
  color: var(--ink);
}

/* ---------- Closing band ---------- */

.cta {
  padding: clamp(64px, 9vw, 112px) 0;
}

.cta-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.cta-mascot {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 22px 22px rgba(20, 39, 63, 0.45));
}

.cta p {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--on-night-soft);
  font-size: var(--fs-lead);
}

.cta .btn {
  margin-top: 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 44px;
  background: var(--night-deep);
  color: var(--on-night-soft);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 8px;
  color: var(--cloud);
  font-size: 1.5rem;
  font-weight: 900;
}

.footer-grid a {
  color: var(--cloud);
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-langs {
  display: flex;
  gap: 22px;
  margin-top: 12px;
}

.footer-langs a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- Breakpoints ---------- */

/* 768: two columns where text allows */
@media (min-width: 768px) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 48px;
  }

  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 56px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 40px;
  }

  .mock-nav {
    display: none;
  }

  .cta-grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 56px;
  }

  .cta-mascot {
    width: 200px;
    height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

/* 1024: hero becomes two columns, four-point grids, four-step row */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 64px;
  }

  .frame-body {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .mock-nav {
    display: block;
    padding: 22px 16px;
    background: var(--night);
    color: var(--on-night-soft);
    font-size: var(--fs-sm);
  }

  .mock-nav p {
    margin-bottom: 18px;
    color: var(--cloud);
    font-weight: 900;
  }

  .mock-nav li {
    padding: 9px 12px;
    border-radius: 10px;
  }

  .mock-nav .is-current {
    background: rgba(255, 255, 255, 0.12);
    color: var(--cloud);
    font-weight: 800;
  }

  .points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 32px;
  }

  .steps li {
    padding: 76px 8px 0 0;
  }

  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 60px;
    right: -8px;
    height: 2px;
    background: #C9D6E6;
  }

  .steps .step-n {
    top: 0;
  }

  /* Four steps side by side: equal heading height keeps the text rows aligned. */
  .steps h3 {
    min-height: 2lh;
  }
}

/* 1440: more air around the hero and sections */
@media (min-width: 1440px) {
  .hero-grid {
    gap: 88px;
  }

  .hero h1 {
    font-size: 3.4rem;
    max-width: 20ch;
  }
}

/* ---------- Phone (390 and below) ---------- */

@media (max-width: 640px) {
  .frame-bar p {
    display: none;
  }

  .mock-main {
    padding: 16px;
  }

  .mock-rows li {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .thumb {
    width: 52px;
    height: 34px;
  }

  .chip {
    font-size: var(--fs-2xs);
    padding: 3px 8px;
  }

  .specs th,
  .specs td {
    padding: 12px 10px 12px 0;
    font-size: var(--fs-sm);
  }

  .specs thead th {
    font-size: var(--fs-xs);
  }

  /* Specs as cards: each row becomes a block, the cell label comes from data-label. */
  .specs,
  .specs tbody,
  .specs tr,
  .specs th,
  .specs td {
    display: block;
    width: 100%;
  }

  .specs thead {
    display: none;
  }

  .specs tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .specs th,
  .specs td {
    padding: 2px 0;
    border-bottom: 0;
  }

  .specs tbody th {
    margin-bottom: 6px;
  }

  .specs td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-soft);
    font-size: var(--fs-xs);
    font-weight: 800;
  }
}

@media (max-width: 359px) {
  .hero-actions .btn {
    width: 100%;
  }

}
