:root {
  --color-primary: #0b1f3b;
  --color-secondary: #14b8a6;
  --color-span: #22d3ee;
  --color-accent: #2563eb;
  --color-background: #f3f4f6;
  --color-dark-bg: #0f172a;
  --color-dark: #111827;
  --color-light: #ffffff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}
/*body*/
html {
  scroll-behavior: smooth;
}
body {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background-image: url(pics/bg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/*nav*/
.burger {
  padding: 0px 30px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.burger .line {
  width: 35px;
  height: 5px;
  background: var(--color-span);
}
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.logo a {
  padding: 30px;
  font-size: 14px;
  color: var(--color-accent);
  text-decoration: none;
}
.nav-links {
  border-radius: 16px;
  transition: 0.25s ease;
  background-color: var(--color-dark);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  flex-direction: column;
  position: absolute;
  top: 10px;
  right: 0;
  height: 350px;
  width: 250px;
  padding: 40px 00px;
  letter-spacing: 1px;
  align-items: center;
  gap: 28px;
}
.close {
  font-weight: 900;
  color: var(--color-secondary);
  padding: 0px 10px;
  top: 0;
  right: 10px;
  position: absolute;
}
.nav-links a {
  font-weight: 700;
  align-items: center;
  color: var(--color-background);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links.active {
  display: flex;
  flex-direction: column;
}
.langbtn {
  margin-top: 10px;
  border: none;
  padding: 10px;
  border-radius: 8px;
  background-color: transparent;
  color: var(--color-span);
  font-weight: 900;
  cursor: pointer;
  margin-left: 25px;
  margin-right: 25px;
}
.social {
  padding: 20px;
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.insta,
.fb,
.gmail {
  width: 30px;
}
.insta {
  fill: #ff0069;
}
.fb {
  fill: #0866ff;
}
.gmail {
  fill: #ea4335;
}
/*hero*/
.hero-cont {
  max-width: 800px;
  justify-self: center;
  align-items: center;
  text-align: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-cont img {
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-title {
  margin-top: 25px;
  padding: 5px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: white;
}
.hero-span {
  color: #22d3ee;
}
.hero-subtxt {
  padding: 20px;
  margin-top: 15px;
  font-size: 15px;
  color: #cbd5f5;
  line-height: 1.5;
}
.hero button {
  margin-top: 35px;
  background-color: var(--color-accent);
  color: var(--color-text-light);
  border-radius: 8px;
  font-size: 14px;
}
.hero-cta a {
  text-decoration: none;
  border-radius: 8px;
  background-color: var(--color-text-light);
  padding: 15px 20px;
  margin-top: 35px;
}
.hero-cta {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta-btn {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  color: white;
}
.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}
.hero-trust {
  margin-top: 30px;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/*Lahendused*/

.lahendused-cont {
  padding-top: 200px;
}
.lahendused-title {
  color: var(--color-light);
  text-align: center;
  letter-spacing: 1px;
  font-size: 2rem;
}
.lahendused-kaart-grid {
  gap: 20px;
  margin-top: 50px;
  justify-self: center;
  justify-items: center;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}
.lahendused-kaart {
  background: rgba(50, 101, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid gold;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  width: 320px;
  padding: 30px;
}
.lahendused-kaart hr {
  background-color: gold;
  height: 3px;
  border: none;
}
.lahendused-kaart ul {
  list-style-type: none;
  margin-top: 20px;
}
.lahendused-kaart ul li {
  letter-spacing: 1px;
  color: var(--color-light);
  gap: 10px;
  align-items: center;
  display: flex;
}
.lahendused-sub {
  margin: 25px 0px;
  color: var(--color-light);
  letter-spacing: 1px;
  font-weight: 500;
}
.title-svg {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  color: var(--color-light);
}
.title-svg svg {
  width: 30px;
}
.lahendused-kaart ul li svg {
  width: 25px;
  color: gold;
}

/*Lisa lahendused*/
.lisa-cont {
  margin-top: 8rem;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.lisa-cont-cont {
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lisa-cont h2 {
  text-align: center;
  color: white;
  margin-bottom: 4rem;
  font-size: 2rem;
}

/* GRID */
.lisa-kaart-cont {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
  justify-content: center;
  gap: 50px;
  width: 100%;
}

/* CARD */
.lisa-kaart {
  position: relative;
  padding-bottom: 1rem;
}

.lisa-kaart::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin-top: 1rem;
  background: linear-gradient(90deg, #00d4ff, transparent);
}

.lisa-kaart h3 {
  color: #00d4ff;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
}

.lisa-kaart ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lisa-kaart li {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

.lisa-kaart li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #00d4ff;
}

/*slider*/

.projektid {
  padding: 0px 0;
}
.projekti-grid {
  width: 100%;
  margin: auto;
  display: grid;
  gap: 30px;
  height: 100%;
  overflow: hidden;
}

.slider-js {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 220px;
}

.swiper-slide {
  aspect-ratio: 16 / 7;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  color: var(--color-light);
  position: relative;
}

.swiper-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  transition: transform 0.5s ease;
}

.swiper-slide:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
  color: white;
}
.overlay h3 {
  text-align: center;
  margin: 0;
  font-size: 28px;
}

.overlay p {
  text-align: center;
  margin: 6px 0;
  opacity: 0.8;
  font-weight: 700;
}

.overlay span {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.9;
}

/*ValiMeid*/
.valimeid {
  margin-top: 8rem;
}
.valimeid h2 {
  text-align: center;
  color: var(--color-light);
}
.valimeid-wrapper {
  justify-content: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(auto, 1fr));
  gap: 20px;
  list-style: none;
  padding: 40px;
  text-align: left;
}
.valimeid-kaardid {
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 25px 20px;
  border-radius: 15px;
  gap: 12px;
  align-items: start;
}
.sisu {
  color: var(--color-light);
  display: flex;
  flex-direction: column;
  font-weight: 300;
  gap: 4px;
}
.sisu p {
  letter-spacing: 1px;
  line-height: 1.8;
}
.sisu h3 {
  padding: 5px 0px;
  color: var(--color-light);
}
svg {
  width: 50px;
  height: 50px;
  color: var(--color-secondary);
}

/*Protsess*/
.protsess {
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 0px;
  border-radius: 20px;
}
.protsess h2 {
  text-align: center;
  color: var(--color-light);
}
.protsess-wrapper {
  color: var(--color-light);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 40px;
}
.protsess-kaardid {
  width: 100%;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: 0.25s ease;
  background: rgba(50, 101, 255, 0.112);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.protsess-kaardid h3 {
  padding: 10px 0px;
  letter-spacing: 1px;
}
.protsess-kaardid p {
  letter-spacing: 1.2px;
}
.protsess-kaardid:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}
.protsess-ikoon svg {
  color: var(--color-secondary);
}
.number {
  color: var(--color-background);
  font-size: 25px;
  font-weight: 900;
}

/*Ankeet ja selle osad*/
.form-wrapper {
  max-width: 1100px;
  gap: 25px;
  display: flex;
  flex-direction: column;
  margin: auto;
}
.ankeet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ankeet textarea {
  grid-column: span 2;
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  font-size: 15px;
  transition: all 0.25s ease;
  outline: none;
}
.ankeet input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  font-size: 15px;
  transition: all 0.25s ease;
  outline: none;
}
.ankeet label:has(textarea) {
  grid-column: span 2;
}
.ankeet-logo {
  display: none;
}
.ankeet input:focus,
.ankeet textarea:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.ankeet input::placeholder,
.ankeet textarea::placeholder {
  color: #9ca3af;
}
.ankeet button {
  grid-column: span 2;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #6366f1;
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ankeet button:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.vasak {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.vasak h3,
.vasak p {
  text-align: center;
  color: var(--color-light);
}
.form-kaardid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  column-gap: 50px;
}
.form-ikoonid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.form-kaardid svg {
  font-size: 22px;
  margin-top: 25px;
  width: 60px;
  height: 60px;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  border-radius: 50%;
  transition: 0.25s;
  color: var(--color-secondary);
}
.vastus p {
  padding: 10px 0px;
  letter-spacing: 1.2px;
}
.parem {
  width: 100%;
  background: rgba(50, 101, 255, 0.112);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/*footer*/
.footer-cont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0px 30px;
  margin-top: 50px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  color: var(--color-light);
  background: rgba(50, 101, 255, 0.314);
}
.footer-vasak h3 {
  color: var(--color-secondary);
  padding: 10px 30px;
}
.footer-vasak p {
  letter-spacing: 1px;
}
.footer-parem {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  padding: 20px;
}
.lingi-div {
  margin-bottom: 25px;
}
.lingi-div h4 {
  font-weight: 700;
  color: var(--color-secondary);
}
.lingi-div ul {
  line-height: 1.3;
  margin-top: 10px;
  list-style-type: none;
}
.lingi-div ul li a {
  color: var(--color-light);
  text-decoration: none;
  font-size: 18px;
}
.lingi-div ul li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-secondary);
}
.info-div {
  margin-bottom: 25px;
}
.info-div h4 {
  color: var(--color-secondary);
  font-weight: 700;
}
.info-div ul {
  line-height: 1.3;
  margin-top: 10px;
  list-style-type: none;
}
.info-div ul li a {
  overflow-wrap: anywhere;
  line-height: 1.5;
  color: var(--color-light);
  text-decoration: none;
  font-size: 18px;
}
.info-div ul li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-secondary);
}

.sots-div {
  margin-bottom: 25px;
}
.sots-div h4 {
  color: var(--color-secondary);
  font-weight: 700;
}
.sots-div ul {
  line-height: 1.3;
  margin-top: 10px;
  list-style-type: none;
}
.sots-div ul li a {
  overflow-wrap: anywhere;
  line-height: 1.5;
  color: var(--color-light);
  text-decoration: none;
  font-size: 18px;
}
.sots-div ul li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-secondary);
}
.kontakt-div h4 {
  color: var(--color-secondary);
  font-weight: 700;
}
.kontakt-div ul {
  line-height: 1.3;
  margin-top: 10px;
  list-style-type: none;
}
.kontakt-div ul li a {
  color: var(--color-light);
  text-decoration: none;
  font-size: 18px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.kontakt-div ul li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-secondary);
}
.footer-sub {
  text-align: center;
  color: var(--color-secondary);
  width: 100%;
  grid-column: span 2;
  font-weight: 500;
  font-size: 18px;
}

/*cookie,priv,terms*/
.cookie {
  z-index: 1000;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.6);
  padding-top: 20px;
}

.box {
  background: white;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;

  border-radius: 10px;
  padding: 20px;
}
.box h2 {
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 22px;
}
.box p {
  margin-top: 15px;
}
.nupud {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

button {
  padding: 10px 14px;
  border: none;
  cursor: pointer;
}

#privacyAccept,
#termsAccept,
#privacyReject,
#termsReject {
  width: 100%;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  transition: 0.25s;
}

#accept,
#privacyAccept,
#termsAccept {
  background: black;
  color: white;
}
#reject,
#privacyReject,
#termsReject {
  background: #ddd;
}
#custom {
  background: #eee;
}
.hidden {
  display: none;
}

