/* ЛАЗАРА – единственият CSS файл на сайта. Без рамки и външни библиотеки.
   Цветовете, шрифтовете и фоновете повтарят стария сайт lazara.eu.
   Изображенията за дизайна са в static/images/site/, шрифтовете – в static/fonts/. */

@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Light.ttf") format("truetype"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --blue: #008fcc;          /* основно синьо (менюто) */
  --blue-light: #26b6f3;    /* горе в менюто */
  --blue-dark: #0c6388;     /* посочен бутон в менюто, падащо меню */
  --blue-hover: #00a0e3;    /* посочена новина, подменю */
  --ink: #333;
  --gray-title: #858585;    /* големите сиви заглавия */
  --gray-label: #6f6f6f;
  --line: #e6e6e6;
  --footer: #28a0df;
  --footer-dark: #1b6e99;
  --font: "Roboto", "Segoe UI", Arial, sans-serif;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --wave-h: clamp(48px, 15.6vw, 200px);  /* височина на вълната под снимките */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 18px/1.55 var(--font); color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; overflow-wrap: break-word; }
.in { width: 90%; max-width: 1500px; margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--gray-label); font-size: .9em; }

/* Леко уголемяване при посочване (както на стария сайт) */
.grow { transition: transform .2s ease-in-out; }
a:hover .grow, .grow:hover { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .grow, html { transition: none; scroll-behavior: auto; } a:hover .grow, .grow:hover { transform: none; } }

/* Тънка сива линия между секциите */
.line1 { height: 1px; background: var(--line); }

