:root {
  --navy: #14264a;
  --navy-deep: #102241;
  --footer: #172845;
  --white: #ffffff;
  --muted: #5d6878;
  --line: #f0f0f0;
  --max: 1300px;
  --inner: 1000px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
}

.wrap-inner {
  width: min(var(--inner), calc(100% - 96px));
  margin: 0 auto;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 36px;
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover {
  opacity: 0.65;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 34px;
}

.langs {
  display: flex;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
  color: #7c8698;
}

.langs button {
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  color: inherit;
}

.langs button.is-active {
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  color: var(--white);
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
}

.btn:hover {
  background: #16305c;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 5;
  height: 560px;
  background: url("../assets/hero.png") center 40% / cover no-repeat;
}

.hero-inner {
  position: relative;
  height: 100%;
  padding-top: 80px;
}

.hero-copy {
  max-width: 560px;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: 62px;
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero p {
  margin: 0 0 32px;
  max-width: 400px;
  font-size: 18px;
  color: #5a6472;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border-radius: 9px;
  padding: 7px 16px 7px 13px;
  height: 50px;
}

.store svg {
  width: 24px;
  height: 26px;
  flex-shrink: 0;
}

.store small {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.store b {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ---------- phone ---------- */

.phone {
  position: absolute;
  top: 8px;
  right: max(0px, calc((100% - var(--inner)) / 2));
  width: 248px;
  padding: 4px;
  border-radius: 40px;
  background: #0f1319;
  box-shadow:
    0 0 0 3px #e7e7ec,
    0 26px 58px rgba(16, 24, 45, 0.3);
}

.phone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 20px;
  background: #0f1319;
  border-radius: 0 0 13px 13px;
  z-index: 3;
}

.app-status {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 16px 2px;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 600;
  height: 32px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 3px;
}

.status-icons svg {
  height: 8px;
  width: auto;
}

.app-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: #fff;
  color: #1f2a44;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
}

.app-burger {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 11px;
  object-fit: contain;
}

.app-actions {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-actions img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.app-body {
  flex: 1;
  padding: 2px 0 6px;
  background: #f8f8f8;
  overflow: hidden;
}

.app-head {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
}

.app-head b {
  font-size: 12px;
  font-weight: 600;
  color: #000;
}

.feed-card {
  display: flex;
  align-items: stretch;
  height: 70px;
  margin: 4px 10px;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0.5px 8px rgba(142, 142, 147, 0.22);
}

.feed-card > img:first-child {
  width: 58px;
  height: 58px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e8e8;
}

.feed-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 8px;
  padding: 1px 0 2px;
}

.feed-text b {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  color: #000;
}

.feed-text small {
  font-size: 8px;
  color: rgba(0, 0, 0, 0.55);
}

.feed-chev {
  width: 8px;
  height: 8px;
  align-self: center;
  margin: 0 4px 0 8px;
  opacity: 0.45;
}

.phone-tabs {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  background: #fff;
  padding: 8px 2px 4px;
  border-top: 1px solid #ececec;
}

.phone-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #9b9b9b;
  min-width: 0;
  flex: 1;
}

.phone-tabs span.is-on {
  color: #fbb063;
}

.phone-tabs img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.phone-tabs em {
  font-style: normal;
  font-size: 7px;
  font-weight: 500;
  white-space: nowrap;
}

.home-indicator {
  width: 84px;
  height: 3.5px;
  border-radius: 3px;
  background: #0f1319;
  margin: 6px auto 8px;
}

/* ---------- features ---------- */

.features {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 4px 0 22px;
}

.features h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  row-gap: 14px;
}

.card {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 20px 15px 44px;
  background: #fff;
}

.icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--navy);
}

.card > div {
  min-width: 0;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

/* ---------- footer ---------- */

.footer {
  background: var(--footer);
  color: #fff;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

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

.footer-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
}

.footer-mark img {
  width: 20px;
  height: auto;
}

.footer-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-links {
  display: flex;
  gap: 36px;
  font-size: 15px;
}

.footer-links a:hover {
  opacity: 0.75;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  opacity: 0.95;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ---------- legal pages ---------- */

.legal {
  padding: 48px 0 80px;
}

.legal h1 {
  margin: 0 0 16px;
  letter-spacing: -0.035em;
}

.legal p {
  color: var(--muted);
  max-width: 720px;
}

.legal-body {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

.legal-body h3,
.legal-body h4,
.legal-body h5 {
  color: var(--navy);
  margin: 28px 0 10px;
}

.legal-body p,
.legal-body li {
  line-height: 1.65;
}

.legal-body ul,
.legal-body ol {
  padding-left: 22px;
}

.legal-body a {
  text-decoration: underline;
}

.legal-note {
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 20px;
}

/* ---------- responsive ---------- */

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

  .hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero {
    height: auto;
    padding-bottom: 40px;
  }

  .hero-inner {
    padding-top: 48px;
  }

  .phone {
    position: static;
    margin: 36px auto 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .wrap,
  .wrap-inner {
    width: calc(100% - 32px);
  }

  .brand {
    font-size: 20px;
    gap: 9px;
  }

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

  .header-right,
  .langs {
    gap: 14px;
  }

  .langs {
    font-size: 14px;
  }

  .btn {
    padding: 9px 14px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .features h2 {
    font-size: 26px;
  }

  .card {
    gap: 16px;
    padding: 16px 18px;
  }

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

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