/* ОБЩИЕ НАСТРОЙКИ И АВТО-ТЕМЫ (iOS STYLE) */
:root {
  /* Светлая тема по умолчанию */
  --bg-page: #f2f2f7;
  --bg-card: #ffffff;
  --bg-input: #f2f2f7;
  --text-main: #000000;
  --text-muted: #8e8e93;
  --shadow: rgba(0, 0, 0, 0.06);
  --btn-bg: #007aff;
  --btn-hover: #0062cc;
  --btn-shadow: rgba(0, 122, 255, 0.3);
  --tab-bg: #e3e3e9;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Автоматическое переключение на темную тему */
    --bg-page: #000000;
    --bg-card: #1c1c1e;
    --bg-input: #2c2c2e;
    --text-main: #ffffff;
    --text-muted: #8e8e93;
    --shadow: rgba(0, 0, 0, 0.4);
    --btn-bg: #0a84ff;
    --btn-hover: #0066cc;
    --btn-shadow: rgba(10, 132, 255, 0.3);
    --tab-bg: #2c2c2e;
  }
}

body {
background-color: var(--bg-page);
  margin: 0;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Симулятор экрана iPhone 13 — растёт вниз */
.phone-screen {
  width: 390px;
  min-height: 830px;
  height: auto;
  background-color: var(--bg-page);
  border-radius: 48px; /* Ультрасовременное сильное скругление */
  overflow: visible;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Контейнер контента — без скролла */
.scroll-container {
  flex: 1;
  overflow: visible;
  padding: 44px 24px 40px 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
/* Крупный заголовок вверху */
.page-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin: 20px 0 16px 0;
  text-align: left;
}

/* Переключатель языков в стиле iOS Segmented Control */
.tab-switcher {
  display: flex;
  background-color: var(--tab-bg);
  padding: 3px;
  border-radius: 12px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 9px;
  cursor: pointer;
  transition:
    background-color 0.15s,
    box-shadow 0.15s;
}

.tab-btn.active {
  background-color: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Блок соглашения */
.agreement-card {
  background-color: var(--bg-card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 16px var(--shadow);
  margin-bottom: 24px;
}

/* Разделы и пункты соглашения */
.section-title {
  font-size: 14px;
  font-weight: 700;
  color: #007aff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 20px 0 10px 0;
}

.section-title:first-child {
  margin-top: 0;
}

.agreement-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
  margin: 0 0 12px 0;
  text-align: justify;
}

.agreement-text:last-child {
  margin-bottom: 0;
}

.highlight {
  color: #007aff;
  font-weight: 600;
}

/* Нижний блок кнопки */
.action-block {
  margin-top: auto;
  padding-top: 12px;
  width: 100%;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background-color: var(--btn-bg);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--btn-shadow);
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--btn-hover);
}

.btn-primary:active {
  transform: scale(0.97);
}
