:root{
  --bg: #fbf6ef;
  --paper: rgba(255,255,255,.88);
  --card: rgba(255,255,255,.92);

  --text: #1b1b1b;
  --muted: rgba(27,27,27,.65);
  --line: rgba(27,27,27,.12);

  --accent: #ff6b6b;
  --accent2:#2ec4b6;
  --accent3:#ffd166;

  --shadow: 0 20px 50px rgba(0,0,0,.10);
  --shadow2: 0 12px 30px rgba(0,0,0,.08);

  --radius: 28px;
  --radius2: 22px;

  --maxw: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --fontHead: ui-serif, Georgia, "Times New Roman", Times, serif;

  /* Bulgarian flag */
  --bg-flag-white: #ffffff;
  --bg-flag-green: #00966E;
  --bg-flag-red:   #D62612;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 650px at 10% -10%, rgba(255,107,107,.20), transparent 60%),
    radial-gradient(900px 520px at 95% 0%, rgba(46,196,182,.16), transparent 62%),
    radial-gradient(820px 600px at 20% 110%, rgba(255,209,102,.16), transparent 62%),
    var(--bg);
}

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

.container{
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER (NOT STICKY) */
.site-header{
  border-bottom: 1px solid var(--line);
  background: rgba(251, 246, 239, .82);
  backdrop-filter: blur(14px);
}

/* Top info row */
.header-top{
  border-bottom: 1px solid rgba(27,27,27,.08);
}
.header-top-inner{
  display:flex;
  align-items:center;
  gap:18px;
  padding: 14px 0;
}

.brand{display:flex; gap:12px; align-items:center}

.logo-slot{
  width:52px;
  height:52px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#fff;
  box-shadow: 0 16px 35px rgba(0,0,0,.12);
  font-size: 22px;
}

.title{
  font-family: var(--fontHead);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.subtitle{
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.header-meta{
  margin-left:auto;
  display:flex;
  flex-direction:column;
  gap:4px;
  text-align:right;
  min-width: 260px;
}
.meta-line{font-size:13.5px}
.meta-line.muted{color:var(--muted); font-size:12.5px}

.header-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Font size controls (A-/A+) */
.font-controls{
  display:flex;
  gap:6px;
  align-items:center;
}
.fontbtn{
  min-width: 44px;
  padding: 10px 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

@media (max-width: 520px){
  .fontbtn{ padding: 9px 10px; min-width: 40px; }
}

/* Nav row */
.header-nav{
  background: rgba(251, 246, 239, .70);
  position: relative; /* anchor the mobile menu overlay */
}
.header-nav-inner{
  padding: 10px 0 12px;
  width: 100%;
}

/* -------------------------------------------------
   NAV (desktop) - one row, auto-resizing (best-flex)
   ------------------------------------------------- */
.topnav{
  display:flex;
  align-items:center;

  /* Гъвкаво разстояние между бутоните според ширината */
  gap: clamp(2px, 0.5vw, 2px);

  flex-wrap: nowrap;              /* <= един ред */
  width: 100%;

  /* Fallback ако стане твърде дълго (например много бутони) */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-right: 2px;             /* микрозащита да не “отрязва” последния пиксел */
}
.topnav::-webkit-scrollbar{ display:none; }

/* -------------------------------------------------
   TOP NAV – desktop
   Центрирано + автоматично оразмеряване
   ------------------------------------------------- */
.topnav{
  display: flex;
  align-items: center;

  /* Центрира менюто спрямо страницата */
  justify-content: center;

  /* Автоматично адаптивно разстояние между бутоните */
  gap: clamp(2px, 0.5vw, 2px);


  /* Един ред */
  flex-wrap: nowrap;

  /* Заема цялата ширина на ейнера */
  width: 100%;

  /* Безопасен fallback при много бутони */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  /* Малка защита да не се „реже“ последният бутон */
  padding-right: 2px;
}

.topnav::-webkit-scrollbar{
  display: none;
}

/* -------------------------------------------------
   TOP NAV LINKS
   ------------------------------------------------- */
.topnav a{
  text-decoration: none;

  /* Автоматично оразмеряване на бутоните */
  padding:
    clamp(8px, 0.65vw, 10px)
    clamp(10px, 1.1vw, 14px);

  border-radius: 999px;

  /* Автоматично оразмеряване на текста */
  font-size: clamp(13px, 0.95vw, 14px);

  background: rgba(255,255,255,.55);
  border: 1px solid transparent;

  white-space: nowrap;

  /* ✅ НОВО: да не излиза текстът извън бутона */
  overflow: hidden;
  text-overflow: ellipsis;

  /* Позволява леко свиване */
  flex: 0 1 auto;
  min-width: 0;

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    border-color .12s ease,
    background .12s ease;
}

/* ✅ НОВО: active ефект като вертикалното меню (черен бутон) */
.topnav a.active{
  background: rgba(27,27,27,.92);
  color: rgba(251,246,239,.95);
  border-color: rgba(27,27,27,.22);
}


/* HOME icon (🏠) */
.topnav a.home-link{
  display: grid;
  place-items: center;
  min-width: 44px;

  padding:
    clamp(8px, 0.65vw, 10px)
    clamp(10px, 0.9vw, 12px);
}

/* Hover */
.topnav a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.92);
  border-color: rgba(27,27,27,.10);
  box-shadow: var(--shadow2);
}

/* Active */
.topnav a.active{
  background: rgba(255,255,255,.92);
  color: var(--text);
  border-color: rgba(27,27,27,.18);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}


/* HOME icon link (JS добавя class="home-link") */
.topnav a.home-link{
  display:grid;
  place-items:center;
  min-width: 44px;  /* удобен размер за клик */
  padding:
    clamp(8px, 0.65vw, 10px)
    clamp(10px, 0.9vw, 12px);
}

.topnav a:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
  background: rgba(255,255,255,.92);
  border-color: rgba(27,27,27,.10);
}

/* ACTIVE */
.topnav a.active{
  background: rgba(255,255,255,.92);
  color: var(--text);
  border-color: rgba(27,27,27,.18);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

/* UI */
.select, .iconbtn, .btn{
  font: inherit;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.80);
  color: var(--text);
  outline:none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.select{ padding: 10px 12px; }
.select:focus{
  border-color: rgba(255,107,107,.45);
  box-shadow: 0 0 0 4px rgba(255,107,107,.14);
}

.iconbtn{
  padding: 10px 14px;
  cursor:pointer;
  min-width: 44px;
}
.iconbtn:hover{
  border-color: rgba(46,196,182,.45);
  box-shadow: var(--shadow2);
  transform: translateY(-1px);
}

.btn{
  padding: 10px 16px;
  cursor:pointer;
  background: linear-gradient(135deg, rgba(255,107,107,.95), rgba(46,196,182,.85));
  color:#fff;
  border-color: rgba(27,27,27,.10);
  box-shadow: 0 16px 35px rgba(0,0,0,.14);
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
}
.btn:disabled{
  cursor: not-allowed;
  opacity: .78;
  transform: none;
  box-shadow: none;
}

/* Mobile nav */
.mobile-nav{
  display:none;
  border-top: 1px solid rgba(27,27,27,.10);
  background: #fbf6efe6;

  /* Show above the page content instead of pushing it down */
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1000;
}
.mobile-nav[aria-hidden="false"]{ display:block; }

.mobile-nav-inner{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding: 12px 0 16px;
}
.mobile-nav-inner a{
  text-decoration:none;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(27,27,27,.10);
  background: rgba(255,255,255,.80);
}
.mobile-nav-inner a.active{
  background: rgba(255,255,255,.92);
  border-color: rgba(27,27,27,.18);
}

/* Page */
.page{ padding: 34px 0 40px; }
.content-header{ margin: 6px 0 14px; }
.maincol{
  /* Accessibility: scale ONLY the main content area (not menus/footers). */
  font-size: calc(1rem * var(--contentScale, 1));
}
.content-header h1{
  margin: 0 0 8px 0;
  font-family: var(--fontHead);
  /* Use em so it respects .maincol font scaling */
  font-size: clamp(1.125em, 1.6vw, 1.5em);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.breadcrumbs{ color: var(--muted); font-size: 0.8125em; }

/* Breadcrumbs home button (used on legal pages) */
.breadcrumbs .home-link{
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(27,27,27,.14);
  border-radius: 10px;
  text-decoration: none;
  color: rgba(27,27,27,.92);
  background: rgba(255,255,255,.7);
}
.breadcrumbs .home-link:hover{ text-decoration:none; box-shadow: var(--shadow2); transform: translateY(-1px); }
.breadcrumbs .crumb-current{ margin-left: 0; color: rgba(27,27,27,.92); font-family: var(--fontHead); font-size: clamp(1.125em, 1.6vw, 1.5em); font-weight: 700; letter-spacing: -0.01em; }

/* Card */
.card{
  background: var(--card);
  border: 1px solid rgba(27,27,27,.10);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* Typography inside content */
#pageContent h1, #pageContent h2, #pageContent h3{
  font-family: var(--fontHead);
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
}
#pageContent p{ line-height: 1.75; color: rgba(27,27,27,.82); }
#pageContent a{
  text-decoration:none;
  color: rgba(27,27,27,.95);
  background: linear-gradient(0deg, rgba(255,209,102,.65), rgba(255,209,102,.65)) no-repeat;
  background-size: 100% 8px;
  background-position: 0 92%;
  padding: 0 2px;
  border-radius: 8px;
}
#pageContent a:hover{ background-position: 0 88%; }
#pageContent ul{ margin: 10px 0 16px 18px; }

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.thumb{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(27,27,27,.10);
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.thumb:hover{
  transform: translateY(-2px);
  border-color: rgba(27,27,27,.16);
  box-shadow: 0 22px 60px rgba(0,0,0,.14);
}
.thumb img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.thumb .desc{
  padding: 12px;
  color: rgba(27,27,27,.80);
  font-size: 13.5px;
  line-height: 1.45;
}

/* Lightbox */
.lightbox{ position: fixed; inset: 0; display: none; z-index: 1000; }
.lightbox[aria-hidden="false"]{display:block}
.lightbox-backdrop{ position:absolute; inset:0; background: rgba(20, 20, 20, .70); backdrop-filter: blur(8px); }
.lightbox-panel{
  position: relative;
  width: min(980px, calc(100% - 28px));
  margin: 30px auto;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  box-shadow: 0 35px 90px rgba(0,0,0,.35);
  overflow: hidden;
}
.lightbox-panel img{
  width:100%;
  max-height: min(70vh, 760px);
  object-fit: contain;
  background: rgba(0,0,0,.03);
}
.lightbox-panel .close{ position:absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); }
.caption{ padding: 12px 16px 14px; color: rgba(27,27,27,.75); font-size: 14px; }
.lightbox-actions{ display:flex; justify-content: space-between; padding: 0 16px 16px; gap: 10px; }

/* Footer */
.footer{ border-top: 1px solid rgba(27,27,27,.12); background: rgba(251,246,239,.75); font-size: 11px; }
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 22px 0;
  color: var(--muted);
}
.footer-link{
  color: rgba(27,27,27,.92);
  text-decoration:none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(27,27,27,.10);
}
.footer-link:hover{ box-shadow: var(--shadow2); transform: translateY(-1px); }


/* Footer (expanded, 3 columns) */
.footer-wrap{ padding: 26px 0 18px; color: var(--muted); }
.footer-grid{ display:grid; grid-template-columns: 1.25fr 2fr; column-gap: 76px; row-gap: 22px; padding: 22px 0; }
.footer-title{ font-weight: 800; color: rgba(27,27,27,.92); letter-spacing: .02em;  font-size: inherit; }
.footer-blurb{ margin-top: 6px; line-height: 1.35; color: var(--muted); }
.footer-spacer{ height: 12px; }
.footer-links{ display:flex; flex-direction:column; gap: 6px; }
.footer-links a{ color: rgba(27,27,27,.86); text-decoration:none; }
.footer-links a:hover{ text-decoration: underline; }

.footer-sublink{ padding-left: 14px; color: rgba(27,27,27,.75); }
.footer-bottom{ margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(27,27,27,.10); display:flex; justify-content:space-between; gap: 14px; flex-wrap:wrap; color: var(--muted); }
.footer-bottom a{ color: rgba(27,27,27,.92); font-weight: 700; text-decoration:none; }
.footer-bottom a:hover{ text-decoration: underline; }

@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr; gap: 16px; }
  .footer-bottom{ margin-top: 18px; }
}

