:root {
  --page-blue: #0149db;
  --button-blue: #0149db;
  --button-blue-hover: #0d42c5;
  --brand-pink: #ed4ae9;
  --brand-pink-deep: #7d17b8;
  --brand-violet: #5a1595;
  --brand-ink: #140628;
  --brand-yellow: #ffbf1d;
  --brand-yellow-deep: #ff9700;
  --text-dark: #07193d;
  --text-muted: rgba(7, 25, 61, 0.8);
  --card-bg: #ffffff;
  --shadow-soft: 0 4px 40px rgba(24, 34, 55, 0.4);
  --radius-card: 20px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', 'Segoe UI', sans-serif;
  background: var(--page-blue);
  color: var(--text-dark);
}

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

a {
  color: inherit;
}

.hero-page {
  position: relative;
  width: 100%;
  max-width: 1440px;
  min-height: 900px;
  margin: 0 auto;
}

.hero {
  position: relative;
  width: 100%;
  height: 840px;
  margin: 0 auto;
}

.hero__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__background {
  position: absolute;
}

.hero__background--desktop {
  width: 1040px;
  height: 800px;
  left: 200px;
  top: 40px;
}

.hero__background--mobile {
  display: none;
}

.hero__card {
  position: absolute;
  z-index: 2;
  width: 512px;
  height: 692px;
  left: 200px;
  top: 80px;
  margin: 0;
  padding: 60px 60px 0;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.hero__title {
  margin: 0;
  font-family: 'Geologica', 'Open Sans', sans-serif;
  width: 392px;
  font-size: 50px;
  line-height: 52px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text-dark);
}

.hero__title span {
  color: var(--page-blue);
}

.hero__text {
  margin: 28px 0 0;
  width: 364px;
  font-family: 'Open Sans', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
}

.hero__text + .hero__text {
  margin-top: 8px;
}

.hero__actions {
  position: absolute;
  left: 60px;
  top: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
}

