/* Momly palette — aligned with app theme (Color.kt / Theme.kt) */
:root {
  --bg: #faf7f2;
  --bg-soft: #f5f0e8;
  --bg-elevated: #ffffff;
  --text: #5c4033;
  --text-muted: #8b7355;
  --primary: #6b7b5c;
  --primary-light: #8b9b7a;
  --primary-container: #d4e0c8;
  --outline: #d4c4b0;
  --peach: #e8ded4;
  --border: #d4c4b0;
  --radius: 16px;
  --radius-pill: 999px;
  --font: system-ui, "Segoe UI", Roboto, Ubuntu, "Noto Sans", sans-serif;
  --max: 42rem;
  --max-wide: 960px;
  --shadow-card: 0 4px 24px rgba(92, 64, 51, 0.07);
  --shadow-soft: 0 8px 32px rgba(92, 64, 51, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--primary-light);
}

/* Header — стиль как Welcome + язык */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
  color: var(--primary);
}

.logo__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo__mark--image {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.lang-switch {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switch__btn {
  appearance: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--outline);
  background: var(--bg-soft);
  color: #1c1c1c;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lang-switch__btn:hover {
  border-color: var(--primary);
}

.lang-switch__btn--active {
  background: var(--primary-container);
  border-color: var(--primary);
  color: var(--text);
}

.site-nav {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

.site-nav a {
  font-weight: 500;
}

main {
  flex: 1;
}

/* Hero — фон и „логотип“ как на Welcome */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    var(--bg) 0%,
    #eef3e8 35%,
    var(--bg-soft) 70%,
    var(--bg) 100%
  );
}

.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 20% 30%,
    rgba(107, 123, 92, 0.12) 0%,
    transparent 45%
  ),
    radial-gradient(
      circle at 80% 70%,
      rgba(232, 222, 212, 0.8) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.hero {
  position: relative;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero__logo {
  width: 140px;
  height: 140px;
  margin: 0 0 1rem;
  filter: drop-shadow(0 8px 24px rgba(92, 64, 51, 0.12));
  border-radius: 24px;
}

.hero__content {
  text-align: left;
  max-width: 34rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1d3b2f;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 30rem;
  margin: 0 0 1.5rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(107, 123, 92, 0.35);
}

.btn--primary:hover {
  background: var(--primary-light);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 20px rgba(107, 123, 92, 0.4);
}

.btn__icon {
  font-size: 1.1rem;
}

.hero__phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 26px;
}

.hero__photo {
  position: absolute;
  inset: -4% -6%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 20px 50px rgba(40, 30, 20, 0.24);
  z-index: 0;
  transform: scale(1.06);
}

.hero__phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(250, 247, 242, 0.28) 0%,
    rgba(250, 247, 242, 0.1) 45%,
    rgba(250, 247, 242, 0.04) 100%
  );
  z-index: 1;
}

.phone {
  position: relative;
  z-index: 2;
  width: 280px;
  border-radius: 32px;
  background: #1f1f1f;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(40, 30, 20, 0.3);
}

.phone__notch {
  width: 110px;
  height: 16px;
  background: #101010;
  margin: 0 auto 8px;
  border-radius: 0 0 14px 14px;
}

.phone__screen {
  border-radius: 24px;
  background: linear-gradient(180deg, #f8f4ee 0%, #efe6dc 100%);
  padding: 1rem 0.8rem;
  color: #3e3a33;
  text-align: center;
}

.phone__chips {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.phone__chip {
  border-radius: 999px;
  border: 1px solid #d6cbbf;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  background: #f8f4ee;
}

.phone__chip--active {
  background: #d4e0c8;
  border-color: #7a8f49;
}

.phone__screen h3 {
  margin: 0.2rem 0;
  font-size: 1.15rem;
}

.phone__screen p {
  margin: 0 0 0.9rem;
  font-size: 0.83rem;
}

.phone__btn {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d6cbbf;
  background: #fff;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.phone__btn--primary {
  background: #7a8f49;
  color: #fff;
  border-color: #7a8f49;
}

.section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.section__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.card__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Legal */
.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.legal h1 {
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.legal .meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.65rem;
  font-weight: 700;
}

.legal p,
.legal li {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.legal ul {
  padding-left: 1.35rem;
  margin: 0 0 0.75rem;
}

.legal .notice {
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  background: var(--peach);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: auto;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(180deg, var(--peach) 0%, #e0d5c8 100%);
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  font-weight: 600;
}

.site-footer__copy {
  color: var(--text-muted);
  width: 100%;
  text-align: center;
}

@media (min-width: 600px) {
  .site-footer__inner {
    justify-content: space-between;
  }

  .site-footer__copy {
    width: auto;
    text-align: right;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 4rem;
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero__phone {
    margin-top: 0;
  }
}