/* Responsive */
@media (max-width: 980px){
  .header-meta{ display:none; }
  .topnav{ display:none; }
  .subtitle{ display:none; }
  .gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .gallery{ grid-template-columns: 1fr; }
}

/* CONTACT FORM – clean rectangular style */
.contact-form .select,
.contact-form textarea,
.contact-form input {
  border-radius: 0px;
  background: #fff;
  border: 1px solid rgba(27,27,27,.25);
  box-shadow: 1px;
}

.contact-form .select:focus,
.contact-form textarea:focus,
.contact-form input:focus {
  border-color: #000;
  box-shadow: none;
}

/* CONTACT SUCCESS MESSAGE */
.contact-success{
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-top: 30px;
}

/* CONTACT FORM BUTTON – same style as main menu */
.contact-form .btn{
  background: rgba(255,255,255,.55);
  color: var(--text);
  border: 1px solid rgba(27,27,27,.10);
  border-radius: 0;              /* правоъгълен */
  box-shadow: none;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.contact-form .btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.92);
  border-color: rgba(27,27,27,.18);
  box-shadow: var(--shadow2);
}

.contact-form .btn:disabled{
  opacity: .6;
  transform: none;
  box-shadow: none;
}

/* Message field – full width + spacing */
.contact-form textarea{
  width: 100%;
  min-height: 160px;
  margin-top: 10px;       /* разстояние от ИМЕ/ИМЕЙЛ */
  padding: 12px;
}
/* -------------------------------------------------
   LANGUAGE SELECT – compact circular (BG / EN)
   ------------------------------------------------- */
