@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Russo+One&display=swap');

/* Убираем скроллбар в Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Firefox */
html {
  scrollbar-width: none;
  scroll-behavior: smooth;
}


/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /* 2. Remove default margin */
  *:not(dialog) {
    margin: 0;
  }
  
  
  body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
  }
  
  /* 6. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  /* 7. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  
  /* 8. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  
  /* 9. Improve line wrapping */
  p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    color:#AFD3FF;
    text-wrap: balance;
  }
  
  /*
    10. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }
  
  /* ===== BASE ===== */
@font-face {
    font-family: "GSB";
    src: url("/static/fonts/GsBold.woff2") format("woff2");
    font-weight: 700; /* жирный вес */
    font-style: normal;
}

section {
  margin-bottom: 40px;
    scroll-margin-top: 130px; 
}

section h2 {
  margin-bottom: 20px;
  padding: 20px 0px;
  text-transform: uppercase;
}

body {
    background: #0C0C0C;
    color: #BCBCBC;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
}


h2 {
    font-weight: 700;
    font-family: "Russo One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(
      2.4rem,
      calc(2.4rem + (3 - 2.4) * ((100vw - 963px) / (1232 - 963))),
      3rem
  );
}

h3 {
  font-family: "Russo One", sans-serif;
}

html {
    scroll-behavior: smooth;
}

  
  /* ===== LAYOUT ===== */
  .container {
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 20px;
    padding-top: 40px;
  }
  
  /* ===== HEADER / FOOTER ===== */
  .header {
    padding: 70px 0;
  }
  
  .footer {
    background: #181818;
    margin-top: 60px;
  }
  
 /* ===== ОСНОВНЫЕ СТИЛИ ===== */
.rew {
    cursor: pointer;
    display: flex;
    align-items: center;
}


.header-rew {
    display: none;
}


.navbar {
    position: fixed;
    top: 0;
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 20px;
    padding-top: 40px;
    padding-bottom: 5px !important;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 20px 20px;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

h1 {
  font-family: "GSB", sans-serif;
}

.nav-menu h1 {
  text-align: left;
  width: 100%;
  font-family: "GSB", sans-serif;
  font-size: clamp(
    4rem,
    calc(4rem + (5 - 4) * ((100vw - 963px) / (1232 - 963))),
    5rem
);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    justify-content: space-between;
    font-size: 14px;
    align-items: start;
}

.contacts-social {
  padding-top: 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  font-size: 12px;
}

.contacts-note {
  padding-top: 10px;
  text-align: center;
  font-size: 14px;
}

.social {

    padding-left: 30px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

a, i {
    text-decoration: none;
    color: #BCBCBC;
    font-weight: 500;
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                text-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rew:hover i,
.rew:hover a {
    color:#AFD3FF;
}

a:hover, i:hover {
    color:#AFD3FF;
    text-shadow: 0 4px 12px rgba(0, 123, 255, 0.3); 
}

i:hover {
    transform: translateY(-2px) scale(1.1) rotate(5deg);
}


.hamburger {
    display: none !important;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}


.hero img {
  filter: grayscale(80%);
}


/*SCOPE*/

.accordion {
  margin-top: 40px;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #AFD3FF;
}

.accordion-item:first-child {
  border-top: 1px solid #AFD3FF;
}

.accordion-header {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.accordion-header .text {
  text-align: left;
  width: 300px;
  margin-left: 300px;
}


.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content p {
  text-align: justify;
  margin: 30px 10px;
}

.accordion-item.active .accordion-content {
  max-height: 200px; /* можно увеличить, если контента больше */
  padding: 10px 20px;
}

/* Кружок вместо стрелки */
.circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #BCBCBC;;
  transition: background 0.3s;
}

.accordion-item.active .circle {
  animation: pulse .7s infinite;
  background: #AFD3FF;
}

.accordion-item.active .numbers, .accordion-item.active .text {
  color: #AFD3FF;
}

/*gallery*/

.reviews-gallery {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative !important;
}

.reviews-block {
  position: sticky;
  flex: 0 0 300px; 
  top: 160px;
}

.gallery {
  flex: 1; 
  column-count: 3;
  column-gap: 15px;
}

.gallery a {
  break-inside: avoid;
  display: block;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Пульсация */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}


/* SCOPE END*/

/* about */
.massive-title {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 15%;
}

.massive-title .line {
  line-height: 1.5;
  margin-bottom: 10px;
  white-space: nowrap;
  margin-bottom: 15px;
}

/* Рандомные отступы для создания фигуры */
.massive-title .line:nth-child(1) { margin-left: 0; }
.massive-title .line:nth-child(2) { margin-left: 25%; }
.massive-title .line:nth-child(3) { margin-left: 5%; }
.massive-title .line:nth-child(4) { margin-left: 24%; }
.massive-title .line:nth-child(5) { margin-left: 2%; }
.massive-title .line:nth-child(6) { margin-left: 27%; }
.massive-title .line:nth-child(7) { margin-left: 5%; }
.massive-title .line:nth-child(8) { margin-left: 29%; }

.massive-title span {
  text-transform: uppercase;
  color: #AFD3FF;
  font-size: 23px;
  font-weight: bold;
}

.about-footer {
  text-align: center;

}

/*Принципы*/


.principles-grid  .grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 10px;
}

.principle-card {
  padding: 60px 40px;
  border: 1px solid #AFD3FF; 
  display: flex;
  flex-direction: column;
  min-height: 250px;
  transition: background 0.3s ease;
}


.principle-card .num {
  transition: color 0.3s ease;
  font-size: 1rem;
  color: #bcbcbc;
  margin-bottom: 40px;
  font-weight: 700;
}

.principle-card h3 {
  transition: color 0.3s ease;
  font-size: 23px;
  color: #bcbcbc; 
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.principle-card:hover {
  background: #0a0a0a; 

  & .num, h3 {
    color: #AFD3FF;
  }
}


.principle-card p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #ccc;
}


/*contacts*/

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 10px;
  justify-items: center;  /* по горизонтали */
  align-items: center;
}

.contact-block {
  padding-bottom: 14px;
}

.contact-block h3, .contacts-maps h3, .contacts-maps a {
  padding-bottom: 10px;
}

.contacts-maps {
  display: flex;
  flex-direction: column;
}

.contacts-links {
  display: flex;
  flex-direction: column;
  font-size: 18px;
}

.copy {
  text-transform: lowercase;
  padding-top: 14px;
  font-size: 9px;
  width: 100%;
  text-align: center;
  color: #747474d1;
   a {
    color: #747474d1;
    transition: color 0.3s ease;
   }

   a:hover {
    color: #AFD3FF;
   }
}


/*MODAL*/

.btncont {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.callback-btn {
  background: transparent;
  color: #BCBCBC;
  font-weight: bold;
  border: 1px solid #AFD3FF;
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
}

/* Модальное окно */
.callback-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.callback-modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* Контент модалки */
.callback-modal-content {
  background: #161616;
  text-transform: lowercase;
  text-align: center;
  padding: 25px 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.callback-modal.show .callback-modal-content {
  transform: scale(1);
}

/* Кнопка закрытия */
.callback-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
}
.callback-close:hover {
  color: #AFD3FF;
}

/* Поля формы */
.callback-form input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  margin-bottom: 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #1e1e1e;
  color: #fff;
  font-size: 14px;
}

/* Поля формы placeholder */
.callback-form input::placeholder {
  color: #888;
}

.checkbox-politika label {
  display: flex;
  align-items: center;
  gap: 8px; /* расстояние между чекбоксом и текстом */
  cursor: pointer;
}

.callback-form .pol {
  width: 16px !important;
  height: 16px !important;
  accent-color: #2563eb; 
}


/* Кнопка отправки */
.callback-btn[type="submit"] {
    background: transparent;
    color: #BCBCBC;
    font-weight: bold;
    border: 1px solid #AFD3FF;
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
  transition: background 0.3s;
}


.form-note {
  font-size: 0.9em;
  color: #aaa;
  margin-top: 8px;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85em;
  margin-top: -8px;
  margin-bottom: 8px;
  display: none;
}

input.invalid {
  border-color: #e74c3c;
}


.politika p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 10px;
}

