@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap");

:root {
  --green: #00a046;
  --green-dark: #008f3a;
  --green-light: #e6f7ee;
  --dark: #111827;
  --text: #1f2933;
  --muted: #4b5563;
  --bg: #f4f6f8;
  --white: #ffffff;
  --border: #e5e7eb;
  --orange: #f4a261;
  --blue: #0b5d7a;

  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;

  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

/* HEADER */

.header {
  height: 78px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 80px 1fr 170px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.logo-center {
  text-align: center;
  font-size: 38px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: 2px;
}

.menu-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
  align-items: center;
  justify-self: start;
}

.menu-btn span {
  width: 30px;
  height: 3px;
  background: var(--dark);
  border-radius: 4px;
  transition: 0.3s;
}

.menu-btn:hover span {
  background: var(--green);
}

.header-contact-btn {
  justify-self: end;
  padding: 12px 20px;
  border: 1px solid var(--green);
  background: var(--white);
  color: var(--green);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.header-contact-btn:hover {
  background: var(--green);
  color: var(--white);
}

.back-link {
  color: var(--dark);
  text-decoration: none;
  font-weight: 800;
  justify-self: start;
  padding-left: 12px;
}

.back-link:hover {
  color: var(--green);
}

/* SIDEBAR */

.sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.18);
  z-index: 2000;
  padding: 28px 24px;
  transition: left 0.3s ease;
}

.sidebar.active {
  left: 0;
}

.close-btn {
  font-size: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  float: right;
  color: var(--dark);
}

.sidebar-menu {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-menu a {
  text-decoration: none;
  color: var(--dark);
  font-size: 18px;
  font-weight: 700;
  padding: 14px 12px;
  border-radius: 12px;
}

.sidebar-menu a:hover {
  background: var(--green-light);
  color: var(--green);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1500;
  display: none;
}

.overlay.active {
  display: block;
}

/* HOME HERO */

.hero {
  position: relative;
  padding: 70px 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 160, 70, 0.22), transparent 32%),
    radial-gradient(circle at 10% 85%, rgba(0, 160, 70, 0.12), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f0faf5 45%, #e6f7ee 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 160, 70, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 160, 70, 0.028) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.hero::after {
  content: "SKIF";
  position: absolute;
  right: -10px;
  bottom: 20px;
  font-size: 120px;
  font-weight: 900;
  color: rgba(0, 160, 70, 0.035);
  letter-spacing: 10px;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  display: flex;
  flex-direction: column;
}

.badge {
  align-self: flex-start;
  display: inline-block;
  margin: 0 0 22px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  margin: 0 0 24px;
  color: var(--dark);
  max-width: 820px;
}

.hero p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 760px;
  margin: 0 0 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--green), #00c15a);
  color: var(--white);
  border: none;
  box-shadow: 0 10px 24px rgba(0, 160, 70, 0.28);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 160, 70, 0.36);
}

.btn.secondary {
  background: var(--white);
  color: var(--green);
  border: 1px solid var(--green);
}

.btn.secondary:hover {
  background: var(--green);
  color: var(--white);
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.hero-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
  color: var(--dark);
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
}

.hero-card li {
  margin-bottom: 12px;
  font-size: 17px;
  color: #374151;
}

/* HERO STATS */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.hero-stats div {
  background: var(--white);
  border-radius: 16px;
  padding: 15px 10px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.hero-stats strong {
  display: block;
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.hero-stats span {
  font-size: 13px;
  color: var(--muted);
}

/* PAGE HERO */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(0, 160, 70, 0.74)),
    url("images/hero-bg.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 70px 60px;
  border-radius: 26px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  margin-bottom: 40px;
}

.page-hero::before {
  content: "SKIF";
  position: absolute;
  top: 24px;
  right: 34px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
  font-size: 56px;
  margin: 0 0 18px;
  color: var(--white);
  max-width: 850px;
  line-height: 1.05;
}

.page-hero p {
  font-size: 24px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 900px;
  margin: 0;
}

.gym-hero::before {
  content: "SKIF GYM";
}

/* SCHEME */

.scheme-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 24px;
}

.section-title {
  margin-bottom: 22px;
}

.section-title h2 {
  font-size: 34px;
  margin: 0 0 10px;
  color: var(--dark);
}

.section-title p {
  font-size: 18px;
  color: #6b7280;
  margin: 0;
}

.scheme-instruction {
  font-size: 18px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 18px;
}

.legend-marker {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  background: #ff2d2d;
  color: var(--white);
  border-radius: 50%;
  font-weight: 900;
  margin: 0 4px;
}

.scheme-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--dark);
}

.legend-box {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid #0f172a;
}

.legend-box.blue {
  background: var(--blue);
}

.legend-box.orange {
  background: var(--orange);
}

.scheme-box {
  background: var(--white);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  overflow: auto;
}

.scheme-map {
  position: relative;
  width: 100%;
  min-width: 900px;
}

.scheme-box img {
  width: 100%;
  min-width: 900px;
  display: block;
}

