*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --page-container-width: min(1100px, calc(100% - 32px));
  --color-labels: #BDBDBD; 
  
  --color-light-gray: #F1F1F2;
  --color-white: #fff;
  --color-base: #1a191a;
  --color-footer: #332433;
  --base-font: "Inter", "Segoe UI", sans-serif;
  --regular-font: "Montserrat", var(--base-font);
  --special-font: "TT Travels Next", var(--base-font);


}

body {
  margin: 0;
  font-family: var(--regular-font);
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  color: var(--color-base);
}

h1 {
  font-family: var(--special-font);
  font-size: 1.65rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  font-size: 1rem;
  font-family: inherit;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ff00ef, #2e8ee8) border-box;
  background-origin: padding-box, border-box;
  background-repeat: no-repeat;
  background-size: 100% 100%, 0% 0%;
  transition:
    border-color 0.25s ease-in-out,
    background-size 0.35s ease-in-out;
}

  .input:focus,
  .select:focus,
  .textarea:focus {
    outline: none;
    border-color: transparent;
    background-size: 100% 100%, 100% 100%;
  }

/* Checkbox styles moved to scripts/checkbox.js */

/** Arrow button (< | >) styles */
.arrow-button {
  cursor: pointer;
  opacity: .85;
  width: 22px; 
  height: 22px; 
  background-size: 80%!important;
  transform: translateX(0);
  transition: opacity 0.2s ease-in-out, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

  .arrow-button:hover {
    opacity: .95;
  }

  .arrow-button.left {
    background: url(/images/arrow-left-active.svg) center no-repeat;						
  }

    .arrow-button.left.animated {
      animation: arrowLeftClick 0.3s cubic-bezier(0.55, 0, 0.55, 1);
    }

  .arrow-button.right {
    background: url(/images/arrow-right-active.svg) center no-repeat; 						
  }

    .arrow-button.right.animated {
      animation: arrowRightClick 0.3s cubic-bezier(0.55, 0, 0.55, 1);
    }

    
  @keyframes arrowLeftClick {
    0% {
      transform: translateX(0);
    }
    40% {
      transform: translateX(-5px);
    }
    100% {
      transform: translateX(0);
    }
  }

  @keyframes arrowRightClick {
    0% {
      transform: translateX(0);
    }
    40% {
      transform: translateX(5px);
    }
    100% {
      transform: translateX(0);
    }
  }

.button {
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
  text-align: center;
  font-style: medium;
  display: inline-block;
  padding: .8rem 2.4rem;
  font-size: 18px;
  font-weight: 500;
  background: var(--color-white);
  outline: none;
}

  .button-primary {
    background: linear-gradient(132.22deg, #FF00EF 4.76%, #2E8EE8 100%);
    color: var(--color-white);
    border-color: transparent;
  }

  .button-secondary {
    background: var(--color-white);
    border-color: rgba(0, 0, 0, 0.16);
  }

  .button[disabled] {
    cursor: default;
    box-shadow: none;
    background: linear-gradient(160deg, #e1e1e1 55.76%, #aaa 100%) !important;
    color: #848484 !important;
  }

  .button.small {
    /* background: #fdfdfd;
    border: 1px solid #f3f3f3; */
    padding: .4rem 1.2rem;
    font-size: .9rem;
  }

  .button.active {
    background: 
      linear-gradient(135deg, #fff, #fff) padding-box, 
      linear-gradient(135deg, #FF00EF, #2E8EE8, #FF00EF) border-box; 
    border: 2px solid transparent;
    background-size: 100% 100%, 200% 200%;
    background-position: 0 0, 0 0;
    transition: background-position 1s ease-in-out;
  }

    .button.active:hover {
      background-position: 0% 0%, 100% 100%;
    }

  /** button with background gradient for forms */
  .button.gradient {
    background: linear-gradient(132.22deg, #FF00EF 4.76%, #2E8EE8 100%);
    border: none;
    color: var(--color-white);
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
  }

    .button.gradient[disabled] {
      opacity: 0.5;
      filter: grayscale(0.3);
      cursor: not-allowed;
    }

header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.container {
  width: var(--page-container-width);
  margin: 0 auto;
}

  .container.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
  }

  .container.nav .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.125rem;
  }

  .container.nav .brand .brand-name {
    font-family: var(--special-font);
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
    padding-left: .4rem;
  }  

  .container.nav .action-group {
    display: flex;
    align-items: center;
    gap: 12px;
  }

.hero {
  display: flex;
  gap: 40px;
  padding: 96px 0 80px;
}

  .hero .hero-text {
    font-size: 95px; 
    font-family: var(--special-font);
  }

  .hero .hero-descr {
    font-size: 24px; 
    font-weight: 500;
  }

  .hero .hero-tariffs {
    padding: 2rem 0;
  }

  .hero .hero-laptop {    
    display: block;
    width: 100%;
    background: url(/images/laptop.png) -24px center no-repeat;
    background-size: 187%;
    height: 718px;  
  }

    .hero .hero-laptop > span {
      display: block;
      width: 100%;
      background: url(/images/cabinet-mockup2.png) 104px 94px no-repeat;
      background-size: 125%;
      height: 627px;
      width: 100%;
      position: relative;
      z-index: -1;
    }

.section-header {
  text-align: center;
}

/* Features sections */ 
.features {
  margin-top: 1rem;
  padding: 80px 0;
  background: #fff;
}
  
  .features .feature-grid {
    display: grid;
    gap: 40px;
    margin: 2.42rem 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .feature-card {
    text-align: center;
    background: #f1f5f9;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 500;
    padding: 24px;
    display: grid;
    gap: 10px;
    transition: transform 0.2s ease;
  }  

    .feature-card h3 {
      margin: 0 auto;
      font-size: 24px;
      font-weight: 600;
    }

    .feature-card img {
      margin: 0 auto;
    }
  
  .feature-card:hover {
    transform: translateY(-6px);
  }
  
  .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.18));
    color: #4f46e5;
    font-weight: 700;
  }
  
/* Tariffs sections */ 
.tariffs .tariffs-grid {
    display: grid;
    gap: 20px;
    margin: 2.42rem 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

    .tariffs .tariffs-grid .tariff-card {
      padding: 0 1rem 1.6rem;
      text-align: center;
    }

      .tariffs .tariffs-grid .tariff-card.no-right-padding {
        padding-right: 0;
      }

      .tariffs .tariffs-grid .tariff-card.no-left-padding {
        padding-left: 0;        
      }

      .tariffs .tariffs-grid .tariff-card > .body {
        background: linear-gradient(135deg, #fff, #fff) padding-box, linear-gradient(135deg, #dfdfdf, #dfdfdf) border-box;
      }

      .tariffs .tariffs-grid .tariff-card.active > .body {
        background: linear-gradient(135deg, #fff, #fff) padding-box, linear-gradient(135deg, #FF00EF, #2E8EE8) border-box;
      }    

      .tariffs .tariffs-grid .tariff-card .name {
        margin-bottom: 1rem;
      }

        .tariffs .tariffs-grid .tariff-card .name > div {
          font-family: var(--special-font);
          text-transform: uppercase;
          font-size: 18px;
          font-weight: 600;
        }

        .tariffs .tariffs-grid .tariff-card .name > span {
          text-transform: lowercase;
        }

          .tariffs .tariffs-grid .tariff-card .name > span strong {            
            font-weight: bold;
          }

      .tariffs .tariffs-grid .tariff-card .body {        
        border: 3px solid transparent; 
        border-radius: 5px; 
        padding: 1.4rem 1.2rem 1.6rem;
      }

        .tariffs .tariffs-grid .tariff-card .body > div:not(:last-child)::after {
          display: block;
          content: '';
          height:1px;
          width:100%;
          margin:12px 0;
          background:linear-gradient(90deg,rgba(0, 0, 0, 0),rgb(161, 161, 161),rgba(0, 0, 0, 0));
        }

        /** tarif value */ 
        .tariffs .tariffs-grid .tariff-card .body div {
          font-size: 20px;
          font-weight: 600;
        }

        /** tarif key */ 
        .tariffs .tariffs-grid .tariff-card .body span {       
          font-size: 16px;
          font-weight: 500;
          text-transform: lowercase;
        }

.hero-subtitle {
  font-size: 1.1rem;
  color: #475569;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 360px;
}

.hero-actions small {
  color: #64748b;
  text-align: center;
}

.hero-visual {
  position: relative;  
  overflow: hidden;
}

.hero-demo {
  position: relative;
  display: grid;
  gap: 18px;
  z-index: 1;
}

.metrics {
  display: grid;
  gap: 18px;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.08);
}

.metric strong {
  font-size: 1.4rem;
}


.testimonials {
  padding: 80px 0;
}

.testimonial-grid {
  display: grid;
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 18px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

#connect {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* keep label aligned */
}

#connect-details {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px !important;
  display: flex;
  align-items: flex-start;
  gap: .72em;
  font-size: 0.8rem;
  padding-left: .72rem;
}

footer {
  background: var(--color-footer);
  color: var(--color-white);
  padding: 60px 0;
}

  .footer-grid {
    display: grid;
    gap: 24px;
  }

  .footer-links {
    width: 60%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr) ;
    align-items: center; /* center with logo */
    justify-content: center;
    font-weight: 400;
    gap: .6rem;
    position: relative;
    text-align: center;
  }

  .footer-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: opacity .3s ease-in-out, color .3s ease-in-out;
  }
    
    .footer-link-item a {
      opacity: .8;
      cursor: pointer;
      transition: opacity .3s ease-in-out, color .3s ease-in-out;
    }

      .footer-link-item a:hover {
        opacity: 1;
      }

      .footer-link-item a:active {
        color: var(--color-footer);
      }

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 72px 0 64px;
  }

  .hero .left {
    width: 100% !important;
  }

  .hero .hero-text {
    font-size: clamp(3rem, 8vw, 4.5rem) !important;
  }

  .hero .hero-descr {
    font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
    display: inline-block;
  }

  .hero .right {
    width: 100% !important;
  }

  .hero .hero-laptop {
    height: 520px !important;
    background-position: center !important;
    background-size: contain !important;
  }

    .hero .hero-laptop > span {
      background-position: center 90px !important;
      background-size: 120% !important;
      height: 460px !important;
    }

  .features .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tariffs .tariffs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tariffs .tariffs-grid .tariff-card {
    padding: 0 0.5rem 1.6rem;
  }

  .why .container > div {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .why .container > div > div {
    margin: 0 !important;
    text-align: left !important;
    padding: 1.8rem 0 !important;
  }

  .footer-links {
    width: 78%;
  }
}

