@font-face {
  font-family: Onest;
  src: url("/assets/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Onest;
  src: url("/assets/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --page: #f6f7fb;
  --ink: #17193b;
  --muted: #50546e;
  --rule: #e2e4ef;
  --navy: #14173f;
  --yellow: #ffdd61;
  font-family: Onest, system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #5363ee; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }

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

.topbar {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand, .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.brand { gap: 11px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: var(--navy);
  color: var(--yellow);
}

.plane {
  display: inline-block;
  flex: none;
  width: 17px;
  height: 17px;
  background: currentColor;
  clip-path: polygon(3% 40%, 98% 4%, 80% 95%, 56% 68%, 44% 88%, 42% 60%, 77% 26%, 31% 55%);
}

.nav-link { padding: 0 2px; color: var(--muted); font-size: .9rem; }
.nav-link:hover, .footer a:hover { color: var(--ink); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 415px;
  border-radius: 30px;
  background: var(--navy);
  color: white;
}

.hero-copy { padding: 54px 0 54px 56px; z-index: 1; }
.hero h1 {
  font-size: clamp(3rem, 6.1vw, 5.3rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: 1;
}

.hero h1 span { display: block; color: var(--yellow); }
.hero p { max-width: 390px; margin-top: 21px; color: #e2e3fa; line-height: 1.6; font-size: 1.06rem; }
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  margin-top: 25px;
  padding: 10px 19px;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  transition: background .18s ease;
}

.hero-link:hover { background: #fff0a2; }
.hero-link:focus-visible { outline-color: white; }
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 44%;
  display: grid;
  align-items: stretch;
  mask-image: linear-gradient(to right, transparent, black 14%);
}

.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.catalog { padding-top: 51px; scroll-margin-top: 16px; }
.catalog h2 { font-size: clamp(1.95rem, 4vw, 2.85rem); line-height: 1.13; letter-spacing: -.065em; margin-bottom: 20px; }

.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 19px; }
.card {
  grid-column: span 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 21px;
  background: white;
  box-shadow: 0 4px 12px #291f7110;
}

.card.feature { grid-column: span 3; }
.rutor { --tint: #e4e6ff; --accent: #3c42ae; --button: #ecedff; }
.video { --tint: #ffddd6; --accent: #9c2c26; --button: #fff0eb; }
.expenses { --tint: #d7eee1; --accent: #15583b; --button: #e7f5ed; }
.birthdays { --tint: #ffe9ba; --accent: #755017; --button: #fff3d9; }
.translator { --tint: #dceefe; --accent: #155284; --button: #e7f4ff; }

.card-art {
  height: 124px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, #fff8, transparent 63%),
    radial-gradient(#ffffffba 1px, transparent 1.5px) 0 0 / 14px 14px,
    var(--tint);
  color: var(--accent);
}

.feature .card-art { height: 144px; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 21px 22px 22px; }
.card h3 { font-size: clamp(1.25rem, 2.4vw, 1.48rem); line-height: 1.2; letter-spacing: -.04em; font-weight: 800; }
.card p { font-size: 1rem; line-height: 1.55; color: var(--muted); margin: 9px 0 17px; }
.access { color: var(--muted); font-size: .875rem; line-height: 1.4; margin: -4px 0 14px; }
.bot-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  max-width: 100%;
  margin-top: auto;
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--button);
  color: var(--accent);
  font-size: .925rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s, color .18s;
}

.bot-link:hover { background: var(--accent); color: white; }

.file-sample, .video-sample, .receipt-sample, .calendar-sample, .chat-sample span {
  box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 23%, transparent);
}

.file-sample {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(256px, calc(100% - 36px));
  padding: 13px;
  border-radius: 15px;
  background: #fff;
  transform: rotate(-5deg);
}

.sample-copy { display: grid; gap: 2px; }
.sample-copy strong { color: #25265d; }
.sample-copy small { color: #535779; font-size: .76rem; }
.sample-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  background: #e6e8ff;
  border-radius: 10px;
}

.download-icon::before {
  content: "";
  width: 17px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(40% 0, 60% 0, 60% 42%, 95% 42%, 50% 87%, 5% 42%, 40% 42%, 40% 0, 0 0, 0 100%, 100% 100%, 100% 90%, 0 90%, 0 0);
}

.sample-check {
  flex: 0 0 11px;
  height: 6px;
  margin-left: auto;
  margin-right: 5px;
  border: solid #237653;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.video-sample {
  position: relative;
  display: grid;
  place-items: center;
  width: 182px;
  height: 102px;
  border-radius: 13px;
  background: linear-gradient(150deg, #ea6b61, #b63239);
  border: 4px solid #fff9f6;
  transform: rotate(5deg);
}

.play-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #fff;
}

.play-icon::before {
  content: "";
  margin-left: 3px;
  border-left: 11px solid #ad3233;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.play-timeline {
  position: absolute;
  bottom: 10px;
  inset-inline: 11px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #fff 38%, #ffffff59 38%);
}

.receipt-sample {
  position: relative;
  display: grid;
  gap: 4px;
  width: 119px;
  padding: 13px 15px;
  transform: rotate(-7deg);
  border-radius: 9px;
  background: #fff;
}

.receipt-sample small { font-size: .73rem; }
.receipt-sample strong { font-size: 1.22rem; letter-spacing: -.04em; }
.receipt-line { border-top: 2px dashed #b5d8c4; margin-top: 4px; }

.calendar-sample {
  display: grid;
  overflow: hidden;
  width: 83px;
  border-radius: 12px;
  color: #5a3913;
  background: white;
  text-align: center;
  transform: rotate(-8deg);
}
.calendar-sample small { padding: 5px; background: #ffe093; font-size: .67rem; font-weight: 800; letter-spacing: .12em; }
.calendar-sample strong { padding: 4px 0 8px; font-size: 2rem; line-height: 1; letter-spacing: -.06em; }
.calendar-sparkle {
  position: absolute;
  width: 26px;
  height: 26px;
  transform: translate(63px, -20px);
  background: #a36316;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.chat-sample {
  display: grid;
  justify-items: start;
  gap: 7px;
  width: 148px;
  transform: rotate(-5deg);
}

.chat-sample span { padding: 7px 12px; font-weight: 750; border-radius: 12px 12px 12px 3px; background: white; }
.chat-sample span + span { justify-self: end; border-radius: 12px 12px 3px 12px; background: #24679a; color: white; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 45px;
  min-height: 76px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9rem;
}

.footer a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }

@media (max-width: 930px) {
  .hero { min-height: 370px; }
  .hero-copy { padding-left: 40px; }
  .card-body { padding-inline: 18px; }
  .cards { gap: 15px; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .topbar { min-height: 64px; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 23px; }
  .hero-copy { padding: 30px 25px 0; }
  .hero h1 { font-size: clamp(2.95rem, 9.5vw, 4.7rem); }
  .hero p { margin-top: 15px; max-width: 365px; font-size: 1rem; }
  .hero-link { margin-top: 18px; }
  .hero-art { position: relative; inset: auto; height: clamp(188px, 53vw, 275px); margin-top: -6px; mask-image: linear-gradient(to bottom, transparent, black 19%); }
  .hero-art img { object-position: center 60%; }
  .catalog { padding-top: 34px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card.feature { grid-column: span 1; }
  .card-art, .feature .card-art { height: 115px; }
}

@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .card-body { padding: 18px; }
  .bot-link { width: 100%; }
  .footer { margin-top: 31px; min-height: 65px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-link, .bot-link { transition: none; }
}
