:root {
  --bg: #f5faec;
  --bg-2: #eef7dc;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --text: #1f2b1e;
  --muted: #65715f;
  --green: #5b9d33;
  --green-dark: #34751f;
  --green-soft: #dcefcf;
  --peach: #ffd9c4;
  --pink: #ee7aa0;
  --line: rgba(65, 94, 43, 0.16);
  --shadow: 0 24px 70px rgba(50, 91, 25, 0.16);
  --radius: 28px;
  --max: 1160px;
  --page-base: #fbfff4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page-base);
}

html.theme-domik {
  background: #fbfff4;
  color-scheme: light;
}

html.theme-intima {
  background: #09050a;
  color-scheme: dark;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fbfff4;
  line-height: 1.55;
  opacity: 1;
  transition: color 420ms ease, opacity 180ms ease;
}

body.theme-intima,
html.theme-intima body {
  --bg: #09050a;
  --bg-2: #1c0810;
  --surface: #151016;
  --surface-soft: rgba(22, 17, 24, 0.82);
  --text: #fff7fb;
  --muted: #d4bdc7;
  --green: #ff3f7d;
  --green-dark: #ff5b92;
  --green-soft: rgba(255, 64, 124, 0.18);
  --line: rgba(255, 78, 132, 0.25);
  --shadow: 0 30px 90px rgba(255, 44, 104, 0.16);
  --page-base: #09050a;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 520ms ease;
}

body::before {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 217, 196, 0.68), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(220, 239, 207, 0.95), transparent 34%),
    linear-gradient(180deg, #fbfff4 0%, #f5faec 48%, #fbfff6 100%);
  opacity: 1;
}