.vajalik {
  color: green;
}
.valikuline.active {
  color: green;
}

#customText.open {
  max-height: 500px;
}
.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.6);
  padding-top: 20px;
}
.modal.active {
  display: flex;
}

.message-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 9998;
}

.message-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: #111827;
  border: 2px solid #28a745;
  border-radius: 10px;
  padding: 25px;
  text-align: center;

  max-width: 500px;
  width: 90%;

  display: none;
  z-index: 9999;
}
#messageText {
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--color-light);
}

.message-box.error {
  border-color: #dc3545;
}

.back-btn {
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

@media (min-width: 500px) {
  .footer-parem {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 20px;
  }
}

@media (min-width: 768px) {
  .form-ikoonid {
    flex-direction: row;
  }
  .slider {
    width: 100%;
    height: 350px;
  }

  .swiper-slide {
    aspect-ratio: 16 / 7;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    color: var(--color-light);
    position: relative;
  }
}

@media (min-width: 800px) {
  .burger {
    display: none;
  }
  .close,
  .social {
    display: none;
  }
  .nav-links {
    background-color: rgba(255, 255, 255, 0);
    border: none;
    height: 0px;
    border-radius: 16px;
    z-index: 999;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 20px;
    width: 0px;
    letter-spacing: 1px;
    align-items: center;
    gap: 28px;
  }
  .nav-links a:hover {
    text-decoration: underline;
  }
}

@media (min-width: 1024px) {
  .slider {
    margin: 20px auto;
    width: 50%;
    height: 100%;
  }
}

@media (max-width: 768px) {
  .ankeet {
    max-width: 1100px;
    grid-template-columns: 1fr;
  }
  .ankeet textarea,
  .ankeet button {
    grid-column: span 1;
  }
}
