﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:    #1e2152;
  --bgf:   #44466f;
  --bg2:   #161944;
  --bg2f:   rgb(22, 25, 68, 0.7);
  --bg3:   #272b62;
  --pink:  #ff4cff;
  --pink2: #f0338a;
  --white: #ffffff;
  --gray:  #9aa3bf;
  --max-w: 1200px;
  --pad:   14px;
}

html, body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--white);
  display: flex;
  flex-direction: column;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.5;
  font-weight: 500;
}

/* ═══════════════ LAYOUT WRAPPER ═══════════════ */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ═══════════════ HEADER ═══════════════ */
header {
  background: var(--bgf);
  border-bottom: 1px solid rgba(255,255,255,.30);
  flex-shrink: 0;
  z-index: 10;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 8px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link svg, .logo-link img { height: clamp(24px, 3.5vw, 44px); width: auto; }

@media (min-width: 500px) {
  header .wrap {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .logo-link { margin-right: 0; }
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-btn {
  background: none; border: none;
  color: var(--white);
  font-size: clamp(12px, 1.1vw, 15px); font-weight: 700;
  cursor: pointer;
  padding: 3px 5px; border-radius: 3px;
  letter-spacing: .3px;
  transition: color .2s;
}
.lang-btn:hover { color: var(--pink); }

.btn-gallery {
  background: none; border: none;
  color: var(--white);
  font-size: clamp(12px, 1.1vw, 15px); font-weight: 700;
  cursor: pointer;
  padding: 3px 5px; border-radius: 3px;
  letter-spacing: .3px;
  transition: color .2s;
}
.btn-gallery:hover { color: var(--pink); }

.icon-btn {
  background: none; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 3px 5px;
  transition: color .2s; 
}
/* .icon-btn:hover { color: var(--pink); } */
.icon-btn img { width: clamp(12px, 1.6vw, 24px); height: auto; color: var(--white); }
.icon-btn:hover img { filter: invert(13%) sepia(77%) saturate(2879%) hue-rotate(306deg) brightness(101%) contrast(101%); }

/* ═══════════════ MAIN ═══════════════ */
main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── ABOUT ── */
.about {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.about .wrap { padding-top: clamp(8px, 1.2vw, 18px); padding-bottom: clamp(8px, 1.2vw, 18px); }
.about p { color: var(--gray); font-size: clamp(12px, 1.1vw, 15px); }
.about h1 { color: var(--gray); font-size: clamp(12px, 1.1vw, 15px); font-weight: normal; }
.about h2 { color: var(--gray); font-size: clamp(12px, 1.1vw, 15px); font-weight: normal; }
.about p + p { margin-top: 3px; }

/* ── SERVICES ── */
.services {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.services .wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: clamp(8px, 1.2vw, 18px);
  padding-bottom: clamp(8px, 1.2vw, 18px);
}
.services-card {
  flex: 1;
  min-height: 0;
  background: var(--bgf);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  padding: clamp(8px, 1.2vw, 18px);
  display: flex;
  flex-direction: column;
}
.services-title {
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--pink);
  text-align: left;
  flex-shrink: 0;
  margin-bottom: clamp(6px, 0.8vw, 14px);
}

/* 5-icon grid: 2 top | 1 wide center | 2 bottom */
.icons-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1.5fr 1fr;
  gap: clamp(6px, 0.8vw, 16px);
}
.svc-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: background .2s, border-color .2s, transform .15s;
  overflow: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.svc-btn:hover, .svc-btn:active, .svc-btn.hover-active {
  background: rgba(232,24,110,.12);
  border-color: rgba(232,24,110,.4);
  transform: scale(1.03);
}
.svc-btn img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
  margin: auto;
}
/* center icon spans both columns */
.svc-btn--wide { grid-column: 1 / -1; }

/* ── CONTACT ── */
.contact-section {
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.contact-section .wrap {
  display: flex;
  justify-content: space-between;
  padding-top: clamp(8px, 1.2vw, 18px);
  padding-bottom: clamp(8px, 1.2vw, 18px);
  gap: clamp(12px, 1.5vw, 24px);
}
.contact-block .contact-label {
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 3px;
}
.contact-block p {
  /* color: var(--gray); */
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1.65;
  color: var(--gray);
}
.contact-block a { color: var(--white); text-decoration: none; }
.contact-block a:hover { color: var(--pink); }
.kontaktai-block { text-align: left; }
.rekvizitai-block { text-align: left; }

/* ═══════════════ PRIVACY POLICY POPUP ═══════════════ */
.privacy-popup {
  position: fixed;
  background: var(--bg3);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  z-index: 600;
  width: min(480px, 92vw);
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,.8);
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
  transition: opacity .2s ease-out, transform .2s ease-out;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}
.privacy-popup.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.privacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.privacy-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pink);
}
.privacy-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.privacy-close:hover { color: var(--white); }

