:root {
  color-scheme: dark;
  --bg-color: #0b1220;
  --main-white: #e7edf3;
  --muted-text: #aeb7c2;
  --focus-color: #e8c449;
  --second-color: #5ad1c4;
  --bg-color-light: #14232e8f;
  --btn-border: rgba(255, 255, 255, 0.18);
  --btn-hover: rgba(255, 255, 255, 0.08);
  --icon-color: #e9eef5;

  --switch-track: rgba(255, 255, 255, 0.22);
  --switch-thumb: #ffffff;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-page: #ffffff;
  --text-color: #0b1220;
  --link-color: #0b1220;

  --btn-border: rgba(11, 18, 32, 0.18);
  --btn-hover: rgba(11, 18, 32, 0.06);
  --icon-color: #0b1220;

  --switch-track: rgba(11, 18, 32, 0.25);
  --switch-thumb: #0b1220;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

* {
  box-sizing: border-box;
}

body,
p,
ul {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 400;
  background-color: var(--bg-color);
  color: var(--main-white);
}
a {
  color: var(--link-color);
}
ul {
  list-style: none;
}
main h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 800;
  margin-bottom: 90px;
  color: var(--main-white);
  text-align: center;
  padding: 0;
}
.container {
  margin: 100px auto;
  max-width: 1000px;
  padding: 15px;
}
.container__gray {
  align-items: center;
  padding: 100px 15px;
  margin: 0 auto;
  max-width: 1000px;
}

.btn--accent {
  background-color: var(--second-color);
  color: var(--bg-color);
  border-radius: 7px;
  padding: 3px 7px;
}

.body__btn {
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--focus-color);
  color: #101418;
  box-shadow: 0 6px 16px rgba(232, 196, 73, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.body__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(232, 196, 73, 0.3);
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background-color: transparent;
}

.header--scrolled {
  background-color: rgba(0, 16, 29, 0.95);
  backdrop-filter: blur(6px);
}

.header--hidden {
  transform: translateY(-100%);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto !important;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
ul > li > a,
nav > a {
  cursor: pointer;
  color: white;
  text-decoration: none;
}

.header__controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pll-switcher-select {
  background: none;
  border: none;
  color: var(--main-white);
}

.header__login {
  border-bottom: 1px solid #fff;
  cursor: pointer;
}

/* Hero */
.hero {
  height: 432px;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 588px;
}

.hero__background {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 588px;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 75%);
  pointer-events: none;
}

.hero__content-wrapper {
  z-index: 1;
}

.hero__note {
  background-color: rgba(217, 217, 217, 0.22);
  padding: 5px 10px;
  border: 1px solid var(--second-color);
  border-radius: 12px;
  font-size: 12px;
  width: fit-content;
  margin: 0 auto 21px;
}

.hero__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6vh auto 0;
  gap: 32px;
}

.hero__title {
  width: 50%;
  margin-right: 15px;
  display: flex;
  flex-direction: column;
  font-size: 33px;
  align-items: flex-end;
  text-align: right;
}

.hero__highlight {
  color: var(--focus-color);
  font-size: 45px;
}

.hero__highlight--large {
  font-size: 40px;
}

.hero__divider {
  width: 3px;
  height: 271px;
  background-color: var(--focus-color);
}

.hero__description {
  width: 50%;
  margin-left: 15px;
  display: block;
}
.hero__description p {
  padding-bottom: 15px;
  max-width: 75%;
}
.burger {
  display: none; /* по умолчанию скрыта (десктоп) */
  position: relative;
  width: 40px;
  height: 28px;
  top: -5px;
  border: 0;
  background: transparent;
  padding: 8px;
  margin: 0;
  color: #111; /* цвет полосок — можно поменять */
  z-index: 1001; /* поверх меню */
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--main-white);
  border-radius: 2px;
  top: 12px;
  transition: transform 0.25s, opacity 0.25s, top 0.25s;
}
.burger span:nth-child(2) {
  top: 18px;
}
.burger span:nth-child(3) {
  top: 24px;
}

/* крестик при открытом меню */
body.menu-open .burger span:nth-child(1) {
  top: 18px;
  transform: rotate(45deg);
}
body.menu-open .burger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .burger span:nth-child(3) {
  top: 18px;
  transform: rotate(-45deg);
}

/* Footer */
.footer {
  background-color: var(--bg-color-light);
  color: var(--main-white);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  padding: 40px 10px;
  flex-wrap: wrap;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  width: 150px;
  height: auto;
}

.footer__contacts p {
  padding: 10px 0;
}

.footer__links {
  display: flex;
  gap: 40px;
}

.footer__col li {
  padding: 10px 0;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 10px;
  font-size: 12px;
  line-height: 18px;
}
.footer__bottom p {
  text-align: center;
}
.section {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.7s ease-out;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.sticky-transform {
  position: sticky;
  top: 80px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 20;
}
.sticky-transform.scrolled {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background-color: var(--focus-color);
  z-index: 9999;
  transition: width 0.25s ease-out;
}
/* Theme Toggle Button */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 26px;
  cursor: pointer;
}

/* Hide the default checkbox */
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Container for icons */
.icons {
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 0 5px; */
  pointer-events: none;
}

.icon {
  font-size: 1.2rem;
  transition: opacity 0.4s, transform 0.4s;
}

.sun {
  opacity: 1;
}

.moon {
  opacity: 0;
}

/* Show the moon icon when checked (dark theme) */
input:checked ~ .icons .moon {
  opacity: 1;
}