.politika .politika-ul {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 10px;
}


.politika .politika-ul li {
  margin-bottom: 10px;
}



@media (max-width: 962px) {
    .header-rew {
        display: flex;
    }
    
    
    .header, .navbar {
        padding: 0px;
    }

    .nav-menu {
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        padding: 70px 20px 0px 20px;
        bottom: 0px;
        z-index: 999;
        background: #181818;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nav-menu ul li a {
        font-size: 1.4rem;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .hamburger {
        display: block !important;
        position: fixed;
        top: 22px !important;
        right: 30px;
        padding: 0px !important;
        border-radius: 50%;
        z-index: 1000;
    }

    .hamburger-box {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 30px !important;
        height: 0px !important;
        transform: translate(-50%, -50%);
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        background-color: #BCBCBC !important;
        height: 3px !important;
        width: 30px !important;
    }

    .hamburger.is-active .hamburger-inner,
    .hamburger.is-active .hamburger-inner::before,
    .hamburger.is-active .hamburger-inner::after {
        background-color: #BCBCBC !important;
        height: 3px !important; 
        width: 30px !important;

    }

    body.menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }

    .gallery {
      column-count: 2;
  }
}


@media (max-width: 768px) {
  .principles-grid .grid-container, .contacts-grid {
    grid-template-columns: 1fr;
  }

  .reviews-gallery {
    flex-direction: column;
}

.reviews-block {
    flex: none;
    width: 100%;
    margin-bottom: 20px;
}

.gallery {
    column-count: 1;
}


.reviews-gallery {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative1;
}

.reviews-block {
  position: unset;
  flex: 0 0 300px; 
  top: 160px;
}


}


@media (max-width: 670px) {
  .accordion-header .text {
    margin-left: 30px;
  } 

  .massive-title {
    align-items: center;
    padding-left: 0px;
  }

  .massive-title span {
    font-size: 17px;
  }

  .massive-title .line:nth-child(1) { margin-left: 0; }
  .massive-title .line:nth-child(2) { margin-left: 0; }
  .massive-title .line:nth-child(3) { margin-left: 0; }
  .massive-title .line:nth-child(4) { margin-left: 0; }
  .massive-title .line:nth-child(5) { margin-left: 0; }
  .massive-title .line:nth-child(6) { margin-left: 0; }
  .massive-title .line:nth-child(7) { margin-left: 0; }
  .massive-title .line:nth-child(8) { margin-left: 0; }
}


@media (max-width: 430px) {
  .nav-menu h1 {
    text-align: center;
  }
}