.privacy-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}
.privacy-body p, .privacy-body li {
  color: var(--gray);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 12px 0;
}
.privacy-body ul {
  padding-left: 20px;
  margin: 0 0 12px 0;
}
.privacy-body li { margin-bottom: 6px; }

.privacy-footer {
  display: flex;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
  flex-shrink: 0;
  background: var(--bg2);
  text-align: center;
  color: var(--gray);
  font-size: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
footer .wrap {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* ═══════════════ SERVICE POPUP (floating card) ═══════════════ */
.popup-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.popup-backdrop.open { display: block; }

@media (min-width: 769px) {
  .popup-backdrop.open { pointer-events: none; }
}
@media (max-width: 768px) {
  .popup-backdrop.open { pointer-events: none; }
}

.popup {
  position: fixed;
  background: var(--bg3);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  padding: 12px 14px 14px;
  z-index: 201;
  width: 240px;
  max-height: 55dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 36px rgba(0,0,0,.7);
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .15s ease-out, transform .15s ease-out, visibility 0s .15s;
}
.popup.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: none;
  visibility: visible;
  transition: opacity .15s ease-out, transform .15s ease-out, visibility 0s;
}

.popup-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--pink);
  flex-shrink: 0;
  margin-bottom: 10px;
}
.popup-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}
.popup-category + .popup-category { margin-top: 14px; }
.popup-cat-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 6px;
}
.popup-list {
  list-style: none;
  padding-left: 2px;
}
.popup-list li {
  color: var(--gray);
  font-size: 13px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

/* ═══════════════ GALLERY OVERLAY ═══════════════ */
.gallery-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  flex-direction: column;
}
.gallery-overlay.open { display: flex; }

.gallery-overlay-header {
  background: var(--bg2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.gallery-overlay-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
}
.gallery-overlay-close {
  background: none; border: none;
  color: var(--white);
  font-size: 26px; line-height: 1;
  cursor: pointer; padding: 0 4px;
  color: var(--gray);
}
.gallery-scroll {
  flex: 1; overflow-y: auto; padding: 12px;
  -webkit-overflow-scrolling: touch;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 500px) { 
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }

.gallery-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
  will-change: transform;
}
.gallery-item:hover img { transform: scale(1.06); }

