/* Цвета и базовые стили */
:root {
  color-scheme: light;
  --ink: #1d2531;
  --muted: #515861;
  --paper: #fbfaf8;
  --red: #c8392b;
  --red-hover: #aa2a1f;
  --line: #e6e3df;
  --radius: 22px;
  --wrap: 1232px;
  --header-height: 76px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: white;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 280px;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

a:focus-visible, button:focus-visible, video:focus-visible {
  outline: 3px solid #1759ae;
  outline-offset: 5px;
}

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

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

[hidden] {
  display: none !important;
}

.icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
}

.wrap {
  width: min(calc(100% - 112px), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 10;
  background: white;
  padding: 12px 20px;
  border-radius: 8px;
}

.skip:focus {
  top: .6rem;
}

/* Шапка и навигация */
.site-header {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 8px;
  color: #1c2025;
  font-size: 1.83rem;
  letter-spacing: -.065em;
  line-height: 1;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  flex: none;
}

.main-nav {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
}

.main-nav a {
  font-size: .94rem;
  font-weight: 550;
  color: #45484b;
  padding: 11px 0;
  text-decoration: none;
}

.main-nav a:hover, .back-to-top:hover {
  color: var(--red);
}

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  min-height: 52px;
  padding: 13px 21px;
  font-size: .995rem;
  line-height: 1.3;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, transform .2s, box-shadow .2s;
}

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

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--red);
  color: white;
}

.button-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 5px 12px #b939261d;
}

.button-primary .icon, .play-disc .icon, .banner-platform .icon {
  filter: brightness(0) invert(1);
}

.header-download {
  gap: 7px;
  min-height: 44px;
  font-size: .9rem;
  padding: 10px 17px;
  border-radius: 9px;
}

.header-download .icon {
  width: 17px;
  height: 17px;
}

.icon-button {
  color: var(--ink);
  height: 44px;
  width: 44px;
  display: inline-grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.icon-button:hover {
  background: var(--paper);
}

.menu-toggle {
  display: none;
}

/* Первый экран */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  padding-block: clamp(34px, 4vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  align-items: center;
  gap: clamp(34px, 5.2vw, 88px);
}

.hero-copy {
  min-width: 0;
  padding-block: 8px;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  letter-spacing: .005em;
  font-weight: 650;
  color: #505964;
  border: 1px solid #dddcd9;
  background: #fff;
  border-radius: 99px;
  padding: 7px 12px;
}

.platform .icon {
  width: 14px;
  height: 14px;
}

h1 {
  font-size: clamp(3.55rem, 5.78vw, 5.65rem);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: 1.01;
  margin: 22px 0 19px;
}

h1 span {
  color: var(--red);
}

.hero-description {
  font-size: clamp(1.04rem, 1.28vw, 1.22rem);
  line-height: 1.56;
  color: var(--muted);
  max-width: 490px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-download {
  min-height: 64px;
  max-width: 100%;
  padding: 16px 32px;
  gap: 12px;
  font-size: clamp(1.1rem, 1.55vw, 1.3rem);
  font-weight: 700;
  border-radius: 13px;
  box-shadow: 0 5px 15px #9f37242b;
}

.hero-download .icon {
  width: 24px;
  height: 24px;
}

.download-info {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}

.hero-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 25px;
  background: #f5b687;
  aspect-ratio: 1.27;
  width: 100%;
  align-self: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 50% 52%;
  transition: transform .85s cubic-bezier(.2,.8,.3,1);
}

.hero-art:hover .hero-image {
  transform: scale(1.025);
}

.watch {
  position: absolute;
  left: 20px;
  bottom: 19px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fffaf3f5;
  box-shadow: 0 2px 14px #4f211319;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 650;
  border: 1px solid #ffffff9c;
  border-radius: 100px;
  padding: 5px 14px 5px 5px;
  backdrop-filter: blur(10px);
  color: #34251e;
}

.play-disc {
  background: #252629;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .2s;
}

.play-disc .icon {
  width: 14px;
  height: 14px;
}

.watch:hover .play-disc {
  background: var(--red);
}

/* Заголовки и сетка разделов */
.section {
  padding-block: clamp(56px, 5.35vw, 84px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #a82e23;
  font-size: .745rem;
  letter-spacing: .135em;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 740;
  margin-bottom: 10px;
}

.kicker::before {
  content: "";
  width: 27px;
  height: 2px;
  background: #cf4935;
}

h2 {
  font-size: clamp(2.05rem, 3.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.05em;
  font-weight: 730;
}

h3 {
  font-size: 1.32rem;
  letter-spacing: -.035em;
  line-height: 1.28;
  font-weight: 690;
}

.feature-grid, .review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 27px;
}

/* Возможности */
.feature-card {
  padding: clamp(22px, 2.2vw, 32px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px #4633210b;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--tile);
}

.feature-icon .icon {
  width: 27px;
  height: 27px;
}

.coral {
  --tile: #fce5dc;
}

.blue {
  --tile: #e3edf9;
}

.mint {
  --tile: #e0f1e9;
}

.feature-card p, .section-head p, .gallery-caption, .review-card p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.feature-card p {
  margin-top: 9px;
}

/* Галерея скриншотов */
.gallery {
  background: #f5f3f0;
  border-block: 1px solid var(--line);
}

.gallery-shell {
  display: grid;
  grid-template-columns: minmax(220px, .43fr) minmax(0, 1fr);
  gap: clamp(22px, 3.7vw, 54px);
  align-items: start;
  margin-top: 30px;
}

.gallery-tabs {
  display: grid;
  gap: 8px;
}

.gallery-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  padding: 11px 13px;
  font-size: 1rem;
  font-weight: 620;
  border-radius: 13px;
  color: #555a60;
}

.gallery-tab .icon {
  width: 22px;
  height: 22px;
}

.gallery-tab:hover {
  background: #ffffff9c;
}

.gallery-tab[aria-selected="true"] {
  color: #a93127;
  background: white;
  border-color: #dfd9d0;
  box-shadow: 0 3px 8px #38281707;
}

.gallery-tab[aria-selected="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: auto;
  background: var(--red);
}

.gallery-panels {
  min-width: 0;
}

.gallery-panel + .gallery-panel {
  margin-top: 24px;
}

.tabs-ready .gallery-panel {
  margin: 0;
}

.screen-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e9ed;
  border: 1px solid #d8dce1;
  border-radius: var(--radius);
  padding: clamp(13px, 2.4vw, 36px);
  text-decoration: none;
  overflow: hidden;
}

.screen-link > img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 13px #26314026);
}

