:root {
  --navy: #1a3052;
  --navy-dark: #111f36;
  --navy-light: #223d63;
  --green: #5cb840;
  --green-dark: #4a9a32;
  --green-light: #6ed050;
  --white: #ffffff;
  --off-white: #f4f7f2;
  --grey-light: #e8ecee;
  --grey: #8a9aaa;
  --text: #2c3e50;
  --text-light: #5a6a7a;
  --shadow: 0 4px 24px rgba(26, 48, 82, 0.10);
  --shadow-hover: 0 8px 36px rgba(26, 48, 82, 0.18);
  --radius: 8px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

/* ─── NAV ─────────────────────────────────────────────── */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navy);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 150px;
}

.nav-logo img {
  height: 130px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(92, 184, 64, 0.18);
  color: var(--green-light);
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-phone {
  color: var(--green-light);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.nav-phone:hover {
  color: var(--white);
}

.nav-phone svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ────────────────────────────────────────────── */

#hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: var(--green);
}

.hero-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.badge {
  background: rgba(92, 184, 64, 0.15);
  border: 1px solid rgba(92, 184, 64, 0.35);
  color: var(--green-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92,184,64,0.35);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}

.btn-outline:hover {
  border-color: var(--green);
  background: rgba(92,184,64,0.1);
}

.hero-image-area {
  position: relative;
}

.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.06);
  border: 2px dashed rgba(92,184,64,0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

.hero-img-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: rgba(92,184,64,0.5);
  fill: none;
}

.hero-stats {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  gap: 32px;
  box-shadow: var(--shadow-hover);
  white-space: nowrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ─── SECTIONS ────────────────────────────────────────── */

section {
  padding: 100px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background: rgba(92,184,64,0.12);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 56px;
}

/* ─── ABOUT ───────────────────────────────────────────── */

#apie {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.img-placeholder {
  background: var(--grey-light);
  border: 2px dashed var(--grey);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--grey);
  font-size: 0.82rem;
  text-align: center;
  padding: 12px;
}

.img-placeholder svg {
  width: 36px;
  height: 36px;
  stroke: var(--grey);
  fill: none;
  stroke-width: 1.5;
}

.img-placeholder.tall {
  grid-row: span 2;
}

.img-placeholder.aspect-sq { aspect-ratio: 1/1; }
.img-placeholder.aspect-land { aspect-ratio: 4/3; }

.hero-img-placeholder.has-image,
.img-placeholder.has-image,
.gallery-placeholder.has-image {
  border: none;
  background: none;
  padding: 0;
  overflow: hidden;
}
.hero-img-placeholder.has-image img,
.img-placeholder.has-image img,
.gallery-placeholder.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.about-text h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: rgba(92,184,64,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green-dark);
  fill: none;
  stroke-width: 2;
}

.highlight-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.highlight-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

/* ─── SERVICES ────────────────────────────────────────── */

#paslaugos {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(92,184,64,0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.new-service {
  background: linear-gradient(135deg, #f0faea 0%, #f4f7f2 100%);
  border-color: rgba(92,184,64,0.25);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.8;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

.new-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--green);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 12px;
  text-transform: uppercase;
}

/* ─── GALLERY ─────────────────────────────────────────── */

#galerija {
  background: var(--off-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--grey-light);
  border: 2px dashed var(--grey);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--grey);
  font-size: 0.82rem;
  text-align: center;
  padding: 16px;
  transition: border-color var(--transition);
}

.gallery-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--grey);
  fill: none;
  stroke-width: 1.5;
}

.gallery-item:first-child .gallery-placeholder {
  min-height: 420px;
}

/* ─── CERTIFICATES ────────────────────────────────────── */

#sertifikatai {
  background: var(--navy);
}

#sertifikatai .section-tag {
  background: rgba(92,184,64,0.2);
  color: var(--green-light);
}

#sertifikatai .section-title {
  color: var(--white);
}

#sertifikatai .section-subtitle {
  color: rgba(255,255,255,0.65);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.cert-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: background var(--transition), border-color var(--transition);
  text-align: center;
}

.cert-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(92,184,64,0.4);
}

.cert-img-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}

.cert-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: rgba(92,184,64,0.5);
  fill: none;
  stroke-width: 1.5;
}

.cert-card h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

.cert-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}

.certs-grid--single {
  grid-template-columns: 1fr;
}

.cert-card--single {
  width: 100%;
  max-width: none;
  padding: 32px;
  gap: 24px;
}

.cert-card--single .cert-img-wrap {
  aspect-ratio: auto;
  max-width: 720px;
  background: #fff;
  padding: 16px;
}

.cert-card--single .cert-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 900px;
  object-fit: contain;
}

.cert-card--single h4 {
  font-size: 1.15rem;
}

.cert-card--single p {
  font-size: 0.95rem;
}

/* ─── CONTACT ─────────────────────────────────────────── */

#kontaktai {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
}

.contact-item h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--green-dark);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(92,184,64,0.15);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-consent {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-consent input[type="checkbox"] {
  margin-top: 3px;
  min-width: 16px;
  accent-color: var(--green);
}

.form-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: inherit;
}

.form-submit:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--green-dark);
  font-weight: 600;
}

/* ─── FOOTER ──────────────────────────────────────────── */

footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.55);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 130px;
  width: auto;
  opacity: 0.85;
}

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

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--green-light);
}

.footer-copy {
  font-size: 0.82rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--green-light);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-area { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-images { grid-template-columns: repeat(3, 1fr); }
  .img-placeholder.tall { grid-row: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery-item:first-child .gallery-placeholder { min-height: 260px; }
}

@media (max-width: 768px) {
  section { padding: 72px 20px; }

  .nav-links,
  .nav-phone {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .hamburger {
    display: flex;
  }

  #navbar { position: relative; }
  #hero { padding-top: 0; min-height: auto; }

  .hero-inner { padding: 60px 20px; }
  .hero-stats { position: static; transform: none; margin-top: 32px; flex-wrap: wrap; justify-content: center; gap: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .about-images { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .certs-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .hero-badges { flex-wrap: wrap; }
}
