/* DINish – безплатен DIN шрифт с кирилица (SIL OFL, fonts/OFL.txt) */
@font-face { font-family: 'DINish'; src: url('../fonts/DINish-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'DINish'; src: url('../fonts/DINish-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DINish'; src: url('../fonts/DINish-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DINish'; src: url('../fonts/DINish-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'DINish'; src: url('../fonts/DINish-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DINish Condensed'; src: url('../fonts/DINishCondensed-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jost Logo'; src: url('../fonts/Jost-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }

:root {
  --color-text: #2f2e2e;
  --color-text-soft: #6e6968;
  --color-bg: #ffffff;
  --color-dark: #262524;
  --color-dark-soft: #3a3938;
  --color-olive: #9da987;
  --color-olive-dark: #838f70;
  --color-cream: #eeece3;
  --color-cream-text: #4a4a42;
  --color-line: rgba(255, 255, 255, 0.15);
  --font-heading: 'DINish', 'Bahnschrift', sans-serif;
  --font-body: 'DINish', 'Bahnschrift', sans-serif;
  --font-din: 'DINish', 'Bahnschrift', sans-serif;
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  width: 187px;
  animation: pulseLogo 1.4s ease-in-out infinite;
}
/* екран за зареждане (мобилна версия) */
/* еднакъв на телефон и компютър – 1:1 с анимацията от Wix */
#preloader { background: #2f2e2e; }
#preloader .preloader-logo { display: none; }
.ld-icon { display: block; position: relative; width: 141px; height: 141px; animation: ldGrow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both; }
.ld-icon img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-ring {
  -webkit-mask-image: conic-gradient(from 180deg, #000 var(--ld-a), transparent 0);
          mask-image: conic-gradient(from 180deg, #000 var(--ld-a), transparent 0);
  animation: ldDraw 0.1s linear 0.25s both;
}
.ld-inner { animation: ldSpin 0.7s cubic-bezier(0.2, 0.8, 0.25, 1) 0.29s both; }
@property --ld-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ldDraw { from { --ld-a: 0deg; } to { --ld-a: 360deg; } }
@keyframes ldSpin { 0% { transform: rotate(-90deg); opacity: 0; } 12% { opacity: 1; } 100% { transform: rotate(0deg); opacity: 1; } }
@keyframes ldGrow {
  0%   { opacity: 0; transform: scale(0.7); }
  10%  { opacity: 0.45; }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-weight: 300;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Pattern background for dark sections - seamless tile, same logo size in every section */
.pattern-bg { position: relative; overflow: hidden; }
.pattern-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #2f2d2d;
  background-image: url('../images/pattern-tile.jpg');
  background-repeat: repeat;
  background-size: 125px 171px;
  background-position: center top;
  z-index: 0;
}
.pattern-bg > * { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  color: #fff;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 16px 24px;
  flex-wrap: wrap;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-header nav a { opacity: 0.85; transition: opacity 0.2s ease; }
.site-header nav a:hover { opacity: 1; }
.has-dropdown { position: relative; }
/* Падащо меню „Проекти“ – като в Wix: тъмен фон, бял текст, при посочване текстът плавно става сиво-бежов */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #2f2e2e;
  color: #fff;
  min-width: 100%;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-top: 16px;
  text-transform: none;
}
/* невидим „мост“ между „Проекти“ и менюто, за да не се затваря, докато курсорът слиза надолу */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-dropdown:hover .dropdown { display: block; }
.has-dropdown > a { transition: color 0.4s ease, opacity 0.2s ease; }
.has-dropdown:hover > a { color: #b0aaa9; opacity: 1; }
.dropdown a {
  display: block;
  padding: 10px 22px;
  font-family: var(--font-din);
  font-size: 15px;
  font-weight: 300;
  line-height: 21px;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  opacity: 1;
  transition: color 0.4s ease;
}
.dropdown a:hover { background: transparent; color: #b0aaa9; }
.dropdown a.current { color: #b0aaa9; }

/* Hero */
.hero {
  position: relative;
  height: 640px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0;
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: none;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
/* Лого – 1:1 с оригинала в Wix */
.logo-box {
  position: relative;
  width: 297px;
  height: 283px;
  margin-top: -1px;
  border: 1px solid #fff;
  background: rgba(47, 46, 46, 0.64);
  box-sizing: border-box;
  color: #fff;
  text-align: center;
}
.logo-h1 { margin: 0; }
.logo-img { position: absolute; top: 36px; left: 37px; width: 221px; height: 227px; }
.logo-icon { position: absolute; top: 31px; left: 77px; width: 141px; height: 141px; }
.logo-title {
  position: absolute;
  top: 182px;
  left: 0;
  right: 0;
  margin: 0;
  font-family: 'DINish Condensed', 'DINish', sans-serif;
  font-weight: 500;
  font-size: 68px;
  line-height: 68px;
  letter-spacing: 1.25px;
  color: #fff;
}
.logo-sub {
  position: absolute;
  top: 248px;
  left: 0;
  right: 0;
  font-family: 'Jost Logo', 'Jost', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 3.3px;
  color: #fff;
}
.logo-box .logo-shadow { top: 282px; left: -21px; }
.hero .scroll-btn {
  margin: 26px auto 0;
  width: 34px;
  height: 34px;
  background: var(--color-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  border-radius: 2px;
}

/* Divider bands */
.divider {
  height: 200px;
  position: relative;
  background-size: 0 0;
  background-repeat: no-repeat;
  clip-path: inset(0);
}
/* Фонът стои на място, а секцията се плъзга върху него при скрол (като в Wix) */
.divider::before {
  content: "";
  position: fixed;
  inset: 0;
  /* затъмнението е в същия слой като снимката – без светла линия по ръбовете */
  background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/divider.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Sections generic */
section { padding: 80px 0; }

.section-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(24px, 4vw, 32px);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.section-title-underline {
  width: 40px;
  height: 2px;
  background: var(--color-olive);
  margin: 0 auto 46px;
}

/* Services */
.services { background: var(--color-dark); }
.services .section-title {
  font-family: var(--font-din);
  font-weight: 300;
  letter-spacing: normal;
  color: #f7f7f7;
}
.services .section-title-underline {
  width: 38px;
  height: 3px;
  background: #f7f7f7;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.service-card {
  background: rgba(255, 255, 255, 0.65);
  padding: 19px 26px 22px;
  text-align: center;
}
.service-card h3 {
  font-family: var(--font-din);
  font-weight: 300;
  font-size: 25px;
  line-height: 25px;
  letter-spacing: normal;
  text-transform: none;
  color: #2f2e2e;
  margin-bottom: 16px;
}
.service-card p {
  font-family: var(--font-din);
  font-weight: 300;
  font-size: 17px;
  line-height: 17px;
  color: #2f2e2e;
}
.service-card.full { grid-column: 1 / -1; }

/* Начало – десктоп 1:1 с Wix */
@media (min-width: 1000px) {
  .hero { height: 594px; }
  .logo-box { transform: translateX(-5px); }
}

/* Услуги – десктоп 1:1 с оригинала в Wix (980px колона) */
@media (min-width: 1000px) {
  section.services { padding: 39px 0 44px; }
  .services .container { max-width: 980px; padding: 0; }
  .services .section-title { font-size: 34px; line-height: 41px; margin: 0; }
  .services .section-title-underline { margin: 22px auto 49px; }
  .services-grid { display: flex; align-items: flex-start; gap: 56px; margin: 0 0 0 43px; }
  .services-grid.wide { margin: 55px 0 0 35px; }
  .service-card { padding-bottom: 18px; }
  .service-card p { font-size: 17px; letter-spacing: 0.4px; }
  .service-card h3 { font-size: 25px; letter-spacing: 0.7px; }
  .service-card.s1 { width: 420px; min-height: 308px; }
  .service-card.s1 h3 { line-height: 31px; margin-bottom: 17px; }
  .service-card.s2 { width: 426px; min-height: 325px; padding: 19px 18px 18px; }
  .service-card.s3 { width: 910px; min-height: 223px; padding: 19px 25px 18px 33px; }
  .service-card.s3 h3 { margin-bottom: 25px; }
}

/* Projects */
.projects { background: #fff; }
section.projects { padding-top: 56px; } /* 30% по-малко от 80px */
.projects .section-title-underline { width: 38px; height: 3px; background: #2f2e2e; }
.project-block { margin-bottom: 60px; }
/* сянката под галериите – същата извита сянка като под квадрата с логото, в същите пропорции */
.project-block { position: relative; }
.project-block::after {
  content: ""; position: absolute; top: 100%; left: -6.7%; width: 113.4%;
  aspect-ratio: 337 / 26; max-height: 46px;
  background: url('../images/pkg-shadow.png') no-repeat center top / 100% 100%;
  pointer-events: none;
}
.project-block:last-child { margin-bottom: 0; }
.project-block h3 {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.project-image {
  display: block; position: relative; overflow: hidden;
  /* лека сянка – галерията изглежда леко повдигната */
}
/* бял контур като квадрата с логото – тънка бяла рамка върху снимката */
.project-image::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid #fff;
  pointer-events: none; z-index: 1;
}
/* бутоните „Галерия“ – извитата сянка отдолу, като под квадрата с логото; стои ПОД белия контур */
.gallery-btn { z-index: 2; }
.project-image::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 133px; height: 16px; margin-left: -66.5px;
  background: url('../images/pkg-shadow.png') no-repeat center top / 100% 100%;
  pointer-events: none; z-index: 0;
}
.project-image img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.gallery-btn {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(47, 46, 46, 0.54);
  color: #fff;
  font-size: 14.4px;
  letter-spacing: 0.12em;
  padding: 5px 21.6px;
  line-height: 1.4;
  text-transform: uppercase;
  border: 1px solid #fff;
}
.gallery-btn { transition: background-color 0.25s ease; }
.gallery-btn:hover { background: rgba(255, 255, 255, 0.35); }

/* About */
.about { background: var(--color-dark); color: #fff; text-align: center; }
.about-box {
  background: rgba(255, 255, 255, 0.65);
  max-width: 780px;
  margin: 0 auto;
  padding: 54px 60px;
  font-size: 15px;
  color: #2f2e2e;
}
.about-box p { margin-bottom: 14px; color: #000; font-weight: 400; line-height: 1.4; }
.about-box p:last-child { margin-bottom: 0; }
.about-box .section-title { color: #2f2e2e; }
.about-box .section-title-underline { width: 38px; height: 3px; background: #2f2e2e; }

/* Packages */
.packages { background: var(--color-dark); color: #fff; }
.packages .section-title {
  font-family: var(--font-din);
  font-weight: 300;
  letter-spacing: normal;
  color: #f7f7f7;
}
.packages .section-title-underline { width: 38px; height: 3px; background: #f7f7f7; }
.packages-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}
.package-card {
  position: relative;
  width: 297px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.65);
  color: #2f2e2e;
  font-family: var(--font-din);
  text-align: center;
  --pk: 0.14;
}
.package-card.p2 { --pk: 0.23; }
.package-card.p3 { --pk: 0.3; }
.pkg-header {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2f2e2e;
  background: rgba(186, 218, 85, var(--pk));
  font-size: 25px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.6px;
}
.pkg-shadow {
  position: absolute;
  top: 77px;
  left: -20px;
  width: 337px;
  height: 26px;
  pointer-events: none;
}
.pkg-shadow span {
  position: absolute;
  top: 0;
  width: 165px;
  height: 26px;
  background: url('../images/pkg-shadow.png') no-repeat;
}
.pkg-shadow span:first-child { left: 0; background-position: 0 0; }
.pkg-shadow span:last-child { left: 172px; background-position: 100% 0; }
.package-card ul { list-style: none; margin: 0; padding: 0; }
.package-card li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 6px;
  border-top: 1px solid #2f2e2e;
}
.package-card li:first-child { border-top: none; }
.pkg-item { font-size: 17px; line-height: 20px; font-weight: 500; }
.pkg-desc { font-size: 13px; line-height: 14px; font-weight: 300; letter-spacing: 0.45px; margin-top: -1px; }
.pkg-footer {
  height: 23px;
  border-top: 1px solid #2f2e2e;
  background: rgba(186, 218, 85, var(--pk));
}
.packages-note {
  background: rgba(255, 255, 255, 0.65);
  color: #2f2e2e;
  max-width: 794px;
  margin: 0 auto;
  padding: 16px 20px;
  text-align: center;
  font-family: var(--font-din);
}
.packages-note h4 {
  font-size: 17px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  margin: 19px 0 0;
}
.packages-note h4:first-child { margin-top: 0; }
.packages-note p { font-size: 13px; line-height: 16px; font-weight: 300; letter-spacing: 0.3px; }
.packages-note p.n2 { margin-top: 2px; }
.packages-note p.n3 { line-height: 18px; margin-top: 1px; }
.packages-cta { text-align: center; font-family: var(--font-din); }
.price-note {
  color: #f7f7f7;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.25px;
  line-height: 24px;
  margin: 21px auto 0;
}
.price-note-light {
  color: #cccccc;
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.5px;
  line-height: 24px;
  margin: 0 auto;
}
.cta-lead {
  color: #f7f7f7;
  font-size: 17px;
  letter-spacing: 0.5px;
  line-height: 24px;
  font-weight: 300;
  margin-top: 32px;
}
.cta-button {
  display: inline-block;
  margin-top: 9px;
  width: 107px;
  height: 26px;
  line-height: 26px;
  background: rgba(255, 255, 255, 0.5);
  color: #2f2e2e !important;
  font-family: var(--font-din);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-decoration: none;
}
.cta-button:hover { background: rgba(255, 255, 255, 0.65); }
@media (max-width: 999px) {
  .pkg-desc br { display: none; }
  .packages-note br { display: none; }
}

/* Пакети – десктоп 1:1 с оригинала в Wix (980px колона) */
@media (min-width: 1000px) {
  section.packages { padding: 39px 0 54px; }
  .packages .container { max-width: 980px; padding: 0; }
  .packages .section-title { font-size: 34px; line-height: 41px; margin: 0; }
  .packages .section-title-underline { margin: 22px auto 69px; }
  .packages-grid { flex-wrap: nowrap; justify-content: flex-start; gap: 44px; margin: 0 0 71px 0.5px; }
  .package-card li { height: var(--h); padding: 0; box-sizing: border-box; }
  .pkg-desc { white-space: nowrap; }
  .cta-button { transform: translateX(4px); }
  .pkg-footer { height: var(--h); }
  .packages-note { width: 794px; max-width: none; height: 250px; margin: 0 0 0 92.5px; padding: 16px 0 0; box-sizing: border-box; }
}

/* Contact – 1:1 с оригинала в Wix */
.contact { background: var(--color-dark); }
.contact-card {
  background: rgba(255, 255, 255, 0.65);
  max-width: 662px;
  margin: 0 auto;
  padding: 59px 24px 29px;
  text-align: center;
  color: #2f2e2e;
  font-family: var(--font-din);
}
.contact-card .section-title {
  font-family: var(--font-din);
  font-weight: 300;
  font-size: 34px;
  line-height: 41px;
  letter-spacing: normal;
  color: #2f2e2e;
  margin: 0;
}
.contact-card .section-title-underline { width: 36px; height: 3px; background: #2f2e2e; margin: 17px auto 24px; }

.contact-form {
  display: flex;
  flex-direction: column;
  width: 358px;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}
.contact-form label {
  font-size: 17px;
  line-height: 24px;
  font-weight: 300;
  color: #2f2e2e;
  margin: 6px 0 8px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea {
  height: 42px;
  border: 1px solid #2f2e2e;
  border-radius: 0;
  background: #fff;
  padding: 0 12px;
  font-family: var(--font-din);
  font-size: 16px;
  font-weight: 300;
  color: #2f2e2e;
  box-sizing: border-box;
}
.contact-form textarea { height: 92px; padding: 10px 12px; resize: none; }
.contact-form input:focus, .contact-form textarea:focus { outline: 1px solid #2f2e2e; }
.contact-form button {
  height: 42px;
  margin-top: 5px;
  background: #2f2e2e;
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--font-din);
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
  width: 100%;
}
.contact-form button:hover { background: #454444; }

.contact-info { margin-top: 12px; font-size: 19px; line-height: 23px; font-weight: 300; color: #2f2e2e; }
.contact-info a { color: #2f2e2e; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.ci-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ci-row.phone, .ci-row.mail { height: 28px; }
.ci-row.fb { height: 30px; margin-top: 1px; gap: 8px; }
.ci-row a { letter-spacing: 0.4px; }
.ci-row.phone a { font-weight: 500; letter-spacing: 0.8px; }
.contact-info .ci { width: 28px; height: 28px; fill: #2f2e2e; flex-shrink: 0; padding: 3px; box-sizing: border-box; }
.contact-info .ci-fb { width: 30px; height: 30px; flex-shrink: 0; }
.contact-info .hours { margin-top: 46px; font-size: 19px; line-height: 23px; }
.contact-info .hours strong { font-weight: 500; }
.contact-info .address { margin-top: 7px; font-size: 17px; line-height: 20px; }

@media (min-width: 1000px) {
  section.contact { padding: 118px 0 76px; }
  .contact .container { max-width: 980px; padding: 0; }
  .contact-card { width: 662px; height: 907px; margin: 0 0 0 159.5px; padding: 59px 0 0; box-sizing: border-box; }
  .ci-row { transform: translateX(-8px); }
}
@media (max-width: 560px) {
  .contact-card { padding: 40px 16px 26px; }
  .contact-info { font-size: 17px; }
  .ci-row.fb a { font-size: 16px; }
}

/* Footer */
footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 22px;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Gallery pages */
.gallery-header {
  text-align: center;
  padding: 20px 24px 15px;
  background: #fff;
  color: var(--color-text);
}
.gallery-header h1 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(24px, 4.65vw, 35px);
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.gallery-header .section-title-underline { margin: 18px auto; background: #2f2e2e; }
.gallery-header p { color: #000; font-size: 17.5px; white-space: nowrap; margin: 0 auto; }

.gallery-subheader {
  text-align: center;
  background: #fff;
  padding: 30px 24px 0;
}
.gallery-subheader p {
  color: var(--color-text-soft);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.masonry {
  columns: 3;
  column-gap: 14px;
  padding: 50px 24px;
  max-width: 1300px;
  margin: 0 auto;
}
.masonry img { width: 100%; margin-bottom: 14px; break-inside: avoid; }

/* Project carousel galleries */
.projects-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 25px 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}
.project-gallery h3 { display: none; }
.carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}
.carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.carousel:hover::before { opacity: 0.2; }
.carousel:has(.car-arrow:hover)::before { opacity: 0; }
/* Колаж – последната галерия в „Жилищни“, като в Wix */
.collage { display: flex; flex-direction: column; gap: 10px; }
.collage-row { display: flex; gap: 10px; }
.collage-row img {
  flex: var(--ar) 1 0;
  width: 0;
  aspect-ratio: var(--ar);
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.collage-row img.wide { aspect-ratio: 2.18; }
.collage-row img:hover { opacity: 0.85; }
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
}
.lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  z-index: 3;
}
.lb-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  min-width: 60px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}
.lb-arrow svg { width: 34px; height: auto; }
.lb-prev { left: 0; justify-content: flex-start; padding-left: 16px; }
.lb-next { right: 0; justify-content: flex-end; padding-right: 16px; }
.lb-arrow:hover svg { opacity: 0.7; }
.car-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  width: 20%;
  cursor: pointer;
  padding: 0;
}
.car-arrow svg { width: 22px; height: auto; filter: drop-shadow(0 0 3px rgba(0,0,0,0.6)); }
.car-arrow.prev { left: 0; justify-content: flex-start; padding-left: 6px; }
.car-arrow.next { right: 0; justify-content: flex-end; padding-right: 6px; }
.car-arrow:hover svg { opacity: 0.7; }
.car-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.dot.active { background: #fff; }

@media (max-width: 700px) {
  .projects-container { grid-template-columns: 1fr; }
}

.placeholder-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 24px;
  background: #faf3ea;
  border: 1px dashed #c9a876;
  font-size: 14px;
  color: #7a6742;
}

@media (max-width: 900px) {
  .masonry { columns: 2; }
  .divider { background-attachment: scroll; }
}
@media (max-width: 560px) {
  .masonry { columns: 1; }
  .site-header nav { gap: 14px; font-size: 11px; }
  .project-image img { aspect-ratio: 4 / 3; }
}


/* Мобилно меню (☰) – скрито на компютър */
.menu-toggle, .mobile-menu { display: none; }
@keyframes mtTop { 0% { transform: none; } 50% { transform: translate(-1px, 2.35px) rotate(-25deg); } 100% { transform: translateY(7px) rotate(-45deg); } }
@keyframes mtBot { 0% { transform: none; } 50% { transform: translate(-1px, -2.35px) rotate(25deg); } 100% { transform: translateY(-7px) rotate(45deg); } }
@keyframes mtMid { 0% { opacity: 1; transform: none; } 40% { opacity: 0; transform: scaleX(0.3); } 100% { opacity: 0; transform: scaleX(0.3); } }
@keyframes mtTopB { 0% { transform: none; } 50% { transform: translate(-1px, 2.35px) rotate(-25deg); } 100% { transform: translateY(7px) rotate(-45deg); } }
@keyframes mtBotB { 0% { transform: none; } 50% { transform: translate(-1px, -2.35px) rotate(25deg); } 100% { transform: translateY(-7px) rotate(45deg); } }
@keyframes mtMidB { 0% { opacity: 1; transform: none; } 40% { opacity: 0; transform: scaleX(0.3); } 100% { opacity: 0; transform: scaleX(0.3); } }

/* Мобилна версия (телефон): по-малко начало и по-сбити секции */
@media (max-width: 767px) {
  /* 1-ви слайд с логото – 50% */
  .hero { height: 320px; }
  /* квадратът с логото – 70% от оригинала, с реални размери (без scale), за да е остър */
  .logo-box { width: 208px; height: 198px; }
  .logo-img { top: 25px; left: 25px; width: 156px; height: 160px; }
  .logo-box .logo-shadow { top: 197px; left: -15px; width: 236px; height: 18px; }
  .logo-box .logo-shadow span { width: 115.5px; height: 18px; background-size: 231px 18px; }
  .logo-box .logo-shadow span:last-child { left: 120.5px; }
  /* отстояния горе/долу на секциите – 60% по-малко */
  section.services, section.about, section.packages, section.contact { padding-top: 32px; padding-bottom: 32px; }
  section.projects { padding-top: 32px; padding-bottom: 32px; }
  /* разделителите със закования фон – 50% по-ниски */
  .divider { height: 100px; }
  /* затъмнението на разделителите – 40% по-светло (0.6 → 0.36) */
  .divider::before { background-image: linear-gradient(rgba(0,0,0,0.36), rgba(0,0,0,0.36)), url('../images/divider.jpg'); }
  /* разстояние между галериите – 50% по-малко */
  .projects-container { gap: 25px; }
  /* Наши проекти – галериите по-близо една до друга, надписите – по-близо до снимките */
  .project-block { margin-bottom: 24px; }
  .project-block:last-child { margin-bottom: 0; }
  .project-block h3 { margin-bottom: 4px; line-height: 1.2; }
  /* заглавието на страниците с галерии – като в Wix на телефон; подзаглавието се пренася и не разтяга страницата */
  .gallery-header { padding-top: 44px; padding-bottom: 0; }
  .gallery-header + .projects-container { padding-top: 15px; }
  .gallery-header h1 { font-family: var(--font-din); font-size: 27px; line-height: 32px; letter-spacing: normal; font-weight: 300; color: #2f2e2e; }
  .gallery-header .section-title-underline { width: 38px; height: 3px; background: #2f2e2e; margin: 25px auto 17px; }
  .gallery-header p { white-space: normal; font-family: var(--font-din); font-size: 20.5px; line-height: 25px; font-weight: 300; color: #2f2e2e; max-width: 342px; }
  .project-image::before { inset: 7px; }
  /* еднакви разстояния: 32px между края на всяка секция и съдържанието; ~20px от текста до ръба на всяко каре */
  .services-grid.wide { margin-bottom: 0; }
  .service-card { padding-top: 24px; padding-bottom: 22px; }
  .contact-card { padding-top: 16px; padding-bottom: 20px; }
  .packages-note { padding-top: 21px; padding-bottom: 19px; }
  /* цели пиксели за менюто, за да не пада логото на половин пиксел (размазване) */
  .site-header nav { line-height: 19px; }
  /* меню с ☰ вместо лентата с бутони – като в Wix */
  .site-header { height: 51px; }
  .site-header nav { display: none; }
  .menu-toggle {
    display: block; position: absolute; right: 12px; top: 3px;
    width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 1px; background: #cdcdcd; }
  .menu-toggle span:nth-child(1) { top: 14px; }
  .menu-toggle span:nth-child(2) { top: 21px; }
  .menu-toggle span:nth-child(3) { top: 28px; }
  .menu-toggle.is-open span:nth-child(1) { animation: mtTop 0.35s ease both; }
  .menu-toggle.is-open span:nth-child(2) { animation: mtMid 0.35s ease both; }
  .menu-toggle.is-open span:nth-child(3) { animation: mtBot 0.35s ease both; }
  .menu-toggle.is-closing span:nth-child(1) { animation: mtTopB 0.35s ease reverse both; }
  .menu-toggle.is-closing span:nth-child(2) { animation: mtMidB 0.35s ease reverse both; }
  .menu-toggle.is-closing span:nth-child(3) { animation: mtBotB 0.35s ease reverse both; }
  .mobile-menu {
    display: block; position: absolute; top: 33px; left: 50%; width: 232px; margin-left: -116px;
    background: #2f2e2e; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu a {
    display: block; height: 52px; line-height: 52px; text-align: center;
    font-family: var(--font-din); font-size: 22px; font-weight: 500; letter-spacing: normal; text-transform: none;
    color: #919191; text-decoration: none;
  }
  .mobile-menu a.current { background: #a4a4a3; color: #2f2e2e; }
  .mobile-menu a:active { color: #fff; }
  /* менюто на един ред */
  .site-header nav { flex-wrap: nowrap; justify-content: space-between; gap: 6px; padding-left: 12px; padding-right: 12px; letter-spacing: 0.05em; white-space: nowrap; max-width: 480px; margin: 0 auto; box-sizing: border-box; }
  /* За нас – отстояния като в Услуги (заглавие 32px от горния край, 52px под текста) */
  section.about { padding-top: 32px; padding-bottom: 32px; }
  /* За нас – същият дизайн като картата „Ландшафтен дизайн“ */
  .about-box { padding: 24px 26px 22px; }
  .about-box .section-title { font-size: 25px; line-height: 25px; letter-spacing: normal; font-weight: 300; color: #000; margin-bottom: 10px; }
  .about-box .section-title-underline { margin-bottom: 16px; }
  .about-box p { font-size: 17px; line-height: 17px; font-weight: 300; letter-spacing: normal; color: #2f2e2e; margin-bottom: 17px; }
  .about-box p:last-child { margin-bottom: 0; }
  /* заглавията в картите на Услуги – черни */
  .service-card h3 { color: #000; }
  /* Контакти – заглавие с размера на останалите секции */
  .contact-card .section-title { font-size: 24px; line-height: 40.8px; }
}

/* Компютър: горе/долу отстояния на всички секции – 20% по-малко */
@media (min-width: 768px) and (max-width: 999px) {
  section.services, section.about, section.packages, section.contact { padding-top: 64px; padding-bottom: 64px; }
  section.projects { padding-top: 45px; padding-bottom: 64px; }
}
@media (min-width: 1000px) {
  section.services { padding-top: 31px; padding-bottom: 35px; }
  section.projects { padding-top: 45px; padding-bottom: 64px; }
  section.about { padding-top: 64px; padding-bottom: 64px; }
  section.packages { padding-top: 31px; padding-bottom: 43px; }
  section.contact { padding-top: 94px; padding-bottom: 61px; }
}

/* Компютър – Услуги: отгоре още 20% по-малко, отдолу 35% по-малко */
@media (min-width: 768px) and (max-width: 999px) {
  section.services { padding-top: 51px; padding-bottom: 62px; }
}
@media (min-width: 1000px) {
  section.services { padding-top: 25px; padding-bottom: 45px; }
  /* „Жилищен“ – същата височина като „Обществен“ */
  .service-card.s1 { min-height: 325px; }
}

/* Компютър – Пакети: отгоре 20% по-малко, отдолу 35% по-малко */
@media (min-width: 768px) and (max-width: 999px) {
  section.packages { padding-top: 51px; padding-bottom: 42px; }
}
@media (min-width: 1000px) {
  section.packages { padding-top: 25px; padding-bottom: 28px; }
}

/* Компютър – бутоните „Галерия“ 5px по-нагоре от оригинала (сянката под тях – също) */
@media (min-width: 768px) {
  .gallery-btn { bottom: 23px; }
  .project-image::after { bottom: 7px; }
}

/* Компютър – „Снимки“: от подзаглавието до снимките – колкото от лентата до заглавието (~17px) */
@media (min-width: 768px) {
  .gallery-header:has(+ .masonry) { padding-bottom: 0; }
  .gallery-header + .masonry { padding-top: 12px; }
}

/* Компютър – Пакети: от чертата до картите колкото в Услуги (49px) */
@media (min-width: 1000px) {
  .packages .section-title-underline { margin-bottom: 49px; }
}

/* Стрелките в галериите – с 1px по-дебели (карусели: 1,65 → 2,65px; голям изглед: 2,55 → 3,55px) */
.car-arrow svg polyline { stroke-width: 4.82; }
.lb-arrow svg polyline { stroke-width: 4.18; }
