
.header__logo {
  display: inline-block;
  max-width: 63px; /* или сколько нужно */
}

.header__logo picture,
.header__logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.form__subtitle {
    font-size: 25px;
    text-align: center;
    line-height: 120%;
    letter-spacing: -.02em;
}

.section-6__quiz-container {
    margin: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.section-6__banner {
  z-index: 1;
  padding: 25px;
  background: #CCB188;
  border-radius: 16px;
}

.section-6__subtitle {
    font-size: 25px;
    line-height: 150%;
}

.section-2__item-text {
    color:#ffffff;
    font-size:18px;
}

.section-4__item-text {
  font-size:18px;
  line-height:130%
}


.input-error {
 border-color: red; /* Красная обводка для неправильного ввода */
}

.input-container {
    position:relative;
}
.error {
  display:none;
  position: absolute;
  bottom: -9px;
  left: 5%;
  padding: 5px;
  color: rgb(255, 255, 255);
  background-color: red;
  border-radius: 5px;
}


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.banner-container {
    width: 90%;
    max-width: 900px;
}

.banner {
   transform: scale(0)
   opacity:0;
   background: white;
   border-radius: 12px;
   padding: 50px;
   position: relative;
   border-radius: 10px; /*          Опционально: скругленные углы */
   box-shadow: 0 0 15px 5px            rgba(255, 255, 255, 0.5); /* Белое свечение */
   animation: scaleIn 0.5s forwards;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


.banner-content {
    display: flex;
    flex-wrap: wrap;
    align-items:center;
}

.banner-text {
    flex: 1;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-form {
    flex: 1;
}

.banner-form__text {
    margin-bottom: 20px;
    text-align: center;
    font-size: larger;
}

.banner-form__title {
    text-align: center;
    line-height: 120%;
}

h2 {
    margin-bottom: 15px;
    font-size: 24px;
}

.banner-image {
    margin: 20px 0;
    max-width: 250px;
}

.form-group {
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.submit-btn {
    background: #CCB188;
    color: white;
    border: none;
    padding: 12px 25px;
    width: 100%;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #093b5d;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 30px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
    }
    
    .banner-text {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .banner-image {
        max-width: 100%;
    }
    .banner-form__title {
        font-size:20px;
    }
}


.spinner {
    display:none;
    width: 60px;
    height: 60px;
    margin: 40px auto;
    position: relative;
}

/* Круговая анимация */
.spinner::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(46, 204, 113, 0.2); /* Светло-зелёный фон */
    border-top-color: #2ecc71; /* Ярко-зелёный цвет анимации */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Дополнительный внутренний круг для эффекта "пульсации" */
.spinner::after {
    content: "";
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border: 3px solid transparent;
    border-top-color: #27ae60; /* Тёмно-зелёный */
    border-radius: 50%;
    animation: spinReverse 1.5s linear infinite;
    opacity: 0.7;
}

/* Анимация вращения */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Обратное вращение для внутреннего круга */
@keyframes spinReverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Галочка (изначально скрыта) */
.checkmark {
    width: 60%;
    height: 50%;
    display: none;
    margin:auto;
    /*             position: absolute; */
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 6;
    stroke: #CCB188;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
    100% { box-shadow: inset 0 0 0 100vh rgba(46, 204, 113, 0.1); }
}






.expandable-block {
    padding: 20px;
    display: flex
    ;
    flex-direction: column;
}


.expandable-content {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Ограничиваем 4 строками */
    -webkit-box-orient: vertical;
    line-height: 1.5; /* Важно для правильного подсчета строк */
    max-height: calc(1.5em * 4); /* 1.5em (line-height) × 4 строки */
    transition: max-height 0.3s ease;
}

.expandable-content.expanded {
    -webkit-line-clamp: unset;
    max-height: 5500px;
}

.expand-button {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    padding: 5px 0;
    font-size: 14px;
    align-self:flex-end;
}

.expand-button:hover {
    text-decoration: underline;
}

.expand-button::after {
    content: " ▼";
    font-size: 12px;
}

.expand-button.expanded::after {
    content: " ▲";
}


.main-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__list li.menu-item-has-children {
  position: relative;
}


.main-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  padding: 10px 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-nav__list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.main-nav__list .sub-menu li {
  padding: 5px 20px;
}

.main-nav__list .menu-item-has-children > a::after {
  content: " ▼";
  font-size: 10px;
  margin-left: 5px;
}




.section-1__slider,
.section-1__slider-wrapper,
.section-1__slide {
  height: 100vh;
}

.section-1__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-1__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}


.footer-success-message {
    display: none;
    color: #ffffff;
    background-color: #28a745;
    padding: 12px 20px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.4s ease;
    opacity: 0;
}

.footer-success-message._visible {
    display: block;
    opacity: 1;
}

.text-section {
  margin-top: 35px;
}

.text-section ol,
.text-section ul {
  padding-left: 20px;
  margin: 15px 0;
}
.text-section ul li{
  list-style: disc;
}
.text-section ol li{
  list-style: decimal;
}

.text-section blockquote {
      font-style: italic;
    margin: 15px 0;
    padding: 0 40px;
}
.text-section p{
  margin-bottom: 15px;
  line-height: 1.5;
}
.text-section h1{
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 15px;
}
.text-section h2{
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 15px;
}
.text-section h3{
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 15px;
}
.text-section h4{
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 15px;
}
.text-section h5{
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 15px;
}
.text-section a {
  color: #CCB188;
}
.text-section a:hover {
  color: #B59369;
}
.d-none {
  display: none;
}
.language-selector {
    position: relative;
    display: inline-block;
  }
  
  .language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 60px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    padding: 5px;
  }
  
.language-dropdown a {
    display: flex;
    align-items: center; 
    padding: 8px 12px;
    text-decoration: none;
    gap: 8px; 
    width: 100%;
}
.language-dropdown a.active {
  background: #CCB188;
}
  .language-dropdown a img {
    margin: 0 auto;
  }
  .language-selector:hover .language-dropdown {
    display: block;
  }
  
  .language-toggle {
    cursor: pointer;
    border: none;
    background: transparent;
  }
  .form__items .notification_warning {
    color: red;
    font-size: 13px;
    padding: 0;
    margin: 0;
  } 
  .footer__email-wrap {
    position: relative;
  }
  .footer__email-wrap .notification_warning {
       position: absolute;
    top: 0;
    color: red;
    left: 35px;
  }

@media (max-width: 29.99875em){
  .language-toggle,
  .language-selector{
      width: 30px;
      height: 30px;
  }
}