:root{
  --orange: #ff8b42;
  --orange-dark: #fd802c;
  --dark: #222;
  --muted: #777;
  --light: #f5f5f5;
  --black: #050505;
  --container: 1120px;
}

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

html{
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding-top: 72px;
  font-family: Montserrat, Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea{
  font: inherit;
}

iframe, video, canvas, svg{
  max-width: 100%;
}

/* Header / mobile menu */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 20px;
  color: #fff;
  background: var(--black);
}

.mark, .nav-logo{
  width: 46px;
}

.menu{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  color: #fff;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.navbar{
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% + 8px);
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: #111;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}

.navbar.open{
  display: flex;
}

.navbar a, .dropbtn{
  display: block;
  width: 100%;
  padding: 13px 12px;
  color: #fff;
  background: none;
  border: 0;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
}

.navbar > a:hover, .dropbtn:hover{
  color: var(--orange-dark);
}

.dropdown{
  position: relative;
}

.dropdown-content{
  display: none;
  padding: 6px 0 6px 12px;
  background: #fff;
  border-radius: 0px;
  box-shadow: 0 4px 8px rgba(0,0,0,.18);
}

.dropdown-content a{
  color: #333;
  padding: 10px 12px;
}

.dropdown-content a:hover{
  color: #333;
  background: #eee;
}

.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content{
  display: block;
}

/* Shared */
.btn{
  display: inline-block;
  margin-top: 26px;
  padding: 13px 25px;
  color: #fff;
  background: var(--orange);
  border: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.ghost{
  background: transparent;
  border: 2px solid #fff;
}

.lead, .panel p{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin-top: 20px;
}

/* Hero */
.hero{
  color: #fff;
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)), url(img/header2.jpg) center / cover no-repeat;
}

.hero-inner{
  display: grid;
  gap: 36px;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 52px 20px;
}

.hero-copy,
.hero-right,
.header-right{
  min-width: 0;
}

.hero-right{
  width: 100%;
}

.header-right{
  display: flex;
  justify-content: center;
  width: 100%;
}

.header-logo{
  width: min(230px, 75vw);
}

.hero h2{
  margin: 22px 0 18px;
  font-size: clamp(25px, 8vw, 40px);
  line-height: 1.18;
  font-weight: 400;
  text-transform: uppercase;
}

.header-line{
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 18px;
  background: #fff;
}

.hero p{
  max-width: 720px;
  margin-top: 24px;
  color: #ddd;
  font-size: 15px;
  line-height: 1.75;
}

.header-right form{
  width: min(100%, 360px);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
}

.header-right form h1{
  padding: 15px 12px;
  color: #474747;
  background: #f5f5f5;
  font-size: 18px;
  text-align: center;
}

.header-right form h1 span{
  color: var(--orange-dark);
}

.header-right form input{
  display: block;
  width: 76%;
  margin: 24px auto;
  padding: 10px 0;
  color: gray;
  border: 0;
  border-bottom: 1px solid lightgray;
  outline: none;
}

.header-right form a{
  display: block;
  padding: 14px 0;
  color: #fff;
  background: var(--orange-dark);
  text-align: center;
}

/* Facebook mobile / narrow in-app browsers: keep the hero form truly centered by
   centering the parent layout, not only the form itself. */
