/* ============================================
   Calypso Hotel — CSS-переменные
   ============================================ */

:root {
  /* Цвета */
  --color-primary: #0e065c;
  --color-primary-hover: #4539aa;
  --color-text: #333;
  --color-text-light: #666;
  --color-white: #fff;
  --color-bg-light: #f1f1f1;
  --color-border: #a19f9f;
  --color-border-light: #f0f0f0;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --color-hero-overlay: rgba(0, 0, 0, 0.6);
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-shadow-hover: rgba(0, 0, 0, 0.15);
  --color-success: #28a745;

  /* Типографика */
  --font-primary: "Arial", sans-serif;
  --font-heading: "Cormorant Garamond", serif;
  --font-size-base: 16px;
  --font-size-sm: 0.9rem;
  --font-size-xs: 0.6rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.2rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2rem;
  --font-size-hero-h1: 3rem;
  --font-size-hero-h2: 2.2rem;

  /* Отступы */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 50px;
  --spacing-xl: 60px;
  --spacing-2xl: 70px;
  --spacing-3xl: 100px;
  --spacing-4xl: 150px;
  --spacing-5xl: 200px;
  --spacing-6xl: 250px;

  /* Раскладка */
  --header-height: auto;
  --header-height-scrolled: 4.0625rem;
  --container-max-width: 968px;
  --border-radius-btn: 50px;
  --border-radius-float: 10%;

  /* Переходы */
  --transition-fast: 0.1s ease;
  --transition-normal: 0.3s ease;
  --transition-menu: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Слои */
  --z-header: 1002;
  --z-menu: 1001;
  --z-overlay: 1000;
  --z-float: 1000;

  /* Точки перелома */
  --breakpoint-mobile: 968px;
  --breakpoint-xs: 468px;
}

/* === 1. Сброс и базовые стили === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* html */
/* - Включает плавную прокрутку по якорям */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* body */
/* - Задаёт основной шрифт, цвет текста и фон */
/* - Устанавливает базовую межстрочность */
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-text);
}

/* body.menu-open */
/* - Блокирует прокрутку при открытом мобильном меню */
/* - Фиксирует высоту экрана */
body.menu-open {
  overflow: hidden;
  /* height: 100vh; */
}

/* a */
/* - Задаёт цвет ссылок и убирает подчёркивание */
/* - Добавляет плавную смену цвета при наведении */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.error-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 100vh;
  padding: 0 15px;
  text-align: center;
}

.btn-home {
  margin-top: 50px;
  padding: 20px;
  border: 1px solid;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  font-size: var(--font-size-3xl);
}

.btn-home:hover {
  background: #4539aa;
}

@media (max-width: 495px) {
  .error-content {
    font-size: 0.7rem;
  }
  .btn-home {
    margin-top: 50px;
    padding: 20px;
    border: 1px solid;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
  }
}

.header {
  position: fixed;
  width: 100%;
  background-color: var(--color-white);
  z-index: var(--z-header);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-align: center;
  padding: 10px 0 0 50px;
}

.name-logo {
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
  width: 170px;
}

.nav-toggle {
  display: none;
}

.nav-icon {
  display: none;
}

.social-icons {
  display: flex;
  gap: 3.125rem;
  padding-top: 6.25rem;
  justify-content: center;
  align-items: center;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.75rem;
  height: 3.75rem;
}

.social-icon:hover {
  transform: scale(1.05);
}

.nav-logo {
  display: none;
}

@media (max-width: 968px) {
  .nav-links {
    display: none;
  }

  .nav-icon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 0.625rem;
    z-index: 1003;
  }

  .nav-icon span {
    width: 2.1875rem;
    height: 0.3125rem;
    background-color: var(--color-primary);
    transition: all var(--transition-normal);
  }

  #nav-toggle:checked + .nav-icon span:nth-child(1) {
    transform: rotate(-45deg) translate(0px, 16px);
  }

  #nav-toggle:checked + .nav-icon span:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle:checked + .nav-icon span:nth-child(3) {
    transform: rotate(45deg) translate(0px, -16px);
  }
}

.floating-call-button,
.floating-tg-button,
.floating-max-button,
.floating-navi-button,
.button-menu,
.navi,
.overlay,
.logo-m {
  display: none;
}

