/* =========================================================
   ODO24 — общие стили сайта (тёмная тема)
   ========================================================= */

:root {
  color-scheme: dark;
  --bg: #1f2229;
  --bg-soft: #232730;
  --surface: #262a33;
  --surface-2: #282d37;
  --text: #f2f4f7;
  --muted: #a7b1be;
  --muted-light: #8b96a4;
  --brand: #89d7a8;
  --brand-hover: #77cd99;
  --brand-strong: #f0a97f;
  --brand-soft: rgba(236, 154, 109, .14);
  --accent: #fd8000;
  --green: #83c03d;
  --green-hover: #95d04f;
  --green-text: #11150b;
  --footer-bg: #171a20;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --link: #8ab4f8;
  --link-hover: #c2a6ff;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .65);
  --container: 1160px;
}

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

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

body {
  margin: 0;
  font-family: 'Istok Web', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--link-hover);
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(236, 154, 109, .35);
  color: #fff;
}

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

.orange {
  color: var(--accent);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--bg);
  font-weight: 700;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 16px;
  color: var(--bg);
}

/* =========================================================
   Логотип
   ========================================================= */

.logo {
  display: inline-block;
  color: var(--text);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}

.logo:hover {
  color: var(--text);
}

.logo--light,
.logo--light:hover {
  color: #fff;
}

.logo--light .orange {
  color: var(--brand);
}

/* =========================================================
   Главная страница: шапка и первый экран
   ========================================================= */

.home {
  background: var(--bg);
}

.site-header {
  position: relative;
  overflow: hidden;
  padding: 28px 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(236, 154, 109, .17) 0%, rgba(236, 154, 109, 0) 62%),
    radial-gradient(700px 420px at 4% 0%, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.site-header::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -220px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 154, 109, .13) 0%, rgba(236, 154, 109, 0) 70%);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.topbar__link:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.topbar__link--github {
  margin-left: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

.topbar__link--github:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, .08);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 76px);
}

.hero__content {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border: 1px solid rgba(236, 154, 109, .24);
  border-radius: 999px;
  background: rgba(236, 154, 109, .08);
  color: var(--brand-strong);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fc76a;
  box-shadow: 0 0 0 3px rgba(95, 199, 106, .16);
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 5.1vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.hero h1 .accent {
  color: var(--brand);
}

.lead {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.hero__hint {
  margin: 18px 0 0;
  color: var(--muted-light);
  font-size: .875rem;
  line-height: 1.5;
}

/* Кнопки */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.15;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn__icon {
  flex: none;
  width: 26px;
  height: 26px;
}

.btn__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.btn__text small {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .72;
}

.btn__version {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .14);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}

.btn__version[hidden] {
  display: none;
}

.btn--android {
  background: var(--brand);
  color: var(--green-text);
  box-shadow: 0 12px 26px -10px rgba(131, 192, 61, .5);
}

.btn--android:hover {
  background: var(--brand-hover);
  color: var(--green-text);
}

.btn--store {
  padding: 12px 18px;
  border-color: transparent;
  background: #f7f6f4;
  box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .9);
}

.btn--store:hover {
  background: #fff;
}

.btn--store img {
  width: auto;
  height: 34px;
}

.btn--dark {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.btn--dark:hover {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .1);
  color: var(--text);
}

/* Мокап приложения */

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 10% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 154, 109, .22) 0%, rgba(236, 154, 109, 0) 68%);
  filter: blur(8px);
}

.hero__visual-inner {
  position: relative;
  width: min(100%, 320px);
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(236, 154, 109, .16) 0%, rgba(236, 154, 109, 0) 60%),
    #242832;
  box-shadow:
    0 34px 70px -24px rgba(0, 0, 0, .85),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

.hero__visual picture {
  display: block;
}

.hero__phone {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
}

/* =========================================================
   Секции
   ========================================================= */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
  scroll-margin-top: 24px;
}

.section--features {
  background: var(--bg-soft);
}

.section--about {
  background: #1b1e24;
}

.section__head {
  max-width: 680px;
}

.section__eyebrow {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.section__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Возможности */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
  list-style: none;
}

.feature {
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: #c7ced7;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
  line-height: 1.3;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

@media (hover: hover) {
  .feature:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 154, 109, .34);
    box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .9);
  }
}

