@font-face {
  font-display: block;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
}

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

/* DESKTOP STYLES - Keep original desktop background exactly as it was */
body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, rgba(15, 42, 31, 0.6) 0%, rgba(26, 58, 42, 0.55) 50%, rgba(37, 58, 48, 0.6) 100%),
    url("data/coastal_image.jpg") center / cover fixed;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  position: static;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: transparent;
  position: relative;
  display: block;
  width: 100%;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: auto;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 90px;
  position: relative;
}

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

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
  font-size: 1rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.language-dropdown {
  position: relative;
  z-index: 9999;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  backdrop-filter: none;
  border: none;
  color: #ffffff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 80px;
  justify-content: space-between;
}

.lang-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.lang-dropdown-btn.active {
  background: rgba(255, 255, 255, 0.15);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.lang-dropdown-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  display: none !important;
}

.lang-code {
  font-weight: 600;
}

.lang-name {
  font-size: 0.8rem;
  opacity: 0.8;
}

.current-lang {
  font-weight: 600;
}

.main-content {
  margin-top: 2rem;
  padding: 0;
}

.section {
  margin-bottom: 4rem;
  padding: 3rem 0;
  position: relative;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.section:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 58, 31, 0.2) 20%,
    rgba(15, 58, 31, 0.4) 50%,
    rgba(15, 58, 31, 0.2) 80%,
    transparent 100%
  );
}

.section:first-child {
  margin-top: 0;
  padding-top: 2rem;
}

.section:last-child {
  margin-bottom: 2rem;
}

.section-no-title {
  padding-top: 1rem;
  margin-top: -6rem;
}

#finansejums {
  margin-bottom: 1rem;
}

.section-title-par-mums {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: left;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-text {
  font-size: 19px;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 3rem;
}

.section-text-center {
  font-size: 19px;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 3rem;
  text-align: center;
}

.two-block-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.single-column-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.multi-block-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.block {
  background: transparent;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  border: none;
}

.text-block {
  background: transparent;
  padding: 1rem 0;
}

.image-block {
  padding: 0;
  overflow: hidden;
}

.section-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(15, 58, 31, 0.15);
}

.section-image[src="data/main.jpeg"] {
  height: 600px;
}

.full-width {
  width: 100%;
}

.image-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.grid-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(15, 58, 31, 0.1);
  cursor: pointer;
}

.grid-image:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 58, 31, 0.2);
}

.grid-image[src="data/land_5.webp"],
.grid-image[src="data/land_10.jpeg"],
.grid-image[src="data/land_11.jpg"] {
  height: 500px;
  grid-column: span 2;
  max-width: 100%;
}

.map-block {
  padding: 0;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-placeholder:hover {
  background: rgba(255, 255, 255, 0.15);
}

.map-block iframe {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  border: none;
  box-shadow: 0 8px 24px rgba(15, 58, 31, 0.15);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.partner-block {
  background: transparent;
  padding: 0;
  border-radius: 0;
  text-align: center;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  transition: none;
}

.bank-logo {
  width: 160px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  background: white;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 58, 31, 0.1);
}

.loan-button {
  background: transparent;
  color: #ffffff;
  border: none;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: none;
  text-decoration: none;
  display: inline-block;
}

.loan-button:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
  color: #4caf50;
  text-decoration: underline;
}

.table-block {
  overflow-x: auto;
  margin: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  font-size: 1.1rem;
}

.plan-table th,
.plan-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(15, 58, 31, 0.1);
  white-space: nowrap;
}

.plan-table th {
  background: rgba(76, 175, 80, 0.1);
  font-weight: 600;
  color: #e0e0e0;
  font-size: 1.1rem;
}

.plan-table td {
  color: #e0e0e0;
}

.plan-table tr:hover {
  background: rgba(76, 175, 80, 0.05);
}

.status-available {
  color: #379f5f !important;
  font-weight: bold;
}

.status-reserved {
  color: #ea580c !important;
  font-weight: bold;
}

.status-sold {
  color: #dc2626 !important;
  font-weight: bold;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 58, 31, 0.1);
}

.gallery-image:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 58, 31, 0.2);
}

