/* =====================================================
   CSS Reset & Design Contract
   ===================================================== */

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

/* =====================================================
   CSS Variables (Design Contract)
   ===================================================== */

:root {
  /* Colors */
  --color-primary: #e23065;
  --color-primary-dark: #c02553;
  --color-bg: #ffffff;
  --color-bg-light: #f2f2f2;
  --color-bg-dark: #131314;
  --color-bg-cta: #291119;
  --color-text: #131314;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  --color-border: rgba(0, 16, 36, 0.1);
  --color-border-light: rgba(255, 255, 255, 0.1);
  --color-card-border: rgba(89, 47, 61, 0.3);

  /* Typography */
  --font-family: 'Inter', sans-serif;
  --font-family-heading: 'Roboto', sans-serif;

  /* Spacing */
  --container: 1100px;
  --container-narrow: 900px;
  --pad: 16px;
  --pad-lg: 24px;
  --pad-xl: 40px;
  --section-pad: 60px;

  /* Border Radius */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* =====================================================
   Utility Classes
   ===================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--hero {
  max-width: 1080px;
}

/* =====================================================
   Header
   ===================================================== */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 18px 0;
  background-color: transparent;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header__tagline {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  text-align: right;
  display: block;
  max-width: 220px;
}

/* Mobile: слоган в потоке справа */
@media (max-width: 1023px) {
  .header {
    padding: 16px 0;
  }

  .header__container {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .header__logo {
    height: 22px;
  }

  .header__tagline {
    margin-left: 0;
    font-size: 12px;
    line-height: 1.2;
    max-width: 230px;
    text-align: left;
  }
}

/* Desktop: слоган строго по центру через absolute */
@media (min-width: 1024px) {
  .header {
    padding: 20px 0;
  }

  .header__container {
    position: relative;
    justify-content: flex-start;
  }

  .header__logo {
    height: 29px;
  }

  .header__tagline {
    position: static;
    margin-left: 20px;
    white-space: nowrap;
    width: auto;
    max-width: none;
    text-align: left;
    font-size: 17px;
  }
}

/* =====================================================
   Hero Section
   ===================================================== */

.hero {
  position: relative;
  padding: 100px 0 0;
  background: #131314;
  overflow: hidden;
}

.hero__bg-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 100% at 85% 30%, rgba(226, 48, 101, 0.55) 0%, rgba(140, 30, 70, 0.25) 40%, rgba(19, 19, 20, 0) 70%);
  pointer-events: none;
}


.hero__container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__content {
  max-width: 500px;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-family-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  white-space: nowrap;
}