@media (min-width: 600px) {
  .gallery-item img { object-position: center; }
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90dvh; border-radius: 6px; object-fit: contain; }
.lightbox-close {
  position: fixed; top: 14px; right: 16px;
  background: none; border: none;
  color: var(--white); font-size: 34px; line-height: 1;
  cursor: pointer;
  z-index: 401;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.lightbox-close.open { opacity: 1; pointer-events: auto; }

/* ═══════════════ LIGHTBOX NAV ARROWS ═══════════════ */
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  left: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  width: 44px; height: 56px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, opacity .2s;
  padding: 0;
  user-select: none;
  z-index: 401;
  opacity: 0;
  pointer-events: none;
}
.lightbox-prev.open, .lightbox-next.open { opacity: 1; pointer-events: auto; }
.lightbox-next { left: auto; right: 10px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-prev:disabled, .lightbox-next:disabled { opacity: .2; pointer-events: none; }

/* ═══════════════ SMALL DESKTOP (769px - 1366px) ═══════════════ */
@media (min-width: 769px) and (max-width: 1366px) {
  body { font-size: 12px; }

  :root { --pad: 20px; }

  header .wrap {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .logo-link { margin-right: 0; }
  .logo-link svg, .logo-link img { height: 36px; }

  nav { gap: 16px; }
  .btn-gallery { padding: 5px 12px; }
  .lang-btn { padding: 4px 6px; }

  .about .wrap { padding-top: 16px; padding-bottom: 16px; }
  .about p { font-size: 12px; }

   .services .wrap { padding-top: 16px; padding-bottom: 16px; }
   .services-card { padding: 16px; }
   .services-title { font-size: 13px; margin-bottom: 10px; }

  .icons-grid {
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "a c d"
      "b c e";
    gap: 16px;
  }
  .svc-btn:nth-child(1) { grid-area: a; }
  .svc-btn:nth-child(2) { grid-area: b; }
  .svc-btn--wide        { grid-area: c; grid-column: auto; }
  .svc-btn:nth-child(4) { grid-area: d; }
  .svc-btn:nth-child(5) { grid-area: e; }

  .contact-section .wrap {
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 18px;
  }
  .contact-label { font-size: 11px; }
  .contact-block p { font-size: 11px; }

  footer .wrap {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 12px;
  }

  .popup-backdrop { pointer-events: none; }
}

/* ═══════════════ LARGE DESKTOP (1367px+) ═══════════════ */
@media (min-width: 1367px) {
  body { font-size: 14px; }

  :root { --pad: 24px; }

  header .wrap {
    padding-top: 13px;
    padding-bottom: 13px;
  }
  .logo-link { margin-right: 0; }
  .logo-link svg, .logo-link img { height: 44px; }

  nav { gap: 20px; }
  .btn-gallery { padding: 5px 12px; }
  .lang-btn { padding: 5px 8px; }

  .about .wrap { padding-top: 20px; padding-bottom: 20px; }
  .about p { font-size: 14px; }

   .services .wrap { padding-top: 20px; padding-bottom: 20px; }
   .services-card { padding: 20px; }
   .services-title { font-size: 15px; margin-bottom: 12px; }

  .icons-grid {
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "a c d"
      "b c e";
    gap: 20px;
  }
  .svc-btn:nth-child(1) { grid-area: a; }
  .svc-btn:nth-child(2) { grid-area: b; }
  .svc-btn--wide        { grid-area: c; grid-column: auto; }
  .svc-btn:nth-child(4) { grid-area: d; }
  .svc-btn:nth-child(5) { grid-area: e; }

  .contact-section .wrap {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 24px;
  }
  .contact-label { font-size: 15px; }
  .contact-block p { font-size: 15px; }

  footer .wrap {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
  }

  .popup-backdrop { pointer-events: none; }
}

/* ═══════════════ LANDSCAPE MODE ═══════════════ */
@media (orientation: landscape) {
  .wrap {
    max-width: min(130vh, var(--max-w));
  }
  .logo-link svg, .logo-link img { height: clamp(25px, 3.5vh, 44px); }
  body { font-size: clamp(13px, 1.2vh, 16px); }
  .btn-gallery { font-size: clamp(12px, 1.3vh, 15px); }
  .lang-btn { font-size: clamp(12px, 1.3vh, 15px); }
  .about .wrap { padding-top: clamp(10px, 1.5vh, 22px); padding-bottom: clamp(10px, 1.5vh, 22px); }
  .about p { font-size: clamp(12px, 1.5vh, 16px); }
  .services .wrap { padding-top: clamp(10px, 1.5vh, 22px); padding-bottom: clamp(10px, 1.5vh, 22px); }
  .services-card { padding: clamp(10px, 1.5vh, 22px); }
  .services-title { font-size: clamp(13px, 1.8vh, 22px); margin-bottom: clamp(8px, 1vh, 16px); }
  .icons-grid { gap: clamp(10px, 1.5vh, 28px); }
  .contact-section .wrap { padding-top: clamp(10px, 1.5vh, 22px); padding-bottom: clamp(10px, 1.5vh, 22px); gap: clamp(14px, 2vh, 35px); }
  .contact-label { font-size: clamp(10px, 1vh, 14px); }
  .contact-block p { font-size: clamp(11px, 1.5vh, 15px); }
}

/* Remove tap highlight on all interactive elements */
button, .lang-btn, .btn-gallery, .privacy-close, .gallery-overlay-close, .lightbox-close, .lightbox-prev, .lightbox-next {
  -webkit-tap-highlight-color: transparent;
}