.footer {
  background: transparent;
  padding: 3rem 0 1rem;
  margin-top: 6rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-contact {
  text-align: left;
}

.footer-social {
  text-align: right;
}

.footer-contact h3,
.footer-social h3 {
  color: #e0e0e0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-contact p,
.footer-social p {
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: flex-end;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #0f2a1f;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 58, 31, 0.1);
}

.footer-copyright p {
  color: #ccc;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn.accept {
  background: #4caf50;
  color: #ffffff;
}

.cookie-btn.accept:hover {
  background: #45a049;
  transform: translateY(-1px);
}

.cookie-btn.decline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn.decline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Map Consent Modal Styles */
.map-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.map-consent-modal.show {
  display: flex;
}

.map-consent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.map-consent-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 2001;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.map-consent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0;
}

.map-consent-header h3 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.map-consent-close {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-consent-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.map-consent-body {
  padding: 1.5rem;
  text-align: center;
}

.map-consent-icon {
  margin: 0 auto 1rem;
  width: 64px;
  height: 64px;
  background: rgba(76, 175, 80, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4caf50;
}

.map-consent-body p {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.map-consent-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.consent-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.consent-feature svg {
  color: #4caf50;
  flex-shrink: 0;
}

.consent-feature span {
  color: #e0e0e0;
  font-size: 0.9rem;
}

.map-consent-actions {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem;
}

.map-consent-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-consent-btn.accept {
  background: #4caf50;
  color: #ffffff;
}

.map-consent-btn.accept:hover {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.map-consent-btn.decline {
  background: transparent;
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-consent-btn.decline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

html {
  scroll-behavior: smooth;
  position: static;
}

/* TABLET STYLES */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .nav-menu {
    gap: 1.2rem;
  }

  .nav-menu a {
    font-size: 0.9rem;
    padding: 0.4rem 0.7rem;
  }
}

/* MOBILE STYLES - Fixed background using pseudo-element */
@media (max-width: 768px) {
  /* Fix HTML/body for mobile devices only */
  html {
    height: 100%;
    height: -webkit-fill-available;
  }
  
  body {
    /* Remove background from body on mobile */
    background: none !important;
    min-height: 100%;
    min-height: -webkit-fill-available;
    position: relative;
  }
  
  /* Create truly fixed background with pseudo-element */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 42, 31, 0.6) 0%, rgba(26, 58, 42, 0.55) 50%, rgba(37, 58, 48, 0.6) 100%),
      url("data/coastal_image.jpg") center center / cover no-repeat;
    z-index: -1;
    
    /* Mobile optimizations */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* Ensure content is above background */
  .header,
  .main-content,
  .footer {
    position: relative;
    z-index: 1;
  }

  .container {
    padding: 0 15px;
  }

  .header {
    padding: 0.8rem 0;
  }

  .header .container {
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .logo-img {
    height: 55px;
  }

  .lang-dropdown-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    min-width: 70px;
  }

  .lang-name {
    font-size: 0.75rem;
  }

  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    width: 100%;
  }

  .nav-menu a {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
  }

  .language-dropdown {
    align-self: center;
  }

  .main-content {
    margin-top: 0.5rem;
  }

  .section {
    margin-bottom: 2.5rem;
    padding: 2rem 0;
  }

  .section:first-child {
    padding-top: 1rem;
  }

  .section-no-title {
    padding-top: 0.5rem;
    margin-top: -4rem;
  }

  #finansejums {
    margin-bottom: 1rem;
  }

  .section-title,
  .section-title-par-mums {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .section-text,
  .section-text-center {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .two-block-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-image {
    height: 250px;
  }

  .section-image[src="data/main.jpeg"] {
    height: 300px;
  }

  .image-grid {
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .grid-image {
    height: 200px;
  }

  .grid-image[src="data/land_5.webp"],
  .grid-image[src="data/land_10.jpeg"],
  .grid-image[src="data/land_11.jpg"] {
    height: 250px;
    grid-column: span 2;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .bank-logo {
    width: 140px;
    height: 70px;
  }

  .footer {
    margin-top: 3rem;
    padding: 2rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-contact,
  .footer-social {
    text-align: center;
  }

  .footer-logo-img {
    height: 65px;
  }

  .social-icons {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-image {
    height: 180px;
  }

  .map-block iframe {
    height: 300px;
  }

  .table-block {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem -15px;
    border-radius: 0;
  }

  .plan-table {
    min-width: 420px;
    font-size: 0.6rem;
    width: 100%;
  }

  .plan-table th,
  .plan-table td {
    padding: 0.25rem 0.15rem;
    font-size: 0.55rem;
    text-align: center;
    white-space: nowrap;
    vertical-align: top;
  }

  .plan-table th {
    font-size: 0.6rem;
    font-weight: 700;
    white-space: normal;
    line-height: 1.2;
    padding: 0.4rem 0.2rem;
  }

  .footer-contact h3,
  .footer-social h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .loan-button {
    font-size: 0.85rem;
    padding: 0.3rem 0;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-buttons {
    justify-content: center;
  }

  .map-consent-content {
    max-width: 400px;
    margin: 1rem;
  }

  .map-consent-header {
    padding: 1rem 1rem 0;
  }

  .map-consent-header h3 {
    font-size: 1.1rem;
  }

  .map-consent-body {
    padding: 1rem;
  }

  .map-consent-actions {
    flex-direction: column;
    padding: 0 1rem 1rem;
  }

  .map-consent-btn {
    padding: 0.75rem;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    body {
      background-attachment: scroll !important;
      min-height: 100vh;
      min-height: -webkit-fill-available;
    }
  }
}

@media (max-width: 480px) {
  html {
    height: 100%;
    height: -webkit-fill-available;
  }
  
  body {
    background: none !important;
    min-height: 100%;
    min-height: -webkit-fill-available;
  }
  
  body::before {
    background-size: cover;
    background-position: center center;
  }

  .container {
    padding: 0 10px;
  }

  .header {
    padding: 0.6rem 0;
  }

  .logo-img {
    height: 50px;
  }

  .lang-dropdown-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    min-width: 65px;
  }

  .nav-menu {
    gap: 0.5rem;
  }

  .nav-menu a {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }

  .section {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
  }

  .section-no-title {
    padding-top: 0.5rem;
    margin-top: -3rem;
  }

  #finansejums {
    margin-bottom: 0.8rem;
  }

  .section-title,
  .section-title-par-mums {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .section-text,
  .section-text-center {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  .section-image {
    height: 200px;
  }

  .section-image[src="data/main.jpeg"] {
    height: 250px;
  }

  .image-grid {
    gap: 0.8rem;
    margin: 1rem 0;
  }

  .grid-image {
    height: 150px;
  }

  .grid-image[src="data/land_5.webp"],
  .grid-image[src="data/land_10.jpeg"],
  .grid-image[src="data/land_11.jpg"] {
    height: 200px;
    grid-column: span 1;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .partner-block:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 200px;
  }

  .bank-logo {
    width: 120px;
    height: 60px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .gallery-image {
    height: 200px;
  }

  .image-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .map-block iframe {
    height: 250px;
  }

  .table-block {
    margin: 1rem -10px;
  }

  .plan-table {
    min-width: 380px;
    font-size: 0.55rem;
  }

  .plan-table th,
  .plan-table td {
    padding: 0.2rem 0.1rem;
    font-size: 0.5rem;
    text-align: center;
  }

  .plan-table th {
    font-size: 0.55rem;
    padding: 0.25rem 0.1rem;
  }

  .footer-contact h3,
  .footer-social h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .loan-button {
    font-size: 0.8rem;
    padding: 0.25rem 0;
  }

  .cookie-banner {
    padding: 1rem;
  }

  .cookie-content p {
    font-size: 0.85rem;
  }

  .cookie-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .map-consent-content {
    max-width: 350px;
    margin: 0.5rem;
  }

  .map-consent-header {
    padding: 0.75rem 0.75rem 0;
  }

  .map-consent-header h3 {
    font-size: 1rem;
  }

  .map-consent-body {
    padding: 0.75rem;
  }

  .map-consent-body p {
    font-size: 0.9rem;
  }

  .consent-feature span {
    font-size: 0.8rem;
  }

  .map-consent-actions {
    padding: 0 0.75rem 0.75rem;
  }

  .map-consent-btn {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }

  .nav-menu a {
    font-size: 0.75rem;
    padding: 0.25rem 0.4rem;
  }

  .section-title,
  .section-title-par-mums {
    font-size: 1.1rem;
  }

  .section-text,
  .section-text-center {
    font-size: 0.8rem;
    line-height: 1.7;
  }

  .bank-logo {
    width: 100px;
    height: 50px;
  }

  .table-block {
    margin: 1rem -8px;
  }

  .plan-table {
    min-width: 340px;
  }

  .plan-table th,
  .plan-table td {
    padding: 0.15rem 0.08rem;
    font-size: 0.45rem;
    text-align: center;
  }

  .plan-table th {
    font-size: 0.5rem;
    padding: 0.2rem 0.08rem;
  }

  .footer-contact h3,
  .footer-social h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .loan-button {
    font-size: 0.75rem;
    padding: 0.2rem 0;
  }

  .cookie-content p {
    font-size: 0.8rem;
  }

  .cookie-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }

  .map-consent-content {
    max-width: 320px;
    margin: 0.25rem;
  }
}