.map-marker,
.gym-point {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #ff2d2d;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 16px rgba(255, 45, 45, 0.35);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}

.map-marker:hover,
.gym-point:hover {
  background: var(--green);
  transform: translate(-50%, -50%) scale(1.15);
}

/* ABOUT */

.about-skif {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px 70px;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.about-block {
  background: var(--white);
  border-radius: 18px;
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.about-block h2 {
  margin: 0 0 16px;
  font-size: 26px;
  color: var(--dark);
}

.about-block p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.about-block p:last-child {
  margin-bottom: 0;
}

.final-block {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--white) 100%);
  border-color: #b7e4c7;
}

/* CATALOG */

.catalog h1 {
  font-size: 42px;
  margin: 0 0 30px;
  color: var(--dark);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.room-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.14);
}

.room-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
}

.room-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--dark);
}

.room-card p {
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  margin: 0 0 14px;
}

.room-card button {
  width: 100%;
  padding: 13px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.room-card button:hover {
  background: var(--green-dark);
}

.room-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--green);
  margin: 10px 0 18px;
}

.service-card img,
.gym-card img {
  height: 260px;
  object-fit: cover;
}

.gym-card h3 {
  min-height: 52px;
}

/* MODALS */

.contact-modal,
.room-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 5000;
}

.contact-modal {
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
}

.contact-modal.active {
  display: flex;
}

.contact-box {
  background: var(--white);
  width: 90%;
  max-width: 520px;
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-strong);
  position: relative;
  text-align: center;
}

.contact-box h2 {
  margin: 0 0 18px;
  font-size: 34px;
  color: var(--dark);
}

.contact-box p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-item {
  margin-bottom: 18px;
  font-size: 20px;
}

.contact-item a {
  color: var(--green);
  text-decoration: none;
  font-weight: 800;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--dark);
}

.route-btn {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 20px auto 0;
  padding: 16px 24px;
  background: var(--green);
  color: var(--white) !important;
  text-decoration: none !important;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 166, 81, 0.25);
  transition: 0.3s;
}

.route-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.room-modal {
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 6000;
  padding: 20px;
  overflow-y: auto;
}

.room-modal.active {
  display: flex;
}

.room-modal-box {
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 22px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-strong);
}

.big-modal {
  max-width: 1100px;
  width: 92%;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.room-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: #2563eb;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.room-modal-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.room-gallery {
  position: relative;
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  height: 430px;
}

.room-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  font-size: 34px;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
}

.gallery-btn:hover {
  background: var(--green);
  color: var(--white);
}

.gallery-prev {
  left: 14px;
}

.gallery-next {
  right: 14px;
}

.room-details h2 {
  margin-top: 0;
  color: var(--dark);
}

.room-info p {
  font-size: 18px;
  margin: 10px 0;
}

.room-description {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

#gymPrice {
  color: var(--green);
  font-weight: 900;
  font-size: 26px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-block {
    padding: 24px;
  }

  .about-block h2 {
    font-size: 22px;
  }

  .about-block p {
    font-size: 16px;
  }
}

@media (max-width: 800px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .room-modal-layout {
    grid-template-columns: 1fr;
  }

  .room-gallery {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 72px;
    grid-template-columns: 60px 1fr 150px;
  }

  .logo-center {
    font-size: 38px;
  }

  .header-contact-btn {
    padding: 12px 16px;
    font-size: 15px;
  }

  .hero {
    padding: 34px 18px 44px;
  }

  .badge {
    align-self: center;
    font-size: 14px;
    padding: 9px 14px;
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero p {
    font-size: 18px;
    line-height: 1.55;
  }

  .hero-buttons {
    gap: 14px;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 17px 20px;
    font-size: 18px;
  }

  .hero-card {
    margin-top: 34px;
    padding: 26px;
    border-radius: 22px;
  }

  .hero-card h3 {
    font-size: 28px;
  }

  .hero-card li {
    font-size: 19px;
    line-height: 1.5;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .scheme-legend {
    flex-direction: column;
    gap: 12px;
  }

  .scheme-instruction {
    font-size: 16px;
  }

  .page {
    padding: 40px 18px;
  }

  .page-hero {
    padding: 42px 24px;
    min-height: auto;
    border-radius: 18px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .page-hero p {
    font-size: 18px;
    line-height: 1.6;
  }

  .room-modal {
    align-items: flex-start;
    padding: 14px;
  }

  .room-modal-box {
    margin-top: 20px;
    max-height: 94vh;
    padding: 18px;
    border-radius: 18px;
  }

  .room-gallery {
    height: 260px;
  }

  .room-close {
    top: -14px;
    right: -14px;
    width: 58px;
    height: 58px;
    font-size: 46px;
  }

  .service-card img,
  .gym-card img {
    height: 220px;
  }
}

@media (max-width: 520px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .header {
    grid-template-columns: 56px 1fr 138px;
  }

  .logo-center {
    font-size: 34px;
  }

  .header-contact-btn {
    font-size: 14px;
    padding: 10px 12px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 17px;
  }

  .contact-box {
    padding: 32px 22px;
  }
}



@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 24px;
  }

  .hero-stats div {
    padding: 12px 6px;
    border-radius: 14px;
  }

  .hero-stats strong {
    font-size: 16px;
    line-height: 1.1;
  }

  .hero-stats span {
    font-size: 10px;
    line-height: 1.2;
  }
}