:root {
  color-scheme: light;
  --night: #091221;
  --ink: #151e2b;
  --muted: #505e6d;
  --paper: #fbfaf7;
  --line: #d4d8da;
  --accent: #ff714f;
  --gutter: clamp(1.15rem, 5vw, 5rem);
  --header-height: 4.4rem;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #2388ec;
  outline-offset: 4px;
}

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

[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.6rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.4rem;
  background: white;
  color: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

/* Шапка и основное действие */
.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--night);
  color: #f6f7fb;
  border-bottom: 1px solid #253042;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.065em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.8vw, 2.6rem);
  margin-inline: auto 0;
}

.site-nav a,
.back-to-top {
  color: #ccd4df;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 520;
}

.site-nav a:hover,
.back-to-top:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.button {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 3.5rem;
  padding: 0.85rem 1.55rem;
  border-radius: 0.45rem;
  background: var(--accent);
  color: #160f10;
  text-decoration: none;
  font-weight: 720;
  line-height: 1.2;
}

.button:hover {
  background: #ff8b6d;
}

.button-small {
  min-height: 2.55rem;
  padding: 0.58rem 1.12rem;
  margin-left: 0.45rem;
  font-size: 0.92rem;
}

.menu-toggle,
.dialog-close {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border: 1px solid #455168;
  border-radius: 0.4rem;
  background: transparent;
}

.menu-toggle {
  display: none;
}

.menu-toggle img,
.dialog-close img,
.button-dark img {
  filter: brightness(0) invert(1);
}

/* Первый экран */
.hero {
  overflow: hidden;
  background: var(--night);
  color: #f6f7fb;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.99fr) minmax(0, 1.01fr);
  align-items: stretch;
  min-height: clamp(30.8rem, 43vw, 38rem);
}

.hero-copy {
  align-self: center;
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 5.3vw, 6rem);
}

.product-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 clamp(1.5rem, 2.25vw, 2.4rem);
  font-size: 0.83rem;
  line-height: 1.2;
}

.product-name {
  color: #f4f6fa;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.product-name strong {
  color: #ff947a;
  font-weight: 650;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  padding-left: 0.9rem;
  border-left: 1px solid #566174;
  color: #c1cbd8;
}

.platform img {
  filter: invert(82%);
}

.hero h1 {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0;
  font-size: clamp(3.2rem, 6.1vw, 6rem);
  font-weight: 740;
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: #ff805f;
  font-style: normal;
}

.hero-summary {
  max-width: 29rem;
  margin: clamp(1.25rem, 2.15vw, 2.1rem) 0 1.9rem;
  color: #c2ccda;
  font-size: clamp(1rem, 1.23vw, 1.14rem);
  line-height: 1.58;
}

.button-primary {
  min-height: 3.65rem;
  padding-inline: 1.7rem;
  box-shadow: 0 5px 25px #ff5d301a;
  font-size: 1.04rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.hardware {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -4.75%;
  width: 113%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  mask-image: radial-gradient(ellipse 71% 66% at 52% 48%, black 52%, transparent 95%);
}

.video-link {
  position: absolute;
  right: 4%;
  bottom: clamp(1.75rem, 4.1vw, 3.8rem);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.8rem;
  padding: 0.3rem 0.95rem 0.3rem 0.38rem;
  border: 1px solid #536076;
  border-radius: 2rem;
  background: #111b2bef;
  color: #f5f7fa;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.video-link:hover {
  border-color: #ff9d86;
  background: #1c293e;
}

.play-disc {
  display: grid;
  place-items: center;
  width: 2.03rem;
  height: 2.03rem;
  border: 1px solid #566273;
  border-radius: 50%;
}

.play-disc img {
  filter: invert(1);
}

.video-duration {
  padding-left: 0.65rem;
  border-left: 1px solid #536076;
  color: #c4cdda;
  font-variant-numeric: tabular-nums;
  font-weight: 450;
}

/* Завершающий блок, подвал и просмотр медиа */
.download-band {
  color: #211412;
  background: var(--accent);
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3rem, 5.9vw, 5.8rem);
}

