
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: 'Misto';
    src: url('/fonts/Misto.woff2') format('woff2'),
        url('/fonts/Misto.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap; }



@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&display=swap');



ul {
  list-style-type: none;
}


:root {
   --color-white:#ffff;
   --color-button-primary:#FF6060;
   --color-button-secondary:#E13333;
   --color-notfull-black:#222222;
   --section-grey:#383838;
   --color-pink-accent:#FFBEBE;
   --border-grey:#929292;
}

body {
    margin: 0;
}
.offer-container1 {
  width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

/* offer-section */
.offer_section {
background: url(/images/leylacoursebackground.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
     height: 750px;
}
.offer-container {
  
   
    padding-top: 50px;
    padding-left: 30px;
    padding-right: 30px;
}
.offer-container h1 {
  margin: 0;
  font-family: 'Misto';
  font-weight: 400;
  font-size: 80px;
  color: var(--color-white);
  width: 1259px;
}
.offer-container p {
  font-family: 'Montserrat';
  margin: 0;
  color: var(--color-white);
  width: 600px;
  font-size: 20px;
  font-weight: 400;
}
.button_and_imgs {
  display: flex;
  height: 450px;
}
#Frame1 {
  position: relative;
  width: 540px;
  height: 550px;
  top: -125px;
  left: 265px;
}
#Frame2 {
  position: relative;
  width: 412px;
  height: 467px;
  top: -590px;
  left: 335px;
}
#Frame3 {
  position: relative;
  width: 525px;
  height: 127px;
  top: -690px;
  left: 270px;
}
.buy-container {
  gap: 20px;
  justify-content: center;
  align-items: center;
  background-color: var(--color-white);
  border-radius: 40px;
  height: 120px;
  width: 577px;
  display: flex;
  flex-direction: row-reverse;
  margin-top: 300px;
}
.price-container p{
  color: var(--color-button-primary);
  font-family: 'Montserrat';
  font-size: 32px;
  font-weight: 500;
  width: 135px;
  
  
}
.price-container .price-accent {
  color: var(--color-notfull-black);
  text-decoration: line-through;
}
.price-container {
  width: 145px;
}
/* Кнопка */
.offer-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 350px;
  height: 90px;
  gap: 25px;               
  padding-left: 42px;       
  border: none;
  border-radius: 30px;
  background-color: var(--color-button-primary);
  color: var(--color-white);
  font-family: 'Montserrat';
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 0 20px var(--color-button-primary);
  transition: background-color .25s ease, box-shadow .25s ease;
}

.offer-button:hover {
  background-color: var(--color-button-secondary); 
  box-shadow: none;                                
}


.offer-button .button-sourse {
  width: 80px;
  height: 80px;             
  flex:  0 80px;           
  transform: scale(0.875);   
  transform-origin: center;
  transition: transform .25s ease; 
}

.offer-button:hover .button-sourse {
  transform: scale(1);     
}

@media (max-width: 393px){
  .offer-button {
    justify-content: flex-end; 
   padding-bottom:0 ;
   padding-left: 0;
   padding-top: 0;
   padding-right: 10px;
    font-size: 17px;
    width: 320px;
    height: 90px;
  }
  .offer_section {
    height: 980px;
  }
  .offer-container {
    padding: 27px 10px;
  }
  .offer-container p {
    width: 314px;
  }

   .offer-container h1 {
    width: 340px;
    font-size: 40px
   }
  
   .button_and_imgs {
    height: 600px;
    align-items: center;
    flex-direction: column-reverse;
   }
  .buy-container {
    flex-direction: column;
    gap: 20px;
    width: 340px;
     flex: 0 0 180px;            /* фиксируем высоту как flex-basis */
    min-height: 180px;          /* подстраховка от усадки */
    height: 180px;
    margin: 0;
  }

 
   .price-container {
    display: flex;
    gap: 15px;
    width: 210px;
   }

   .price-container p{
  font-size: 27px;
}
   #Frame1 {
     width: 340px;
     height: 380px;

      top: 375px;
      left: 10px;
   }
   #Frame2 {
     width: 261px;
     height: 300px;

     top: 65px;
     left: 50px;
   }
   #Frame3 {
     width: 550px;
     height: 100px;