#langSelect{ display:none; }
  /* Remove native arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Same size as menu / icon button */
  width: 44px;
  height: 44px;
  min-width: 44px;

  /* Circle */
  border-radius: 50%;

  /* Typography */
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  text-align-last: center; /* Firefox */

  /* Visual style */
  background: rgba(255,255,255,.80);
  color: var(--text);
  border: 1px solid rgba(27,27,27,.12);

  cursor: pointer;

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    border-color .12s ease,
    background .12s ease;
}

/* Hover */
#langSelect:hover{
  background: rgba(255,255,255,.95);
  border-color: rgba(27,27,27,.18);
  box-shadow: var(--shadow2);
  transform: translateY(-1px);
}

/* Focus – accessibility */
#langSelect:focus{
  outline: none;
  border-color: rgba(46,196,182,.45);
  box-shadow: 0 0 0 4px rgba(46,196,182,.18);
}

/* Active */
#langSelect:active{
  transform: translateY(0);
  box-shadow: none;
}

/* Firefox inner focus fix */
#langSelect::-moz-focus-inner{
  border: 0;
}

/* Ensure no arrow / background icon */
#langSelect{
  background-image: none !important;
}



/* --- Sidebar layout (vertical menu) --- */
.page-grid{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}
.page-grid.no-sidebar{
  grid-template-columns: 1fr;
}
.sidebar{
  position: sticky;
  top: 118px; /* под sticky header */
  align-self: start;
}
.sidebar[aria-hidden="true"]{
  display: none;
}
.sidebar-card{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(27,27,27,.10);
  border-radius: 18px;
  padding: 14px;
}
.subnav[aria-hidden="true"]{ display:none; }
.subnav-title{
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(27,27,27,.62);
  margin: 2px 4px 10px;
}
.subnav-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.subnav a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(27,27,27,.10);
  background: rgba(255,255,255,.55);
  color: rgba(27,27,27,.86);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.subnav a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.72);
  border-color: rgba(27,27,27,.18);
}
.subnav a.active{
  background: rgba(27,27,27,.92);
  color: rgba(251,246,239,.95);
  border-color: rgba(27,27,27,.22);
}
@media (max-width: 920px){
  .page-grid{ grid-template-columns: 1fr; }
  .sidebar{ position: static; }
}