.enlarge {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  color: #43484c;
}

.enlarge .icon {
  width: 17px;
  height: 17px;
}

.gallery-caption {
  margin-top: 13px;
}

.gallery-source {
  display: inline-block;
  margin-top: 6px;
  font-size: .82rem;
  color: #555e65;
  text-underline-offset: 3px;
}

/* Отзывы */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head p {
  font-size: .91rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: clamp(21px, 2.2vw, 30px);
}

.stars {
  color: #a84b21;
  letter-spacing: .13em;
  line-height: 1;
  font-size: 1.14rem;
}

.empty-star {
  color: #d5d1ca;
}

.review-card p {
  margin: 16px 0 23px;
  color: #353b42;
}

.review-card footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.avatar {
  flex: none;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 700;
}

.avatar-plum {
  background: #eee6f2;
  color: #674f70;
}

.avatar-sage {
  background: #e2ede6;
  color: #4b6759;
}

.avatar-peach {
  background: #f7e4d6;
  color: #7b5942;
}

.review-card footer strong {
  display: block;
  font-size: .89rem;
}

.review-card footer a {
  font-size: .78rem;
  text-underline-offset: 2px;
  color: #5b6266;
}

/* Загрузка и подвал */
.download-section {
  padding-bottom: clamp(50px, 5vw, 78px);
}

.download-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #a52f25;
  color: white;
  padding: clamp(30px, 4.2vw, 64px);
  border-radius: var(--radius);
}

.download-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(circle at 81% 156%, transparent 0 52px, #fec5a51a 53px 55px, transparent 56px 79px), linear-gradient(110deg,#a62c23, #bc3e2d 62%,#c85e3f);
}

.banner-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .89rem;
  font-weight: 650;
  margin-bottom: 13px;
}

.banner-platform .icon {
  width: 15px;
  height: 15px;
}

.banner-copy > p:last-child {
  margin-top: 12px;
  max-width: 540px;
  line-height: 1.55;
}

.button-light {
  background: white;
  color: #9e3026;
  flex: none;
}

.button-light:hover {
  background: #fff0e9;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 28px;
}