object-fit: fill;
     top: 0px;
  left: 0px;
   }
  
}

/* ——— forwhom-section ——— */
.section-title {
  font-size: 75px;
  margin: 0;
  font-family: 'Montserrat';
  font-weight: 500;
}
.title-color-accent {
  color: var(--color-button-primary);
}
.forwhom-section {
  padding: 80px 0;
  text-align: center;                /* заголовок і тексти по центру */
}
.forwhom-section .container,
.forwohm-container {                 /* у тебе клас саме forwohm-container */
  max-width: 1216px;                 /* можеш змінити під свій макет */
  margin: 0 auto;                    /* центр по горизонталі */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}
.forwhom-list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr)); /* 2 колонки */
  gap: 32px;                                       /* проміжки між картками */
  justify-content: center;                               /* центрує сітку в контейнері */
}
/* Розкладаємо явно по клітинках */
.forwhom-card:nth-child(1){ grid-column:1; grid-row:1; }
.forwhom-card:nth-child(2){ grid-column:1; grid-row:2; }
.forwhom-card:nth-child(3){ grid-column:2; grid-row:1; }
.forwhom-card:nth-child(4){ grid-column:2; grid-row:2; }
.forwhom-card {
  padding: 40px 30px;
  border-radius: 40px;
  border: 1px solid var(--color-notfull-black);
  display: flex;
  
  justify-content: center;        
  text-align: start;
  max-width: 592px;    
  max-height: 250px;
  font-size: 27px;
  font-weight: 500;
  font-family: 'Montserrat'; 
  
}
.forwhom-card p {
  margin-top: 0;
  margin-bottom: 80px;
}

@media (max-width: 393px){

  .forwhom-section .container,
.forwohm-container {                 /* у тебе клас саме forwohm-container */
  max-width: 340px;                 /* можеш змінити під свій макет */
  
  
}
  .section-title {
    font-size: 32px;
  }
  .forwhom-list {
    display: flex;
    flex-direction: column;
  }
.forwhom-card {
  font-size: 20px;
  max-height: 100px;
  padding-left: 20px;
  padding-top: 20px;
  padding-right: 35;
  padding-bottom: 35px;
  border-radius: 20px;
}
.forwhom-card p {
margin: 0;
}
}


/*  whawillutake-section */


.whawillutake-section {
  padding: 80px 0;
  text-align: center;                /* заголовок і тексти по центру */
}


.whawillutake-section .container {
  padding: 60px 30px;               /* внутрішні відступи */
}

.whawillutake-container {
  background-color: var(--section-grey);
  border-radius: 40px;
  width: 100%;
  height: 100%;
  max-height: 900px;
  max-width: 1216px;
  margin-inline: auto;              /* центр всього блоку */
  display: flex;
  flex-direction: column;
  align-items: center;              /* центр заголовка/контенту */
  gap: 40px;
}

/* Список — строго по центру екрана */
.whawillutake-list {
  width: 100%;
  max-width: 1026px;                /* замість фіксованої width */
  margin-inline: auto;              /* центр самого списку */
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 32px 25px;
  justify-items: center;            /* центрує картки в колонках */
}

/* Картки — по центру своїх колонок */
.whawillutake-card:nth-child(1){ grid-column:1; grid-row:1; }
.whawillutake-card:nth-child(2){ grid-column:1; grid-row:2; }
.whawillutake-card:nth-child(3){ grid-column:1; grid-row:3; }
.whawillutake-card:nth-child(4){ grid-column:2; grid-row:1; }
.whawillutake-card:nth-child(5){ grid-column:2; grid-row:2; }
.whawillutake-card:nth-child(6){ grid-column:2; grid-row:3; }

.whawillutake-card {
  width: 100%;
  max-width: 500px;
  margin: 0;                        /* прибираємо сторонні margin-и */
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;                 /* або center — за бажанням */
  color: #fff;                      /* світлий текст на чорному фоні */
}
.whawillutake-card p{
  font-family: 'Montserrat';
  font-weight: 500 ;
  font-size: 25px;
  max-width: 425px;
}

