/* Ес Нет: всички стилове на публичната част */
:root {
  --red: #f11111;
  --ink: #262626;
  --black: #000;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 15px/1.43 Arial, Helvetica, sans-serif; color: var(--ink); background: var(--black); }
main { overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: #dedede; }
h1, h2, h3, h4 { margin: 0; overflow-wrap: anywhere; }
p { margin: 0 0 10px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.center { text-align: center; }
.sr, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 16px; background: var(--white); }
.hp { position: absolute; left: -9999px; }
.btn { display: inline-block; min-width: 100px; padding: 15px; border: 0; border-radius: 5px; background: var(--red); color: var(--white); font: 700 18px/1.3 Arial, Helvetica, sans-serif; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--ink); color: var(--white); }

/* Шапка */
.site-header { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 115px; padding: 0 70px 0 0; background: var(--black); border-bottom: 5px solid var(--red); }
.logo { flex: none; }
.logo img { width: auto; height: 110px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.main-nav a, .sub-toggle { display: block; width: 100%; margin: 0; padding: 15px 30px; border: 0; border-radius: 5px; background: none; color: var(--white); font: 400 18px/18px Arial, Helvetica, sans-serif; text-align: left; cursor: pointer; transition: background .2s; }
.main-nav a:hover, .sub-toggle:hover, .main-nav li.active > a, .main-nav li.active > .sub-toggle, .has-sub.open > .sub-toggle, .has-sub:hover > .sub-toggle { background: var(--red); color: var(--white); }
.sub-toggle::after { content: ""; display: inline-block; margin-left: 8px; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; vertical-align: middle; }
.has-sub { position: relative; }
.submenu { position: absolute; z-index: 5; top: 100%; left: 0; display: none; min-width: 260px; padding: 5px 0 !important; border: 1px solid var(--red); border-radius: 5px; background: rgba(0, 0, 0, .9); }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu { display: block; }
.submenu a, .submenu .sub-toggle { padding: 8px 20px; font-size: 14px; line-height: 20px; }
.langs { position: absolute; top: 12px; right: 20px; display: flex; gap: 10px; }
.langs a { color: var(--white); font-size: 18px; line-height: 18px; text-transform: uppercase; }
.langs a:hover { color: var(--red); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--white); border-radius: 4px; background: none; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--white); }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }

/* Слайдер */
.slider { position: relative; overflow: hidden; aspect-ratio: 1645 / 665; min-height: 240px; width: 100%; background: var(--black); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.slide.active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; top: 50%; left: 50%; width: min(70%, 900px); transform: translateY(-50%) translateX(-50%); color: var(--white); text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.slide-title { margin: 0 0 10px; font-size: clamp(18px, 3.7vw, 38px); font-weight: 700; line-height: 1.43; }
.slide-slogan { margin: 0 0 10px; font-size: 15px; font-style: italic; }
.slider-arrow { position: absolute; z-index: 3; top: 50%; width: 40px; height: 60px; margin-top: -30px; border: 0; background: none; color: var(--white); font-size: 60px; font-weight: 100; line-height: 50px; opacity: .6; cursor: pointer; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.slider-arrow:hover { opacity: 1; }
.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }
.scroll-hint { position: absolute; z-index: 3; bottom: 4%; left: 50%; margin-left: -15px; animation: bounce 4s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } 60% { transform: translateY(-6px); } }

/* Червена лента с икони */
.slide-icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 140px; background: var(--red); }
.slide-icons button { padding: 10px 4px; border: 0; background: none; color: var(--white); font: 400 20px/1.2 "Arial Narrow", Arial, sans-serif; cursor: pointer; }
.slide-icons img { width: 88px; margin: 0 auto 6px; transition: filter .2s; }
.slide-icons button:hover img { filter: drop-shadow(2px 10px 10px rgba(0, 0, 0, .75)); }

/* Начална страница */
.home-body .cols { background: var(--white); }
.home-body .cols .col img { width: 100%; height: 100%; object-fit: cover; }
.home-body .rich { padding: 20px; color: var(--ink); font-size: 16px; text-align: center; }
.home-body .rich h1, .home-body .rich h2 { margin: 30px 0; padding: 0; background: none; color: var(--black); font-size: 24px; font-weight: 700; line-height: 26px; }