@media (max-width: 768px) {
  header {
    position: relative;
  }

  .container {
    width: min(100%, calc(100% - 24px));
  }

  .container.nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .action-group {
    width: 100%;
    justify-content: flex-end;
  }

  .hero {
    padding: 56px 0;
  }
  
    .hero .left {
      width: 100% !important;
    }

    .hero .right {
      display: none;
    }

  .hero .hero-text {
    font-size: clamp(2.75rem, 10vw, 3.75rem) !important;
  }

  .hero .hero-descr {
    font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
  }

  .hero .hero-laptop {
    height: 440px !important;
  }

  .hero .hero-laptop > span {
    height: 380px !important;
    background-size: 110% !important;
    background-position: center 70px !important;
  }

  .features {
    padding: 60px 0;
  }

  .features .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .feature-card {
    font-size: 16px;
  }

  .tariffs {
    padding: 60px 0;
  }

  .tariffs .tariffs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tariffs .tariffs-grid .tariff-card {
    padding: 0 1rem 1.6rem;
  }

  .tariffs .tariffs-grid .tariff-card .body div {
    font-size: 18px;
  }

  .tariffs .tariffs-grid .tariff-card .body span {
    font-size: 14px;
  }

  .why .container {
    background: none !important;
  }

  .why .container > div {
    gap: 16px !important;
  }

  .why .container > div > div {
    padding: 1.5rem 0 !important;
  }

  .whom .container > div {
    font-size: 20px !important;
  }

  footer {
    padding: 48px 0;
  }

    footer .footer-links {
      width: 76%;
    }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .container.nav {
    align-items: center;
  }

    .container.nav .brand .brand-name {
      display: none;
    }

    .container.nav .action-group {
      width: auto;
      justify-content: flex-start;
    }

  .hero {
    padding: 48px 0;
    gap: 32px;
    text-align: center;
  }

    .hero .hero-text {
      font-size: clamp(2.2rem, 12vw, 3rem) !important;
    }

    .hero .hero-descr {
      font-size: clamp(1rem, 5vw, 1.2rem) !important;
    }

  .hero .right {
    display: none;
  }

  .features {
    padding: 48px 0;
  }

  .features .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .tariffs {
    padding: 48px 0;
  }

  .tariffs .tariffs-grid .tariff-card .body {
    padding: 1.2rem 1rem 1.4rem;
  }

  .tariffs .tariffs-grid .tariff-card .body div {
    font-size: 16px;
  }

  .tariffs .tariffs-grid .tariff-card .body span {
    font-size: 13px;
  }

  .whom .container > div {
    font-size: 18px !important;
  }

  footer {
    padding: 40px 0;
  }

    footer .footer-links {
      width: 76%;
      grid-template-columns: repeat(2, 1fr);
      align-items: baseline;
      justify-content: center;
      gap: .9rem;
      text-align: left;
      row-gap: .28rem;
    }

    footer .footer-links .footer-link-item {
      display: flex;
      flex-direction: column;
      align-items: unset;
      position: relative;
    }

      footer .footer-links .footer-link-item #connect-details
      {
        margin-top: 4px!important;
        gap: .72em;
        padding-left: .1rem;
      }
}