/* О проекте */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.about__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about__media picture {
  display: block;
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 23, 28, 0) 45%, rgba(20, 23, 28, .55) 100%);
  pointer-events: none;
}

.about__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(23, 26, 32, .86);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .8);
  backdrop-filter: blur(6px);
}

.about__badge strong {
  color: var(--brand);
  font-size: 1.5rem;
  line-height: 1.1;
}

.about__badge span {
  color: #c7ced7;
  font-size: .8rem;
}

.about__content p {
  color: var(--muted);
  line-height: 1.7;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  line-height: 1.5;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(131, 192, 61, .16);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.about__actions .btn {
  min-height: 52px;
  padding: 10px 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.link-arrow:hover {
  color: var(--brand);
}

.link-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* =========================================================
   Подвал
   ========================================================= */

footer {
  padding: 48px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: var(--footer-bg);
  color: var(--muted);
}

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

footer a:hover {
  color: var(--brand);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: start;
}

.footer__brand p {
  max-width: 34ch;
  margin: 16px 0 0;
  color: var(--muted-light);
  font-size: .92rem;
  line-height: 1.6;
}

.footer__nav {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
}

.icon-external {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
}

.footer__social {
  display: flex;
  gap: 28px;
}

footer .icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer .icon i {
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

footer #github {
  background-image: url("/icons/github.svg");
}

footer #flutter {
  background-image: url("/icons/flutter.svg");
}

footer .icon a {
  font-size: .95rem;
}

.footer__copy {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted-light);
  font-size: .85rem;
}

/* =========================================================
   Политика конфиденциальности и другие внутренние страницы
   ========================================================= */

body:not(.home) {
  max-width: 960px;
  margin: 40px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
}

body:not(.home) header {
  padding: 40px 48px 0;
}

body:not(.home) #logo {
  margin-bottom: 12px;
  font-size: 2.2rem;
  line-height: 1;
}

body:not(.home) #logo>a {
  color: var(--text);
}

body:not(.home) article {
  padding: 24px 48px;
}

body:not(.home) article h1 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

body:not(.home) article h2 {
  margin: 8px 0 12px;
  font-size: 1.3rem;
}

body:not(.home) article p {
  line-height: 1.7;
}

body:not(.home) hr {
  height: 0;
  margin: 8px 48px;
  border: 0;
  border-top: 1px solid var(--border);
}

body:not(.home) footer {
  padding: 32px 48px;
  border-radius: 0 0 var(--radius) var(--radius);
}

body:not(.home) footer #icons {
  display: flex;
  gap: 32px;
  margin-top: 18px;
}

body:not(.home) footer .column p {
  margin: 0 0 .5rem;
}

body:not(.home) footer #feedback {
  position: relative;
  padding-right: 26px;
}

body:not(.home) footer #feedback::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  width: 15px;
  height: 15px;
  background: url("/icons/open_new.svg") center / contain no-repeat;
}

/* =========================================================
   Адаптивность
   ========================================================= */

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero__visual {
    order: 2;
  }

  .hero__visual-inner {
    width: min(100%, 300px);
  }

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

  .about__media {
    order: 2;
  }

  .about__media img {
    aspect-ratio: 16 / 10;
  }

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

  .footer__social {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .topbar__nav .topbar__link:not(.topbar__link--github) {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section__head {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .site-header {
    padding-top: 20px;
  }

  .hero h1 {
    max-width: none;
  }

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

  .btn {
    width: 100%;
  }

  .btn--store {
    min-height: 58px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer__social {
    justify-content: flex-start;
  }

  .footer__copy {
    margin-top: 0;
  }

  body:not(.home) {
    margin: 0;
    border-radius: 0;
  }

  body:not(.home) header {
    padding: 28px 20px 0;
  }

  body:not(.home) article {
    padding: 16px 20px;
  }

  body:not(.home) hr {
    margin: 8px 20px;
  }

  body:not(.home) footer {
    padding: 28px 20px;
    border-radius: 0;
  }
}

@media (max-width: 440px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual-inner {
    width: 100%;
    padding: 12px;
  }

  .about__badge {
    bottom: 14px;
    left: 14px;
    padding: 10px 14px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}