/* Вътрешни страници */
.page-banner { max-height: 120px; overflow: hidden; border-bottom: 10px solid var(--red); }
.page-banner img { width: 100%; }
.page-body { background: var(--black) var(--bg-content) 0 0 / 100% 100%; color: var(--white); padding-top: 20px; }
.page-body.with-map { background: var(--black) var(--bg-contact) center top / cover; }
.page-title { min-height: 48px; margin: 0 0 0 20px; padding: 12px 0 0 56px; background: url(../img/logo48.png) left center no-repeat; color: var(--white); font-size: 24px; font-weight: 700; line-height: 26px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.wide { grid-template-columns: 7fr 5fr; }
.col:only-child { grid-column: 1 / -1; }
.page-body .cols { padding: 20px 10px 30px 0; }
.page-body .col img { width: 100%; margin-top: 20px; }
.page-body .rich { padding: 20px 15px 0 22px; }
.rich > :last-child { margin-bottom: 0; }
.rich h2 { min-height: 40px; margin: 16px 0 8px; padding: 6px 0 0 40px; background: url(../img/logo32.png) left top no-repeat; color: var(--white); font-size: 20px; font-weight: 700; line-height: 1.3; }
.rich h3 { margin: 16px 0 8px; font-size: 18px; }
.rich ul { margin: 0 0 10px; padding-left: 1.4em; }
.rich li { margin-bottom: 4px; }
.rich img { margin-block: 10px; }
.rich-text { padding: 20px 22px 30px; }
.rich-text.center .btn { margin-top: 10px; }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 10px 20px 30px; background: var(--black) var(--bg-services) 0 0 / 100% 100% no-repeat; color: var(--white); text-align: center; }
.page-body .services { border-top: 10px solid var(--red); }
.service h2 { margin: 10px 0 30px; padding: 10px; font-size: 30px; line-height: 40px; }
.service h2 a { color: var(--white); }
.service h2 a:hover { color: #dedede; }
.service .btn { display: block; max-width: 220px; margin: 20px auto; }

/* Контакти */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 30px 20px; }
.contact h2 { min-height: 40px; margin: 0 0 12px 3px; padding: 4px 0 0 40px; background: url(../img/logo32.png) left top no-repeat; font-size: 20px; line-height: 1.3; }
.contact-info p { margin-bottom: 10px; }
.contact-info a { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-size: 15px; }
.contact-info a:hover { color: var(--red); }
.contact-info svg { flex: none; width: 22px; height: 22px; fill: currentColor; }
.map { display: block; width: 100%; height: 320px; margin-top: 16px; border: 0; }
.contact-form label { display: block; max-width: 600px; margin-bottom: 15px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { width: 100%; min-height: 45px; padding: 8px 10px; border: 1px solid var(--red); border-radius: 4px; background: rgba(0, 0, 0, .35); font: inherit; color: var(--white); }
.contact-form textarea { min-height: 240px; resize: vertical; }
.contact-form ::placeholder { color: #bbb; opacity: 1; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--white); outline-offset: 0; }
.notice { max-width: 600px; padding: 10px 14px; border-radius: 4px; font-weight: 700; }
.notice.ok { background: #e4f7e4; color: #14511a; }
.notice.error { background: #fde3e3; color: #8d1616; }

/* Долна част */
.site-footer { border-top: 10px solid var(--red); background: var(--black) var(--bg-footer) 0 0 / 100% 100% no-repeat; color: var(--white); font-size: 16px; }
.footer-inner { display: grid; grid-template-columns: 3fr 7fr 2.4fr; gap: 24px; min-height: 150px; padding: 20px; background: rgba(0, 0, 0, .7); }
.site-footer a { color: var(--white); transition: color .2s; }
.site-footer a:hover { color: var(--red); }
.footer-logo img { width: auto; max-height: 110px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0 0 14px; padding: 0; }
.footer-address { margin: 0 0 20px; }
.footer-address a, .footer-contact a { display: inline-flex; align-items: flex-start; gap: 10px; }
.site-footer svg { flex: none; width: 16px; height: 16px; margin-top: 3px; fill: currentColor; }
.footer-copy { margin: 0; font-size: 14px; }
.footer-contact a { display: flex; margin-bottom: 4px; }

@media (max-width: 1100px) {
  .main-nav a, .sub-toggle { padding: 15px 14px; }
  .site-header { padding-right: 16px; }
  .langs { top: 8px; }
}
@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; min-height: 0; padding: 6px 16px; }
  .logo img { height: 80px; }
  .nav-toggle { display: block; margin-right: 40px; }
  .langs { top: 18px; right: 16px; }
  .main-nav { display: none; width: 100%; padding-bottom: 8px; }
  .main-nav.open { display: block; }
  .main-nav > ul { display: block; }
  .main-nav a, .sub-toggle { padding: 11px 12px; font-size: 16px; }
  .submenu { position: static; display: none; min-width: 0; margin: 4px 0 4px 12px; background: none; }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: none; }
  .has-sub.open > .submenu { display: block; }
  .cols, .cols.wide, .contact { grid-template-columns: minmax(0, 1fr); }
  .page-body .cols { padding-right: 0; }
  .page-body .rich { padding-inline: 16px; }
  .page-body .col img { padding-inline: 16px; }
  .home-body .cols .col img { height: auto; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .footer-logo img { margin-inline: auto; }
  .footer-address a, .footer-contact a { justify-content: center; }
  .site-footer { background-size: 200% 100%; }
}
@media (max-width: 640px) {
  .slide-caption { width: 78%; }
  .slide-slogan { font-size: 13px; }
  .slide-icons { min-height: 100px; }
  .slide-icons button { font-size: 13px; }
  .slide-icons img { width: 50%; max-width: 64px; }
  .scroll-hint { display: none; }
  .slider-arrow { width: 28px; font-size: 44px; }
  .slider-arrow.prev { left: 4px; }
  .slider-arrow.next { right: 4px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service h2 { margin-bottom: 12px; font-size: 26px; }
  .page-title { margin-left: 16px; }
  .contact { padding: 20px 16px; }
}