.hero__image-wrapper {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.hero__image {
  width: 100%;
  max-width: 550px;
  height: auto;
  display: block;
  vertical-align: bottom;
}

@media (max-width: 767px) {
  .hero {
    padding: 80px 0 0;
    text-align: center;
  }

  .hero__container {
    align-items: center;
  }

  .hero__content {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__subtitle {
    white-space: normal;
  }

  .hero__image-wrapper {
    margin: 16px auto 0;
    justify-content: center;
  }

  .hero__image {
    max-width: 320px;
  }

  .hero__bg-gradient {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 110px 0 0;
    min-height: 400px;
  }

  .hero__container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__content {
    flex: 0 0 40%;
    position: relative;
    z-index: 2;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .hero__image-wrapper {
    flex: 0 0 58%;
    overflow: hidden;
  }

  .hero__image {
    max-width: none;
    width: 110%;
    max-height: 450px;
    object-fit: contain;
    object-position: right center;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 440px;
  }

  .hero__title {
    font-size: 50px;
  }

  .hero__image {
    max-height: 500px;
  }
}

/* =====================================================
   Intro Section
   ===================================================== */

.intro {
  position: relative;
  margin-top: 0;
  padding: var(--section-pad) 0;
  background: #f4f4f4;
  overflow: hidden;
}

/* Mobile: добавить место для watermark снизу */
@media (max-width: 767px) {
  .intro {
    padding-bottom: 220px;
  }
}

/* Watermark - mobile-first */
.intro__wm {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: url("../assets/images/intro-watermark.svg") no-repeat center / contain;
  /* Mobile (default): снизу по центру */
  width: 229px;
  height: 172px;
  left: 50%;
  right: auto;
  top: auto;
  bottom: 24px;
  transform: translateX(-50%);
}

/* Tablet (768px+): справа по центру */
@media (min-width: 768px) {
  .intro__wm {
    width: 280px;
    height: 210px;
    left: auto;
    right: 80px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* Desktop mini (1100px+): справа по центру */
@media (min-width: 1100px) {
  .intro__wm {
    width: 320px;
    height: 240px;
    right: 120px;
  }
}

/* Desktop (1440px+): справа по центру, больше выступает */
@media (min-width: 1440px) {
  .intro__wm {
    width: 360px;
    height: 270px;
    right: 160px;
  }
}

.intro__container {
  position: relative;
  z-index: 1;
  text-align: left;
}

.intro__title {
  font-family: var(--font-family-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.intro__box {
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  margin-bottom: 12px;
  max-width: 700px;
}

.intro__question {
  font-size: 16px;
  color: var(--color-primary);
  line-height: 1.5;
  margin: 0;
  text-decoration: none;
}

.intro__text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  max-width: 700px;
  margin: 0;
}

@media (min-width: 768px) {
  .intro__title {
    font-size: 32px;
  }

  .intro__question {
    font-size: 18px;
  }

  .intro__text {
    font-size: 16px;
  }
}

/* =====================================================
   Comparison Section
   ===================================================== */

.comparison {
  padding: 40px 0 24px;
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .comparison {
    padding: var(--section-pad) 0;
  }
}

.comparison__container {
  max-width: 1080px;
}

.comparison__item {
  margin-bottom: 36px;
}

.comparison__item:last-child {
  margin-bottom: 0;
}

.comparison__title {
  font-family: var(--font-family-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  text-align: left;
}

.comparison__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .comparison__title {
    font-size: 28px;
  }

  .comparison__cards {
    flex-direction: column;
    gap: 12px;
  }
}

/* =====================================================
   Card Component
   ===================================================== */

/* Mobile-first: маленькие иконки, пунктирная рамка */
.card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px dashed rgba(0, 16, 36, 0.15);
  box-shadow: none;
}

.card--psychologist {
  border-color: rgba(0, 16, 36, 0.15);
}

.card--expert {
  background: #ffffff;
  border-color: rgba(0, 16, 36, 0.15);
}

.card__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

.card__icon img {
  width: 56px;
  height: 56px;
  display: block;
}

.card__content {
  flex: 1;
  min-width: 0;
}

.card__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.card__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.28px;
  color: #A8ADB4;
  margin: 0;
}

/* Desktop: большие иконки, сплошная рамка */
@media (min-width: 768px) {
  .card {
    flex: 1;
    padding: 20px 24px;
    gap: 20px;
    border-radius: 14px;
    border: 1px solid #ededed;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }

  .card--psychologist {
    border-color: #ededed;
  }

  .card--expert {
    border-color: #ededed;
  }

  .card__icon {
    flex: 0 0 86px;
    width: 86px;
    height: 86px;
  }

  .card__icon img {
    width: 86px;
    height: 86px;
  }

  .card__label {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .card__text {
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: -0.34px;
  }
}

/* =====================================================
   Summary Section
   ===================================================== */

.summary {
  padding: 16px 0 40px;
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .summary {
    padding: 28px 0 56px;
  }
}

.summary__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .summary__text {
    font-size: 16px;
  }
}

/* =====================================================
   CTA Section
   ===================================================== */

.cta {
  padding: var(--section-pad) 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(226, 48, 101, 0.3) 0%, rgba(140, 30, 70, 0.1) 50%, rgba(19, 19, 20, 0) 80%),
    #1a0d12;
}

.cta__container {
  text-align: center;
}

.cta__title {
  font-family: var(--font-family-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text-white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.cta__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto 36px;
  max-width: 720px;
  counter-reset: cta-item;
}

.cta__item {
  position: relative;
  padding: 14px 18px 14px 58px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.cta__item::before {
  counter-increment: cta-item;
  content: counter(cta-item);
  position: absolute;
  left: 16px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(226, 48, 101, 0.15);
  border: 1px solid rgba(226, 48, 101, 0.25);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta .button {
  padding: 16px 52px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .cta {
    padding: 80px 0;
  }

  .cta__title {
    font-size: 32px;
    margin-bottom: 28px;
  }

  .cta__list {
    gap: 12px;
    max-width: 680px;
    margin: 0 auto 40px;
  }

  .cta__item {
    font-size: 14px;
    padding: 16px 24px 16px 64px;
  }

  .cta__item::before {
    left: 20px;
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .cta .button {
    padding: 18px 56px;
    font-size: 16px;
  }
}

/* =====================================================
   Button Component
   ===================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.button--primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.button:focus:not(:focus-visible) {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .button--primary:hover {
    background-color: var(--color-primary-dark);
  }

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

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

.footer {
  padding: 40px 0;
  background: #ffffff;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__logo-link {
  display: inline-block;
  margin-bottom: 24px;
}

.footer__logo {
  height: 42px;
  width: auto;
}

.footer__content {
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer__text {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #A8ADB4;
  margin: 0 0 20px;
}

.footer__text:last-child {
  margin-bottom: 0;
}

.footer__text--accent {
  color: #E23065;
}

.footer__link {
  color: #A8ADB4;
  text-decoration: underline;
}

@media (hover: hover) {
  .footer__link:hover {
    color: #E23065;
  }
}

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer__copy {
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #A8ADB4;
  margin: 0;
}

.footer__copy-link {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .footer__copy-link:hover {
    color: #E23065;
  }
}

.footer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #A8ADB4;
  border: 1px solid rgba(168, 173, 180, 0.4);
  border-radius: 6px;
}

/* Mobile */
@media (max-width: 767px) {
  .footer {
    padding: 32px 0;
  }

  .footer__container {
    padding: 0 16px;
  }

  .footer__logo {
    height: 36px;
  }

  .footer__text {
    font-size: 12px;
  }

  .footer__copy {
    font-size: 12px;
  }
}

/* =====================================================
   Large Desktop (1024px+)
   ===================================================== */

@media (min-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .intro__title {
    font-size: 36px;
  }

  .comparison__title {
    font-size: 32px;
  }

  .cta__title {
    font-size: 36px;
  }

  .cta__list {
    max-width: 760px;
  }

  .cta__item {
    font-size: 13.5px;
    padding: 16px 26px 16px 70px;
  }
}

/* =====================================================
   Extra Large Desktop (1280px+)
   ===================================================== */

@media (min-width: 1280px) {
  .hero {
    min-height: 500px;
  }

  .hero__title {
    font-size: 56px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .hero__image-wrapper {
    flex: 0 0 60%;
  }

  .hero__image {
    width: 115%;
    max-height: 550px;
  }

  .card {
    padding: 24px 28px;
    gap: 24px;
  }

  .card__label {
    font-size: 18px;
  }
}