/* Мобильное выезжающее меню */
@media (max-width: 968px) {
  .nav-links {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    /* height: 100vh; */
    background-color: var(--color-white);
    flex-direction: column;
    transition: left var(--transition-menu);
    z-index: var(--z-menu);
    overflow-y: auto;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    padding: 200px 0 200px;
  }

  #nav-toggle:checked ~ .nav-links {
    left: 0;
  }

  .nav-logo {
    display: block;
    margin: 0 auto;
    /* margin-top: 50px; */
  }

  .nav-links a {
    text-align: center;
    color: var(--color-primary);
    font-size: var(--font-size-xl);
    font-weight: bold;
    text-transform: uppercase;
    /* border-bottom: 1px solid var(--color-border-light); */
    transition: all var(--transition-normal);
    width: 310px;
  }

  #non {
    display: none;
  }

  .button-menu {
    display: flex;
  }

  .button-menu {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    border: none;
    padding: 14px 28px;
    font-size: var(--font-size-xl);
    font-weight: bold;
    cursor: pointer;
    /* transition: all var(--transition-normal); */
    box-shadow: 0 4px 10px var(--color-shadow);
    /* height: 70px; */
    width: 310px;
    border-radius: var(--border-radius-btn);
    /* margin-top: 50px; */
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* Десктоп: горизонтальное меню */
@media (min-width: 969px) {
  .name-m {
    display: none;
  }

  .nav-links {
    width: 100%;
    max-width: var(--container-max-width);
    display: flex;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
    gap: 50px;
  }

  .nav-links a {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    font-weight: bold;
    padding: 0;
    border: none;
    text-transform: uppercase;
    transition: color var(--transition-normal);
  }

  .nav-links a:hover {
    color: var(--color-primary-hover);
  }

  .nav-icon,
  .overlay {
    display: none;
  }
}

.hero-section {
  position: relative;
  text-align: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3.125rem;
  padding: 142px 20px 0;
}

.hero-section::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--color-hero-overlay);
  z-index: -1;
}

.bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -2;
  object-fit: cover;
}

.contact-section {
  width: 100%;
  text-align: center;
  /* height: 100vh; */
  display: flex;
  justify-content: center;
  padding: 4.0625rem;
}

@media (min-width: 1680px) {
  .contact-section {
    height: 100vh;
    margin-top: 50px;
    margin-bottom: 50px;
  }
}

.hero-section h1 {
  font-size: var(--font-size-hero-h1);
  color: var(--color-white);
}

.hero-section h2 {
  font-size: var(--font-size-hero-h2);
  color: var(--color-white);
}

.contact-info {
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.875rem;
}

.contact-info h2 {
  font-size: var(--font-size-hero-h2);
  color: var(--color-primary);
}
.services-section h2 {
  font-size: var(--font-size-hero-h2);
  color: var(--color-primary);
  padding-bottom: 50px;
}

.contact-info p {
  font-size: var(--font-size-3xl);
  color: var(--color-primary);
}

@media (max-width: 968px) {
  .logo-m {
    display: flex;
    text-align: center;
    padding-top: 10px;
  }

  .overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    opacity: 0;
    visibility: hidden;
    z-index: var(--z-overlay);
    transition:
      opacity var(--transition-normal),
      visibility var(--transition-normal);
  }

  #nav-toggle:checked ~ .overlay {
    opacity: 1;
    visibility: visible;
  }

  #contacts {
    display: none;
  }

  .button-content {
    display: none;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section h2 {
    font-size: 1.3rem;
  }

  .floating-button {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-float);
    width: 53px;
    height: 53px;
    background-color: var(--color-white);
    border-radius: var(--border-radius-float);
    box-shadow: 0 4px 12px var(--color-shadow);
  }

  .floating-call-button a {
    background-color: var(--color-success);
    border-radius: 50%;
    width: 46px;
    height: 46px;
  }

  .floating-button a {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* - Плавно увеличивает кнопку */
  .floating-button a:hover {
    transform: scale(1.05);
  }
}

@media (max-width: 468px) {
  .contact-info p {
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
  }
}

.contact-info a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-info a:hover {
  text-decoration: none;
}