.whawillutake-button {
  margin-bottom: 50px;
}
.whawillutake-title {
  margin-top: 50px;
  color: var(--color-white);
}
.whawillutake-card .streamline {
  justify-content: start;
}


@media (max-width: 393px) {
  .whawillutake-title {
  margin-top: 30px;
}
  .whawillutake-container {
    gap: 25px;
    border-radius: 20px;
  }
  .whawillutake-section .container {
  padding: 0 10px;
}
.whawillutake-list {
  width: 100%;
  max-width: 340px;                /* замість фіксованої width */
  margin-inline: auto;              /* центр самого списку */
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-items: center;  
  padding: 0;     
  margin: 0;    /* центрує картки в колонках */
}
.whawillutake-card p{
  font-weight: 500 ;
  font-size: 20px;
  max-width: 425px;
  margin: 0;
}
.whawillutake-card img {
  width: 40px;
  height: 40px;
  align-self: flex-start;
}
.whawillutake-button {
  margin-bottom: 30px;
}
}
/* ——— programofcourse ——— */

.porgramofcourse-section{
  padding: 80px 0;
  text-align: center;               
}
.porgramofcourse-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.porgramofcourse-list {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
}
.palka1 {
  width: 3px;
  height: 60px;
}
.puzzle1 {
  width: 70px;
  height: 70px;
}

.porgramofcourse-decor-end {
  align-self: flex-start;
}
.porgramofcourse-decor {
  display: flex;
  flex-direction: column;
  width: 70px;
  align-items: center;
}
.porgramofcourse-card {
  display: flex;
  height: 140px;
  width: 1216px;
  gap: 32px;
  justify-content: start;
  align-items: start;
  
}
.porgramofcourse-card-text {
  flex-direction: column;
  font-family: 'Montserrat';
  font-size: 20px;
 font-weight: 500;
  align-self: flex-start;
  text-align: start;
  color:var(--color-button-primary) ;
  
}
.porgramofcourse-card-text p {
  margin: 0;
}
.porgramofcourse-card-text .porgramofcourse-card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-notfull-black);
  margin-bottom: 15px;
}
.porgramofcourse-text-accent {
  color: var(--color-pink-accent);
}
@media (max-width: 393px) {
  .porgramofcourse-card {
  display: flex;
  height: 140px;
  width: 340px;
  gap: 10px; }
  .porgramofcourse-card3  {
    height: 115px;
  }
  .porgramofcourse-card4 {
    height: 125px;
  }
  .porgramofcourse-card5 {
    height: 115px;
  }
 .porgramofcourse-list {
  gap: 10px;
   padding: 0;
 }
 .porgramofcourse-card p {
  width: 280px;
  font-size: 16px;
 }
 .porgramofcourse-card .porgramofcourse-card-title {
  font-size: 18px
 }
 .puzzle1 {
  width: 50px;
  height: 50px;
 }
.porgramofcourse-decor {
  gap: 5px;
}
 .porgramofcourse-decor .palka-start{
    width: 3px;                  /* тонкая вертикальная палка */
    height: 80px !important;     /* нужная высота */
    object-fit: fill;            /* РЕАЛЬНО растянуть SVG внутрь бокса */
    display: block;
    background-color: var(--color-pink-accent);
    border-radius: 40px;
  }
   .porgramofcourse-decor .palka2{
    width: 3px;                  /* тонкая вертикальная палка */
    height: 75px !important;     /* нужная высота */
    object-fit: fill;            /* РЕАЛЬНО растянуть SVG внутрь бокса */
    display: block;
    background-color: var(--color-pink-accent);
    border-radius: 40px;
  }

  .porgramofcourse-decor .palka3{
    width: 3px;                  /* тонкая вертикальная палка */
    height: 55px !important;     /* нужная высота */
    object-fit: fill;            /* РЕАЛЬНО растянуть SVG внутрь бокса */
    display: block;
    background-color: var(--color-pink-accent);
    border-radius: 40px;
  }
    .porgramofcourse-decor .palka4{
    width: 3px;                  /* тонкая вертикальная палка */
    height: 65px !important;     /* нужная высота */
    object-fit: fill;            /* РЕАЛЬНО растянуть SVG внутрь бокса */
    display: block;
    background-color: var(--color-pink-accent);
    border-radius: 40px;
  }
}
/* ——— author-section ——— */
.author-section{
  padding: 80px 0;
  text-align: center;               
}
.author-container {
  background-color: var(--section-grey);
  border-radius: 40px;
  width: 100%;
  height: 100%;
  max-height: 1000px;
  max-width: 1216px;
  margin-inline: auto;              /* центр всього блоку */
  display: flex;
  flex-direction: column;
  align-items: center;              /* центр заголовка/контенту */
}
.author-container .section-title {
  color: var(--color-white);
}
.author-div {
  display: flex;
  height: 745px;
  align-items: center;
  margin-bottom: 40px;
}