input:checked ~ .icons .sun {
  opacity: 0;
}
.theme-btn {
  background-color: inherit;
  border: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-pagination {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 0 12px;
  justify-content: center;
}

/* Каждая «точка» превращается в полоску */
.reviews-pagination .swiper-pagination-bullet {
  flex: 1 1 0;
  height: 4px;
  border-radius: 999px;
  background: var(--muted-text);
  opacity: 1;
  margin: 0;
  width: auto;
  transition: background 0.25s ease;
  cursor: pointer;
  min-width: 28px;
}

.reviews-pagination .swiper-pagination-bullet-active {
  background: var(--focus-color);
}
.swiper-pagination-bullets.swiper-pagination-horizontal {
  width: 40% !important;
  margin: 15px auto 15px;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
}
.theme-toggle-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

/* сам слайдер */
.theme-switch .slider {
  width: 48px;
  height: 28px;
  background: var(--switch-track);
  border-radius: 999px;
  position: relative;
  transition: background 0.25s ease;
}
.theme-switch .slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: var(--switch-thumb);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}

/* иконки солнце/луна */
.theme-switch .icons {
  position: relative;
  width: 18px;
  height: 18px;
}
.theme-switch .icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--icon-color);
}
.theme-switch .icon.moon {
  opacity: 1;
  transition: opacity 0.2s ease;
}
.theme-switch .icon.sun {
  opacity: 0;
  transition: opacity 0.2s ease;
}

html[data-theme="light"] .theme-switch .icon.moon {
  opacity: 0;
}
html[data-theme="light"] .theme-switch .icon.sun {
  opacity: 1;
}

.theme-label {
  font-size: 14px;
  opacity: 0.9;
  color: var(--text-color);
}

/* положение ползунка при включённой тёмной теме */
.theme-toggle-checkbox:checked + .theme-switch .slider::after {
  transform: translateX(20px);
}

/* === Соц-кнопки === */
.btn--icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--btn-border);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.05s ease;
  color: var(--icon-color); /* влияет на цвет SVG через currentColor */
  text-decoration: none;
}
.btn--icon:hover {
  background: var(--btn-hover);
}
.btn--icon:active {
  transform: translateY(1px);
}
.btn--icon svg {
  display: block;
}
/* Блок 404 */
.section-404 {
  padding: clamp(40px, 8vw, 96px) 0;
}
.hero-404 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.hero-404__title {
  font-size: clamp(64px, 12vw, 120px);
  line-height: 0.9;
  margin: 0;
  letter-spacing: -0.03em;
}
.hero-404__subtitle {
  font-size: clamp(20px, 3vw, 28px);
  margin: 8px 0 12px;
  opacity: 0.8;
}
.hero-404__desc {
  margin: 0 0 20px;
  color: var(--muted, #667085);
}
.hero-404__illustration img {
  max-width: 100%;
  height: auto;
  display: block;
}
.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.error-search {
  margin-top: 28px;
}
.error-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.error-block__title {
  font-size: 18px;
  margin: 0 0 12px;
}
.menu--404 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.menu--404 a {
  text-decoration: none;
}
.posts--compact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.posts__link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
}

/* Простейшие кнопки — подстрой под свои токены/переменные */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary, #1a73e8);
  color: #fff;
  border-color: transparent;
}
.btn-ghost {
  background: transparent;
  color: inherit;
}

@media (max-width: 960px) {
  .hero-404 {
    grid-template-columns: 1fr;
  }
  .error-links-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Registration & Login Form ===== */
.ti-auth.auth-card {
  max-width: 500px;
  margin: 80px auto 20px;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 0 35px rgba(0, 255, 209, 0.08);
  backdrop-filter: blur(10px);
  text-align: center;
}

.ti-auth.auth-card h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--focus-color);
}

/* Поля ввода */
.ti-auth__form .ti-field {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 20px;
}
.ti-auth__form .ti-field span {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--main-white);
  font-weight: 400;
}
.ti-auth__form input[type="text"],
.ti-auth__form input[type="email"],
.ti-auth__form input[type="password"],
.ti-auth__form input[type="date"] {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--main-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ti-auth__form input:focus {
  border-color: var(--focus-color);
  box-shadow: 0 0 12px rgba(255, 212, 0, 0.25);
}

/* Кнопка */
.btn--auth{
  width: 40%;
  display: flex;
  margin: 0 auto;
  padding: 14px 18px;
  background: linear-gradient(90deg, var(--focus-color), #ffe680);
  border: none;
  border-radius: 14px;
  font-weight: 600;
  color: #001019;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  justify-content: center;
}
.btn--auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(255, 212, 0, 0.35);
}

/* Разделитель и соц-кнопки */
.ti-auth__or {
  position: relative;
  margin: 28px 0;
  font-size: 14px;
  color: var(--muted-text);
}
.ti-auth__or::before,
.ti-auth__or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.ti-auth__or::before { left: 0; }
.ti-auth__or::after { right: 0; }

.ti-auth__social .btn--google {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--main-white);
  padding: 12px 16px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}
.ti-auth__social .btn--google:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Нижние ссылки */
.ti-auth__links {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted-text);
}
.ti-auth__links a {
  color: var(--second-color);
  text-decoration: none;
}
.ti-auth__links a:hover {
  text-decoration: underline;
}

/* Адаптив */
@media (max-width: 600px) {
  .ti-auth.auth-card {
    margin: 40px auto;
    padding: 28px 20px;
  }
  .ti-auth.auth-card h1 {
    font-size: 24px;
  }
}
.ti-auth--ok{
  margin: 119px auto;
    text-align: center;
}
.ti-auth--ok p{
  margin-bottom: 15px;
}
.logo-cont{
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  color: #d8a65e;
  font-weight: 700;
  font-size: 20px;
}
.header__logo{
  max-height: 40px;
}