.download-inner h2 {
  margin: 0;
  font-size: clamp(2.05rem, 3.85vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.download-inner p {
  margin: 0.8rem 0 0;
}

.button-dark {
  flex-shrink: 0;
  color: #fff;
  background: var(--night);
}

.button-dark:hover {
  background: #263245;
}

.site-footer {
  color: #c2cbd8;
  background: var(--night);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding-block: 1.45rem;
}

.footer-inner .wordmark {
  font-size: 1.18rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.8rem;
}

.back-to-top {
  margin-left: auto;
  white-space: nowrap;
}

.back-to-top span {
  margin-left: 0.25rem;
}

.media-dialog {
  width: min(68rem, calc(100% - 2rem));
  max-height: 94vh;
  padding: 0;
  border: 1px solid #445065;
  border-radius: 0.65rem;
  color: #fff;
  background: #101927;
}

.media-dialog::backdrop {
  background: #030811df;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
}

.dialog-head h2 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.25;
}

.dialog-close:hover {
  background: #344158;
}

.media-stage {
  display: grid;
  place-items: center;
  background: #080e18;
}

.media-stage img,
.media-stage video {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

@media (max-width: 760px) {
  :root {
    --header-height: 3.9rem;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
  }

  .wordmark {
    font-size: 1.32rem;
  }

  .wordmark img {
    width: 1.8rem;
    height: 1.8rem;
  }

  .button-small {
    margin-left: auto;
  }

  .site-nav {
    order: 1;
    width: 100%;
    margin: 0;
    padding-block: 0.15rem 0.75rem;
    gap: 1.35rem;
  }

  .site-nav a {
    padding-block: 0.45rem;
  }

  .menu-ready .menu-toggle {
    display: grid;
  }

  .menu-ready .site-nav {
    display: none;
  }

  .menu-ready .site-nav.is-open {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding-block: clamp(2.6rem, 7vw, 4rem) 0;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12.6vw, 4.75rem);
    letter-spacing: -0.045em;
  }

  .hero-summary {
    margin-block: 1.15rem 1.4rem;
  }

  .hero-visual {
    height: clamp(13.5rem, 52vw, 23rem);
    margin-top: -0.1rem;
  }

  .hardware {
    right: -6%;
    width: 103%;
    mask-image: radial-gradient(ellipse 62% 71% at 51% 51%, black 49%, transparent 94%);
  }

  .video-link {
    right: 0;
    bottom: 1rem;
  }

  .download-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 440px) {
  .footer-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-inner p {
    flex-basis: 100%;
    order: 1;
  }

  .button-small {
    min-height: 2.45rem;
    padding-inline: 0.82rem;
  }
}

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

  .hero-copy {
    animation: enter-copy 560ms ease-out both;
  }

  .hardware {
    animation: enter-hardware 850ms cubic-bezier(.22, .61, .36, 1) both;
  }

  .button,
  .video-link {
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
  }

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

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

  @keyframes enter-copy {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes enter-hardware {
    from { opacity: 0; transform: translate(9px, 7px) scale(0.985); }
    to { opacity: 1; transform: none; }
  }
}
/* Варианты очистки */
.cleanup-guide,
.reader-reviews {
  color: var(--ink);
  background: var(--paper);
}

.cleanup-guide,
.interface-gallery,
.reader-reviews {
  padding-block: clamp(3.75rem, 7vw, 7rem);
}

.cleanup-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
}

.cleanup-intro h2,
.gallery-heading h2,
.reviews-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.15vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.cleanup-intro h2 {
  max-width: 8.5em;
  text-wrap: balance;
}

.cleanup-intro p,
.cleanup-item p,
.screen-caption > p:last-child,
.reviews-heading p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.cleanup-intro p {
  margin: 1.35rem 0 0;
  max-width: 35ch;
}

.cleanup-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cleanup-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.cleanup-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #f4e4d9;
}

.cleanup-icon img {
  width: 1.55rem;
  height: 1.55rem;
}

.cleanup-item h3,
.screen-caption h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.75vw, 1.65rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.cleanup-item p {
  margin: 0.45rem 0 0;
  max-width: 54ch;
}

/* Галерея интерфейса */
.interface-gallery {
  color: var(--ink);
  background: #edf0f3;
  border-block: 1px solid #d7dbe0;
}