.author-container h1 {
  margin-top: 40px;
  margin-bottom: 40px;
}
.author-about {
  width: 540px;
  font-family: 'Montserrat';
  font-size: 20px;
  font-weight: 500;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
}
.author-about-list {
  display: flex;
  flex-direction: column;
 align-items: flex-start;
 
}
.author-about-card {
  width: 540px;
  border-bottom: 1px solid var(--border-grey);
  text-align: start;
}
.author-about-card p {
  font-size: 15px;
  max-width: 470px;
  width: 100%;
}
.author-about-title {
  color: var(--color-button-primary);
  padding-left: 40px;
  margin: 0;
}

@media (max-width: 393px) {

  .author-container {
  background-color: var(--section-grey);
  border-radius: 20px;
  width: 100%;
  height: 100%;
  max-height: 1000px;
  max-width: 340px;
          
}
  .author-div {
    flex-direction: column-reverse;
  }
  .author_photo {
    width: 320px;
    height: 410px;
  }
  .author-about {
    align-items: center;
  width: 340px;
  font-size: 20px;
  
}
.author-about-card {
  width: 320px;
}
  .author-about-title {
    width: 320px;
    font-size: 20px;
    padding: 0;
  }
  .author-about-list {
    width: 320px;
    padding: 0;
  }
  .author-about-card p {
    margin-top: 10px;
     margin-bottom: 10px;
  max-width: 320px;
  width: 100%;
}
}


/*slider*/
    .swiper {
        max-width: 560px;
      width: 100%;
         max-height: 380px;
      height: 100%;
      border-radius: 40px;
      
    }

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

    .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
@media (max-width: 393px) {
  .swiper {
        max-width: 340px;
      width: 100%;
         max-height: 380px;
      height: 100%;
      border-radius: 20px;
      
    }
}
    
  /*FAQ-section*/
  .FAQ-section {
    padding: 80px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
 
   .FAQ-container {
    width: 1216px;
   }
  .faq-list { 
    margin-top: 60px;
  list-style: none; 
  padding: 0; 
  display: grid; 
  gap: 16px; 
}

.faq-item { 
  border-bottom: 1px solid var(--border-grey); 
   border-top: 1px solid var(--border-grey); 
  background: #fff; 
}
.faq-item span {
  color: var(--color-button-primary);
}
/* Кнопка-вопрос */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 20px;
  font: 600 27px 'Montserrat';
  color: var(--color-notfull-black);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}



.faq-q{ 
  color: var(--color-button-primary); 
} 
.faq-icon{ 
  color: var(--section-grey);
  transition: transform .25s ease;
 }
.faq-q[aria-expanded="true"] .faq-icon{ 
  transform: rotate(45deg);
 }
 
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  padding: 0 20px;           
  text-align: start;
}
.faq-a p {
  margin-top: 20px;
  margin-bottom: 20px;
}
.faq-a > * { 
  margin: 16px 0 20px; 
  font: 500 20px 'Montserrat'; 
  color: var(--color-notfull-black);
}

