:root {
  color-scheme: light;
  --ink: #11283a;
  --muted: #587083;
  --blue: #176fa8;
  --deep: #082f50;
  --deep-2: #0d416a;
  --ice: #eef8ff;
  --line: #cfe3f0;
  --white: #fff;
  --green: #4ac969;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ice);
}

a { color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 660px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(63, 160, 216, .28), transparent 30%),
    linear-gradient(135deg, var(--deep), #061e34 75%);
}

.hero-inner { min-height: inherit; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}

.language-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
}

.language-switcher a,
.language-switcher span {
  min-width: 43px;
  padding: 5px 11px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.language-switcher span {
  color: var(--deep);
  background: var(--white);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .85fr);
  align-items: center;
  gap: 56px;
  padding: 58px 0 94px;
}

.hero-copy {
  max-width: 760px;
  padding: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8fd1f3;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--blue); }

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(46px, 7.5vw, 84px);
  line-height: .98;
  letter-spacing: -.055em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.lead {
  max-width: 720px;
  margin-bottom: 34px;
  color: #d8edfb;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
}

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  color: var(--deep);
  background: var(--white);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
  outline: 1px solid rgba(255, 255, 255, .24);
  outline-offset: -1px;
}

.ios-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ios-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--white);
  background: var(--deep);
  font-size: 16px;
  line-height: 1;
}

.android-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  background: rgba(74, 201, 105, .18);
  box-shadow: none;
  outline: 1px solid rgba(74, 201, 105, .45);
  outline-offset: -1px;
  cursor: default;
  user-select: none;
}

.android-mark {
  position: relative;
  width: 18px;
  height: 14px;
  border-radius: 8px 8px 4px 4px;
  background: var(--green);
}

.android-mark::before,
.android-mark::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 2px;
  height: 7px;
  border-radius: 99px;
  background: var(--green);
}

.android-mark::before {
  left: 4px;
  transform: rotate(-28deg);
}

.android-mark::after {
  right: 4px;
  transform: rotate(28deg);
}

.hero-product {
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.product-shot {
  display: block;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .32);
}

.product-shot-iphone {
  width: min(34vw, 268px);
  min-width: 200px;
  height: auto;
  margin-right: -34px;
  border-radius: 32px;
  transform: rotate(-3deg);
}

.section { padding: 88px 0 48px; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: 80px;
}

.intro-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 96px;
}

.feature {
  min-height: 176px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
}

.showcase {
  overflow: hidden;
  padding: 88px 0 96px;
  background: var(--white);
}

.section-heading { max-width: 720px; }

.device-tabs {
  margin-top: 36px;
}

.device-tab-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.device-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ice);
}

.device-switch label {
  min-width: 104px;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

#device-iphone-ru:checked ~ .device-switch label[for="device-iphone-ru"],
#device-ipad-ru:checked ~ .device-switch label[for="device-ipad-ru"],
#device-iphone-en:checked ~ .device-switch label[for="device-iphone-en"],
#device-ipad-en:checked ~ .device-switch label[for="device-ipad-en"] {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(23, 111, 168, .22);
}

.device-panel { display: none; }

#device-iphone-ru:checked ~ .device-panels .iphone-gallery,
#device-ipad-ru:checked ~ .device-panels .ipad-gallery,
#device-iphone-en:checked ~ .device-panels .iphone-gallery,
#device-ipad-en:checked ~ .device-panels .ipad-gallery {
  display: flex;
}

.gallery {
  gap: 24px;
  margin: 42px 0 0;
  padding: 0 0 28px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--line) transparent;
}

.screenshot {
  flex: 0 0 clamp(250px, 27vw, 300px);
  margin: 0;
  scroll-snap-align: start;
}

.screenshot.landscape {
  flex-basis: clamp(360px, 46vw, 520px);
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d7e4ec;
  border-radius: 30px;
  background: #dceaf3;
  box-shadow: 0 20px 46px rgba(8, 47, 80, .16);
}

.screenshot figcaption {
  display: grid;
  gap: 3px;
  padding: 18px 6px 0;
}

.screenshot figcaption strong { font-size: 18px; }

.screenshot figcaption span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.note {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 72px;
  margin-top: 88px;
  margin-bottom: 88px;
  padding: 36px;
  border-left: 5px solid var(--green);
  border-radius: 0 18px 18px 0;
  background: var(--white);
}

.note h2 { margin-bottom: 0; font-size: clamp(26px, 3vw, 38px); }

.note > p {
  align-self: center;
  margin-bottom: 0;
  color: var(--muted);
}

.footer {
  padding: 34px 0;
  color: #c7deeb;
  background: var(--deep);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

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

.footer a { font-weight: 700; }

@media (max-width: 820px) {
  .hero { min-height: 600px; }
  .hero-content { grid-template-columns: 1fr; gap: 34px; padding: 58px 0 80px; }
  .hero-product { min-height: 430px; justify-content: center; }
  .product-shot-iphone { width: min(43vw, 216px); min-width: 168px; margin-right: -28px; }
  .intro, .note { grid-template-columns: 1fr; gap: 18px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .hero { min-height: 570px; }
  .topbar { padding-top: 20px; }
  .hero-content { padding: 46px 0 70px; }
  .hero-product { min-height: 315px; }
  .product-shot-iphone { width: 37vw; min-width: 132px; margin-right: -16px; border-radius: 22px; }
  h1 { font-size: clamp(43px, 14vw, 64px); }
  .section, .showcase { padding-top: 68px; }
  .features { grid-template-columns: 1fr; padding-bottom: 72px; }
  .feature { min-height: auto; }
  .gallery {
    gap: 18px;
  }
  .screenshot { flex-basis: min(78vw, 300px); }
  .screenshot.landscape { flex-basis: min(86vw, 520px); }
  .note { margin: 68px 14px; padding: 28px 24px; }
  .footer-inner { flex-direction: column; }
}

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