/* ===== Font Face ===== */
@font-face {
  font-family: 'Utopia';
  src: url('assets/fonts/Utopia.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== CSS Tokens ===== */
:root {
  /* ===== Шрифты ===== */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ===== Типографика (line-heights) ===== */
  --font-h1-lh: 1.05;
  --font-h2-serif-lh: 1.1;
  --font-h2-sans-lh: 1.15;
  --font-body-lg-lh: 1.4;
  --font-body-lh: 1.5;

  /* ===== Цвета ===== */
  --bg-light: #F5F5F0;
  --bg-dark: #1F1F1F;
  --bg-white: #FFFFFF;

  --text-light: #FFFFFF;
  --text-light-secondary: #EEEEEE;
  --text-dark: #1F1F1F;
  --text-dark-secondary: #474747;
  --text-muted: rgba(255, 255, 255, 0.6);

  --accent: #43D3FC;         /* Акцентные слова в заголовках */

  /* Кнопки */
  --btn-bg: #FFFFFF;
  --btn-text: #1F1F1F;
  --btn-border: #EDEDED;
  --btn-bg-hover: #43D3FC;
  --btn-text-hover: #FFFFFF;
  --btn-border-hover: #18ABD4;

  /* Фоны секций — НЕ CSS-градиенты, а картинки от дизайнера */
  /* Секции 3+4: assets/As Natural as Talking to a Trusted Friend_BG.png */
  /* Секции 6, 8: assets/small bg.png */

  /* ===== Отступы и сетка ===== */
  --container-max: 1280px;
  --container-padding: 80px;
  --section-padding-y: 200px;
  --grid-gap: 24px;

  /* ===== Компоненты ===== */
  --radius-card: 24px;
  --radius-photo: 16px;
  --radius-btn: 999px;
  --header-height: 80px;
  --header-blur: blur(12px);

  /* ===== Эффекты ===== */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

/* ===== Base ===== */
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

.site-content {
  min-height: 100vh;
}

body.is-locked .site-content {
  display: none;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(67, 211, 252, 0.2), transparent 34%), var(--bg-dark);
}

body:not(.is-locked) .password-gate {
  display: none;
}

.password-gate__card {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.password-gate__eyebrow {
  margin-bottom: 8px;
  color: var(--text-dark-secondary);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.password-gate__title {
  margin-bottom: 24px;
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.password-gate__label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
}

.password-gate__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #D7D7D2;
  border-radius: 12px;
  background: var(--bg-white);
  color: var(--text-dark);
  font: inherit;
  outline: none;
}

.password-gate__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(67, 211, 252, 0.24);
}

.password-gate__error {
  min-height: 22px;
  margin: 8px 0 14px;
  color: #A21D1D;
  font-size: 14px;
}

.password-gate__button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--bg-dark);
  color: var(--text-light);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.password-gate__button:hover,
.password-gate__button:focus-visible {
  background: var(--accent);
}

/* ===== Utility: Container ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== Utility: Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--header-height);
  padding: 0;
  background: transparent;
  transition: background var(--transition);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  padding: 0 var(--container-padding);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
}

.header--scrolled .header__logo {
  color: var(--text-dark);
}

.header__logo {
  font-family: 'Utopia', Georgia, serif;
  font-size: 28px;
  color: var(--text-light);
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.header__logo em {
  font-style: italic;
}

/* ===== Footer ===== */

/* ===== Button (global) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--btn-bg);
  color: var(--text-dark);
  border: 1px solid var(--btn-border);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  padding: 12px 12px 12px 24px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  min-height: 44px;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover,
.btn:active {
  background: var(--btn-bg-hover);
  color: var(--btn-text-hover);
  border-color: var(--btn-border-hover);
}

.btn svg {
  flex-shrink: 0;
  align-self: center;
  margin-top: -1px;
}

.header__btn {
  font-size: 18px; /* same as global .btn, kept for specificity */
}

/* ===== Grid Utilities ===== */

/* ===== Logo Utilities ===== */
.logo--dark { filter: brightness(0); }