@media (max-width: 393px) {
  .FAQ-container {
    width: 340px;
   }
   .faq-list {
    gap: 5px;
   }
   .faq-q {
    font-size: 20px;
    padding: 20px 5px;
   }

   .faq-a > * { 
  margin: 16px 0 20px; 
  font: 500 16px 'Montserrat'; 
  color: var(--color-notfull-black); 
}


  /* фиксированный размер плюса/крестика во всех брейкпоинтах */
.faq-icon{
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex: 0 0 22px;        /* запрещаем flex-сжатие/рост */
  display: inline-block; /* не растягивается на всю строку как block */
  color: var(--section-grey);
  transition: transform .25s ease;
}

/* опционально: полностью игнорировать глобальный max-width для этой иконки */
.faq-icon{ max-width: none; }
}



/* ——— footer ——— */
.footer {
  padding: 80px 0;
  text-align: center;  
   display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
}
.footer .container {
  width: 1440px;
  background-color: var(--section-grey);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
.footer-container {
 display: flex;
 flex-direction: column;
 align-items: center;
 
}
.footer-container h1 {
  color: var(--color-white);
  margin: 46px 0;
}
.footer-list {
display: grid;
gap: 40px;
grid-template-columns: repeat(2, minmax(260px, 1fr));
margin-bottom: 84px;
}
.footer-list > li:nth-child(1){ grid-column:1; grid-row:1; }
.footer-list > li:nth-child(2){ grid-column:1; grid-row:2; }
.footer-list > li:nth-child(3){ grid-column:2; grid-row:1; }
.footer-list > li:nth-child(4){ grid-column:2; grid-row:2; }

.footer-button {
  font-family: 'Montserrat';
  font-weight: 500;
  font-size: 27px;
  color: var(--color-white);
  width: 500px;
  height: 100px;
  background-color: var(--color-button-primary);
  border: 0;
  border-radius: 60px;
}
.footer-button:hover {
  background-color: var(--color-button-secondary);
}
.adress-copyright {
  align-self: center;
  font-family: 'Montserrat';
  color: var(--color-white);
  display: flex;
  gap: 50px;
}
.adress-copyright a {
  text-decoration: none;
  color: var(--color-white);
}
.adress-copyright a:hover {
  text-decoration: none;
  color: var(--color-button-primary);
  

}

.adress-copyright li:last-child p{
  color: var(--color-button-primary);
}
@media (max-width: 393px) {
  .footer .container {
  width: 100%;
  background-color: var(--section-grey);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.footer-list {
  gap: 15px;
  padding: 0;
  width: 320px;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}
.footer-button {
  width: 320px;
  height: 78px;
}
.footer-button p {
  font-size: 20px;
}
.adress-copyright {
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
  padding: 0;

}


}


/* ===== Modal base ===== */
.modal { 
  position: fixed; inset: 0; 
  display: none; 
  z-index: 1000; 
}
.modal.open { display: block; }
.modal__overlay{
  position: absolute; inset: 0; 
  background: rgba(0,0,0,.45);
}
.modal__dialog{
  position: absolute; 
  inset: 0;
  margin: auto;
  width: 700px;           /* ПК — як у макеті */
  height: 540px;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
  display: flex; flex-direction: column; 
  align-items: center;
  padding: 32px 24px;
}
.modal__close{
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border: none;
  background: transparent; font-size: 28px; line-height: 1; cursor: pointer;
}
.modal__title{
  margin: 8px 0 16px;
  font: 500 32px 'Montserrat', system-ui;
  color: var(--color-notfull-black);
}

/* Form */
/* ===== Modal form (inputs fixed) ===== */
/* ===== Modal form (inputs fixed v3) ===== */
#lead-form{ 
  width: 100%; 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  gap: 18px; 
}
.field{ 
  width: 100%; 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
}

/* Обёртка инпута: высота, рамка и вертикальная центровка содержимого */
.input{
  box-sizing: border-box;
  width: 480px;                 /* ПК поля/кнопка 480 */
  height: 56px;
  padding: 0 20px;              /* базовые отступы */
  border: 1px solid #D9D9D9;
  border-radius: 28px;
  background: #fff;
  display: flex;                 /* ↓ центровка текста по вертикали */
  align-items: center;
  font: 500 16px 'Montserrat', system-ui;
  color: var(--color-notfull-black);
  outline: none;
}
.input:focus-within{ border-color: var(--color-notfull-black); }

/* Внутренние <input> растягиваем на всю высоту контейнера .input */
.input > input{
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0;
}

/* Плейсхолдеры — всегда видимые серые */
.input > input::placeholder,
.phone-input::placeholder{ color:#9B9B9B; opacity:1; }
.input > input::-webkit-input-placeholder,
.phone-input::-webkit-input-placeholder{ color:#9B9B9B; opacity:1; }
.input > input::-moz-placeholder,
.phone-input::-moz-placeholder{ color:#9B9B9B; opacity:1; }
.input > input:-ms-input-placeholder,
.phone-input:-ms-input-placeholder{ color:#9B9B9B; opacity:1; }
.input > input::-ms-input-placeholder,
.phone-input::-ms-input-placeholder{ color:#9B9B9B; opacity:1; }

/* Phone composite — шире колонка под номер, меньше внутренние паддинги */
.phone-wrap{
  display: grid; 
  /* было: 44px 72px 1fr — мало места под цифры;
     делаем компактнее слева и гарантируем минимум ширины для номера */
  grid-template-columns: 36px 66px minmax(180px, 1fr);
  column-gap: 5px;
  align-items: center;

  /* переопределяем базовые отступы .input, чтобы освободить место под цифры */
  padding-left: 12px;
  padding-right: 12px;

  position: relative;
}
.flag{ width: 28px; height: 28px; display:flex; align-items:center; justify-content:center; }
.dial{ color:#5A5A5A; font-weight:600; white-space:nowrap; width: 50px; }

/* Телефонный input — вровень с остальными и не обрезается */
.phone-input{
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: 500 16px 'Montserrat', system-ui;
  color: var(--color-notfull-black);
  padding: 0;
  min-width: 0;                 /* важно для сжатых экранов */
  overflow: hidden;             /* чтобы не выпадали маски */
  text-overflow: clip;
}

/* Невидимий селект над прапором — для зміни країни (как было) */
.country-picker{
  position:absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 36px; opacity: 0; cursor: pointer;
}

/* Errors */
.error-text{ 
  display:none; margin-top: 8px; 
  width: 480px; 
  color: var(--color-button-primary); 
  font: 500 14px 'Montserrat';
}
.input.invalid, .phone-wrap.invalid { border-color: var(--color-button-primary); }
.field.invalid .error-text{ display:block; }
.field.invalid .input { border-color: var(--color-button-primary); }

/* Submit */
.modal-btn{
  width: 480px; height: 56px;
  border: 0; border-radius: 28px;
  background: #1E1E1E; color:#fff;
  font: 600 18px 'Montserrat';
  cursor: pointer;
}
.modal-btn:hover { background-color: #929292; }

/* Block page scroll when open */
body.no-scroll{ overflow: hidden; }

/* ===== Mobile (макет Default2 / Variant3) ===== */
@media (max-width: 393px){
  .modal__dialog{
    width: 340px;          /* мобайл ширина модалки */
    height: auto;
    max-height: 440px;
    border-radius: 40px;
    padding: 28px 16px 22px;
  }
  .modal__title{ font-size: 28px; text-align:center; }

  /* поля/кнопка 265 — оставляем твой размер */
  .input, .error-text, .modal-btn{ width: 265px; }

  /* ужимаем служебные колонки, отдаём максимум цифрам */
  .phone-wrap{
    grid-template-columns: 28px 58px minmax(150px, 1fr);
    column-gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
}


/* ——— БАЗОВІ ОБМЕЖЕННЯ ——— */
    
    img,video,svg{max-width:100%;height:auto;display:block;}
    html,body{max-width:100%;overflow-x:hidden;}  /* страховка від скролу */
    


   
    
