/* Base styles */
:root {
  --primary-color: #ffd7ef;
  --text-color: #000;
  --bg-color: #fff;
  --footer-bg: #000;
  --footer-text: #fff;
  --shadow: 0 2px 5px rgba(0,0,0,0.1);
  --border-radius: 25px;
  --spacing: 20px;
  --container-width: 1200px;
  --heading-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  text-align: center;
  font-family: var(--body-font);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Header styles */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: var(--spacing);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  font-family: var(--heading-font);
  box-shadow: var(--shadow);
}

.new-logo img {
  vertical-align: middle;
  margin-right: 10px;
}

/* Hero section styles */
.new-big-image,
.new-big-image_2 {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.new-big-image::before,
.new-big-image_2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.new-big-image {
  background-image: url("images/14.jpg");
}

.new-big-image_2 {
  background-image: url("images/13.jpg");
}

.new-big-image-text {
  position: relative;
  z-index: 2;
  color: var(--bg-color);
  padding: var(--spacing);
  max-width: 90%;
}

.new-big-image-text h1 {
  font-size: clamp(36px, 8vw, 72px);
  margin-bottom: calc(var(--spacing) * 1.5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.new-big-image-text h2 {
  font-size: clamp(24px, 5vw, 42px);
  margin-bottom: calc(var(--spacing) * 1.5);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.new-big-image-text .new-button {
  font-size: clamp(22px, 4vw, 32px);
  padding: 20px 40px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Animation */
.tg {
  animation: pulse 2s ease 2s infinite normal forwards;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Button styles */
.new-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: var(--border-radius);
  margin-top: var(--spacing);
  font-weight: bolder;
  font-size: clamp(18px, 4vw, 30px);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  animation: pulse 2s ease infinite;
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.new-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Section styles */
.new-section,
.new-section_2 {
  padding: var(--spacing);
  margin: var(--spacing) auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing);
  max-width: var(--container-width);
}

.new-section {
  position: relative;
}

.new-section .new-button {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 400px;
  width: auto;
}

.new-section_2 {
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  margin: var(--spacing) auto;
  width: calc(100% - 40px);
  max-width: var(--container-width);
  grid-template-columns: repeat(2, 1fr);
}

.new-section > div,
.new-section_2 > div {
  padding: var(--spacing);
}

.new-section img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
}

.new-section img:hover {
  transform: scale(1.05);
}

/* Typography */
h2 {
  font-size: clamp(24px, 5vw, 40px);
  margin: var(--spacing) 0;
}

h3 {
  font-size: clamp(18px, 4vw, 24px);
  margin: var(--spacing) 0;
}

p {
  font-size: clamp(16px, 3vw, 20px);
  margin: calc(var(--spacing) / 2) 0;
}

/* Testimonial styles */
.new-otziv {
  background-color: var(--primary-color);
  color: var(--text-color);
  border-radius: var(--border-radius);
  padding: var(--spacing);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.new-otziv:hover {
  transform: translateY(-5px);
}

.new-otziv > img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: var(--spacing);
  border: 3px solid var(--bg-color);
}

.new-otziv > p {
  text-align: left;
}

.new-name {
  font-weight: bolder;
  font-style: normal;
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* FAQ block styles */
.new-block {
  max-width: var(--container-width);
  margin: var(--spacing) auto;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: calc(100% - 40px);
  transition: all 0.3s ease;
}

.new-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.new-title {
  width: 100%;
  font-size: 20px;
  font-weight: bolder;
  color: var(--text-color);
  padding: var(--spacing);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.new-title:hover {
  background-color: var(--primary-color);
}

.new-title::after {
  content: '👉';
  font-size: 20px;
  transition: transform 0.3s ease;
}

.new-title.active::after {
  transform: rotate(90deg);
}

.new-description {
  width: 100%;
  max-height: 0;
  padding: 0 var(--spacing);
  background-color: var(--bg-color);
  text-align: left;
  overflow: hidden;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(-10px);
  font-family: var(--body-font);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.new-description.active {
  max-height: 1000px;
  padding: var(--spacing);
  opacity: 1;
  transform: translateY(0);
}

.new-span_bold {
  font-weight: bolder;
}

hr {
  background-color: #333;
  width: 50%;
  margin: 10px 0;
}

/* Link styles */
.new-link1 {
  text-decoration: none;
  color: var(--primary-color);
  transition: opacity 0.3s ease;
}

.new-link1:hover {
  opacity: 0.8;
}

/* Footer styles */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 20px 0;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 10px;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8;
}

/* Responsive styles */
@media only screen and (max-width: 1024px) {
  .new-section,
  .new-section_2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 768px) {
  :root {
    --spacing: 15px;
    --border-radius: 20px;
  }

  body {
    line-height: 1.5;
  }

  /* Header mobile styles */
  header {
    padding: 12px var(--spacing);
    font-size: 20px;
  }

  /* Hero section mobile styles */
  .new-big-image,
  .new-big-image_2 {
    height: 90vh;
    min-height: 500px;
  }

  .new-big-image-text {
    max-width: 100%;
    padding: var(--spacing);
  }

  .new-big-image-text h1 {
    font-size: clamp(28px, 7vw, 42px);
    margin-bottom: 15px;
    line-height: 1.2;
  }

  .new-big-image-text h2 {
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 20px;
    line-height: 1.3;
  }

  .new-big-image-text .new-button {
    font-size: 18px;
    padding: 12px 24px;
    width: 90%;
    max-width: 280px;
    margin: 10px auto;
  }

  /* Section mobile styles */
  .new-section,
  .new-section_2 {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: var(--spacing);
    width: 100%;
  }

  .new-section > div,
  .new-section_2 > div {
    padding: 12px;
  }

  .new-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  /* Typography mobile styles */
  h2 {
    font-size: clamp(24px, 6vw, 32px);
    margin: 25px 0 15px;
    line-height: 1.3;
  }

  h3 {
    font-size: clamp(20px, 5vw, 26px);
    margin: 20px 0 12px;
    line-height: 1.3;
  }

  p {
    font-size: 16px;
    line-height: 1.5;
    margin: 12px 0;
  }

  /* Testimonials mobile styles */
  .new-otziv {
    padding: 15px;
    margin-bottom: 15px;
  }

  .new-otziv > img {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }

  .new-otziv > p {
    font-size: 16px;
    line-height: 1.5;
  }

  .new-name {
    font-size: 18px;
    margin-top: 12px;
  }

  /* FAQ mobile styles */
  .new-block {
    margin: 12px auto;
  }

  .new-title {
    font-size: 18px;
    padding: 15px;
    line-height: 1.4;
  }

  .new-description {
    font-size: 16px;
    padding: 0 15px;
    line-height: 1.5;
  }

  .new-description.active {
    padding: 15px;
  }

  /* Button mobile styles */
  .new-button {
    font-size: 18px;
    padding: 12px 24px;
    width: 90%;
    max-width: 280px;
    margin: 15px auto;
  }

  /* Footer mobile styles */
  footer {
    padding: 15px 0;
  }

  footer a {
    display: block;
    margin: 10px auto;
    font-size: 16px;
  }
}

/* Container styles */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Main content spacing */
main {
  margin: 0 auto;
  overflow: hidden;
}

/* Center alignment for headings */
h1, h2, h3 {
  text-align: center;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing);
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 20px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  animation: slide-up 0.5s ease-out forwards;
}

.cookie-popup.show {
  display: block;
}

@keyframes slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-popup-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cookie-popup h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #fff;
}

.cookie-popup p {
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 0.95rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cookie-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cookie-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.cookie-link:hover {
  opacity: 0.8;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cookie-button {
  padding: 12px 25px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.cookie-button.accept {
  background-color: var(--primary-color);
  color: var(--text-color);
}

.cookie-button.decline {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.cookie-button:hover {
  transform: scale(1.05);
}

@media only screen and (max-width: 768px) {
  .cookie-popup {
    padding: 15px;
  }
  
  .cookie-popup h3 {
    font-size: 1.1rem;
  }
  
  .cookie-popup p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  
  .cookie-links {
    margin-bottom: 15px;
    gap: 15px;
  }
  
  .cookie-link {
    font-size: 0.8rem;
  }
  
  .cookie-button {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
} 



/* Стили для фиксированной круглой кнопки Telegram */
.telegram-float {
  position: fixed;
  width: 65px; /* Совпадает с размером изображения */
  height: 65px; /* Совпадает с размером изображения */
  bottom: 40px;
  right: 40px;
  background-color: white; /* Белый фон */
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999; /* Добавляем легкую тень */
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none; /* Убираем границу */
  cursor: pointer; /* Добавляем курсор указатель */
  padding: 0; /* Убираем padding */
  overflow: hidden; /* Обрезаем все, что выходит за пределы */
}

.telegram-float img {
  width: 65px; /* Размер изображения */
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

@media screen and (max-width: 768px) {
  .telegram-float {
    width: 50px; /* Совпадает с размером изображения для мобильных */
    height: 50px; /* Совпадает с размером изображения для мобильных */
    bottom: 20px;
    right: 20px;
  }
  
  .telegram-float img {
    width: 50px;
  }
}
