/* ============================================
   Instapstap — Esports & Gaming School
   CSS Stylesheet
   ============================================ */

/* === CSS Variables === */
:root {
  --color-bg: #0a0e1a;
  --color-bg-alt: #111827;
  --color-bg-card: #151c2e;
  --color-bg-card-hover: #1a2340;
  --color-surface: #1e293b;
  --color-border: #2a3550;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-primary: #00f0ff;
  --color-primary-dim: #00b8c4;
  --color-secondary: #7c3aed;
  --color-secondary-dim: #6d28d9;
  --color-accent: #f43f5e;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #7c3aed 0%, #f43f5e 100%);
  --gradient-dark: linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.15);
  --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--color-secondary);
}

ul {
  list-style: none;
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  max-width: 700px;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__header .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #0a0e1a;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #0a0e1a;
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--gradient-secondary);
  color: #fff;
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-purple);
  color: #fff;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 135px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all var(--transition);
}

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

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 128px;
  width: 128px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-link {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-text);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__burger--open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__burger--open span:nth-child(2) {
  opacity: 0;
}

.header__burger--open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-bg-alt);
  border-left: 1px solid var(--color-border);
  padding: 100px 28px 40px;
  z-index: 999;
  transition: right var(--transition);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu--open {
  right: 0;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__nav-link {
  display: block;
  padding: 14px 16px;
  color: var(--color-text-muted);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.mobile-menu__nav-link:hover,
.mobile-menu__nav-link--active {
  color: var(--color-primary);
  background: rgba(0, 240, 255, 0.05);
}

.mobile-menu__contacts {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.mobile-menu__contacts-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dim);
  margin-bottom: 12px;
}

.mobile-menu__contacts p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.mobile-menu__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-menu__overlay--open {
  opacity: 1;
  visibility: visible;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--gradient-dark);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__title-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual-card {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.hero__visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__visual-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 240, 255, 0.05) 100%);
  pointer-events: none;
}

/* === About Block === */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-block__text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.about-block__text p:last-child {
  margin-bottom: 0;
}

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

.about-block__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-muted);
}

.about-block__list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--color-primary);
  border-radius: 50%;
}

.about-block__visual {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-block__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Services Cards === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border-radius: var(--radius-sm);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex: 1;
}

.service-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.service-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* === Advantages === */
.advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.advantages__text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.advantages__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.advantages__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

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

.advantages__item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-sm);
}

.advantages__item-icon svg {
  width: 24px;
  height: 24px;
}

.advantages__item-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.advantages__item-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* === Stats === */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.stat-card__number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === CTA Section === */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.cta-section__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-section__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.cta-section__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section__text {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

/* === Info Blocks === */
.info-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
}

.info-block__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.info-block__text p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.info-block__text p:last-child {
  margin-bottom: 0;
}

.info-block__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.info-block__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-muted);
}

.info-block__list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--color-secondary);
  border-radius: 50%;
}

.info-block__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 20px 0;
}

.info-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === FAQ === */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.faq__item--open {
  border-color: var(--color-primary);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq__question-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.faq__item--open .faq__question-icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
  padding: 0 24px;
}

.faq__item--open .faq__answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq__answer p {
  color: var(--color-text-muted);
}

/* === Forms === */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.form__label .required {
  color: var(--color-accent);
}

.form__input,
.form__textarea,
.form__select {
  padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form__input--error,
.form__textarea--error,
.form__select--error {
  border-color: var(--color-accent);
}

.form__error {
  font-size: 0.85rem;
  color: var(--color-accent);
  display: none;
}

.form__error--visible {
  display: block;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__success {
  display: none;
  padding: 16px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-success);
  font-weight: 500;
}

.form__success--visible {
  display: block;
}

/* === Contact Info === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.contact-info__item:hover {
  border-color: var(--color-primary);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border-radius: var(--radius-sm);
}

.contact-info__icon svg {
  width: 24px;
  height: 24px;
}

.contact-info__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dim);
  margin-bottom: 4px;
}

.contact-info__value {
  font-weight: 600;
  color: var(--color-text);
}

.contact-info__value a {
  color: var(--color-text);
}

.contact-info__value a:hover {
  color: var(--color-primary);
}

/* === Team === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.team-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.team-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__body {
  padding: 20px;
}

.team-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.team-card__bio {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* === Values === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.value-card {
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--color-secondary);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-sm);
}

.value-card__icon svg {
  width: 28px;
  height: 28px;
}

.value-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* === Timeline === */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-bottom: 32px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--color-bg);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
}

.timeline__year {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.timeline__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* === Legal Pages === */
.legal {
  max-width: 800px;
  margin: 0 auto;
}

.legal__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal__section {
  margin-bottom: 32px;
}

.legal__section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal__section p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.legal__section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.legal__section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-muted);
}

.legal__section ul li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--color-primary);
  border-radius: 50%;
}

.legal__image {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 24px 0;
}

.legal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Page Hero (inner pages) === */
.page-hero {
  padding: calc(var(--header-height) + 60px) 0 60px;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.page-hero__title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

/* === Breadcrumbs === */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--color-text-dim);
}

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

.breadcrumbs span {
  color: var(--color-text-dim);
}

/* === Footer === */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand img {
  height: 128px;
  width: 128px;
  margin-bottom: 16px;
}

.footer__brand-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer__col-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dim);
  margin-bottom: 16px;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer__col-links a:hover {
  color: var(--color-primary);
}

.footer__contacts p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer__contacts a {
  color: var(--color-text-muted);
}

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

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-links a {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.footer__bottom-links a:hover {
  color: var(--color-primary);
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate--delay-1 { animation-delay: 0.1s; }
.animate--delay-2 { animation-delay: 0.2s; }
.animate--delay-3 { animation-delay: 0.3s; }
.animate--delay-4 { animation-delay: 0.4s; }

/* === Responsive === */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.8rem;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header__nav,
  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 90px);
    padding-bottom: 60px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .hero__visual {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .section__title {
    font-size: 2rem;
  }

  .about-block,
  .advantages,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card__body {
    padding: 20px;
  }

  .service-card__title {
    font-size: 1.2rem;
  }

  .page-hero__title {
    font-size: 2rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-section__inner {
    padding: 40px 24px;
  }

  .cta-section__title {
    font-size: 1.6rem;
  }

  .legal__title {
    font-size: 2rem;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.8rem;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card__number {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card__body {
    padding: 16px;
  }

  .service-card__title {
    font-size: 1.1rem;
  }

  .service-card__desc {
    font-size: 0.9rem;
  }

  .service-card__price {
    font-size: 1rem;
  }

  .service-card .btn {
    width: 100%;
  }
}

/* === Cookie Popup === */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.cookie-popup--visible {
  transform: translateY(0);
}

.cookie-popup__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-popup__text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cookie-popup__text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-popup__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-popup__btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition);
}

.cookie-popup__btn--accept {
  background: var(--gradient-primary);
  color: #0a0e1a;
}

.cookie-popup__btn--accept:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.cookie-popup__btn--decline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.cookie-popup__btn--decline:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .cookie-popup {
    padding: 16px;
  }

  .cookie-popup__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-popup__text {
    min-width: auto;
  }

  .cookie-popup__actions {
    flex-direction: column;
  }

  .cookie-popup__btn {
    width: 100%;
    text-align: center;
  }
}