/* ===== MENU TYPO FIXES (addon) =====
   - Main menu font size matches sidebar
   - Main menu text never overflows button (ellipsis)
   - Sidebar items can wrap to 2+ lines without overflowing
*/
.topnav a{
  font-size: 13px;              /* match sidebar size */
  font-weight: 700;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;             /* prevent overflow outside pill */
  text-overflow: ellipsis;      /* keep inside button */
  white-space: nowrap;          /* single line in main menu */
}

.subnav a{
  font-size: 13px;              /* ensure same size as main menu */
  font-weight: 700;
  line-height: 1.25;

  white-space: normal;          /* allow wrapping */
  overflow: hidden;             /* prevent spill outside button */
  overflow-wrap: anywhere;      /* break long words safely */
  word-break: break-word;
}



/* ===== CONTACT FORM LAYOUT (addon) =====
   Desktop: Име + Фамилия (2 колони), после Email и Съобщение на цяла ширина
   Mobile: Име и Фамилия стават едно под друго автоматично
*/
.contact-form{
  display: grid;
  gap: 10px; /* разстояние между всички полета */
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-form .contact-full{
  width: 100%;
}

.contact-form textarea{
  margin-top: 0; /* вече имаме gap */
}

@media (max-width: 640px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
}
/* Active ефект за главното меню – работи и ако active е на <a> или на <li> */
.topnav a.active,
.topnav a[aria-current="page"],
.topnav li.active > a{
  background: rgba(27,27,27,.92) !important;
  color: rgba(251,246,239,.95) !important;
  border-color: rgba(27,27,27,.22) !important;
}

/* Footer: separate legal column from navigation columns */
.footer-colgroup{ display:block; }
.footer-grid-inner{
  display:grid;
  /* Keep the 3rd column fixed at the right edge and move the 2nd closer to it */
  grid-template-columns: auto auto;
  justify-content: end;
  /* Slightly larger gap between column 2 and 3 for better readability */
  column-gap: 32px;
  row-gap: 10px;
  align-items: start;
}

/* Breadcrumb "Home" icon on legal pages */
.breadcrumbs .home-link{
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(27,27,27,.12);
  border-radius: 10px;
  text-decoration: none;
  color: rgba(27,27,27,.92);
  margin-right: 12px;
}

.breadcrumbs .home-link:hover{ text-decoration: none; box-shadow: var(--shadow2); transform: translateY(-1px); }

@media (max-width: 820px){
  .footer-grid{ grid-template-columns: 1fr; column-gap: 0; }
  .footer-grid-inner{ grid-template-columns: 1fr; gap: 10px; }
}


/* Footer overrides: unify font size and improve column grouping */
.footer-title,
.footer-blurb,
.footer-links a,
.footer-links--small a,
.footer-sublink,
.footer-bottom{
  font-size: inherit;
}

.footer-col--legal{
  padding-right: 20px;
}


/* Content header: title left, font controls right (same line) */
.content-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
}

