/* #region Main */

html {
  margin: 0;
  border: 0;
  padding: 0;
  max-width: 100%;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
}

a {
  text-decoration: none;
}

/* #endregion */

/* #region Header */


.wrapper {
  background-image: url('./assets/pics/header1080.webp');
  background-repeat: no-repeat;
  overflow: hidden;
}

.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 0 8%;
}

.logo {
  display: flex;
}

.logo a {
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 800;
}

.logo img{
  width: 80px;
}

.top-menu {
  display: flex;
  gap: 20px;
}

/* Hamburger (hidden on desktop) */
.menu-toggle{ 
  display:none; 
  position: relative; 
  width:100px; height:40px; 
  border: 1px solid rgba(255, 255, 255, 0.25);
  background:rgba(0,0,0,0.25); border-radius:10px; cursor:pointer; align-items:center; justify-content:center; }
.menu-toggle .bar{ display:block; width:22px; height:2px; background:#fff; margin:3px 0; transition:transform .2s ease, opacity .2s ease; }
.menu-toggle.is-open .bar:nth-child(1){ transform: translateY(5px) rotate(45deg); }
.menu-toggle.is-open .bar:nth-child(2){ opacity:0; }

.menu-toggle.is-open .bar:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }

/* Label near hamburger (hidden on desktop) */
.menu-toggle::after{
  content: "Menu";
  display: none;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
}

/* Ensure hamburger is always clickable */
.menu-toggle{ z-index: 1001; -webkit-tap-highlight-color: transparent; }

/* Mobile menu base (will be overridden in media queries) */
.top-menu.open{ display:flex; }

.top-menu a {
  font-size: 18px;
  font-weight: bolder;
  color: #FFFFFF;
  position: relative;
}

.top-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.top-menu a:hover::after {
  width: 100%;
}


.language{ color:#fff; }

/* keep language dropdown above mobile menu */
.language{ position: relative; z-index: 1100; }
.lang-menu{ z-index: 1200; }

/* Language dropdown */
.language{ position: relative; }
.lang-toggle{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.2); color:#fff; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(4px);
}
.lang-toggle .caret{
  display:inline-block; width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:6px solid #fff;
}
.lang-menu{
  position:absolute; right:0; top: calc(100% + 8px); min-width: 240px;
  background: rgba(20,20,20,0.9); color:#fff; border:1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 6px; margin:0; list-style:none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  opacity:0; transform: translateY(-6px); pointer-events:none; transition: opacity .2s ease, transform .2s ease;
  z-index: 1000;
}
.lang-menu.open{ opacity:1; transform: translateY(0); pointer-events: auto; }
.lang-menu li{ margin:0; }
.lang-menu a{
  display:block; padding:10px 12px; border-radius:8px; color:#fff;
}
.lang-menu a[aria-selected="true"]{ background: rgba(99,102,241,0.25); }
.lang-menu a:hover{ background: rgba(255,255,255,0.12); }

/* Responsive tweaks */
@media (max-width: 576px){
  .lang-menu{ min-width: 180px; right: 50%; transform: translate(50%, -6px); }
  .lang-menu.open{ transform: translate(50%, 0); }
}

/* #endregion */

/* #region banner */

.banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.banner-header {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  color: #FFFFFF;
  font-size: 64px;
  font-weight: 800;
}

.banner-video {
  position: relative;
  display: inline-block;
}

video {
  display: block;
  width: 768px;
  height: auto;
  border-radius: 50px;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  color: white;
  width: 80px;
  height: 80px;
  cursor: pointer;
}

.pause-btn {
  position: absolute;
  top: 90%;
  left: 6%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  color: white;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.banner-demo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #DEC8FF;
  font-size: 28px;
  text-align: center;
}

.banner-demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-bottom: 50px;
}