.gallery-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.35rem 2rem;
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #c5cbd0;
  border-radius: 0.35rem;
  color: #343e4c;
  font-size: 0.875rem;
  font-weight: 620;
  line-height: 1.25;
  text-decoration: none;
}

.gallery-tab:hover {
  border-color: #586575;
}

.gallery-tab[aria-selected="true"] {
  color: white;
  border-color: #172332;
  background: #172332;
}

.gallery-panels {
  display: grid;
  gap: 1.25rem;
}

.gallery-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: stretch;
  margin: 0;
  overflow: hidden;
  border: 1px solid #cbd2d8;
  border-radius: 0.75rem;
  background: #f9fafb;
}

.gallery-panel[hidden] {
  display: none;
}

.screen-link {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
  padding: clamp(1.25rem, 3.2vw, 3.1rem);
  background: #d6dfe7;
  background-image:
    linear-gradient(140deg, transparent 50%, #8fa7bf38),
    linear-gradient(#ffffff45 1px, transparent 1px),
    linear-gradient(90deg, #ffffff45 1px, transparent 1px);
  background-size: auto, 1.5rem 1.5rem, 1.5rem 1.5rem;
  cursor: zoom-in;
}

.screen-link:focus-visible {
  z-index: 1;
  outline-offset: -4px;
}

.product-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
  box-shadow: 0 10px 20px -10px #17293d60;
}

.screen-expand {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #aab3bd;
  border-radius: 50%;
  background: #fff;
}

.screen-expand img {
  width: 1.05rem;
  height: 1.05rem;
}

.screen-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: clamp(1.4rem, 3.5vw, 3.3rem);
}

.screen-edition {
  margin: 0 0 0.9rem;
  color: #67432f;
  font-size: 0.82rem;
  font-weight: 690;
}

.screen-caption h3 {
  max-width: 15ch;
  font-size: clamp(1.55rem, 2.5vw, 2.55rem);
}

.screen-caption > p:last-child {
  margin: 0.85rem 0 0;
  max-width: 36ch;
}

.gallery-credit {
  margin: 0.85rem 0 0;
  color: #566270;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.gallery-credit a,
.reader-review footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Отзывы */
.reviews-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem 1.75rem;
  margin-bottom: clamp(1.75rem, 3vw, 3.25rem);
}

.reviews-heading p {
  margin: 0;
}

.reader-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.reader-review {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
  padding-block: clamp(1.4rem, 2.5vw, 2.2rem);
  padding-inline: clamp(1.25rem, 2.4vw, 2.3rem);
}

.reader-review:first-child {
  padding-left: 0;
}

.reader-review:last-child {
  padding-right: 0;
}

.reader-review + .reader-review {
  border-left: 1px solid var(--line);
}

.reader-rating {
  color: #a64026;
  font-size: 1rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.unfilled-star {
  color: #806857;
}

.reader-review > p {
  margin: 1.15rem 0 1.5rem;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.58;
}

.reader-review footer {
  margin-top: auto;
}

.reader-review h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.35;
}

.reader-review footer a {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .cleanup-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .cleanup-intro h2,
  .cleanup-intro p {
    max-width: 40ch;
  }

  .cleanup-intro p {
    margin-top: 0.8rem;
  }

  .gallery-heading {
    display: grid;
  }

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

  .screen-caption {
    padding: 1.25rem;
  }
}

@media (max-width: 620px) {
  .cleanup-item {
    grid-template-columns: 2.55rem minmax(0, 1fr);
    gap: 0.85rem;
    padding-block: 1.15rem;
  }

  .cleanup-icon {
    width: 2.55rem;
    height: 2.55rem;
  }

  .gallery-tabs {
    margin: 0;
  }

  .gallery-tab {
    padding-inline: 0.65rem;
  }

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

  .screen-caption h3,
  .screen-caption > p:last-child {
    max-width: none;
  }

  .screen-caption {
    padding: 1.2rem;
  }

  .reader-review,
  .reader-review:first-child,
  .reader-review:last-child {
    padding: 1.4rem 0;
  }

  .reader-review + .reader-review {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-tab,
  .screen-expand {
    transition: background-color 160ms ease, border-color 160ms ease;
  }

  .screen-link:hover .screen-expand {
    background: #fff0e5;
    border-color: #b06e4a;
  }
}