.content-titleblock{
  min-width: 0;
}

.content-font-controls{
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

@media (max-width: 520px){
  .content-header{
    align-items: flex-start;
  }
}


/* NEWS cards */
.news-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.news-card{
  padding: 0; /* internal layout handles spacing */
  overflow: hidden;
}

.news-thumb img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.news-body{
  padding: 18px 20px 20px;
}

.news-meta{
  font-size: 0.85em;
  color: var(--muted);
  margin-bottom: 6px;
}

.news-title{
  margin: 0 0 10px 0;
  font-family: var(--fontHead);
  letter-spacing: -0.02em;
}

.news-summary p{ margin: 0 0 10px 0; }

.news-more{
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  text-decoration: none;
}

.news-more:hover{ text-decoration: underline; }

.news-detail .news-back{
  display: inline-block;
  margin: 0 0 12px 0;
  text-decoration: none;
  font-weight: 700;
}

.news-image{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.news-card--detail .news-body{
  padding-top: 16px;
}

@media (min-width: 900px){
  .news-thumb img{ height: 260px; }
  .news-image{ height: 380px; }
}
/* ===============================
   NEWS LIST (with placeholder)
   =============================== */

.news-list{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(27,27,27,.10);
  box-shadow: var(--shadow);
}

.news-thumb{
  width: 100%;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.05);
}

.news-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* НЕ мачка снимките */
  display: block;
}

.news-body{
  display: flex;
  flex-direction: column;
}

.news-title{
  margin: 0 0 6px;
  font-family: var(--fontHead);
  font-size: 1.1em;
}

.news-summary{
  margin: 0 0 10px;
  color: rgba(27,27,27,.80);
  line-height: 1.6;
}

.news-meta{
  font-size: .85em;
  color: var(--muted);
  margin-bottom: 8px;
}

.news-more{
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
}

.news-more:hover{
  text-decoration: underline;
}

/* Single news */
.news-full-img{
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin: 14px 0;
}

/* Mobile */
@media (max-width: 720px){
  .news-card{
    grid-template-columns: 1fr;
  }

  .news-thumb{
    height: 200px;
  }
}