/* ===== Section Wrappers ===== */
.section-assistant-notes-wrapper {
  background: url('assets/As Natural as Talking to a Trusted Friend_BG.png') top center / cover no-repeat;
  overflow: hidden;
  margin: 80px 0;
}

/* ===== Section: Hero ===== */
.section-hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
}

.section-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 18%;
}

.section-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%),
    linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.section-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 780px;
  padding-top: var(--header-height);
  padding-bottom: 140px;
}

.section-hero__title {
  max-width: 90%;
}

.section-hero__text {
  max-width: 65%;
  margin-top: 24px;
  color: var(--text-light-secondary);
}

/* ===== Section: Be Real Human ===== */
.section-human {
  background: var(--bg-light);
  padding: var(--section-padding-y) 0;
}

.section-human__text-block {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.section-human__title {
  color: var(--text-dark);
  margin-bottom: 24px;
}

.section-human__text {
  color: var(--text-dark-secondary);
}

.section-human__photo-block {
  margin-top: 100px;
}

.section-human__photo {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}

/* ===== Section: AI Assistant ===== */
.section-assistant {
  padding: 160px 0 80px;
}

.section-assistant__grid {
  align-items: center;
}

.section-assistant__left {
  grid-column: 1 / 6;
}

.section-assistant__right {
  grid-column: 6 / 13;
  display: flex;
  justify-content: flex-end;
}

.section-assistant__title {
  color: var(--text-light);
}

.section-assistant__text {
  color: var(--text-light-secondary);
  margin-top: 24px;
}

.section-assistant__mockup {
  max-width: 80%;
  display: block;
  margin-top: 60px;
}

/* ===== Section: Collect & Manage ===== */
.section-notes {
  padding: 80px 0 80px;
}

.section-notes__grid {
  align-items: center;
}

.section-notes__left {
  grid-column: 1 / 8;
  display: flex;
  justify-content: flex-start;
}

.section-notes__right {
  grid-column: 8 / 13;
}

.section-notes__phone {
  max-width: 50%;
  display: block;
}

.section-notes__title {
  color: var(--text-light);
}

.section-notes__text {
  color: var(--text-light-secondary);
  margin-top: 24px;
}

/* ===== Section: Share Data ===== */
.section-share {
  padding: 40px 0 160px;
}

.section-share__grid {
  align-items: center;
}

.section-share__left {
  grid-column: 1 / 6;
}

.section-share__right {
  grid-column: 6 / 13;
}

.section-share__title {
  color: var(--text-light);
}

.section-share__text {
  color: var(--text-light-secondary);
  margin-top: 24px;
}

.section-share__mockup {
  max-width: 50%;
  margin-left: auto;
  display: block;
  margin-top: 80px;
}

/* ===== Section: Make America Healthy Again ===== */
.section-maha {
  background: var(--bg-light);
  padding: var(--section-padding-y) 0;
}

.section-maha__text-block {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.section-maha__title {
  color: var(--text-dark);
  margin-bottom: 24px;
}

.section-maha__text {
  color: var(--text-dark-secondary);
}

.section-maha__photo-block {
  margin-top: 100px;
}

.section-maha__photo {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}

/* ===== Section: Get Started / CTA ===== */
.section-cta {
  background: url('assets/small bg.png') top center / cover no-repeat;
  padding: 160px 0 0;
  padding-bottom: 0 !important;
  margin-top: 80px;
  margin-bottom: 0 !important;
}

.section-cta__grid {
  align-items: center;
}

.section-cta__left {
  grid-column: 1 / 6;
}

.section-cta__right {
  grid-column: 6 / 13;
}

.section-cta__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

.section-cta__brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-cta__logo-syncmd {
  height: 55px;
  width: auto;
}

.section-cta__brand-prefix,
.section-cta__brand-suffix {
  color: var(--text-light-secondary);
  font-weight: 500;
  font-size: 40px;
}

.section-cta__text {
  color: var(--text-light-secondary);
  margin-top: 0;
}

.section-cta__robot {
  max-width: 100%;
  display: block;
  margin-top: 80px;
}

.section-cta__btn {
  font-size: 22px;
  padding: 16px 24px 16px 24px;
}

/* ===== Fluid Typography ===== */

/* H1 Hero — fixed at 1440px+, scales below */
.h1-hero {
  font-family: 'Utopia', Georgia, serif;
  font-size: 100px;
  font-weight: 400;
  line-height: var(--font-h1-lh);
  color: var(--text-light);
}

/* H2 Serif — fixed at 1440px+, scales below */
.h2-serif {
  font-family: 'Utopia', Georgia, serif;
  font-size: 78px;
  font-weight: 400;
  line-height: var(--font-h2-serif-lh);
}

/* H2 Sans — fixed at 1440px+, scales below */
.h2-sans {
  font-family: 'Utopia', Georgia, serif;
  font-size: 78px;
  line-height: var(--font-h2-sans-lh);
  font-weight: 500;
}

/* Body Large — fixed at 1440px+ */
.body-lg {
  font-family: var(--font-sans);
  font-size: 26px;
  line-height: var(--font-body-lg-lh);
}

/* Body — fixed at 1440px+ */
.body-text {
  font-family: var(--font-sans);
  font-size: 26px;
  line-height: var(--font-body-lh);
}

/* Accent */
.accent {
  color: var(--accent);
}


/* ===== Bottom Bar ===== */
.bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  max-width: 1180px;
  margin: 120px auto 0;
  padding: 60px var(--container-padding);
  background: #FFFFFF;
  color: var(--text-dark);
  border-radius: 24px 24px 0 0;
  position: relative;
  z-index: 2;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 37px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.bottom-bar:hover,
.bottom-bar:active {
  background: var(--accent);
  color: #FFFFFF;
}

.bottom-bar:hover svg circle,
.bottom-bar:active svg circle {
  fill: #FFFFFF;
}

.bottom-bar:hover svg path,
.bottom-bar:active svg path {
  stroke: var(--accent);
}

.bottom-bar svg {
  width: 44px;
  height: 44px;
}

.bottom-bar svg circle,
.bottom-bar svg path {
  transition: var(--transition);
}

/* ===== Breakpoints (Desktop-first) ===== */

@media (min-width: 1441px) {
  .container {
    max-width: 1440px;
  }
  .header__inner {
    max-width: 1440px;
  }
  .bottom-bar { max-width: 1340px; }
  .section-hero {
    min-height: 1240px;
  }
  .section-hero__content {
    min-height: 1240px;
  }
  .section-hero__photo { object-position: right 10%; }
  .section-hero__title { max-width: 80%; }
  .section-hero__text { max-width: 55%; }
  .section-hero__content { padding-bottom: 240px; }
  .section-cta__brand-prefix, .section-cta__brand-suffix { font-size: 46px; }
  .h2-serif { font-size: 72px; }
  .h2-sans { font-size: 72px; }
}

@media (max-width: 1440px) {
  .h1-hero { font-size: 94px; }
  .h2-serif { font-size: 72px; }
  .h2-sans { font-size: 72px; }
  .body-lg { font-size: 24px; }
  .body-text { font-size: 24px; }
  .bottom-bar { font-size: 35px; }
  .section-cta__brand-prefix, .section-cta__brand-suffix { font-size: 38px; }
}
@media (max-width: 1280px) {
  .h1-hero { font-size: 82px; }
  .h2-serif { font-size: 60px; }
  .h2-sans { font-size: 60px; }
  .body-lg { font-size: 23px; }
  .body-text { font-size: 23px; }
  .section-hero { min-height: 750px; }
  .section-hero__content { min-height: 750px; }
  .bottom-bar { font-size: 34px; max-width: 1100px; }
  .section-cta__brand-prefix, .section-cta__brand-suffix { font-size: 37px; }
}
@media (max-width: 1024px) {
  .bottom-bar { max-width: calc(100% - 80px); margin: 80px auto 0; font-size: 34px; }

  /* 3.0 — Typography (same as 1280px) */
  .h1-hero { font-size: 88px; }
  .h2-serif { font-size: 66px; }
  .h2-sans { font-size: 66px; }
  .body-lg { font-size: 27px; }
  .body-text { font-size: 27px; }

  /* 3.1 — General overrides */
  :root { --container-padding: 40px; --section-padding-y: 160px; --grid-gap: 16px; }
  .grid { grid-template-columns: 1fr; }
  .container { max-width: 100%; }
  .header__inner { max-width: 100%; padding: 0 var(--container-padding); }

  /* 3.2 — Header */
  .header { height: 64px; }
  .header__logo { font-size: 28px; }
  .header__btn { font-size: 16px; padding: 8px 8px 8px 20px; }
  .header__btn svg { width: 28px; height: 28px; }

  /* 3.3 — Hero */
  .section-hero { min-height: 960px; }
  .section-hero__content { min-height: 960px; padding-bottom: 100px; }
  .section-hero__title { max-width: 100%; }
  .section-hero__text { max-width: 90%; }

  /* 3.4 — Be Real Human */
  .section-human__photo { height: 400px; object-position: 15% center; border-radius: var(--radius-photo); }
  .section-human__text-block { max-width: 800px; }

  /* 3.5 — AI Assistant */
  .section-assistant__left { grid-column: 1; text-align: center; max-width: 600px; margin: 0 auto; }
  .section-assistant__right { grid-column: 1; justify-content: center; }
  .section-assistant__title { text-align: center; }
  .section-assistant__text { text-align: center; }
  .section-assistant__mockup { max-width: 75%; margin: 60px auto 0; }

  /* 3.6 — Collect & Manage */
  .section-notes__left { grid-column: 1; order: 2; justify-content: center; }
  .section-notes__right { grid-column: 1; order: 1; text-align: center; max-width: 600px; margin: 0 auto; }
  .section-notes__title { text-align: center; }
  .section-notes__text { text-align: center; }
  .section-notes__phone { max-width: 50%; margin: 60px auto 0; }

  /* 3.8 — Share Data */
  .section-share { padding-top: 80px; }
  .section-share__left { grid-column: 1; text-align: center; max-width: 600px; margin: 0 auto; }
  .section-share__title { text-align: center; }
  .section-share__text { text-align: center; }
  .section-share__right { grid-column: 1; }
  .section-share__mockup { max-width: 50%; margin: 60px auto 0; display: block; }

  /* 3.9 — MAHA */
  .section-maha__text-block { max-width: 600px; }

  /* 3.12 — CTA */
  .section-cta { padding: 120px 0; margin-top: 80px; }
  .section-cta__left { grid-column: 1; text-align: center; max-width: 700px; margin: 0 auto; }
  .section-cta__brand { align-items: center; }
  .section-cta__text { text-align: center; }

  .section-cta__btn { margin-left: auto; margin-right: auto; padding: 10px 8px 10px 20px; }
  .section-cta__right { grid-column: 1; }
  .section-cta__logo-syncmd { height: 48px; }
  .section-cta__brand-prefix, .section-cta__brand-suffix { font-size: 44px; }
  .section-cta__robot { max-width: 80%; margin: 40px auto 0; display: block; }

}

@media (max-width: 768px) {
  .bottom-bar { max-width: calc(100% - 64px); margin: 60px auto 0; padding: 60px 20px; border-radius: 20px 20px 0 0; font-size: 34px; }
  .bottom-bar svg { width: 48px; height: 48px; }

  /* 3.0 — Typography */
  .h1-hero { font-size: 66px; }
  .h2-serif { font-size: 58px; }
  .h2-sans { font-size: 58px; }
  .body-lg { font-size: 23px; }
  .body-text { font-size: 23px; }

  /* 3.1 — General overrides */
  :root { --container-padding: 32px; }

  /* 3.2 — Header */
  .header { height: 72px; width: calc(100% - 24px); left: 12px; top: 8px; border-radius: 20px; }
  .header__inner { padding: 0 28px; }
  .header__logo { font-size: 26px; }
  .header__btn { font-size: 18px; padding: 10px 10px 10px 24px; gap: 10px; }
  .header__btn svg { width: 32px; height: 32px; }

  /* 3.3 — Hero */
  .section-hero { min-height: calc(105vh + 32px); }
  .section-hero__content { min-height: calc(105vh + 32px); padding-bottom: 80px; }
  .section-hero__text { max-width: 100%; }
  .section-hero__photo { object-position: 75% top; }

  /* Max-width — constrained on tablet */
  .section-human__text-block { max-width: 480px; margin: 0 auto; }
  .section-maha__text-block { max-width: 480px; margin: 0 auto; }
  .section-assistant__left { max-width: 400px; margin: 0 auto; }
  .section-notes__right { max-width: 400px; margin: 0 auto; }
  .section-share__left { max-width: 400px; margin: 0 auto; }
  .section-cta__left { max-width: 400px; margin: 0 auto; }

  /* Явный padding на секциях */
  .section-human { padding: 160px 0; }
  .section-assistant-notes-wrapper { margin: 120px 0; }
  .section-maha { padding: 60px 0 100px; }
  .section-assistant { padding: 130px 0 60px; }
  .section-notes { padding: 60px 0 130px; }
  .section-cta { padding: 120px 0 40px; margin-top: 80px; }
  .section-cta__btn { font-size: 22px; padding: 10px 8px 10px 20px; }

  /* 3.4 — Be Real Human */
  .section-human__photo { border-radius: var(--radius-photo); height: 500px; object-position: 15% center; }
  .section-human { padding-bottom: 100px; }
  .section-human__photo-block { margin-top: 120px; }

  /* 3.5 — AI Assistant */
  .section-assistant__mockup { max-width: 95%; margin-top: 100px; }

  /* 3.6 — Collect & Manage */
  .section-notes__phone { max-width: 80%; margin-top: 100px; }

  /* 3.8 — Share Data */
  .section-share__mockup { max-width: 80%; margin-top: 100px; }

  /* 3.9 — MAHA */
  .section-maha__photo { border-radius: var(--radius-photo); height: 400px; }
  .section-maha__photo-block { margin-top: 120px; }

  /* 3.12 — CTA */
  .section-cta__robot { max-width: 95%; margin-top: 60px; }
  .section-cta__brand-prefix, .section-cta__brand-suffix { font-size: 38px; }

}

@media (max-width: 480px) {
  .bottom-bar { max-width: calc(100% - 32px); margin: 40px auto 0; padding: 50px 16px; font-size: 30px; }
  .bottom-bar svg { width: 40px; height: 40px; }

  /* 3.0 — Typography */
  .h1-hero { font-size: 56px; }
  .h2-serif { font-size: 52px; }
  .h2-sans { font-size: 52px; }
  .body-lg { font-size: 21px; }
  .body-text { font-size: 21px; }

  /* 3.1 — General overrides */
  :root { --container-padding: 16px; }

  /* Max-width resets — full width on small mobile */
  .section-human__text-block { max-width: 100%; }
  .section-maha__text-block { max-width: 100%; }
  .section-assistant__left { max-width: 100%; }
  .section-notes__right { max-width: 100%; }
  .section-share__left { max-width: 100%; }
  .section-cta__left { max-width: 100%; }

  /* 3.5 — AI Assistant */
  .section-assistant__mockup { max-width: 90%; }

  /* 3.6 — Collect & Manage */
  .section-notes__phone { max-width: 80%; }

  /* 3.12 — CTA */
  .section-cta__robot { max-width: 95%; }

  /* Явный padding на малых экранах */
  .section-human { padding: 130px 0 80px; }
  .section-human__photo { height: 450px; object-position: 10% center; }
  .section-maha__photo { height: 350px; }
  .section-assistant-notes-wrapper { margin: 100px 0; }
  .section-maha { padding: 40px 0 80px; }
  .section-assistant { padding: 80px 0; }
  .section-notes { padding: 80px 0; }
  .section-cta { padding: 100px 0 30px; margin-top: 100px; }

  /* Margin-top картинок */
  .section-human__photo-block { margin-top: 96px; }
  .section-maha__photo-block { margin-top: 96px; }
  .section-assistant__mockup { margin-top: 80px; }
  .section-notes__phone { margin-top: 80px; }
  .section-share__mockup { margin-top: 80px; }
  .section-cta__robot { margin-top: 48px; }
  .section-cta__brand-prefix, .section-cta__brand-suffix { font-size: 34px; }

}