/* === 9. Кнопки === */
button span {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1rem;
}

.button {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-weight: bold;
  font-size: var(--font-size-xl);
  cursor: pointer;
  /* transition: all var(--transition-normal); */
  /* box-shadow: 0 4px 10px var(--color-shadow); */
  /* height: 100%; */
  padding: 0 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  /* font-size: 1.5rem; */
  text-transform: uppercase;
}

.button-content {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  /* transition: all var(--transition-normal); */
  box-shadow: 0 4px 10px var(--color-shadow);
  /* height: 4.375rem; */
  padding: 20px 50px;
  border-radius: var(--border-radius-btn);
  text-transform: uppercase;
  margin-top: 50px;
}

.button:hover {
  background-color: var(--color-primary-hover);
  /* box-shadow: 0 6px 15px var(--color-shadow-hover); */
}

.button-content:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 6px 15px var(--color-shadow-hover);
}

@media (min-width: 969px) {
  #logo-m {
    display: none;
  }
}

.logo-mobile {
  display: none;
}

@media (max-width: 1080px) {
  html {
    font-size: 12px;
  }
}

@media (max-width: 968px) {
  .logo {
    display: none;
  }

  .navi {
    display: block;
  }

  .contact-info {
    padding: 50px 20px;
    width: 100%;
    align-items: center;
  }
}

/* === 12. Подвал === */
.footer {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  background-color: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.footer a {
  color: var(--color-primary-hover);
  font-style: italic;
  transition: text-decoration var(--transition-normal);
}

.footer a:hover {
  text-decoration: underline;
}

/* Ссылки в футере */
.support-link,
.hosting-link {
  display: block;
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  font-style: italic;
  text-decoration: none;
  width: 350px;
}

.support-link:hover,
.hosting-link:hover {
  text-decoration: underline;
}

/* === 13. Адаптивность (малые экраны) === */
@media (max-width: 468px) {
  .contact-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .name-m {
    display: none;
  }

  .logo-m {
    display: none;
  }

  .logo-mobile {
    position: absolute;
    z-index: -2;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    /* height: 300px; */
  }

  .navbar {
    padding: 15px 20px;
  }

  .logo-mobile img {
    height: 150px;
  }

  .hero-section {
    padding-top: 0;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section h2 {
    font-size: 1.2rem;
  }

  .button {
    font-size: 1rem;
  }

  .footer {
    padding: 15px;
    font-size: 0.85rem;
  }

  .footer a {
    font-size: 0.9rem;
  }
}

.squares {
  display: none;
}

@media (max-width: 968px) {
  .floating-social-buttons {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    transform: scale(1);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .floating-social-button {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    flex-direction: column;
    gap: 20px;
  }

  .close-squares {
    transform: scale(0);
    transition:
      opacity 0.1s ease,
      transform 0.1s ease;
  }

  .squares {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    cursor: pointer;
  }

  .square {
    width: 15px;
    height: 15px;
    border: 1px solid var(--color-primary);
    border-radius: 3px;
  }

  .footer {
    font-size: 0.8rem;
  }
}

.services-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  /* height: 100vh; */
  padding-top: 4.0625rem;
}
.about-content h2 {
  font-size: 1.2rem;
}

@media (min-width: 1680px) {
  .services-section {
    height: 100vh;
    margin-top: 50px;
    margin-bottom: 50px;
  }
  .about-content h2 {
    font-size: 1.5rem;
  }
}

.icon-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.75rem;
}

.icon-service-img {
  width: 5rem;
  height: 5rem;
  display: block;
}

.icon-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  width: 18rem;
}

.icon-service span {
  display: block;
  font-family: "Cormorant Garamond", sans-serif;
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--color-primary);
  text-align: center;
}

@media (max-width: 597px) {
  .icon-service {
    width: 15rem;
  }

  .icon-service span {
    font-size: 1rem;
  }
}

@media (max-width: 475px) {
  .icon-service {
    width: 8rem;
  }

  .icon-service span {
    font-size: 0.6rem;
  }
}

.about-section {
  display: flex;
  text-align: center;
  color: var(--color-primary);
  /* height: 100vh; */
  padding-top: 4rem;
}

