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

:root {
  --bg: #f4ecdd;
  --bg-soft: #fbf7ef;
  --paper: #fffdf8;
  --ink: #1f2a37;
  --ink-soft: #4c5a6a;
  --line: #dbcdb8;
  --brand: #16697a;
  --brand-2: #f28b30;
  --shadow: 0 14px 40px rgba(58, 45, 28, 0.09);
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, #f7d9a5 0%, transparent 45%),
    radial-gradient(circle at 85% 0%, #b8e4da 0%, transparent 38%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 45%, #efe4d4 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 24px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(219, 205, 184, 0.75);
  backdrop-filter: blur(10px);
  background: rgba(251, 247, 239, 0.8);
}

.site-nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.brand img {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.lang-btn {
  border: 1px solid #ccbba1;
  background: #fff7ea;
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  border-color: #b8a282;
}

.hero {
  padding: 76px 0 30px;
}

.hero-panel {
  border: 1px solid rgba(219, 205, 184, 0.8);
  background: linear-gradient(140deg, rgba(255, 253, 248, 0.95), rgba(251, 243, 230, 0.95));
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 52px);
  position: relative;
  overflow: hidden;
  animation: rise 0.65s ease-out both;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-panel::before {
  width: 240px;
  height: 240px;
  top: -110px;
  right: -80px;
  background: radial-gradient(circle, rgba(22, 105, 122, 0.2), transparent 70%);
}

.hero-panel::after {
  width: 190px;
  height: 190px;
  left: -80px;
  bottom: -75px;
  background: radial-gradient(circle, rgba(242, 139, 48, 0.22), transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(22, 105, 122, 0.28);
  background: rgba(22, 105, 122, 0.08);
  color: #0d5261;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.05;
  max-width: 10ch;
  margin-bottom: 16px;
  color: var(--ink);
}

.hero p {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 19px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #0f5665);
  box-shadow: 0 8px 22px rgba(22, 105, 122, 0.25);
}

.btn-secondary {
  border: 1px solid #cdb89a;
  background: #fff8ee;
  color: #2b3a4a;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 600px;
}

.stat {
  border: 1px solid var(--line);
  background: #fffbf3;
  border-radius: 12px;
  padding: 12px 14px;
}

.stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.24rem;
  line-height: 1.2;
  color: #243245;
}

.stat span {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 800;
  color: #617286;
}

section {
  padding: 72px 0;
}

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: #6f7d8d;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
}

h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--ink-soft);
  max-width: 64ch;
  font-size: 0.98rem;
}

.apps-group-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.apps-grid .card {
  display: flex;
  flex-direction: column;
}

.card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(59, 43, 23, 0.06);
}

.card.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.55s ease forwards;
}

.apps-grid .card:nth-child(1) { animation-delay: 120ms; }
.apps-grid .card:nth-child(2) { animation-delay: 190ms; }
.apps-grid .card:nth-child(3) { animation-delay: 260ms; }
.apps-grid .card:nth-child(4) { animation-delay: 330ms; }
.apps-grid .card:nth-child(5) { animation-delay: 400ms; }

.app-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.app-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(140deg, #e7f8fa, #fff4e6);
  border: 1px solid #d9cec0;
  color: #33485f;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.app-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.app-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.apps-grid .card .app-desc {
  flex: 1 1 auto;
}

.apps-grid .card .app-desc + .tags,
.apps-grid .card .app-desc + .app-links {
  margin-top: auto;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.tag {
  border: 1px solid #d8c7b1;
  border-radius: 999px;
  background: #fff7ea;
  color: #53677c;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-link {
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.8rem;
  border: 1px solid #d2bea3;
  background: #fff9ef;
  transition: border-color 0.2s ease;
}

.app-link:hover {
  border-color: #b79d7a;
}

.app-link.primary {
  border-color: rgba(22, 105, 122, 0.3);
  background: rgba(22, 105, 122, 0.08);
  color: #0f5665;
}

/* ── Branded store buttons ─────────────────────────────── */
.app-link.google-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #01875f;
  border-color: #01875f;
  color: #fff;
  padding: 7px 13px;
}
.app-link.google-play::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath fill='%2334A853' d='M17,14.5l4.2-4.5L4.9,1.2C4.8,1.1,4.6,1.1,4.3,1L17,14.5z'/%3E%3Cpath fill='%23FBBC04' d='M23,21l5.9-3.2c0.7-0.4,1.1-1,1.1-1.8s-0.4-1.5-1.1-1.8L23,11l-4.7,5L23,21z'/%3E%3Cpath fill='%234285F4' d='M2.4,1.9C2.1,2.2,2,2.6,2,3V29c0,0.4,0.1,0.8,0.4,1.2L15.6,16L2.4,1.9z'/%3E%3Cpath fill='%23EA4335' d='M17,17.5L4.3,31c0.2,0,0.4-0.1,0.6-0.2L21.2,22L17,17.5z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.app-link.google-play:hover {
  background: #016e4e;
  border-color: #016e4e;
}

.app-link.app-store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #000;
  border-color: #000;
  color: #fff;
  padding: 7px 13px;
}
.app-link.app-store::before {
  content: '';
  width: 14px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98l-.09.06c-.22.14-2.18 1.27-2.16 3.8.03 3.02 2.65 4.03 2.68 4.04l-.07.28zM13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.app-link.app-store:hover {
  background: #222;
  border-color: #222;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.about-side {
  display: grid;
  gap: 12px;
}

.profile-photo {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.about-text p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: flex-start;
}

.skill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d4c2ad;
  background: #fff8ee;
  font-size: 0.78rem;
  color: #4e6277;
  font-weight: 700;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.review-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffbf3;
  padding: 16px;
}

.review-stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.review-stat p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.review-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 10px;
}

.review-quotes {
  margin-top: 14px;
}

.review-quote {
  border-left: 4px solid var(--brand);
  background: linear-gradient(140deg, #fffdf8, #fff7eb);
}

.review-quote p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.quote-author {
  font-size: 0.84rem;
  font-weight: 700;
  color: #5a6f83;
}

.contact-card {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 5vw, 42px);
  background:
    linear-gradient(145deg, rgba(22, 105, 122, 0.08), rgba(242, 139, 48, 0.12)),
    var(--paper);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--ink-soft);
  margin: 0 auto 16px;
  max-width: 56ch;
  font-size: 0.96rem;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid #cdb89a;
  background: #fff9ef;
  font-weight: 800;
  color: #294354;
}

.social-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

footer {
  padding: 36px 0 24px;
  color: #627082;
  font-size: 0.84rem;
  text-align: center;
}

footer a {
  color: #506277;
  text-decoration: none;
  font-weight: 700;
}

[data-lang="ua"] {
  display: none;
}

body.lang-ua [data-lang="en"] {
  display: none;
}

body.lang-ua [data-lang="ua"] {
  display: initial;
}

body.lang-ua .block[data-lang="ua"] {
  display: block;
}

.block[data-lang="ua"] {
  display: none;
}

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

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-nav-inner {
    height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav-links {
    gap: 10px;
    max-width: 300px;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .hero {
    padding-top: 42px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
