@font-face {
  font-family: "hero";
  src: url("/attach/fonts/hero.woff2") format("woff2"),
       url("/attach/fonts/hero.woff") format("woff"),
       url("/attach/fonts/hero.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "hero";
  src: url("/attach/fonts/hero-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: rgb(235, 245, 247, 1);
  --text: #20253e;
  --text-soft: #4c4c4c;
  --blue: #4278b2;
  --blue-dark: #2f6ba6;
  --blue-soft: #3a79b4;
  --orange: #ff8900;
  --white: #ffffff;
  --shadow: 0px 0px 5px 5px rgba(0, 71, 158, 0.489);
  --radius-xl: 42px;
  --radius-lg: 34px;
  --radius-md: 28px;
  --container: 1500px;
  
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "hero", Arial, sans-serif;
  font-weight: 520;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.top-nav a,
.hero-subtitle,
.price-pill,
.details-btn,
.contacts-title,
.email,
.overlay-title,
.overlay-subtitle,
.overlay-booking h4,
.info-card h3,
.overlay-btn,
.section-title {
  font-family: "hero", Arial, sans-serif;
  font-weight: 700;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* HERO */
.hero {
  position: relative;
  min-height: 760px;
  background: url("/attach/img/fon2.png") left center / cover no-repeat;
  overflow: hidden;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.14);
}

.header-wrap {
  position: relative;
  z-index: 2;
  padding-top: 26px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  color: #fff
}

.top-nav a {
  color: #fff;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease;
}

.top-nav a:hover {
  opacity: 0.85;
}

.hero-center {
  min-height: calc(760px - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.hero-subtitle {
  font-size: 34px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.hero-bear {
  width: min(340px, 55vw);
}

.hero-logo {
  width: min(720px, 82vw);
}


/* COMMON */
.section {
  padding: 74px 0;
}

.section-titleb {
  margin: 20px 48px 7px 48px;
  text-align: center;
  text-transform: uppercase;
  font-family: "hero", Arial, sans-serif;
  font-size: 44px;
  letter-spacing: 0.02em;
  color: var(--text);
  font-weight: 1000;
}

.section-titlel {
  margin: 0px 20px 40px 20px;
  text-align: center;
  text-transform: uppercase;
  font-family: "hero", Arial, sans-serif;
  font-size: 25px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
  font-style: italic;
}
.section-title {
  margin: 0 0 48px;
  text-align: center;
  text-transform: uppercase;
  font-family: "hero", Arial, sans-serif;
  font-size: 44px;
  letter-spacing: 0.02em;
  color: var(--text);
  font-weight: 1000;
  }
/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.about-card {
  background: #f8f8f8;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 28px 24px 30px;
  min-width: 60px;

}

.about-card h3 {
  margin: 0 0 18px;
  text-align: center;
  color: var(--blue-dark);
  font-size: 28px;
}

.about-card p,
.about-card li {
  color: var(--blue-dark);
  font-size: 18px;
}

.about-card p {
  margin: 0 0 15px;
}

.about-card ul {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #fff;
  
}

.gallery-item img {
  height: 110%;
  width: 110%;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item.small img {
  height: 110%;
  width: 110%;
  object-fit: cover;
}

.gallery-item.wide img {
  height: 110%;
  width: 110%;
  object-fit: cover;
}
/* LOCATION */
.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 26px;
}

.map-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #fff;
}

.map-card iframe,
.map-card img {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
  object-fit: cover;
}

.info-card {
  background: #f8f8f8;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  text-align: left;
}

.info-card h3 {
  margin: 0 0 18px;
  font-size: 30px;
  color: var(--blue-dark);
  text-align: center;
}

.info-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.info-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--blue-dark);
}

.info-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue-dark);
}

/* STAY */
#stay .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stay-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 60px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}

.stay-card {
  position: relative;
  background: #f8f8f8;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 28px 28px 94px;
  min-height: 760px;
  overflow: hidden;
  flex: 0 1 500px;
  max-width: 500px;
  width: 100%;
  margin: 0;
}

.stay-img-wrap {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stay-img {
  max-width: 86%;
  max-height: 240px;
  object-fit: contain;
}

.stay-card h3 {
  margin: 8px 0 24px;
  text-align: center;
  text-transform: uppercase;
  font-size: 32px;
  color: var(--text);
}

.stay-text p {
  margin: 0 0 18px;
  color: #2f6ba6;
  font-size: 20px;
  line-height: 1.42;
}

.price-pill {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  min-width: 196px;
  padding: 18px 22px;
  background: var(--blue);
  color: #fff;
  font-size: 30px;
  text-transform: uppercase;
  text-align: center;
  border-radius: 28px 28px 0 0;
}

.stay-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 248, 248, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.stay-card:hover .stay-hover {
  opacity: 1;
  pointer-events: auto;
}

.details-btn {
  border: 0;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  min-width: 250px;
  min-height: 72px;
  font-size: 28px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 137, 0, 0.28);
  transition: transform 0.25s ease, background 0.25s ease;
}

.details-btn:hover {
  background: #f17f00;
  transform: scale(1.02);
}

/* CONTACTS */
.contacts {
  margin-top: 52px;
  padding: 66px 0 78px;
  background: var(--blue);
  border-radius: 74px 74px 0 0;
}

.contacts-title {
  margin: 0 0 36px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-size: 42px;
}

.phones-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.phones-row a {
  color: #fff;
  font-size: 40px;
  margin-top: 15px;
}

.phone-divider {
  width: 4px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  margin-left: 20px;
  margin-right: 20px;
  border-radius: 2px;
}

.email {
  display: block;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  text-decoration: underline;
  font-size: 34px;
  cursor: pointer;
  margin: 0;
  font-style: italic;
  font-weight: 400;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 26, 0.62);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 1000;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 1320px;
  max-height: 94vh;
  overflow: auto;
}

