@import url("https://fonts.googleapis.com/css2?family=Twinkle+Star:wght@400&display=swap");

html {
  scroll-behavior: smooth;
}

:root {
  /* Основные цвета */
  --primary-color: #8B5CF6;
  --secondary-color: #6366F1;
  --primary-hover: #7C3AED;
  --secondary-hover: #4F46E5;

  /* Акцентные цвета */
  --accent-gold: #F59E0B;
  --accent-rose: #EC4899;
  --accent-teal: #14B8A6;

  /* Текстовые цвета */
  --text-primary: #1F2937;
  --text-secondary: #374151;
  --text-inverted: #FFFFFF;
  --text-muted: #6B7280;

  /* Фоновые цвета */
  --background-color: #FFFFFF;
  --background-secondary: #F9FAFB;
  --background-dark: #111827;
  --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Дополнительные цвета */
  --border-color: #E5E7EB;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --overlay-color: rgba(139, 92, 246, 0.1);

  /* Скругления */
  --border-radius-primary: 12px;
  --border-radius-secondary: 8px;
  --border-radius-large: 20px;

  /* Шрифты */
  --font-family: "Twinkle Star", cursive;
  --second-family: "Twinkle Star", cursive;
  
  /* Тени */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  width: 100%;
  background-color: var(--background-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
}

body:has(.mobile-menu-active) {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

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

section {
  overflow-x: hidden;
}

.title {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 56px;
  line-height: 110%;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.subtitle {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 40px;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.descr {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 170%;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.section-name {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 45px;
}

.primary-btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--background-gradient);
  color: var(--text-inverted);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  text-align: center;
  border: none;
  border-radius: var(--border-radius-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.secondary-btn {
  display: inline-block;
  padding: 16px 32px;
  background: transparent;
  color: var(--primary-color);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  text-align: center;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.secondary-btn:hover {
  background: var(--primary-color);
  color: var(--text-inverted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.secondary-btn:active {
  transform: translateY(0);
}

.terms-privacy {
  padding: 140px 0 80px;
}

.terms-privacy .title {
  margin-bottom: 40px;
}

.terms-privacy .subtitle {
  margin: 25px 0;
}

.thank-you-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  padding-top: 180px;
}

.thank-you-container p {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--text-inverted);
  transition: all 0.3s ease;
}

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

.logo img {
  width: 80px;
  height: 50px;
  object-fit: contain;
}

.link {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 175%;
  letter-spacing: 0.04em;
  color: var(--text-primary);

  text-decoration: none;
  position: relative;
  padding: 3px 12px;
  transition: all 0.3s ease-in-out;
}

.link::before {
  content: "";
  background-color: var(--primary-hover);
  border-radius: var(--border-radius-primary);
  position: absolute;
  left: 0px;
  width: 30%;
  bottom: 0;
  height: 1.5px;
  z-index: -1;
  transition: all 0.3s ease-in-out;
}

.link:hover::before {
  width: 100%;
}

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

@media screen and (max-width: 1240px) {
  .container {
    padding: 0 15px;
  }

  .title {
    font-size: 34px;
  }

  .title span {
    font-weight: 700;
    font-size: 26px;
  }

  .subtitle {
    font-size: 24px;
  }

  .descr {
    font-weight: 400;
    font-size: 14px;
  }

  .section-name {
    font-size: 18px;
  }

  .primary-btn {
    font-size: 14px;
    padding: 10px 15px;
  }

  .secondary-btn {
    font-size: 14px;
    padding: 10px 15px;
  }

  .terms-privacy {
    padding: 120px 0 60px;
  }

  .terms-privacy .title {
    margin-bottom: 30px;
  }

  .terms-privacy .subtitle {
    margin: 25px 0;
  }
}
