/* Диамантено рязане — промени само по дизайна */

:root {
  color-scheme: dark;
  --bg: #10191f;
  --panel: #172228;
  --text: #f3f5f7;
  --muted: #bec7ce;
  --accent: #079dff;
  --line: #35424b;
  --content: 1280px;
  --header: 1280px;
  --gutter: clamp(16px, 5.5vw, 96px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2 {
  text-wrap: balance;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* HEADER */

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: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;
}

.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:nth-child(2) {
  color: var(--accent);
  border-color: #344956;
  background: #0b1218;
}

.links-container a:nth-child(2)::before,
.links-container a:hover::before {
  color: var(--accent);
}

.links-container a:hover {
  color: var(--accent);
  border-color: #344956;
  background: #0b1218;
}

/* ОСНОВНО СЪДЪРЖАНИЕ */

main {
  padding: 34px var(--gutter) 30px;
  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);
}

.company-info,
.image-gallery {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
}

.company-info {
  color: var(--text);
}

.company-info > h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 3.45vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.035em;
}

.company-info > h1::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--accent);
}

.intro-text,
.final-text {
  padding: 20px 26px;
  border: 1px solid #30414c;
  border-left: 6px solid var(--accent);
  border-radius: 7px;
  background: linear-gradient(
    110deg,
    #1b2b3570,
    #16232b80
  );
  color: #e4ebef;
  font-size: clamp(15px, 1.12vw, 17px);
  line-height: 1.8;
}

/* УСЛУГИ */

.services-description {
  margin-block: 24px;
}

.services-description > h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.services-description > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.services-description ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.services-description li {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 110px;
  padding: 22px 24px 22px 112px;
  border: 1px solid #344854;
  border-radius: 8px;
  background: linear-gradient(120deg, #172831, #132029);
  color: #e4ebef;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 5px 16px #00000014;
  transition: border-color .2s, box-shadow .2s;
}

/* Петата услуга заема целия ред */

.services-description li:last-child {
  grid-column: 1 / -1;
}

.services-description li:hover {
  border-color: #079dff80;
  box-shadow: 0 8px 24px #00000025;
}

.services-description li::before {
  position: absolute;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #081820;
  color: var(--accent);
  box-shadow: inset 0 0 16px #079dff08;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
}

.services-description li:nth-child(1)::before {
  content: "\f009";
}

.services-description li:nth-child(2)::before {
  content: "\f542";
}

.services-description li:nth-child(3)::before {
  content: "\f013";
}

.services-description li:nth-child(4)::before {
  content: "\f7d9";
}

.services-description li:nth-child(5)::before {
  content: "\f546";
}

.final-text {
  font-size: 16px;
  line-height: 1.7;
}

/* СНИМКИ */

.image-gallery {
  margin-top: 20px;
}

.image-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid #344854;
  border-radius: 9px;
  box-shadow: 0 5px 16px #00000025;
  transition: border-color .2s, box-shadow .2s;
}

.image-container img:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px #00000040;
}

/* FOOTER */

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: repeat(2, 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;
}

/* АДАПТИВЕН ДИЗАЙН */

@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: 1100px) {
  .services-description li {
    padding: 20px 20px 20px 94px;
    font-size: 15px;
  }

  .services-description li::before {
    left: 18px;
    width: 56px;
    height: 56px;
    font-size: 25px;
  }

  .image-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@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: 650px) {
  main {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .company-info > h1 {
    font-size: clamp(32px, 7.5vw, 40px);
  }

  .intro-text,
  .final-text {
    padding: 18px;
    font-size: 16px;
    line-height: 1.75;
  }

  .services-description > h2 {
    font-size: 24px;
  }

  .services-description ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .services-description li {
    min-height: 104px;
    padding: 20px 18px 20px 90px;
    font-size: 16px;
  }

  .services-description li::before {
    left: 18px;
    width: 52px;
    height: 52px;
    font-size: 25px;
  }

  .image-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .image-container img {
    aspect-ratio: 4 / 3;
  }
}

@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;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Compact service page: only the original five service boxes remain visible. */
.company-info {
  max-width: 1180px;
}

.company-info > h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3.45vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.035em;
}

.company-info > h1::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--accent);
}

.services-description {
  margin-block: 22px;
}

.services-description ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-description li:last-child {
  grid-column: 1 / -1;
}

.image-gallery {
  margin-top: 24px;
}

@media (max-width: 650px) {
  .company-info > h1 {
    font-size: clamp(30px, 7.5vw, 40px);
  }

  .services-description ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-description li:last-child {
    grid-column: 1;
  }
}