/* ---------- Горна част ---------- */
.topbar { background: linear-gradient(#f4f4f4, #fefefe); min-height: 40px; }
.topbar .in { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 40px; }
.logo { position: absolute; left: 0; top: 0; z-index: 30; width: clamp(200px, 22vw, 320px); line-height: 0; }
.logo img { width: 100%; }
.top-contacts { display: flex; align-items: center; gap: 22px; padding: 5px 0; font-size: 17px; }
.top-mail { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.flags { display: inline-flex; gap: 6px; }
.flags img { display: block; }

.menubar {
  position: relative; z-index: 20;
  background: linear-gradient(var(--blue-light), var(--blue) 80%, var(--blue));
  border-bottom: 3px solid #5ec2ea;
  box-shadow: 0 5px 6px -2px rgba(0, 0, 0, .35);
}
.menubar .in { display: flex; justify-content: flex-end; min-height: 48px; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; color: #fff; font: 700 16px/24px var(--font-head); text-transform: uppercase; white-space: nowrap; text-decoration: none; }

/* Широк екран: менюто е в един ред, вдясно; „Услуги“ разгъва падащо меню */
.nav-wide .menu { display: flex; align-items: stretch; margin-left: calc(clamp(200px, 22vw, 320px) + 16px); }
.nav-wide .menu > li { position: relative; }
.nav-wide .menu > li > a { padding: 12px 13px; }
.nav-wide .menu > li:hover > a, .nav-wide .menu > li:focus-within > a, .nav-wide .menu > li > a[aria-current] { background: var(--blue-dark); }
.nav-wide .has-sub > a::after { content: ""; display: inline-block; margin-left: 7px; vertical-align: 3px; border: 4px solid transparent; border-top-color: #fff; border-bottom: 0; }
.nav-wide .sub { position: absolute; left: 0; top: 100%; min-width: 100%; background: var(--blue-dark); box-shadow: 1px 1px 5px -1px #333; opacity: 0; visibility: hidden; transition: opacity .3s; }
.nav-wide .has-sub:hover .sub, .nav-wide .has-sub:focus-within .sub { opacity: 1; visibility: visible; }
.nav-wide .sub a { padding: 8px 16px 8px 14px; }
.nav-wide .sub a:hover, .nav-wide .sub a[aria-current] { background: var(--blue-hover); }

/* Телефон и таблет: бутон „Меню“ (без JavaScript) */
.nav-toggle { width: 100%; }
.nav-toggle summary { list-style: none; cursor: pointer; color: #fff; font: 700 16px/48px var(--font-head); text-transform: uppercase; text-align: right; }
.nav-toggle summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: inline-block; width: 22px; height: 3px; background: #fff; border-radius: 2px; position: relative; }
.burger { margin-right: 10px; vertical-align: 4px; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav-toggle[open] summary .burger { background: transparent; }
.nav-toggle[open] summary .burger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[open] summary .burger::after { top: 0; transform: rotate(-45deg); }
.nav-toggle nav { background: var(--blue-dark); margin: 0 calc((100vw - 100%) / -2); padding: 4px 0 10px; }
.nav-toggle .menu a { padding: 11px 6%; }
.nav-toggle .menu a[aria-current] { background: var(--blue-hover); }
.nav-toggle .sub a { padding-left: calc(6% + 22px); font-size: 14px; }

@media (max-width: 1099px) {
  .nav-wide { display: none; }
  .topbar .in { justify-content: space-between; flex-wrap: wrap; }
  .logo { position: static; width: clamp(150px, 40vw, 220px); margin: 6px 0; }
  .top-contacts { gap: 12px; font-size: 15px; }
}
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
}
@media (max-width: 520px) {
  .top-mail { font-size: 0; }   /* на малък екран остава само иконата на имейла */
}

/* ---------- Въртящи се снимки ---------- */
.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 1920 / 650; object-fit: cover; scroll-snap-align: start; display: block; }
.slider .arrow { position: absolute; top: 40%; transform: translateY(-50%); z-index: 6; width: 46px; height: 46px; border: 0; cursor: pointer; background: rgba(0, 0, 0, .55); color: #ddd; font: 40px/40px Arial, sans-serif; }
.slider .arrow:hover { background: rgba(0, 0, 0, .8); color: #fff; }
.slider .prev { left: 6px; } .slider .next { right: 6px; }
.slider .wave { position: absolute; left: 0; bottom: calc(var(--wave-h) / -2); width: 100%; height: var(--wave-h); z-index: 5; pointer-events: none; }
@media (max-width: 700px) { .slider .arrow { display: none; } }

/* ---------- Трите кръга с услугите ---------- */
.services { position: relative; z-index: 7; width: 90%; margin: calc(var(--wave-h) * -.25) auto 0; padding: 10px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2%; justify-items: center; }
.services a { display: block; width: 95%; line-height: 0; }
@media (max-width: 700px) {
  .services { grid-template-columns: 1fr; margin-top: calc(var(--wave-h) / 2); padding-bottom: 20px; gap: 0; }
  .services a { width: min(240px, 72%); }
}

/* ---------- Секции със сив „кристален“ фон ---------- */
.poly { background: url("../images/site/bgr2.png") no-repeat left top; }
.poly-in { background: url("../images/site/bgr3.png") no-repeat right top; padding: 40px 5% 50px; }
.inner-page .poly-in { padding-top: 60px; min-height: 420px; }
.zagl { font: 700 33px/1.2 var(--font-head); color: var(--gray-title); text-transform: uppercase; text-align: center; margin: 0 0 1.2em; }
@media (max-width: 700px) { .zagl { font-size: 24px; } .poly-in { padding: 28px 16px 36px; } }

/* Текстът на началната страница: списъци с отметки */
.intro { max-width: 1500px; margin: 0 auto; }
.intro h3 { font: 400 22px/1.3 var(--font); text-transform: uppercase; margin: 1.6em 0 .2em; }
.intro h3:first-child { margin-top: 0; }
.intro ul, ul.checks { list-style: none; padding: 0; margin: 0; }
.intro li, ul.checks li { padding-left: 30px; background: url("../images/site/check.png") no-repeat 3px .35em / 20px auto; }

/* Бутонът „Прочетете още“ (тъмносив, заоблен) */
.btn-more { display: inline-block; margin-top: 28px; padding: 9px 22px; border-radius: 6px; background: #4d4d4d; color: #fff; font: 400 15px/1.3 var(--font); box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s; }
.btn-more:hover { transform: scale(1.1); text-decoration: none; }

/* Лента „Работни места“ на началната страница */
.careers-band { background: linear-gradient(var(--blue-light), var(--blue)); color: #fff; padding: 34px 0 38px; text-align: center; }
.careers-band h2 { font: 700 26px/1.25 var(--font-head); text-transform: uppercase; margin: 0 0 14px; }
.careers-band ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 19px; }
.careers-band li span { opacity: .85; }
.btn-light { display: inline-block; padding: 10px 24px; border-radius: 6px; background: #fff; color: var(--blue-dark); font: 700 15px/1.3 var(--font-head); text-transform: uppercase; transition: transform .2s; }
.btn-light:hover { transform: scale(1.06); text-decoration: none; }

/* ---------- Новини („Актуално“) ---------- */
.news-block { padding: 50px 2.5% 30px; }
.news-grid { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 300px)); justify-content: center; gap: 10px 0; }
.news-card a { display: block; text-align: center; padding: 5px; text-decoration: none; }
.news-card img, .news-card .noimg { display: block; width: 100%; aspect-ratio: 420 / 260; object-fit: cover; background: #eef2f4; }
.news-card .t { display: block; padding: 12px 0 0; font: 700 18px/1.3 var(--font-head); color: var(--ink); }
.news-card .t::after { content: ""; display: block; width: 100px; height: 21px; margin: 4px auto 0; background: url("../images/site/line2.png") no-repeat center / contain; }
.news-card a:hover .t { color: var(--blue-hover); }

/* ---------- Връзка с нас ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 5%; align-items: center; max-width: 1300px; margin: 0 auto; }
.map iframe { display: block; width: 100%; height: 250px; border: 0; }
.contact-info { display: grid; grid-template-columns: auto auto; gap: 10px 30px; }
.contact-info p { margin: 0 0 20px; font-size: 18px; }
.contact-info em { color: var(--gray-label); font-size: 16px; }
.contact-info .big { font-size: 19px; }
.social { display: inline-flex; gap: 6px; margin-top: 5px; }
.social img { display: block; }
@media (max-width: 800px) { .contact-grid, .contact-info { grid-template-columns: 1fr; } }

/* ---------- Вътрешни страници ---------- */
.content { max-width: 1100px; margin: 0 auto; font-size: 18px; }
.content p { text-align: justify; }
.content p.center { text-align: center; }
.content h2 { font: 400 22px/1.3 var(--font); text-transform: uppercase; margin: 1.6em 0 .4em; }
.content a:not(.btn):not(.btn-more) { color: var(--blue); }
/* Снимки под текста (новини, „За нас“, „Клиенти“) */
.gallery { list-style: none; padding: 0; margin: 30px 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery li { text-align: center; }
.gallery a { display: block; line-height: 0; }
.gallery img { width: 100%; aspect-ratio: 350 / 180; object-fit: cover; padding: 4px; border: 1px solid #ddd; border-radius: 4px; background: #fff; }
.gallery span { display: block; padding-top: 8px; font-style: italic; }
.content .video { margin: 24px auto; max-width: 800px; }
.content iframe { display: block; width: 100%; max-width: 800px; aspect-ratio: 16 / 9; height: auto; margin: 24px auto; border: 0; }
.news-card .d { display: block; padding-top: 2px; font-size: 15px; color: var(--gray-label); }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .content p { text-align: left; } }

/* Обяви за работа */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; background: #f4f8fa; border-left: 4px solid var(--blue); padding: 14px 18px; }
.facts dt { color: var(--gray-label); }
.facts dd { margin: 0; font-weight: 700; }
.job-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.job-list li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); padding: 12px 16px; }
.job-list a { font: 700 18px/1.3 var(--font-head); color: var(--ink) !important; }
.job-list a:hover { color: var(--blue-hover) !important; }
.job-list .muted { display: block; margin-top: 2px; }

/* Бутони и формуляр за кандидатстване */
.btn { display: inline-block; min-height: 44px; padding: 10px 18px; border: 1px solid var(--blue); border-radius: 6px; background: #fff; color: var(--blue-dark); font: 700 15px/1.4 var(--font-head); text-transform: uppercase; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; background: #eef8fd; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.apply { margin-top: 40px; padding: 26px 0 10px; border-top: 1px solid var(--line); }
.apply h2 { font: 700 26px/1.2 var(--font-head); color: var(--gray-title); text-transform: uppercase; margin-top: 0; }
.apply form { max-width: 700px; }
.apply p { text-align: left; }
.apply input:not([type=checkbox]), .apply select, .apply textarea { width: 100%; padding: 10px; font: inherit; border: 1px solid #ccc; border-radius: 4px; background: #fff; }
.apply input:focus, .apply select:focus, .apply textarea:focus { outline: 2px solid var(--blue-hover); border-color: var(--blue-hover); }
.mail-hint { color: var(--gray-label); font-size: .95em; max-width: 700px; }
.consent { font-size: .92em; }
.consent input { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Долна част (синя, с вълна) ---------- */
.site-footer {
  position: relative; color: #fff; font-size: 16px;
  background: var(--footer-dark) url("../images/site/footer-bgr.jpg") repeat-x center top;
  padding: clamp(90px, 9vw, 130px) 0 26px;
}
.site-footer a { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 200px 1fr 1fr 1fr; gap: 24px; }
.site-footer h2 { font: 700 16px/1.3 var(--font-head); text-transform: uppercase; margin: 0 0 4px; }
.site-footer h2::after { content: ""; display: block; width: 20px; height: 2px; background: #fff; margin: 6px 3px 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 1.7; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 70px; font-size: 15px; text-transform: uppercase; }
.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { text-align: right; }
.to-top { position: fixed; left: 8px; bottom: 15px; z-index: 50; opacity: .8; line-height: 0; }
.to-top:hover { opacity: 1; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .to-top { display: none; } .careers-band h2 { font-size: 21px; } }
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; margin-top: 36px; }
  .footer-bottom p:last-child { text-align: center; }
}