.banner-demo-buttons button{
  width: 300px;
  height: 56px;
  background: #1a1a1a;  
  color: #fff;    
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;          
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.banner-demo-buttons button:hover {
  background: #000;          
  transform: translateY(-2px);   
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* #endregion  */

/* #region Product */

.hospio-app {
  display: flex;
  flex-direction: column;
}

.adv {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.adv h1 {
  color: #111111;
  font-size: 56px;
  font-weight: 900;
}

.adv p {
  margin-top: -10px;
  margin-bottom: 40px;
  color: grey;
  font-size: 24px;
}


.feature {
  display: flex;
  gap: 20px;
  background-color: #F9F9FA;
  padding: 2% 15%
}

.feature img {
  width: 512px;
  border-radius: 40px;
}

.image-heading {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.feature-describe {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 5%;
  font-size: 20px;
}

.feature-white {
  background-color: white;
}

.divider {
  background: linear-gradient(to right, #F178C6 0%, #EDF966 70%, #95D7CB 100%);
  width: 100%;
  height: 20px;
}

.divider-back {
  background: linear-gradient(to left, #F178C6 0%, #EDF966 70%, #95D7CB 100%);
  width: 100%;
  height: 20px;
  margin-top: 40px;
}

.how {
  display: flex;
  flex-direction: column;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.step {
  text-align: center;
}

.step p {
  font-size: 24px;
}

.step img {
  width: 300px;
}

.arrow {
  margin-top: 100px;
  height: 100px;
}

/* #endregion */

/* #region Pricing */

.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.plan {
  display: flex;
  flex-direction: column;
  width: 280px;
  font-size: 24px;
  border-radius: 24px;
  border: solid grey 2px;
  /* тінь */
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0 0 20px 20px;
}

.plan-name {
  font-size: 24px;
}

.plan-price {
  margin-top: -10px;
}

.plan:hover {
  transform: translateY(-16px);
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.12),
    0 16px 32px rgba(0, 0, 0, 0.15);
}

.price-description {
  font-size: 12px;
  margin-top: -30px;
}

.plan-description-benefit {
  display: flex;
  align-items: center;
  font-size: 20px;
}

.plan-description-benefit img {
  height: 25px;
  margin-right: 5px;
}

.order {
  display: flex;
  justify-content: center;
  margin-top: 30px;

}

.order-btn {
  display: inline-block;
  margin: 20px auto;
  padding: 28px 64px;
  font-size: 24px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.order-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, #4338ca, #4f46e5);
}

.order-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(99, 102, 241, 0.5);
}

/* #endregion */

/* #region Whoweare */

.about-us {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.who-we-are {
  display: flex;
  width: 800px;
  height: 450px;
  background-color: #ebeaf1;
  border-radius: 30px;
  padding: 20px 20px;
  gap: 30px;
  align-items: center;
}

.who-we-are-box {
  flex: 1;
}

.who-we-are-box img {
  height: 300px;
}

.who-we-are-box p {
  font-size: 20px;
}

.social {
  display: flex;
  gap: 20px;
}

.social img {
  height: 35px;
}

/* #endregion */

/* #region Footer */

.footer {
  margin: 20px 3% 10px 3%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/*

#backToTop {
  position: fixed;
  bottom: 90px;
  right: 30px;
  display: none;
  background-color: #00aaff; 
  color: white;
  padding: 8px 16px 10px 16px;
  font-size: 22px;
  font-weight: bold;
  border: none;
  border-radius: 8px; 
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, transform 0.2s;
  z-index: 999;
}

#backToTop:hover {
  background-color: #0088cc;
  transform: translateY(-2px);
}

*/

/* #endregion */

/* #region Medium+ devices (iPad Pro, 1024px and down) */

@media (max-width: 1024px) { 

  .adv h1 {
    font-size: 40px;
  }

  .feature {
    padding: 3% 10%;
  }

  .step img {
    width: 200px;
  }

  .step p {
    font-size: 24px;
  }

  .arrow {
    height: 80px;
  }

}

/* #endregion */

/* #region Medium devices (tablets, 992px and down) */
@media (max-width: 992px) { 
  .wrapper {
    background-repeat: repeat
  }

  .header {
    justify-content: space-between;
    gap: 15px;
    margin: 0 3%;
  }

  .banner-video {
    display: flex;
    justify-content: center;
  }

  .banner-video video {
    width: 80%;
  }

  .pause-btn {
    top: 90%;
    left: 16%;
  }

  .banner-demo p {
    font-size: 24px;
  }

  .feature {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 3% 5%;
  }

  .feature-white {
    flex-direction: column-reverse;
  }

  .adv h1 {
    font-size: 30px;
  }

  .steps {
    gap: 20px;
  }

  .step img {
    width: 150px;
  }

  .step p {
    font-size: 20px;
  }

  .arrow {
    height: 50px;
  }

  .plans {
    gap: 20px;
  }

  .plan {
    width: 210px;
  }

  .who-we-are {
    width: 720px;
  }

}

/* #endregion */

/* #region Small devices (tablets portrait, 768px and down) */
@media (max-width: 768px) { 

  .header {
    margin: 0 5%;
    gap: 20px;
  }

  .feature {
    padding: 2% 2%;
  }

  .feature img {
    height: 300px;
  }

  .adv h1 {
    font-size: 28px;
  }

  .adv p {
    font-size: 22px;
  }

  .plans {
    gap: 20px;
  }

  .plan {
    width: 200px;
    padding-bottom: 0px;
  }

  .plan p {
    font-size: 20px;
  }
  .who-we-are {
    width: 600px;
  }

  .who-we-are-collage {
    height: 300px;
  }

  .who-we-are-box p {
    font-size: 18px;
  }

  /* Mobile nav */
  .menu-toggle{ display:flex; }
  .header{ position: relative; margin: 0 8%;}
  .top-menu{ position: absolute; top: 100%; right: 1%; left: 1%; display:none; flex-direction: column; gap: 12px; padding: 14px; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); border-radius: 14px; z-index: 999; }
  .top-menu a{ font-size: 18px; padding: 10px 12px; border-radius:10px; background: rgba(255,255,255,0.06); }
  .top-menu a:hover{ background: rgba(255,255,255,0.12); }
  .top-menu.open{ display:flex; }

  /* Show label and align hamburger on mobile */
  .menu-toggle{ align-items: center;}
  .menu-toggle::after{ display: inline-block; }

}

/* #endregion */

/* #region Extra small devices (phones, 576px and down) */
@media (max-width: 576px) { 

  .wrapper {
    padding-left: 5px;
    padding-right: 5px;
  }

  .header {
    margin: 0 1%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-direction: row;
  }

  .logo p {
    display: none;
  }

  .top-menu a {
    font-size: 16px;
  }

  .language {
    margin-top: 0;
  }

  .banner-header p {
    font-size: 38px;
  }

  .pause-btn {
    top: 80%;
    left: 20%;
  }

  .feature img {
    height: 256px;
    width: 400px;
  }

  .banner-demo p {
    font-size: 18px;
  }

  .banner-demo-buttons {
    gap: 20px;
  }

  .banner-demo-buttons button {
    width: 270px;
    height: 48px;
  }

  .adv h1 {
    font-size: 24px;
  }

  .adv p {
    font-size: 18px;
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
  }

  .steps {
    flex-direction: column;
    gap: 0;
  }

  .step {
    display: flex;
    align-items: center;
    gap: 10px
  }

  .arrow {
    margin: 0;
    transform: rotate(90deg);
  }

  .plan {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    width: 280px;
    justify-content: center;
    padding: 5px 3px;
  }

  .plan:hover {
    transform: none;
  }

  .plan-description {
    display: flex;
  }

  .plan-name {
    margin: 0;
  }

  .plan-name p {
    font-size: 24px;
  }

  .plan-price {
    font-size: 32px;
    margin: 0 0px;
  }

  .price-description {
    margin: 0;
  }

  .plan-description {
    flex-direction: column;
  }

  .about-us {
    text-align: center;
  }

  .who-we-are {
    width: 350px;
    flex-wrap: wrap;
  }

  .collage {
    display: none;
  }

  .social {
    justify-content: center;
  }

  .footer {
    justify-content: center;
  }
}
/* #endregion */

/* #region OMG small devices (phones, 370px and down) */

@media (max-width: 390px) {
  .top-menu {
    
    font-size: 16px;
    gap: 3px;
  }

  .feature img {
    height: 180px;
    width: 300px;
  }

  .who-we-are {
    width: 280px;
  }

  .footer p {
    font-size: 15px;
  }

  #problem_picture {
      margin-left: 8%;
  }

}

/* #endregion */


/* #region Ultra-wide screens (≥1980px) */
@media (min-width: 1981px) {
  body {
    zoom: 1.3;
  }

  p {
    font-size: 28px;
  }

  .logo {
    font-size: 42px;
    align-items: center;
  }

  .lang-toggle {
    font-size: 28px;
  }

  .top-menu a {
    font-size: 32px;
  }

  .wrapper {
    background-repeat: repeat;
  }

  .hospio-app {
    align-items: center;
  }

}
/* #endregion */


/* ===== Modal form ===== */
.modal{
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  z-index: 2000;
}
.modal.show{ display: flex; }
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.modal__content{
  position: relative; z-index: 1;
  width: min(92vw, 720px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.12), 0 6px 14px rgba(0,0,0,0.08);
  overflow: hidden;
}
.modal__close{
  position:absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 10px;
  border: none; cursor: pointer;
  background: rgba(0,0,0,0.06);
  color:#111; font-size: 22px; line-height: 1;
}
.modal__close:hover{ background: rgba(0,0,0,0.12); }

/* Head */
.modal__head{
  padding: 22px 22px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
}
.modal__head h2{ margin: 0 0 6px 0; font-weight: 800; }
.modal__head p{ margin: 0; opacity: .95; }

/* Form body */
.form{ padding: 20px 22px 24px; }
.form__row{ display:flex; flex-direction:column; gap:8px; margin-bottom: 14px; }
.form label{ font-weight: 600; color:#111; }
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea{
  padding: 12px 14px; font-size: 16px;
  border: 1px solid #e6e6e6; border-radius: 12px;
  outline: none; background:#fff;
}
.form input:focus,
.form select:focus,
.form textarea:focus{ border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }

.form__grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__check{ display:flex; align-items:center; gap:10px; margin: 8px 0 10px; color:#111; }
.form__check a{ color:#4f46e5; text-decoration: underline; }

.submit-btn{
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color:#fff; border:none; border-radius:12px; padding: 14px 16px;
  font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 10px rgba(99,102,241,.4);
}
.submit-btn:hover{ transform: translateY(-2px); box-shadow: 0 6px 16px rgba(99,102,241,.6); }

.form__note{ color:#6B7280; font-size: 14px; margin: 10px 0 0; }

/* Success state */
.form__success{ padding: 24px 22px; }
.form__success h3{ margin: 0 0 6px; }
.form__actions{ display:flex; gap: 12px; margin-top: 10px; }
.btn-link{
  display:inline-block; padding:10px 12px; border-radius:10px;
  background: rgba(99,102,241,.08); color:#111;
}
.btn-link:hover{ background: rgba(99,102,241,.16); }

/* Honeypot */
.hp{ position:absolute; left:-10000px; opacity:0; pointer-events:none; }

/* Small screens */
@media (max-width: 576px){
  .modal__content{ width: min(96vw, 560px); }
  .form__grid{ grid-template-columns: 1fr; }
}

/* Focus visibility */
.modal__close:focus-visible,
.submit-btn:focus-visible,
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible{
  outline: 2px solid #6366f1; outline-offset: 2px;
  border-radius: 12px;
}

/* Lock body scroll while modal open (optional, add class via JS) */
.body--lock{ overflow: hidden; }