@media (max-width: 699px){
  .hero{
    width: 100%;
    min-height: auto;
    overflow-x: hidden;
  }

  .hero-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 44px 18px;
    gap: 34px;
  }

  .hero-copy,
  .hero-right,
  .header-right{
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    float: none;
  }

  .hero-copy{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .hero-right,
  .header-right{
    text-align: center;
  }

  .header-line{
    margin-left: 0;
    margin-right: auto;
  }

  .hero p{
    max-width: 100%;
  }

  .hero-right{
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header-right{
    display: flex;
    justify-content: center;
  }

  .header-right form{
    width: min(100%, 360px);
    max-width: calc(100vw - 36px);
    margin-left: auto;
    margin-right: auto;
  }

  .tabs-section{
    justify-items: stretch;
  }

  .skyline{
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
  }

  
}

/* Social */
.social{
  display: grid;
  gap: 18px;
  padding: 24px 20px;
  color: #ccc;
  box-shadow: 0 1px 5px rgba(0,0,0,.25);
  border-bottom: 2px solid rgb(184, 184, 184);
}

.social h3{
  color: var(--black);
  font-size: 18px;
}

.social p{
  max-width: 440px;
  color: gray;
  font-size: 14px;
}

.icons{
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
  max-width: 100%;
  color: #c7c7c7;
  font-size: 30px;
}

/* Tabs */
.tabs-section{
  display: grid;
  gap: 30px;
  padding: 64px 20px;
  background: #f4f4f4;
}

.tabs{
  display: flex;
  gap: 8px;
}

.tab{
  flex: 1;
  min-height: 62px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #333;
  font-weight: 700;
  cursor: pointer;
}

.tab.active{
  background: var(--orange);
}

.panel{
  display: none;
}

.panel.active{
  display: block;
  animation: fade .35s;
}

.panel h3{
  margin-bottom: 16px;
  font-size: 20px;
}


.skyline{
  display: none;
  color: #333;
  font-size: 54px;
  text-align: center;
}

.skyline img{
  display: block;
  height: auto;
  margin: 0 auto;
}

.skyline span{
  display: block;
  width: 140px;
  height: 90px;
  margin: auto;
  opacity: .5;
  background: linear-gradient(#ccc, #eee);
  clip-path: polygon(40% 0,60% 0,60% 100%,40% 100%);
}

/* Content sections */
.why, .pricing, .reviews, .contact{
  padding: 64px 20px;
  text-align: center;
}

.pricing{
  background: #f4f4f4;
}
.why h2, .pricing h2, .reviews h2, .contact h2, .cta h2{
  font-weight: normal;
  text-transform: uppercase;
  font-size: 32px;
  font-family: sans-serif;
  margin-bottom: 5px;
}

.why h2:after, .pricing h2:after, .reviews h2:after, .contact h2:after{
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin: 15px auto;
  background: var(--orange);
}

.cards, .plans{
  display: grid;
  gap: 28px;
  margin: 55px auto 0;
}

.cards article{
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.cards{
  width: 100%;
  max-width: 100%;
  align-items: center;
  text-align: center;
}
.card span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  color: #fd802cff;
  border: 2px solid #fd802cff;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}
.card span i{
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0;
  color: inherit;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  line-height: 1;
  font-style: normal;
}
.cards h3{
    margin: 17px 0;
    font-size: 20px;
}
.card p{
    font-size: 14px;
    color: gray;
    padding-right: 10px;
    line-height: 1.6;
}
.cards p{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.plans article{
  width: min(100%, 630px);
  margin: 0 auto;
  background: #fff;
}

.plans h3, .price, .plans em{
  display: block;
  margin: 0;
  color: #fff;
  background: #333;
}

.plans h3{
  padding: 18px;
  border-bottom: 1px solid white;
}

.price{
  padding-top: 20px;
  font-size: 64px;
  font-weight: 700;
  width: 100%;
}

.price small{
  font-size: 24px;
}

.plans em{
  padding: 0 0 20px;
  color: #aaa;
  border-bottom: 5px solid var(--orange);
  font-size: 12px;
}

.plans b{
  display: block;
  padding: 12px;
  color: #fff;
  background: var(--orange);
  font-size: 12px;
  text-transform: uppercase;
}

.plans ul{
  list-style: none;
}

.plans li{
  padding: 12px;
  color: #888;
  border-bottom: 1px solid #eee;
  font-size: 11px;
  text-transform: uppercase;
}
.customers{
  width: 100%;
   margin-top: 50px;
}
.customer{
    width: 100%;
    margin: 30px auto;
}
.customer p{
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 20px;
    font-size: 14px; 
    color: gray;
    font-style: italic;
    position: relative;
    line-height: 1.6;
    text-align: left;
}
.customer > p::after{
    content:"";
    width:25px;
    height: 25px;
    bottom: -12.5px;
    left: 20px;
    background-color: #f5f5f5;
    position: absolute;
    z-index: -1;
    transform: rotate(45deg);

}
.customer-name{
    display: flex;
    margin-top: 30px;
    align-items: center;
}
.customer-name img{
    padding-right: 20px;
}
.customer-name p{
    margin-top: 5px;
    background-color: white;
    padding: 0;
}
.cta{
  padding: 70px 20px;
  color: #fff;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.72)), url(img/bg.jpg) center / cover no-repeat;
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Contact */
.contact form{
  margin: 0 auto;
}

.form-details{
  display: grid;
  gap: 26px;
  margin-bottom: 30px;
  text-align: left;
}

.form-details .details input, .form-msg textarea{
  width: 100%;
  border: 0;
  border-bottom: 1px solid lightgray;
  color: gray;
  outline: none;
  font-size: 16px;
}

.form-details .details input{
  margin-top: 28px;
  padding: 10px 0 8px 10px;
}

.form-msg textarea{
  min-height: 185px;
  padding: 30px 0 135px 10px;
  resize: vertical;
}

.contact button{
  padding: 12px 24px;
  color: #fff;
  background: var(--orange-dark);
  border: 0;
  border-radius: 5px;
  box-shadow: 0 0 5px lightgray;
  cursor: pointer;
  user-select: none;
}
.footer{
    width: 100%;
    padding: 15px 7%;
    text-align: center;
    background-color: black;
}
.footer-icons{
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 30px;
}
.footer-icons a{
   color: white;
   font-size: 22px;
   padding: 0;
}
.footer p{
    margin-top: 10px;
    color: gray;
    font-size: 14px;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Tablet */
@media (min-width: 700px) {
  .topbar{
    padding-inline: 7%;
  }

  .social{
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-inline: 7%;
  }

  .tabs-section, .why, .pricing, .reviews, .contact{
    padding-block: 55px;
    padding-inline: 7%;
  }

  .cards{
    grid-template-columns: repeat(3, 1fr);
  }

  .plans{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .popular{
    transform: translateY(-25px);
  }

  .form-details{
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

/* Desktop */
@media (min-width: 900px) {
  body{
    padding-top: 75px;
  }

  .topbar{
    min-height: 75px;
  }

  .menu{
    display: none;
  }

  .navbar{
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }

  .navbar a, .dropbtn{
    width: auto;
    padding: 20px 10px;
    font-size: 18px;
    text-align: center;
  }
  /* Active page */
.navbar a.active {
    color: #f58220;
}

  .dropdown-content{
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 170px;
    padding: 0;
  }

  .dropdown-content a{
    display: block;
    text-align: left;
  }

 .hero{
    min-height:420px;
    background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),url(img/header2.jpg) center/cover;
    color:#fff;
    width: 100%;
    height: 45vw;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero-inner{
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 33%);
    align-items: center;
    padding: 0 7%;
    grid-gap: 0 30px;
}

  .hero-copy{
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .hero-right,
  .header-right{
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .hero-right{
    display: flex;
    justify-content: center;
  }
  .header-logo{
    width: 310px;
  }

  .tabs-section{
    grid-template-columns: 90px minmax(0, 930px) 1fr;
    align-items: center;
    gap: 55px;
  }

  .tabs{
    flex-direction: column;
  }

  .tab{
    width: 82px;
    height: 82px;
    flex: none;
  }

  .skyline{
    display: block;
  }
  
  .cards{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .card span{
    width: 100px;
    height: 100px;
    font-size: 38px;
  }
.cards h2{
    margin: 17px 0;
    font-size: 18px;
}
.card p{
    font-size: 14px;
    color: gray;
    padding-right: 10px;
    line-height: 1.6;
}
.customers{
   width: 100%;
   display: flex;
   margin-top: 50px;
}
.customer{
    width: 30%;
    margin: 0 auto;
}
}

/* Large desktop */
@media (min-width: 1200px) {
  .hero-inner, .tabs-section, .social{
    max-width: 1920px;
  }

  .hero-inner, .tabs-section, .social{
    margin-inline: auto;
  }
}
.navbar.open {
  display: flex;
}
.dropdown.open .dropdown-content {
  display: block;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #ff7a00;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .3s ease;
  z-index: 9999;
  box-shadow: 0 6px 15px rgba(0,0,0,.25);
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  background: #e56d00;
}
@media (max-width: 699px) {
  #backToTop {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
  .dropdown.open .dropdown-content {
    display: block;
  }
}

/* Mobile: show the Estonia map and keep hero text left aligned. Placed at end so it wins in Facebook in-app browser. */
@media (max-width: 699px) {
  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero-copy .header-line {
    margin-left: 0;
    margin-right: auto;
  }

  .skyline {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    text-align: center;
  }

  .skyline img {
    display: block;
    width: min(100%, 280px);
    height: auto;
    margin: 0 auto;
  }
}