.hero__action-button {
  position: relative;
  height: 60px;
  min-width: 0;
  padding: 16px 76px 16px 40px;
  appearance: none;
  border: 0;
  border-radius: 40px;
  background: var(--button-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Geologica', 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.hero__action-button:hover,
.hero__action-button:focus-visible {
  background: #0a55f5;
}

.hero__action-button:focus-visible {
  outline: 3px solid rgba(65, 187, 255, 0.38);
  outline-offset: 3px;
}

.hero__action-label {
  white-space: nowrap;
}

.hero__action-icon {
  position: absolute;
  right: 0;
  top: 0;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
}

.hero__action-icon img {
  display: block;
  width: auto;
  height: auto;
}

.hero__action-icon--telegram img {
  width: 30px;
}

.hero__action-icon--vk img {
  width: 34px;
}

.hero__action-icon--max img {
  width: 28px;
}

.hero__action-icon--telegram {
  background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
}

.hero__action-icon--vk {
  background: #0077ff;
}

.hero__action-icon--max {
  background: linear-gradient(106.5deg, #44ccff 0%, #5533ee 66.2%, #9933dd 100%);
}

.policy-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  min-width: 234px;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  border: 4px solid #ffffff;
  background:
    linear-gradient(135deg, var(--brand-pink) 0%, #d83ef0 45%, #8f2de5 100%);
  color: #fff;
  text-decoration: none;
  font-family: 'Geologica', 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow:
    0 12px 0 var(--brand-violet),
    0 26px 42px rgba(66, 14, 120, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-position 0.2s ease;
}

.policy-back-button:hover,
.policy-back-button:focus-visible {
  transform: translateY(4px);
  border-color: #fff5cf;
  box-shadow:
    0 8px 0 #4d0f85,
    0 18px 30px rgba(66, 14, 120, 0.24);
}

.policy-back-button:focus-visible {
  outline: 3px solid rgba(255, 191, 29, 0.45);
  outline-offset: 3px;
}

.hero__logo {
  position: absolute;
  z-index: 3;
}

.hero__logo--desktop {
  width: 623.273px;
  height: 392.038px;
  left: 616.73px;
  top: 205.07px;
}

.hero__logo--mobile {
  display: none;
}

.footer {
  position: absolute;
  left: 200px;
  top: 840px;
  z-index: 2;
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
}

.footer__nav {
  display: flex;
  gap: 40px;
  flex-wrap: nowrap;
}

.footer__link {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #ffffff;
  text-decoration: underline;
  text-underline-position: from-font;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}

@media (max-width: 1239px) {
  .hero-page {
    max-width: 375px;
    min-height: 1036px;
    padding-top: 0;
    overflow: hidden;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    height: 896px;
    min-height: 896px;
    margin: 0 auto;
    display: block;
    padding: 0;
  }

  .hero__background--desktop,
  .hero__logo--desktop {
    display: none;
  }

  .hero__background--mobile {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    left: 0;
    top: 116px;
    transform: none;
  }

  .hero__card {
    position: absolute;
    left: 20px;
    top: 110px;
    width: calc(100% - 40px);
    max-width: 335px;
    height: 616px;
    margin: 0;
    padding: 116px 20px 0;
    border-radius: 20px;
    text-align: center;
  }

  .hero__logo--mobile {
    display: block;
    width: 335px;
    height: 164px;
    left: 0;
    top: -80px;
    transform: none;
  }

  .hero__title {
    width: 295px;
    font-size: 36px;
    line-height: 36px;
    text-align: center;
  }

  .hero__title br:nth-of-type(2),
  .hero__title br:nth-of-type(3) {
    display: none;
  }

  .hero__text {
    width: 100%;
    max-width: 295px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 16px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
  }

  .hero__actions {
    position: absolute;
    left: 32px;
    top: 388px;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
  }

  .hero__action-button {
    height: 52px;
    padding: 12px 68px 12px 32px;
    font-size: 18px;
    line-height: 28px;
  }

  .hero__action-button:nth-child(1) {
    width: 251px;
  }

  .hero__action-button:nth-child(2) {
    width: 212px;
    margin-left: 29px;
  }

  .hero__action-button:nth-child(3) {
    width: 230px;
    margin-left: 20px;
  }

  .hero__action-icon {
    width: 52px;
    height: 52px;
  }

  .footer {
    position: absolute;
    left: 40px;
    top: 896px;
    width: 295px;
    padding: 0;
    margin: 0;
    justify-content: center;
  }

  .footer__nav {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer__link {
    font-size: 13px;
    line-height: 18px;
  }
}

@media (max-width: 500px) {
  .hero-page {
    width: 100%;
    max-width: 500px;
    min-height: 1036px;
    margin: 0 auto;
  }

  .hero {
    height: 896px;
    min-height: 896px;
  }

  .hero__background--mobile {
    top: 116px;
  }

  .hero__card {
    left: 20px;
    top: 110px;
    width: calc(100% - 40px);
    max-width: none;
    height: 616px;
    padding: 116px 20px 0;
  }

  .hero__title {
    width: 100%;
    font-size: 36px;
    line-height: 36px;
  }

  .hero__logo--mobile {
    width: 335px;
    height: auto;
    left: 50%;
    top: -80px;
    transform: translateX(-50%);
  }

  .hero__text {
    max-width: 295px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 20px;
  }

  .hero__text + .hero__text {
    margin-top: 8px;
  }

  .hero__actions {
    left: 0;
    top: 388px;
    width: 100%;
    align-items: center;
    gap: 16px;
  }

  .hero__action-button {
    height: 52px;
    padding: 12px 68px 12px 32px;
    font-size: 18px;
    line-height: 28px;
  }

  .hero__action-button:nth-child(1) {
    width: 271px;
  }

  .hero__action-button:nth-child(2) {
    width: 212px;
    margin-left: 0;
  }

  .hero__action-button:nth-child(3) {
    width: 230px;
    margin-left: 0;
  }

  .hero__action-icon {
    width: 52px;
    height: 52px;
  }

  .hero__action-icon--telegram img {
    width: 30px;
  }

  .hero__action-icon--vk img {
    width: 34px;
  }

  .hero__action-icon--max img {
    width: 28px;
  }

  .footer {
    left: 20px;
    top: 896px;
    width: calc(100% - 40px);
    padding: 0;
  }

  .footer__nav {
    gap: 24px;
  }
}

@media (min-width: 501px) and (max-width: 1239px) {
  .hero-page {
    max-width: 500px;
  }

  .hero__card {
    width: 460px;
    max-width: none;
  }

  .hero__logo--mobile {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero__title {
    width: 100%;
  }

  .hero__actions {
    left: 0;
    width: 100%;
    align-items: center;
  }

  .hero__action-button:nth-child(2),
  .hero__action-button:nth-child(3) {
    margin-left: 0;
  }

  .footer {
    left: 20px;
    width: 460px;
  }
}

/* Cookie Policy Page */
.policy-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page-blue);
  padding: 32px 24px 80px;
}

.policy-breadcrumb {
  max-width: 920px;
  margin: 0 auto 24px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.policy-breadcrumb a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.2s ease;
}

.policy-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.policy-breadcrumb span {
  margin: 0 8px;
}

.policy-breadcrumb-current {
  color: rgba(255, 255, 255, 0.6);
}

.policy-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 72px 64px;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.policy-title {
  margin: 0 0 48px;
  font-family: 'Geologica', sans-serif;
  font-size: 40px;
  line-height: 48px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section:last-of-type {
  margin-bottom: 48px;
}

.policy-heading {
  margin: 0 0 24px;
  font-family: 'Geologica', sans-serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--text-dark);
}

.policy-subsection {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.policy-subsection:last-child {
  margin-bottom: 0;
}

.policy-number {
  flex-shrink: 0;
  margin: 0;
  min-width: 32px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text-dark);
}

.policy-text {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-muted);
}

.policy-text p {
  margin: 0 0 12px;
}

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

.policy-text ul {
  margin: 12px 0 0;
  padding-left: 24px;
}

.policy-text li {
  margin-bottom: 16px;
  line-height: 24px;
}

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

.policy-text a {
  color: var(--button-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.policy-text a:hover {
  color: var(--button-blue-hover);
  text-decoration: underline;
}

.policy-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(81, 99, 132, 0.15);
  text-align: center;
}

@media (max-width: 768px) {
  .policy-page {
    padding: 24px 16px 60px;
  }

  .policy-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
  }

  .policy-card {
    padding: 40px 28px 48px;
    border-radius: 20px;
  }

  .policy-title {
    margin-bottom: 36px;
    font-size: 32px;
    line-height: 40px;
  }

  .policy-section {
    margin-bottom: 32px;
  }

  .policy-heading {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 28px;
  }

  .policy-subsection {
    gap: 12px;
    margin-bottom: 16px;
  }

  .policy-number {
    min-width: 28px;
    font-size: 15px;
  }

  .policy-text {
    font-size: 15px;
    line-height: 22px;
  }

  .policy-text ul {
    padding-left: 20px;
  }

  .policy-text li {
    margin-bottom: 14px;
  }

  .policy-footer {
    margin-top: 40px;
    padding-top: 28px;
  }

  .policy-back-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px 28px;
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .policy-card {
    padding: 32px 20px 40px;
  }

  .policy-title {
    font-size: 28px;
    line-height: 36px;
  }

  .policy-heading {
    font-size: 18px;
    line-height: 26px;
  }
}
