:root {
  --color-link: #0071bc;
  --color-link-hover: #008fbc;
  --color-black: #1d2226;
  --color-bg: #f8f4ee;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 400;
  background-color: var(--color-bg);
  color: var(--color-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 48px;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- HEADER ---------- */
.header {
  width: 100%;
  text-align: center;
  padding-top: 16px;
}

.header-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 32px;
}

.logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.logo-club {
  width: 120px;
  max-width: 30vw;
}

.logo-fstr {
  width: 140px;
  max-width: 30vw;
}

.logo-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.75;
}

.title {
  font-family: 'Arkhip', 'Rubik', sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 5rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.subtitle {
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-top: 6px;
  opacity: 0.85;
}

/* ---------- MAIN ---------- */
.main {
  width: 100%;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.notice {
  max-width: 640px;
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
}

.contacts {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
}

/* ---------- LINKS ---------- */
.link,
a {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link:hover,
a:hover {
  color: var(--color-link-hover);
  border-bottom-color: var(--color-link-hover);
}

.phone-link {
  white-space: nowrap;
  font-weight: 600;
}

/* ---------- SOCIALS ---------- */
.socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 4px 0;
}

.social-link {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-bottom: none;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-bottom: none;
}

.social-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

/* Hover: подменяем цвет иконки на белую версию.
   Метод: прячем обычную иконку и показываем белую как background-image на ссылке. */
.social-link {
  position: relative;
}

.social-icon-vk,
.social-icon-tg {
  position: relative;
  z-index: 1;
}

/* Белая версия появляется при наведении: используем ::before с фоновым белым логотипом */
.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  border-radius: 50%;
  background-color: var(--color-black);
}

.social-link:hover .social-icon {
  opacity: 0;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link[aria-label="ВКонтакте"]::before {
  background-image: url('img/vk-white.png');
  background-color: var(--color-black);
  background-size: 60%;
}

.social-link[aria-label="Telegram"]::before {
  background-image: url('img/tg-white.png');
  background-color: var(--color-black);
  background-size: 60%;
}

/* ---------- MOBILE ---------- */
@media (max-width: 480px) {
  .page {
    padding: 16px 16px 40px;
  }

  .header-logos {
    margin-bottom: 24px;
  }

  .logo-club {
    width: 92px;
  }

  .logo-parent {
    width: 100px;
  }

  .main {
    margin-top: 28px;
    gap: 22px;
  }

  .contacts {
    text-align: left;
  }

  .socials {
    gap: 16px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }
}