.overlay-card {
  background: #f8f8f8;
  border-radius: 38px;
  box-shadow: var(--shadow);
  padding: 28px 34px 36px;
}

.overlay-title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 34px;
  text-transform: uppercase;
}

.overlay-top-image {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.overlay-top-image img {
  width: 500px;
  
}

.table-wrap {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--blue-dark);
}

.price-table th,
.price-table td {
  border-bottom: 1px solid #bfd2e4;
  padding: 10px 8px;
  text-align: center;
  font-size: 22px;
}

.price-table th {
  font-family: "hero", Arial, sans-serif;
  font-weight: 400;
}

.overlay-subtitle {
  margin: 34px 0 20px;
  text-align: center;
  font-size: 28px;
  text-transform: uppercase;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plans-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.rules-list {
  margin: 0;
  padding-left: 22px;
  color: var(--blue-dark);
}

.rules-list li {
  margin-bottom: 8px;
  font-size: 20px;
}

.overlay-booking {
  margin-top: 34px;
  text-align: center;
}

.overlay-booking h4 {
  margin: 0 0 20px;
  font-size: 28px;
  text-transform: uppercase;
}

.overlay-phones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-bottom: 24px;
  font-family: "hero", Arial, sans-serif;
}

.overlay-phones a {
  color: var(--blue-dark);
  font-size: 28px;
  margin-left: 20px;
  margin-right: 20px;
}

.overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 62px;
  background: var(--blue-dark);
  color: #fff;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 24px;
  border: 0;
  cursor: pointer;
}

/* PLATFORM MODAL */
.platform-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: center;
  padding: 12px 0 20px;
  border-bottom: 2px solid #bfd2e4;
}

.platform-block:last-of-type {
  border-bottom: 0;
}

.platform-left h4 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  text-transform: uppercase;
  font-family: "hero", Arial, sans-serif;
  font-size: 24px;
}

.platform-left img {
  width: 100%;
  height: 100%;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .about-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .platform-block {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .stay-grid {
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .hero {
    min-height: 620px;
  }

  .header-wrap {
    padding-top: 18px;
  }

  .top-nav {
    gap: 14px 18px;
  }

  .top-nav a {
    font-size: 14px;
  }

  .hero-center {
    min-height: calc(620px - 70px);
    gap: 14px;
  }

  .hero-subtitle {
    font-size: 22px;
    max-width: 90%;
  }

  .hero-bear {
    width: min(220px, 58vw);
  }

  .hero-logo {
    width: min(360px, 90vw);
  }

  .section {
    padding: 54px 0;
  }

  .section-title {
    font-size: 30px;
    margin-bottom: 28px;
  }

  .gallery-item.small img,
  .gallery-item.wide img,
  .map-card img,
  .map-card iframe {
    height: 260px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

 

  .about-card,
  .stay-card,
  .info-card {
    min-height: auto;
  }

  .contacts {
    border-radius: 34px 34px 0 0;
  }

  .contacts-title {
    font-size: 28px;
  }

  .phones-row a,
  .overlay-phones a {
    font-size: 20px;
  }

  .phone-divider {
    display: none;
  }

  .email {
    font-size: 22px;
  }

  .details-btn {
    min-width: 200px;
    min-height: 62px;
    font-size: 22px;
  }

  .price-pill {
    font-size: 18px;
  }

  .overlay-card {
    padding: 20px;
  }

  .info-card h3,
  .about-card h3 {
    font-size: 24px;
  }

  .info-card li,
  .about-card p,
  .about-card li,
  .stay-text p,
  .rules-list li {
    font-size: 16px;
  }

  .overlay-title {
    font-size: 28px;
  }

  .overlay-subtitle {
    font-size: 22px;
  }

  .overlay-btn {
    min-width: 200px;
    min-height: 56px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 560px;
  }

  .hero-center {
    min-height: calc(560px - 64px);
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-bear {
    width: min(170px, 52vw);
  }

  .hero-logo {
    width: min(280px, 88vw);
  }

  .stay-card {
    padding: 20px 20px 82px;
  }

  .stay-card h3 {
    font-size: 24px;
  }

  .stay-text p {
    font-size: 16px;
  }

  .price-pill {
    min-width: 150px;
    padding: 14px 16px;
  }
}
