/* Gallery: CSS-only header, footer and background update. */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
a {
  list-style: none;
  color: inherit;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
}
.gallery-body {
  background-color: #f4f4f9;
  justify-content: center;
  align-items: center;
}
.image-gallery-holder { padding: 10px; }
.image-gallery-holder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  justify-content: center;
}
.image-gallery-holder a {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-gallery-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 15px;
}
.image-gallery-holder a:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}
.image-gallery-holder img:hover { transform: scale(1.1); }
@media (max-width: 768px) {
  .image-gallery-holder { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 480px) {
  .image-gallery-holder { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}
.enlarged-image {
  max-width: 80%;
  max-height: 80%;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}
.enlarged-image:hover { transform: scale(1.05); }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

:root {
  --bg: #10191f;
  --panel: #172228;
  --text: #f3f5f7;
  --muted: #bec7ce;
  --accent: #079dff;
  --line: #35424b;
  --content: 1280px;
  --header: 1280px;
  --gutter: clamp(16px, 5.5vw, 96px);
}
/* Only the page background changes; original gallery and overlay rules above remain intact. */
body.gallery-body {
  background:
    linear-gradient(125deg, transparent 0 6%, #008ee520 6% 7%, transparent 7% 94%, #008ee520 94% 95%, transparent 95%),
    repeating-linear-gradient(135deg, #ffffff02 0 1px, transparent 1px 7px),
    radial-gradient(ellipse at 25% 0, #26394460, transparent 70%),
    var(--bg);
}
header, footer { color: var(--text); line-height: 1.6; }
header a:focus-visible, footer a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Two-tier header, using the original phone number and navigation. */
header { position: relative; z-index: 20; background: linear-gradient(110deg, #10191e, #1a242b); }
.upper-sector-header {
  max-width: var(--header);
  margin-inline: auto;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.info-phone-facebook-sector { display: flex; flex-direction: row-reverse; align-items: center; gap: 24px; }
.info-phone-facebook-sector p { font-size: 14px; font-weight: 700; white-space: nowrap; }
.info-phone-facebook-sector .fa-phone { color: var(--accent); }
.info-phone-facebook-sector .social-icon { font-size: 20px; }
.links-header-sector { display: flex; align-items: center; gap: 30px; }
.links-header-sector a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  font-size: 14px;
  font-weight: 700;
}
.links-header-sector a:nth-child(3) { color: var(--accent); }
.links-header-sector a:nth-child(3)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--accent);
}
.links-header-sector a:hover { color: var(--accent); }
.lower-sector-header {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid #303b43;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding: 16px 24px;
}
/* The visual brand requested earlier; no change to the HTML or its headings. */
.lower-sector-header::before {
  content: "ПРОБИВАНЕ НА ОТВОРИ";
  display: block;
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--accent);
  font-family: Impact, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(20px, 1.65vw, 29px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.035em;
  line-height: 1.15;
  white-space: nowrap;
}
.hamburger-menu-container { min-width: 0; max-width: 920px; flex: 1 1 auto; }
.hamburger-menu { display: none; }
.links-container { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.links-container a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: color .2s, border-color .2s, background-color .2s;
}
.links-container a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 27px;
  color: #aeb7be;
}
.links-container a:nth-child(1)::before { content: "\f1cd"; }
.links-container a:nth-child(2)::before { content: "\f013"; }
.links-container a:nth-child(3)::before { content: "\f6e3"; }
.links-container a:nth-child(4)::before { content: "\f51a"; }
.links-container a:nth-child(5)::before { content: "\f0d1"; }
.links-container a:first-child { color: var(--accent); border-color: #344956; background: #0b1218; }
.links-container a:first-child::before, .links-container a:hover::before { color: var(--accent); }
.links-container a:hover { color: var(--accent); border-color: #344956; background: #0b1218; }



footer { border-top: 1px solid #46515a; background: linear-gradient(115deg, #111b21, #1b252b); padding: 26px var(--gutter) 32px; }
.footer-container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr); align-items: start; gap: 40px; max-width: var(--header); margin-inline: auto; }
footer .for-us, footer .contact-us { min-width: 0; }
footer .contact-us { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; border-left: 1px solid #46515a; padding-left: 28px; }
.contact-us .footer-title { grid-column: 1; grid-row: 1; }
.footer-title { margin-bottom: 8px; font-size: 19px; line-height: 1.3; }
.footer-title::before { font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); margin-right: 12px; }
.for-us .footer-title::before { content: "\f0c0"; }
.contact-us .footer-title::before { content: "\f3c5"; }
footer p { font-size: 14px; color: #d4dce1; line-height: 1.65; }
.sofia-varna { font-weight: 700; margin-bottom: 5px; }
.tagline { margin-top: 8px; }
.contact-info { display: contents; list-style: none; }
.contact-info > li { margin-top: 7px; font-size: 14px; }
.contact-info > li:nth-child(1) { grid-column: 1; grid-row: 2; }
.contact-info > li:nth-child(2) { grid-column: 1; grid-row: 3; }
.contact-info > li:nth-child(3) { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; border-left: 1px solid #46515a; padding-left: 24px; font-size: 17px; font-weight: 700; }
.contact-info a { display: inline-block; padding-block: 4px; overflow-wrap: anywhere; }
.contact-info i { width: 22px; color: var(--accent); }
.contact-info a:hover { color: var(--accent); }
.working-hours { list-style: none; margin: 6px 0 0 26px; }
.working-hours li { padding-block: 3px; border-bottom: 1px solid #ffffff10; font-size: 14px; font-weight: 400; }


/* Shared header and footer responsive rules. */

@media (max-width: 1390px) {
  .upper-sector-header { margin-inline: 32px; }
  .lower-sector-header { gap: 22px; padding-inline: 32px; }
  .links-container { gap: 4px; }
  .links-container a { gap: 8px; padding-inline: 9px; font-size: 12px; }
  .links-container a::before { font-size: 22px; }
  .lower-sector-header::before { font-size: 22px; }
}
@media (min-width: 901px) { #dropdown-menu { display: flex !important; } }
@media (max-width: 1190px) and (min-width: 901px) {
  .lower-sector-header { flex-wrap: wrap; gap: 12px; }
  .lower-sector-header::before { margin-right: auto; }
  .hamburger-menu-container { flex-basis: 100%; max-width: none; }
}
@media (max-width: 900px) {
  .upper-sector-header { margin-inline: 24px; }
  .lower-sector-header { position: relative; justify-content: space-between; gap: 12px; padding: 16px 24px; }
  .lower-sector-header::before { font-size: clamp(19px, 3.4vw, 25px); }
  .hamburger-menu-container { flex: 0 0 auto; max-width: none; }
  .hamburger-menu { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #38505f; border-radius: 9px; color: var(--accent); font-size: 24px; line-height: 1; }
  .hamburger-menu.clicked { background: #079dff20; border-color: var(--accent); }
  .links-container { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; padding: 12px 24px 18px; flex-direction: column; align-items: stretch; gap: 5px; border-bottom: 1px solid #38505f; background: #10191f; box-shadow: 0 10px 24px #00000055; z-index: 30; }
  .hamburger-menu.clicked + .links-container { display: flex; }
  .links-container a { min-height: 48px; font-size: 15px; gap: 14px; }
  .links-container a::before { width: 28px; font-size: 23px; text-align: center; }
  .footer-container { gap: 28px; }
  footer .contact-us { display: block; padding-left: 24px; }
  .contact-info { display: block; }
  .contact-info > li:nth-child(3) { margin-top: 7px; border-left: none; padding-left: 0; font-size: 14px; font-weight: 400; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .upper-sector-header { margin-inline: 16px; flex-wrap: wrap; gap: 4px; padding-top: 10px; padding-bottom: 4px; }
  .info-phone-facebook-sector { justify-content: space-between; width: 100%; }
  .links-header-sector { justify-content: space-between; width: 100%; gap: 12px; }
  .links-header-sector a { justify-content: center; min-height: 44px; flex: 1; }
  .lower-sector-header { padding-inline: 16px; }
  .lower-sector-header::before { font-size: clamp(18px, 5.1vw, 24px); }
  .footer-container { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  footer .contact-us { border-left: none; border-top: 1px solid #46515a; padding: 24px 0 0; }
  footer p, .contact-info > li { font-size: 15px; }
}
