header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(245,245,245,.95);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}

:target {
  scroll-margin-top: 80px;
}

section[id] {
  scroll-margin-top: 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 700;
  letter-spacing: .2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(74,110,224,.2);
}

.lang-switch:hover {
  background: var(--blue-ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,110,224,.3);
}

.menu {
  display: flex;
  gap: 22px;
}

.menu a {
  color: var(--text);
  font-weight: 500;
}

.menu a:hover {
  color: var(--blue);
}

.burger {
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.burger:hover {
  background: var(--bg);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.burger svg {
  color: var(--text);
  transition: color 0.2s ease;
}

.burger:hover svg {
  color: var(--blue);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  animation: slideDown 0.3s ease;
  margin: 0 -20px;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 16px 20px;
  font-weight: 500;
  border-bottom: 1px solid rgba(231,231,231,0.5);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  background: linear-gradient(90deg, rgba(74,110,224,.06) 0%, rgba(74,110,224,.02) 100%);
  color: var(--blue);
  padding-left: 24px;
}

.mobile-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--blue);
  transition: width 0.2s ease;
}

.mobile-menu a:hover::before {
  width: 3px;
}

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

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

.hero {
  padding: 32px 0 28px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}

.hero-contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.hero-contact-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hero-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(74,110,224,.2);
}

.hero-contact-btn:hover {
  background: var(--blue-ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,110,224,.3);
  color: #fff;
}

.hero-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-address {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.services {
  padding: 16px 0 24px;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3,1fr);
}

.cta-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 16px;
}

.cta-band h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 24px;
}

.cta-band p {
  text-align: center;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.building-images {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  justify-content: center;
}

.building-images img {
  flex: 1;
  max-width: 350px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  border: 1px solid var(--line);
}

@media (max-width: 620px) {
  .building-images {
    flex-direction: column;
    margin: 16px -20px 0 -20px;
    gap: 12px;
  }
  
  .building-images img {
    max-width: none;
    height: 200px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

.map-container {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  border: 1px solid var(--line);
}

.map-container iframe {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.pricing {
  padding: 36px 0;
}

footer {
  padding: 26px 0;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

/* Desktop optimization - compact hero contact buttons */
@media (min-width: 769px) {
  .hero-contact-row {
    justify-content: flex-start;
    width: fit-content;
    margin-bottom: 8px;
  }
  
  .hero-contact {
    width: fit-content;
    padding: 14px 16px;
  }
}

/* Laptop screen optimization (13-14 inch) */
@media (max-width: 1440px) and (max-height: 900px) {
  .hero {
    padding: 24px 0 20px;
  }
  
  .services {
    padding: 12px 0 18px;
  }
  
  .cta-band {
    padding: 20px 0;
    margin-top: 12px;
  }
}

/* Very compact for smaller laptop screens */
@media (max-height: 800px) {
  .hero {
    padding: 20px 0 16px;
  }
  
  h1 {
    font-size: 32px;
    margin: 0 0 6px;
  }
  
  .lead {
    font-size: 14px;
    margin: 0 0 10px;
  }
  
  .hero-contact {
    padding: 12px;
    margin: 12px 0;
  }
  
  .hero-contact-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .hero-contact-row {
    margin-bottom: 8px;
  }
  
  .services {
    padding: 10px 0 14px;
  }
  
  .card {
    padding: 12px;
    min-height: 85px;
  }
  
  .card h3 {
    font-size: 16px;
  }
  
  .card p {
    font-size: 13px;
  }
  
  .cta-band {
    padding: 16px 0;
    margin-top: 8px;
  }
}

/* Responsive Design */
@media (max-width: 920px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .portrait {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-contact-row {
    justify-content: center;
  }
  
  .grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 620px) {
  .menu {
    display: none;
  }
  
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }
  
  .lang-switch {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .hero-contact-row {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-contact-btn {
    justify-content: center;
    min-width: 200px;
  }
  
  .map-container {
    margin: 16px -20px 0 -20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .map-container iframe {
    height: 250px;
    border-radius: 0;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 34px;
  }
}

.service-main {
  margin-top: 32px;
}

.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.service-column p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-column h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--dark);
}

.service-column ul {
  list-style: disc;
  padding-left: 20px;
  margin: 16px 0;
}

.service-column ul li {
  padding: 4px 0;
  color: var(--text);
  line-height: 1.5;
}

.service-single-column {
  max-width: 800px;
  margin: 0 auto;
}

.service-single-column p {
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 16px;
}

.service-navigation {
  margin-top: 32px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--light);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: var(--light);
  color: var(--dark);
  transform: translateY(-1px);
}

.page-section + .page-section {
  margin-top: 80px;
}

.page-section:not(#uslugi):not(#teenused) {
  min-height: calc(100vh - 80px); /* Full viewport minus header */
  padding-bottom: 40px;
}

#uslugi, #teenused {
  min-height: auto;
}

.about-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.about-content {
  max-width: none;
}

.about-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--dark);
}

.about-content h2:first-of-type {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.about-content ul {
  list-style: disc;
  padding-left: 20px;
  margin: 16px 0;
}

.about-content ul li {
  padding: 4px 0;
  color: var(--text);
  line-height: 1.5;
}

.about-image {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  position: sticky;
  top: 100px;
}

.about-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  max-width: 350px;
}

@media (max-width: 768px) {
  .about-main {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
  }
  
  .about-image {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .service-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .page-section + .page-section {
    margin-top: 60px;
  }
  
  /* Slightly smaller min-height on mobile */
  .page-section:not(#uslugi):not(#teenused) {
    min-height: calc(100vh - 60px);
    padding-bottom: 20px;
  }
}