/* Легке НМТ: site styles. Colors follow the app palette (android/core/ui/.../theme/Color.kt). */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --blue: #1cb0f6;
  --blue-dark: #1899d6;
  --green: #58cc02;
  --green-dark: #58a700;
  --orange: #ff9600;
  --red: #ff4b4b;
  --yellow: #ffc800;
  --purple: #ce82ff;

  --bg: #ffffff;
  --surface: #f7f7f7;
  --outline: #e5e5e5;
  --text: #4b4b4b;
  --text-secondary: #777777;
  --selected: #ddf4ff;
  --link: #1899d6;
  --note-bg: #fff4c7;
  --note-edge: #ffc800;

  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131f24;
    --surface: #1f2c34;
    --outline: #37464f;
    --text: #f1f7fb;
    --text-secondary: #8a9aa3;
    --selected: #16384a;
    --link: #1cb0f6;
    --note-bg: #3a3318;
    --note-edge: #ffc800;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--link);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(32px, 6vw, 52px);
}

h2 {
  font-size: clamp(24px, 4vw, 34px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 10;
}

/* Header */

.site-header {
  border-bottom: 2px solid var(--outline);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  white-space: nowrap;
}

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

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 2px solid transparent;
}

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

.nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--selected);
  border-color: var(--blue);
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }
  .nav {
    flex-wrap: nowrap;
  }
  .nav a {
    padding: 6px 8px;
    font-size: 14px;
  }
  .nav a[href="/"] {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 0 var(--green-dark);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 0 var(--blue-dark);
}

.btn-ghost {
  background: var(--bg);
  color: var(--blue);
  border: 2px solid var(--outline);
  box-shadow: 0 4px 0 var(--outline);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn[aria-disabled="true"] {
  background: var(--surface);
  color: var(--text-secondary);
  border: 2px solid var(--outline);
  box-shadow: 0 4px 0 var(--outline);
  cursor: default;
}
.btn[aria-disabled="true"]:active {
  transform: none;
  box-shadow: 0 4px 0 var(--outline);
}

.play-badge svg {
  width: 24px;
  height: 24px;
  flex: none;
}

/* Hero */

.hero {
  padding: 48px 0 32px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero .lead {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 34em;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero .small {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 14px;
}

@media (max-width: 820px) {
  .hero {
    padding-top: 28px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* Phone mock-up built from the app's own cards */

.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  border: 10px solid #1f2c34;
  border-radius: 40px;
  background: #131f24;
  color: #f1f7fb;
  padding: 18px 12px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.phone .screen-title {
  text-align: center;
  font-weight: 800;
  font-size: 19px;
  padding-bottom: 12px;
  border-bottom: 2px solid #37464f;
  margin: 0 -12px 12px;
}

.phone .mode {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #1f2c34;
  border: 2px solid #37464f;
  border-bottom-width: 5px;
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 10px;
}

.phone .mode .ic {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  background: #16384a;
  display: grid;
  place-items: center;
}

.phone .mode .ic img {
  width: 36px;
  height: 36px;
}

.phone .mode b {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.phone .mode small {
  display: block;
  color: #8a9aa3;
  font-size: 12.5px;
  line-height: 1.3;
}

.phone .tabbar {
  display: flex;
  justify-content: space-around;
  border-top: 2px solid #37464f;
  margin: 12px -12px 0;
  padding-top: 10px;
}

.phone .tabbar img {
  width: 30px;
  height: 30px;
  opacity: 0.55;
}

.phone .tabbar img.on {
  opacity: 1;
}

/* Sections */

.section {
  padding: 40px 0;
}

.section-intro {
  color: var(--text-secondary);
  max-width: 40em;
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.card {
  background: var(--bg);
  border: 2px solid var(--outline);
  border-bottom-width: 6px;
  border-radius: var(--radius);
  padding: 20px;
}

.card .ic {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--selected);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card .ic img {
  width: 44px;
  height: 44px;
}

.card p {
  color: var(--text-secondary);
  margin: 0;
}

.subjects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}

.subject {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--outline);
  border-bottom-width: 5px;
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 800;
}

.subject img {
  width: 40px;
  height: 40px;
  flex: none;
}

.subject small {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
}

.subject.soon {
  opacity: 0.6;
}

.cta {
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: 24px;
  padding: 32px 20px;
}

/* Text pages (privacy, deletion, support) */

.page {
  max-width: 760px;
  padding-top: 36px;
  padding-bottom: 48px;
}

.page h2 {
  font-size: 24px;
  margin-top: 1.6em;
}

.page ul,
.page ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.page li {
  margin-bottom: 0.4em;
}

.meta {
  color: var(--text-secondary);
  font-size: 15px;
}

.note {
  background: var(--note-bg);
  border-left: 6px solid var(--note-edge);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 1em 0 1.4em;
}

.note p:last-child {
  margin-bottom: 0;
}

.steps {
  list-style: none;
  padding: 0 !important;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 62px;
  border: 2px solid var(--outline);
  border-bottom-width: 5px;
  border-radius: 16px;
  margin-bottom: 12px !important;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15.5px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 2px solid var(--outline);
}

th {
  background: var(--surface);
  font-weight: 800;
}

.contact-card {
  margin-bottom: 1em;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.mail {
  font-size: 20px;
  word-break: break-all;
}

/* Footer */

.site-footer {
  border-top: 2px solid var(--outline);
  padding: 28px 0 36px;
  color: var(--text-secondary);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--text-secondary);
}

.center {
  text-align: center;
}
