:root {
  --ink: #0a212d;
  --gold: #f5be29;
  --gold-deep: #e0a80f;
  --paper: #f6f4ef;
  --card: #ffffff;
  --muted: #5c6670;
  --line: rgba(10, 33, 45, 0.08);
  --shadow: 0 14px 40px rgba(10, 33, 45, 0.08);
  --radius: 18px;
}

html {
  font-size: 17px;
  line-height: 1.5;
}

body {
  background: var(--paper);
  color: var(--ink);
}

.container {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  padding: 0;
}

button,
.schedule__separate-ice,
.schedule__separate-earth,
.news__slider-left,
.news__slider-right,
.matches__slider-left,
.matches__slider-right {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px;
}

.button {
  border-radius: 999px;
  padding: 12px 22px;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.title-xl,
.title-xxl {
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.title-xl {
  font-size: clamp(28px, 3vw, 40px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink);
  padding: 14px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header__inner-right {
  width: auto;
  gap: 14px;
}

.header__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.header .button:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.hero__slider-wrapper {
  background: var(--ink);
}

.hero__slider-inner {
  width: 100% !important;
  transform: none !important;
}

.hero__slider-item {
  width: 100% !important;
  height: min(70vh, 640px) !important;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.news,
.about,
.benefits,
.schedule,
.team {
  padding-left: 0;
  padding-right: 0;
}

.news {
  padding: 72px 0 32px;
}

.news__wrapper,
.matches__wrapper {
  width: min(1180px, 100%);
  max-width: 100%;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  box-sizing: border-box;
}

.news__title,
.matches__title,
.about__title,
.benefits__title,
.schedule__title,
.team__title {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 12px;
}

.news__title::after,
.matches__title::after,
.about__title::after,
.benefits__title::after,
.schedule__title::after,
.team__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--gold);
}

.news__slider-wrapper,
.matches__slider-wrapper {
  width: auto !important;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 2px 18px;
}

.news__slider-wrapper::-webkit-scrollbar,
.matches__slider-wrapper::-webkit-scrollbar {
  display: none;
}

.news__slider-inner,
.matches__slider-inner {
  width: max-content !important;
  transform: none !important;
  gap: 20px;
}

.news__slider-item {
  width: min(340px, 78vw);
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news__slider-item-image {
  width: 100%;
  height: 210px;
  margin: 0;
  object-fit: cover;
  display: block;
  background: #e7e2d8;
}

.news__slider-item-title,
.news__slider-item-date {
  padding: 0 18px;
}

.news__slider-item-title {
  margin: 16px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
}

.news__slider-item-title a {
  color: var(--ink) !important;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.news__slider-item-date {
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news__slider-left,
.news__slider-right,
.matches__slider-left,
.matches__slider-right {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  flex: none;
}

.matches {
  margin: 24px 0;
  padding: 64px 0;
  background-color: #efeae1;
  background-size: cover;
}

.matches__slider-item {
  width: min(360px, 82vw);
  scroll-snap-align: start;
  padding: 22px 16px 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-image: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.matches__slider-item-score {
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
}

.matches__slider-item-team img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.matches__slider-item-team h4 {
  font-size: 13px;
  line-height: 1.25;
}

.matches__slider-item-score-value {
  font-size: 28px;
  letter-spacing: 0;
}

.about {
  padding: 72px 0;
}

.about__inner {
  gap: 40px;
  align-items: center;
}

.about__text {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.65;
  color: #24323b;
}

.about__inner-img,
.about__inner img {
  width: min(420px, 100%);
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.view__wrapper {
  background: linear-gradient(90deg, rgba(10, 33, 45, 0.78), rgba(10, 33, 45, 0.35));
}

.view__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  max-width: 16ch;
}

.benefits {
  padding: 72px 0;
}

.benefits__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  background-image: none;
}

.benefits__inner-item {
  width: auto;
  height: auto;
  min-height: 240px;
  border: 0;
  border-image: none;
  border-radius: var(--radius);
  background-color: #fff;
  box-shadow: var(--shadow);
  background-size: 180px auto;
  background-position: right 16px bottom 12px;
}

.benefits__inner-item:nth-child(2) {
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: min(420px, 85%) auto;
}

.benefits__inner-item-title {
  max-width: 14ch;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 0;
}

.schedule {
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.schedule__separate-ice,
.schedule__separate-earth {
  cursor: pointer;
  text-align: center;
}

.schedule__week {
  gap: 16px;
}

.schedule__week-item {
  order: initial;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.schedule__week-item h4 {
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule__week-item span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.team {
  padding-bottom: 80px;
}

.team__wrapper {
  gap: 16px;
}

.team__wrapper-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-image: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team__wrapper-item-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.team__wrapper-item-info {
  width: auto;
  min-width: 140px;
}

.team__wrapper-item-info-number {
  color: var(--ink);
}

.team__wrapper-button {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 220px;
  margin-top: 8px;
}

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

.footer__copyright {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 33, 45, 0.62);
}

.modal__wrapper {
  width: min(520px, 100%);
  margin: 0;
}

.modal__inner {
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.modal__form .control-label {
  display: none;
}

.modal__form input {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #e4e0d8;
  border-radius: 12px;
  background: #faf8f4;
  text-transform: none;
  font-size: 16px;
}

.modal__form input:focus {
  border-color: var(--gold);
  background: #fff;
}

.modal__close-lg,
.modal__close-md {
  width: 28px;
  height: 28px;
}

.site-login,
.site-signup,
.site-request-password-reset,
.site-reset-password,
.site-resend-verification-email,
.site-error {
  width: min(480px, calc(100% - 32px));
  margin: 48px auto 72px;
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .benefits__inner,
  .about__inner,
  .schedule__week {
    grid-template-columns: 1fr;
  }

  .about__inner {
    flex-direction: column;
  }

  .view__title {
    max-width: none;
  }

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

@media (max-width: 767.98px) {
  .header__logo {
    width: 52px;
    height: 52px;
  }

  .header__inner-right {
    width: auto;
    gap: 10px;
  }

  .hero__slider-item {
    height: 46vh !important;
    min-height: 220px;
  }

  .news,
  .about,
  .benefits,
  .matches {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .news__slider-left,
  .news__slider-right,
  .matches__slider-left,
  .matches__slider-right {
    display: none;
  }

  .benefits__inner-item {
    min-height: 200px;
    background-size: 140px auto;
  }

  .team__wrapper-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .team__wrapper-item-bottom {
    width: 100%;
    justify-content: space-between;
  }

  .footer__inner-right {
    width: auto;
  }
}