body::after {
  background:
    radial-gradient(circle at 18% 0%, rgba(129, 24, 48, 0.86), transparent 31%),
    radial-gradient(circle at 88% 8%, rgba(255, 55, 111, 0.22), transparent 30%),
    linear-gradient(180deg, #17050c 0%, #09050a 46%, #040205 100%);
  opacity: 0;
}

body.theme-intima::before,
html.theme-intima body::before {
  opacity: 0;
}

body.theme-intima::after,
html.theme-intima body::after {
  opacity: 1;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(248, 252, 239, 0.84);
  border-bottom: 1px solid var(--line);
  transition: background-color 420ms ease, border-color 420ms ease;
}

.theme-intima .site-header {
  background: rgba(12, 6, 10, 0.78);
}

.nav {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(70, 117, 35, 0.22);
  transition: box-shadow 420ms ease;
}

.theme-intima .brand img {
  box-shadow: 0 8px 22px rgba(255, 52, 118, 0.32);
}

.brand span {
  font-size: 18px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.lang-switch button {
  border: 0;
  text-decoration: none;
  color: var(--muted);
  font: inherit;
  font-weight: 760;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.nav-links a:hover,
.nav-links a.active,
.lang-switch button.active {
  color: var(--green-dark);
  background: var(--green-soft);
}

.lang-switch {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  transition: background-color 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.lang-switch button {
  min-width: 42px;
  padding: 8px 10px;
}

.theme-intima .lang-switch {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 91, 146, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.theme-intima .lang-switch button {
  color: #f3d5df;
}

.theme-intima .lang-switch button:hover,
.theme-intima .lang-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, #ff3476, #ff5b92);
  box-shadow: 0 10px 24px rgba(255, 52, 118, 0.28);
}

.page {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  max-width: 780px;
  padding: 76px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.hero p,
.page-title p {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 850;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.button.primary {
  color: #fff;
  background: var(--green);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(65, 130, 31, 0.25);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  width: 226px;
  max-width: 100%;
  text-decoration: none;
  border-radius: 15px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

.app-store-badge img {
  width: 100%;
  height: auto;
  display: block;
}

.app-card .app-store-badge img,
.app-hero .app-store-badge img {
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.app-store-badge-small {
  width: 152px;
  border-radius: 10px;
}

.app-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  justify-self: end;
}

.theme-intima .button.primary,
.intima-card .button.primary {
  background: linear-gradient(135deg, #ff3476, #ff5b6b);
  box-shadow: 0 16px 38px rgba(255, 52, 118, 0.28);
}

.developer-card,
.app-card,
.panel,
.contact-card,
.policy-shell,
.screenshot-frame {
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition: color 420ms ease, background 420ms ease, border-color 420ms ease, box-shadow 420ms ease, transform 220ms ease;
}

.theme-intima .developer-card,
.theme-intima .app-card,
.theme-intima .panel,
.theme-intima .contact-card,
.theme-intima .app-hero-card,
.theme-intima .screenshot-frame {
  border-color: rgba(255, 79, 137, 0.24);
}

.developer-card {
  border-radius: 36px;
  padding: 28px;
}

.developer-card h2 {
  font-size: 34px;
  line-height: 1.08;
  margin-bottom: 10px;
}

.developer-card p {
  color: var(--muted);
}

.developer-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.developer-avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  font-size: 36px;
  font-weight: 900;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.mini-stat {
  min-height: 88px;
  padding: 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.mini-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.mini-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.section {
  padding: 54px 0;
}

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

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
  margin-bottom: 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.app-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-radius: 32px;
  padding: 24px;
  cursor: pointer;
  outline: 0;
}

.app-card:hover,
.app-card:focus-visible,
.app-card.is-selected {
  border-color: rgba(91, 157, 51, 0.48);
  box-shadow: 0 30px 82px rgba(65, 130, 31, 0.22);
  transform: translateY(-2px);
}

.theme-intima .app-card:hover,
.theme-intima .app-card:focus-visible,
.theme-intima .app-card.is-selected {
  border-color: rgba(255, 91, 146, 0.55);
  box-shadow: 0 34px 88px rgba(255, 44, 104, 0.22);
}

.app-card img {
  width: 124px;
  height: 124px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(65, 130, 31, 0.2);
}

.app-card.intima-card {
  color: #fff7fb;
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 55, 111, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(24, 12, 20, 0.96), rgba(54, 12, 28, 0.9));
  border-color: rgba(255, 78, 132, 0.28);
  box-shadow: 0 26px 72px rgba(255, 44, 104, 0.2);
}

.app-card.intima-card img {
  box-shadow: 0 18px 42px rgba(255, 52, 118, 0.34);
}

.app-card.intima-card p {
  color: #dcc0cb;
}

.app-card.intima-card .eyebrow,
.theme-intima .eyebrow {
  color: #ff5b92;
}

.app-card.intima-card .tag {
  color: #ffd9e5;
  background: rgba(255, 64, 124, 0.18);
}

.app-card h3 {
  margin-bottom: 8px;
  font-size: 34px;
  line-height: 1.05;
}

.app-card p {
  color: var(--muted);
  margin-bottom: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 800;
}

.soon-card {
  border-radius: 32px;
  padding: 28px;
  border: 1px dashed rgba(65, 94, 43, 0.34);
  background: rgba(255, 255, 255, 0.48);
  transition: background 420ms ease, border-color 420ms ease;
}

.theme-intima .soon-card {
  border-color: rgba(255, 91, 146, 0.34);
  background: rgba(22, 17, 24, 0.52);
}

.soon-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

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

.page-title {
  max-width: 800px;
  padding: 64px 0 28px;
}

.page-title h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.72fr);
  gap: 36px;
  align-items: center;
  padding: 58px 0 40px;
}

.app-hero-card {
  border-radius: 34px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.theme-intima .app-hero-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 64, 124, 0.22), transparent 38%),
    rgba(22, 17, 24, 0.82);
}

.app-hero-card img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  object-fit: cover;
  margin-bottom: 20px;
}

.app-hero-card p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.panel {
  border-radius: var(--radius);
  padding: 28px;
}

.panel h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.panel p,
.panel li {
  color: var(--muted);
}

.panel p:last-child {
  margin-bottom: 0;
}

.screens-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 0 24px;
  scroll-snap-type: x mandatory;
}

.screenshot-frame {
  flex: 0 0 clamp(220px, 25vw, 292px);
  border-radius: 36px;
  padding: 12px;
  scroll-snap-align: start;
  transition: color 420ms ease, background 420ms ease, border-color 420ms ease, box-shadow 420ms ease, transform 220ms ease;
}

.screenshot-frame img {
  width: 100%;
  border-radius: 26px;
  object-fit: cover;
  aspect-ratio: 9 / 19.5;
}

.theme-intima .screenshot-frame {
  background: rgba(22, 17, 24, 0.78);
}

.intima-preview-frame {
  background:
    radial-gradient(circle at 70% 0%, rgba(255, 64, 124, 0.24), transparent 38%),
    rgba(22, 17, 24, 0.82);
  border-color: rgba(255, 79, 137, 0.24);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-grid .screenshot-frame {
  width: min(100%, 312px);
  justify-self: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.contact-card {
  border-radius: var(--radius);
  padding: 26px;
}

.contact-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.policy-shell {
  border-radius: 30px;
  padding: clamp(22px, 4vw, 44px);
  margin: 18px 0 70px;
}

.policy-content {
  max-width: 820px;
  margin: 0 auto;
  color: #1c1c1e;
}

.theme-intima .policy-shell {
  border-color: rgba(255, 79, 137, 0.24);
}

.theme-intima .policy-content {
  color: var(--text);
}

.policy-content h1 {
  font-size: 30px;
  line-height: 1.18;
  margin: 0 0 14px;
}

.policy-content h2 {
  font-size: 21px;
  margin-top: 32px;
  margin-bottom: 10px;
}

.policy-content p,
.policy-content li {
  font-size: 16px;
  color: #3a3a3c;
}

.theme-intima .policy-content p,
.theme-intima .policy-content li {
  color: var(--muted);
}

.policy-content a {
  color: #34a853;
}

.theme-intima .policy-content a {
  color: #ff6f9f;
}

[data-lang-panel] {
  display: none;
}

[data-lang-panel].active {
  display: block;
}

.screens-strip[data-lang-panel].active {
  display: flex;
}

.gallery-grid[data-lang-panel].active {
  display: grid;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.theme-intima .site-footer {
  background: rgba(8, 4, 8, 0.72);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-inner a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .app-hero {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero {
    padding-top: 44px;
    gap: 28px;
  }

  .hero p,
  .page-title p {
    font-size: 18px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .app-card {
    grid-template-columns: 82px 1fr;
  }

  .app-card img {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .app-card .button {
    grid-column: 1 / -1;
  }

  .app-card-actions {
    grid-column: 1 / -1;
    width: 100%;
    align-items: flex-start;
    justify-self: stretch;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
  }
}
