:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --bg-soft: #0f172a;
  --card: #020617;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.16);
  --accent-strong: #0ea5e9;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.24);
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.8);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.65),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, #1d4ed8 0, #020617 45%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav__link {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease,
    transform 0.1s ease;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.nav__link--primary {
  border-radius: 999px;
  background: radial-gradient(circle at top left, #38bdf8, #0f172a);
  color: #f9fafb;
  padding: 8px 16px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.nav__link--primary:hover {
  background: radial-gradient(circle at top left, #0ea5e9, #020617);
  color: #f9fafb;
}

.burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: rgba(15, 23, 42, 0.9);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background-color: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

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

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

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

.mobile-menu {
  display: none;
  position: fixed;
  inset: 56px 0 auto 0;
  padding: 12px 16px 16px;
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  z-index: 19;
}

.mobile-menu--open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__link {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 14px;
}

.mobile-menu__link--primary {
  background: radial-gradient(circle at top left, #38bdf8, #0f172a);
  color: #f9fafb;
  border-color: rgba(56, 189, 248, 0.6);
}

.hero {
  padding: 40px 0 56px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.hero__content {
  padding-right: 8px;
}

.hero__overline {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero__title {
  font-size: clamp(28px, 3vw, 32px);
  line-height: 1.15;
  margin: 0 0 14px;
}

.hero__subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero__details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__detail {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__detail-number {
  font-weight: 600;
  font-size: 14px;
}

.hero__detail-label {
  font-size: 12px;
  color: var(--muted);
}

.hero__card {
  position: relative;
}

.hero__card-inner {
  position: sticky;
  top: 80px;
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, #1d4ed8, #020617 45%);
  box-shadow: var(--shadow-card);
}

.hero__card-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.hero__card-text {
  margin: 0 0 14px;
  font-size: 14px;
  color: #e5e7eb;
}

.hero__card-list {
  margin: 0 0 18px;
  padding-left: 16px;
  font-size: 13px;
  color: #d1d5db;
}

.hero__card-list li + li {
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn--primary {
  background: radial-gradient(circle at top left, var(--accent), #0b1120);
  color: #ecfeff;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.8);
}

.btn--primary:hover {
  background: radial-gradient(circle at top left, var(--accent-strong), #020617);
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(8, 47, 73, 0.95);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--muted);
}

.btn--ghost:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.8);
}

.btn--full {
  width: 100%;
  justify-content: center;
  background: radial-gradient(circle at top left, #22c55e, #052e16);
  color: #ecfdf5;
  border-color: rgba(34, 197, 94, 0.7);
}

.btn--full:hover {
  background: radial-gradient(circle at top left, #16a34a, #022c22);
}

.section {
  padding: 32px 0;
}

.section--gray {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

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

.section__inner--two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: flex-start;
}

.section__inner--top {
  align-items: flex-start;
}

.section__title {
  margin: 0 0 6px;
  font-size: 22px;
}

.section__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section__content {
  font-size: 14px;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card {
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, #0f172a, #020617 55%);
  box-shadow: var(--shadow-soft);
}

.card__title {
  margin: 0 0 8px;
  font-size: 16px;
}

.card__text {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.card__list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: #e5e7eb;
}

.card__list li + li {
  margin-top: 4px;
}

.reviews {
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 14px 14px 6px;
  margin-bottom: 16px;
}

.reviews__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 12px;
}

/* Кастомный скроллбар для отзывов */
.reviews__list::-webkit-scrollbar {
  width: 8px;
}

.reviews__list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}

.reviews__list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
}

.reviews__list::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

.reviews__pagination {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.reviews__empty {
  font-size: 13px;
  color: var(--muted);
}

.review {
  padding: 10px 10px 11px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.review__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.review__name {
  font-weight: 500;
  font-size: 14px;
}

.review__rating {
  font-size: 13px;
  color: #facc15;
}

.review__text {
  margin: 0;
  font-size: 13px;
  color: #e5e7eb;
}

.review__meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.review-form {
  padding: 14px 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.review-form__title {
  margin: 0 0 6px;
  font-size: 15px;
}

.review-form__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.review-form__note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination__btn {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pagination__btn:hover:not(:disabled) {
  background: rgba(15, 23, 42, 1);
  border-color: var(--accent);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination__page {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pagination__page:hover {
  background: rgba(15, 23, 42, 1);
  border-color: var(--accent);
}

.pagination__page--active {
  background: radial-gradient(circle at top left, var(--accent), #0b1120);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ecfeff;
}

.pagination__page--active:hover {
  background: radial-gradient(circle at top left, var(--accent-strong), #020617);
}

.pagination__dots {
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.contacts__item {
  padding: 10px 11px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.contacts__label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 3px;
}

.contacts__value {
  font-size: 13px;
}

.contact-form {
  padding: 14px 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-soft);
}

.contact-form__note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.form-field label {
  font-size: 12px;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  padding: 7px 9px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(107, 114, 128, 0.85);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 1);
}

.form-field--inline {
  max-width: 160px;
}

.footer {
  padding: 18px 0 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.98);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.footer__note {
  font-size: 11px;
}

/* Страница "Обо мне" */
.section--hero {
  padding-top: 40px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 40px;
  align-items: center;
}

.about-hero__photo {
  position: relative;
}

.about-hero__photo img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.about-hero__title {
  font-size: clamp(32px, 4vw, 42px);
  margin: 0 0 12px;
  line-height: 1.2;
}

.about-hero__subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.achievements {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.achievement {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, #0f172a, #020617 55%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.achievement:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.achievement__year {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding-top: 4px;
}

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

.achievement__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.achievement__description {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.about-list {
  margin: 16px 0;
  padding-left: 20px;
  color: var(--text);
}

.about-list li {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.about-list li strong {
  color: var(--accent);
}

.nav__link--active {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #e5faff;
  font-size: 13px;
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.9);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 50;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__content {
    padding-right: 0;
  }

  .hero__card-inner {
    position: static;
  }

  .section__inner--two-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .about-hero__photo {
    justify-self: center;
  }

  .achievement {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }

  .achievement__year {
    font-size: 20px;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .hero {
    padding-top: 28px;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__details {
    gap: 10px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .achievement {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .achievement__year {
    text-align: left;
    font-size: 18px;
  }
}