@media (min-width: 1680px) {
  .about-section {
    height: 100vh;
    margin-top: 50px;
    margin-bottom: 50px;
  }
}

.about-content {
  width: 40%;
}

.about-content h2 {
  padding: 3.125rem;
}

/* .swiper {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary);
} */

@media (max-width: 968px) {
  .about-section {
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .about-content {
    width: 100%;
  }

  /* .swiper {
    width: 100%;
  } */
}

/* @media (max-width: 468px) { */

/* .swiper {
    width: 100%;
  } */
.scroll-arrows {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.scroll-arrows span {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--color-white);
  border-right: 2px solid var(--color-white);
  transform: rotate(45deg);
  margin: -10px;
  animation: arrows-wave 2s infinite;
  opacity: 0;
}

/* Задержка для создания эффекта волны */
.scroll-arrows span:nth-child(2) {
  animation-delay: 0.2s;
}
.scroll-arrows span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes arrows-wave {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-20px, -20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(20px, 20px);
  }
}

/* ============================================
   css слайдера
   ============================================ */

.slider {
  position: relative;
  width: 70%;
  overflow: hidden;
}

.slider-wrapper {
  display: flex;
  height: 100%;
}

.slide-hiden {
  display: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide img {
  animation: fadeIn 0.5s ease-in-out;
}

/* управление слайдером стрелки */

.slider-button-prev {
  left: 0;
  border-right: 1px solid #0e065c;
}

.slider-button-next {
  right: 0;
  border-left: 1px solid #0e065c;
}

.slide {
  width: 100%;
}

.slider-button-prev,
.slider-button-next {
  position: absolute;
  height: 100%;
  top: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2.1875rem;
}

.slider-button-prev span,
.slider-button-next span {
  display: block;
  background-color: #0e065c;
  width: 3.7rem;
  height: 0.3125rem;
}

.slider-button-prev span:nth-child(1) {
  transform: rotate(-45deg);
}
.slider-button-prev span:nth-child(2) {
  transform: rotate(45deg);
}
.slider-button-next span:nth-child(1) {
  transform: rotate(-135deg);
}
.slider-button-next span:nth-child(2) {
  transform: rotate(135deg);
}

@media (max-width: 968px) {
  .slider {
    width: 100%;
  }

  .slider {
    height: 40rem;
  }
}

/* ============================================
   Политика конфиденциальности
   ============================================ */

.section-policy {
  display: flex;
  justify-content: center;
  /* padding-top: 90rem; */
  padding: 0 2.5rem;
  margin: 2.5rem 0 0 0;
  
  /* margin-top: 2.5rem; */
  
}

@media (min-width: 968px) {
  .section-policy {
    /* padding-top: 100px; */
    height: 100vh;
  }
}

.privacy-policy {
  max-width: 800px;
  /* margin: 120px auto 60px; */
  padding: 3.25rem 1.25rem 0 1.25rem;
  background: var(--color-white);
  /* border-radius: .625rem; */
  box-shadow: 0 4px 12px var(--color-shadow);
}

.privacy-policy h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-hero-h2);
  color: var(--color-primary);
  /* margin-bottom: var(--spacing-lg); */
  text-align: center;
}

.privacy-policy h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  /* margin-top: var(--spacing-lg); */
  /* margin-bottom: var(--spacing-sm); */
}

.privacy-policy p {
  /* margin-bottom: var(--spacing-md); */
  line-height: 1.8;
  color: var(--color-text);
}

.privacy-policy ul {
  /* margin: var(--spacing-md) 0; */
  padding-left: 30px;
}

.privacy-policy ul li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.privacy-policy a {
  color: var(--color-primary);
  text-decoration: underline;
}

.privacy-policy a:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}

@media (max-width: 968px) {
  .privacy-policy {
    /* margin: 100px 20px 40px; */
    /* padding: 20px; */
    margin-bottom: 2.5rem;
  }

  .privacy-policy h1 {
    font-size: 1.8rem;
  }

  .privacy-policy h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 468px) {
   .privacy-policy h1 {
    font-size: 1.4rem;
  }

  .privacy-policy h2 {
    font-size: 1.1rem;
  }

  .privacy-policy p {
    font-size: 0.9rem;
  }
}