/* 
@media (min-width: 600px) {
  .nav-links {
    display: flex;
  }

  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .hero-actions small {
    text-align: left;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tariffs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .nav-links {
    gap: 32px;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-actions {
    gap: 16px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tariffs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }
}
 */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  z-index: 900;
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 910;
}

.modal__dialog {
  position: relative;
  max-width: 480px;
  min-width: 400px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 920;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.modal__title {
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0;
}

.modal__description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

.wizard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wizard__viewport {
  overflow: hidden;
}

.wizard__track {
  display: flex;
  width: 100%;
  transition: transform 0.3s ease-in-out;
}

.wizard__track.is-instant {
  transition: none;
}

.wizard__step {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wizard__step-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
}

.wizard__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wizard__label {
  font-size: 0.9rem;
  font-weight: 500;
}

.wizard__controls {
  display: flex;
  gap: .32rem;
  justify-content: flex-end;
  flex-flow: column;
  padding: 0 0.3rem 0;
}

.wizard__note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.72);
}

.wizard__field { 
  margin: .3rem 0
}

  .wizard__field ul.wizard__agreements {
    margin: 0;
    padding: 0 .3rem;
    display: grid;
    gap: .88rem;
    font-size: 0.85rem;
    list-style: none;
  }

/* Error message styles */
#phoneError {
  min-height: 1.5rem;
  padding: 0.75rem 1rem;
  background: #fee2e2;
  border: 1px solid #fca5a5;  
  color: #ce1111;
  font-size: 0.9rem;
  text-align: center;
  transition: opacity 0.2s ease-in-out;
  border-left: 6px solid #ce1111;
}

/* Error message styles */
#phoneError:empty {
  display: none;
}