.footer-brand {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-brand .brand {
  font-size: 1.32rem;
  gap: 5px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  text-underline-offset: 3px;
}

.footer-brand p, .back-to-top {
  font-size: .83rem;
  color: #62666b;
  line-height: 1.5;
}

/* Просмотр изображений и видео */
dialog {
  width: min(960px, 94vw);
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0;
  border: 1px solid #d8d5d0;
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 30px 100px #1116;
}

dialog:not([open]) {
  display: none;
}

dialog::backdrop {
  background: #161a20c9;
  backdrop-filter: blur(4px);
}

.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 22px;
}

.dialog-bar h2 {
  font-size: 1.1rem;
  letter-spacing: -.02em;
}

.dialog-content {
  background: #eef0f3;
}

.dialog-content video, .dialog-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 77vh;
  max-height: 77dvh;
  object-fit: contain;
}

.video-footnote {
  padding: 14px 20px 18px;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--muted);
}

body:has(dialog[open]) {
  overflow: hidden;
}

/* Анимация */
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: enter .48s ease-out both;
  }

  .hero-art {
    animation: enter .64s ease-out both;
  }

  .tabs-ready .gallery-panel:not([hidden]), dialog[open] {
    animation: enter .22s ease-out both;
  }
}

/* Адаптивная вёрстка */
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 72px);
  }

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

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 10px;
  }
}

@media (max-width: 780px) {
  .wrap {
    width: calc(100% - 40px);
  }

  :root {
    --header-height: 64px;
  }

  .header-inner {
    min-height: var(--header-height);
    gap: 12px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 1.55rem;
    gap: 6px;
  }

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

  .header-download {
    margin-left: auto;
  }

  .main-nav {
    order: 4;
    flex: 1 0 100%;
    flex-wrap: wrap;
    gap: 6px 22px;
    padding: 4px 0 13px;
    margin: 0;
  }

  .js-menu .main-nav:not(.is-open) {
    display: none;
  }

  .menu-toggle:not([hidden]) {
    display: inline-grid;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-block: 29px;
  }

  .hero-copy {
    padding: 0;
  }

  h1 {
    font-size: clamp(2.9rem, 9vw, 4.65rem);
    margin-block: 18px 14px;
  }

  .hero-description {
    max-width: 580px;
  }

  .hero-actions {
    margin-top: 21px;
  }

  .hero-art {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1.3;
    border-radius: 19px;
  }

  .hero-art img {
    object-position: 50% 53%;
  }

  .feature-grid, .review-grid {
    gap: 12px;
  }

  .feature-card, .review-card {
    padding: 19px;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: .95rem;
  }

  .gallery-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .gallery-tab {
    width: auto;
    min-height: 44px;
    padding: 8px 12px;
  }

  .gallery-tab[aria-selected="true"]::after {
    display: none;
  }

  .gallery-tab .icon {
    width: 18px;
    height: 18px;
  }

  .download-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    align-items: stretch;
  }

  .hero-download {
    width: 100%;
  }

  .download-info {
    text-align: center;
  }

  .hero-art {
    aspect-ratio: 1.16;
  }

  .feature-grid, .review-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 43px 1fr;
    column-gap: 16px;
    padding: 20px;
    align-items: center;
  }

  .feature-icon {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    margin: 0;
  }

  .feature-icon .icon {
    width: 23px;
    height: 23px;
  }

  .feature-card h3 {
    font-size: 1.21rem;
  }

  .feature-card p {
    grid-column: 1 / -1;
    margin-top: 13px;
  }

  .section {
    padding-block: 45px;
  }

  .kicker {
    margin-bottom: 8px;
  }

  .watch {
    left: 13px;
    bottom: 12px;
  }

  .gallery-tabs {
    gap: 3px;
  }

  .gallery-tab {
    font-size: .88rem;
    gap: 6px;
    padding: 8px 9px;
  }

  .gallery-tab .icon {
    display: none;
  }

  .screen-link {
    border-radius: 14px;
  }

  .review-card {
    padding: 22px;
  }

  .download-banner {
    padding: 25px 21px;
    gap: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .dialog-bar {
    padding-left: 13px;
  }
}

@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 30px);
  }

  .main-nav {
    column-gap: 14px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 3rem);
  }

  .header-inner {
    gap: 6px;
  }

  .header-inner .brand {
    font-size: 1.3rem;
    gap: 4px;
  }

  .header-inner .brand img {
    width: 27px;
    height: 27px;
  }

  .header-download {
    padding-inline: 10px;
  }

  .header-download .icon {
    display: none;
  }
}

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

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
