/* ===== СМЭП Гомельского облисполкома — публичные стили ===== */

:root {
  --c-primary: #1e3a5f;
  --c-primary-dark: #0f2746;
  --c-primary-soft: #274d7e;
  --c-accent: #c8a04a;
  --c-accent-dark: #a07f33;
  --c-red: #c63838;
  --c-green: #2f8a55;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f6fa;
  --c-bg-soft-2: #eaeef5;
  --c-border: #dde4ec;
  --c-text: #1c2230;
  --c-text-muted: #5a6478;
  --c-text-soft: #7b8597;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 39, 70, 0.06), 0 1px 1px rgba(15, 39, 70, 0.04);
  --shadow: 0 6px 24px -8px rgba(15, 39, 70, 0.12), 0 2px 6px rgba(15, 39, 70, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(15, 39, 70, 0.22), 0 6px 16px -6px rgba(15, 39, 70, 0.10);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'PT Sans', Arial, sans-serif;
  --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;

  --container: 1200px;
  --container-narrow: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-accent-dark); }

h1, h2, h3, h4 { color: var(--c-primary-dark); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 2.5vw + .8rem, 2.6rem); }
h2 { font-size: clamp(1.5rem, 1.6vw + .8rem, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.muted { color: var(--c-text-muted); }
.small { font-size: .875rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.req { color: var(--c-red); }

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

.skip-link {
  position: absolute; left: -9999px;
  background: var(--c-primary); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Topbar ===== */
.topbar {
  background: var(--c-primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: .8rem;
}
.topbar__inner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar__divider { opacity: .4; flex-shrink: 0; }
.topbar__item { flex-shrink: 0; white-space: nowrap; }
.topbar__item--accent { color: var(--c-accent); font-weight: 500; }
.topbar__radio { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.topbar__lang { flex-shrink: 0; }
.topbar__accessible { flex-shrink: 0; white-space: nowrap; }

/* На узких экранах скрываем левые второстепенные элементы, 
   чтобы радио + RU/BY + «Для слабовидящих» всегда помещались в одну строку */
@media (max-width: 1100px) {
  .topbar__item--addr,
  .topbar__divider--addr { display: none; }
}
@media (max-width: 900px) {
  .topbar__item--mail,
  .topbar__item--sched + .topbar__divider { display: none; }
  .radio-btn--top .radio-btn__label { display: none; }
}
@media (max-width: 720px) {
  .topbar__item--sched,
  .topbar__divider--sched { display: none; }
  .topbar__accessible-label { display: none; }
}

/* Регулятор громкости радио */
.radio-volume {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  padding: 1px 5px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  animation: radioVolFade .15s ease-out;
}
@keyframes radioVolFade { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
.radio-volume[hidden] { display: none; }
.radio-volume__mute {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.radio-volume__mute:hover { opacity: .8; }
.radio-volume__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
}
.radio-volume__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.radio-volume__slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.radio-volume__slider:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (max-width: 900px) {
  .radio-volume__slider { width: 48px; }
}
@media (max-width: 720px) {
  .radio-volume__slider { width: 40px; }
}

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.96);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-primary-dark);
  flex-shrink: 0;
}
.brand__emblem { display: flex; flex-shrink: 0; }
.brand__emblem img {
  width: 46px; height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__line1 { font-weight: 800; font-size: .82rem; white-space: nowrap; line-height: 1.2; color: var(--c-primary-dark); }
.brand__line2 { font-weight: 800; font-size: .82rem; white-space: nowrap; line-height: 1.2; color: var(--c-primary-dark); }

.site-nav {
  display: flex;
  gap: 0;
  margin-left: 4px;
  align-items: center;
  flex-wrap: nowrap;
}
.site-nav > a, .site-nav__top {
  color: var(--c-text);
  padding: 7px 7px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.site-nav > a:hover, .site-nav__top:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.site-nav > a.is-active, .site-nav__top.is-active { color: var(--c-primary); background: var(--c-bg-soft); }
.site-nav__caret { font-size: .7em; opacity: .6; }

/* Dropdown */
.site-nav__group { position: relative; }
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 60;
  /* Невидимый «мостик» между пунктом и выпадающим списком, чтобы hover не слетал */
  margin-top: 0;
  padding-top: 14px;
  background-clip: padding-box;
  border-top-width: 7px;
  border-top-style: solid;
  border-top-color: transparent;
  /* Плавное появление + задержка при уходе курсора */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .25s;
}
.site-nav__dropdown--wide { min-width: 320px; }
.site-nav__dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--c-text);
  font-size: .9rem;
}
.site-nav__dropdown a:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.site-nav__group:hover .site-nav__dropdown,
.site-nav__group:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear 0s;
}

.site-header__phone {
  margin-left: auto;
  text-align: right;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.site-header__phone-label { font-size: .68rem; color: var(--c-text-muted); }
.site-header__phone-number { font-weight: 700; color: var(--c-primary-dark); font-size: .92rem; white-space: nowrap; }
.site-header__email { font-size: .72rem; color: var(--c-text-muted); white-space: nowrap; }
.site-header__email:hover { color: var(--c-accent-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-primary-dark); margin: 4px 0; transition: .2s; border-radius: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: inherit;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .1s, background .15s, color .15s, box-shadow .15s, border-color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--accent { background: var(--c-accent); color: #1c1308; }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
.btn--danger { background: #fff; color: var(--c-red); border-color: #f1c5c5; }
.btn--danger:hover { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.btn--sm { padding: 6px 12px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg svg { width: 100%; height: 100%; }
.hero__inner { padding: 80px 24px 88px; max-width: var(--container); }
.hero__eyebrow {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.hero__title {
  font-size: clamp(2rem, 3.4vw + 1rem, 3.6rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.hero__lead {
  max-width: 680px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.86);
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stat__num {
  display: block;
  font-size: clamp(1.6rem, 2vw + .6rem, 2.2rem);
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: -.01em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat__label { color: rgba(255,255,255,0.78); font-size: .92rem; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section--alt { background: var(--c-bg-soft); }
.section-head { margin-bottom: 40px; max-width: 760px; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 100%;
}
.section-foot { margin-top: 36px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ===== Feature cards ===== */
.card-feature {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card-feature__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ic, var(--c-primary)) 14%, white);
  color: var(--ic, var(--c-primary));
  margin-bottom: 18px;
}
.card-feature__icon svg { width: 26px; height: 26px; }
.card-feature h3 { margin-bottom: 8px; }
.card-feature p { color: var(--c-text-muted); margin: 0; font-size: .95rem; }

/* ===== Services grid ===== */
.card-service {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
}
.card-service__icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary);
  color: var(--c-accent);
  border-radius: 12px;
  margin-bottom: 20px;
}
.card-service__icon svg { width: 30px; height: 30px; }
.card-service h3 { color: var(--c-primary-dark); margin-bottom: 10px; }
.card-service p { color: var(--c-text-muted); margin: 0; }

/* ===== News cards ===== */
.news-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.news-card__media {
  display: block;
  aspect-ratio: 16/9;
  background: var(--c-bg-soft-2);
  overflow: hidden;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary-soft));
}
.news-card__body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card__date { color: var(--c-text-soft); font-size: .82rem; margin-bottom: 8px; }
.news-card__title { font-size: 1.1rem; margin-bottom: 10px; }
.news-card__title a { color: var(--c-primary-dark); }
.news-card__title a:hover { color: var(--c-accent-dark); }
.news-card__excerpt { color: var(--c-text-muted); font-size: .92rem; flex: 1; }
.news-card__more { margin-top: 12px; font-weight: 600; color: var(--c-primary); align-self: flex-start; }

.link-arrow { font-weight: 600; color: var(--c-primary); }
.link-arrow:hover { color: var(--c-accent-dark); }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination__btn, .pagination__num {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-weight: 500;
  font-size: .9rem;
}
.pagination__btn:hover, .pagination__num:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination__num--active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pagination__btn--disabled { opacity: .4; pointer-events: none; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding-top: 18px;
  padding-bottom: 6px;
  font-size: .85rem;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--c-text-muted);
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--c-text-soft);
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb [aria-current="page"] { color: var(--c-text); font-weight: 500; }

/* ===== Article / page ===== */
.page-title { font-size: clamp(1.8rem, 1.8vw + 1rem, 2.4rem); margin-bottom: 20px; }
.prose { font-size: 1.02rem; color: var(--c-text); }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; color: var(--c-primary-dark); }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--c-primary-dark); }

.article-head { margin-bottom: 32px; }
.article-head__date { color: var(--c-text-soft); font-size: .9rem; }
.article-head__title { font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); margin-top: 8px; }
.article-head__excerpt { font-size: 1.15rem; color: var(--c-text-muted); }
.article-cover { margin: 28px 0; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft-2); }
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-border); }

/* ===== Contacts ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: start;
}
.contacts-info { display: grid; gap: 24px; }
.contact-block h3 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin-bottom: 6px;
  font-weight: 600;
}
.contact-block p { margin: 0 0 .6em; }

.contacts-side { display: grid; gap: 28px; }
.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef2f7;
  box-shadow: var(--shadow-sm);
}
.map-placeholder svg { width: 100%; height: auto; display: block; }

.contact-form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-form h2 { margin-top: 0; font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form label {
  display: block;
  margin-bottom: 14px;
}
.contact-form label span { display: block; font-size: .85rem; font-weight: 500; color: var(--c-text); margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.12);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

/* ===== Alerts ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: .92rem;
}
.alert--success { background: #e9f5ec; color: #1c5a36; border: 1px solid #b8dec5; }
.alert--error { background: #fbeaea; color: #7a2424; border: 1px solid #efc1c1; }

/* ===== CTA ===== */
.cta { padding: 56px 0; background: var(--c-primary-dark); color: #fff; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,0.78); margin: 0; max-width: 540px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta__actions .btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ===== Footer ===== */
.site-footer { background: #0e1f37; color: rgba(255,255,255,0.78); padding-top: 56px; margin-top: 40px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer__col h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.site-footer__col p { margin: 0 0 10px; font-size: .92rem; }
.site-footer__col a { color: #cbd6e4; }
.site-footer__col a:hover { color: var(--c-accent); }
.site-footer__col .muted { color: rgba(255,255,255,0.5); }
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: 8px; font-size: .92rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  font-size: .82rem;
}
.site-footer__bottom-inner {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.site-footer__bottom .muted { color: rgba(255,255,255,0.4); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; order: 3; margin-left: auto; }
  .site-header__inner { flex-wrap: wrap; gap: 12px; }
  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 4;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--c-border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 8px; border-radius: var(--radius-sm); }
  .site-header__phone { display: none; }
  .hero__inner { padding: 60px 24px 64px; }
  .hero__stats { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .topbar__inner { font-size: .72rem; gap: 6px; }
  .topbar__divider { display: none; }
}

/* ===== Updates: card-feature as link, services grid 4, about, rental, vacancies ===== */
a.card-feature { color: inherit; display: block; }
a.card-feature:hover h3 { color: var(--c-primary); }

.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card-service {
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card-service:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card-service__more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--c-primary); font-size: .9rem; }
.card-service--sm { padding: 22px 18px; }
.card-service--sm h3 { font-size: 1rem; }

/* About page */
.about-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.about-tabs__link {
  padding: 12px 18px;
  color: var(--c-text-muted);
  font-weight: 500;
  font-size: .95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.about-tabs__link:hover { color: var(--c-primary); }
.about-tabs__link.is-active { color: var(--c-primary); border-bottom-color: var(--c-accent); }

.about-block {
  scroll-margin-top: 100px;
  padding: 36px 0;
}
.about-block + .about-block { border-top: 1px solid var(--c-border); }
.about-block h2 { font-size: 1.7rem; margin-bottom: 18px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  background: var(--c-bg-soft);
  border-radius: var(--radius);
}
.about-stat__num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -.01em;
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat__label { color: var(--c-text-muted); font-size: .9rem; }

/* Director card */
.director-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
  max-width: 520px;
}
.director-card--compact {
  background: transparent;
  border: 1px solid var(--c-border);
  padding: 16px 18px;
}
.director-card__avatar svg { display: block; border-radius: 50%; }
.director-card__role { font-size: .78rem; color: var(--c-text-soft); text-transform: uppercase; letter-spacing: .08em; }
.director-card__name { font-weight: 700; color: var(--c-primary-dark); font-size: 1.05rem; margin: 4px 0 2px; }
.director-card__phone { font-weight: 600; color: var(--c-primary); }

/* Service detail page */
.service-detail__head {
  text-align: center;
  margin-bottom: 36px;
}
.service-detail__icon {
  width: 72px; height: 72px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary);
  color: var(--c-accent);
  border-radius: 16px;
  margin-bottom: 18px;
}
.service-detail__icon svg { width: 36px; height: 36px; }
.service-detail__head .lead { font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.service-detail__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border);
}

/* Rental */
.rental-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rental-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rental-card__visual {
  aspect-ratio: 16/9;
  background: var(--c-primary-dark);
}
.rental-card__visual svg { width: 100%; height: 100%; display: block; }
.rental-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.rental-card__body h2 { margin: 0; font-size: 1.4rem; color: var(--c-primary-dark); }
.rental-card__body p { margin: 0; color: var(--c-text); font-size: .95rem; }
.rental-card__specs {
  list-style: none;
  padding: 14px 18px;
  margin: 0;
  background: var(--c-bg-soft);
  border-radius: var(--radius-sm);
}
.rental-card__specs li { font-size: .9rem; margin-bottom: 6px; }
.rental-card__specs li:last-child { margin-bottom: 0; }
.rental-card__specs strong { color: var(--c-primary-dark); }
.rental-card .btn { align-self: flex-start; margin-top: auto; }

/* Vacancies */
.vacancies-list {
  display: grid;
  gap: 18px;
}
.vacancy-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.vacancy-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.vacancy-card__title { margin: 0; color: var(--c-primary-dark); font-size: 1.2rem; }
.vacancy-card__salary {
  font-size: .85rem;
  color: var(--c-accent-dark);
  font-weight: 600;
  background: rgba(200, 160, 74, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
}
.vacancy-card__desc { color: var(--c-text); font-size: .95rem; margin-bottom: 10px; }
.vacancy-card__req {
  font-size: .9rem;
  color: var(--c-text-muted);
  padding: 10px 14px;
  background: var(--c-bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.vacancy-card__req strong { color: var(--c-primary-dark); }
.vacancy-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Hours table */
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.hours td { padding: 6px 0; border-bottom: 1px dashed var(--c-border); }
.hours td:last-child { text-align: right; color: var(--c-primary-dark); font-weight: 500; }
.hours tr:last-child td { border-bottom: 0; }

/* Map */
.map-frame { background: #eef2f7; border-radius: var(--radius); padding: 0; box-shadow: var(--shadow-sm); }
.map-frame iframe { display: block; }

/* Footer brand */
.site-footer__col--brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { border-radius: 8px; background: #fff; }
.site-footer__brand h4 { margin: 0; }
.site-footer__brand p { margin: 0; }

/* Responsive overrides */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .rental-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .grid--4 { grid-template-columns: 1fr; }
  .brand__emblem img { width: 50px; height: 50px; }
  .brand__line1 { font-size: .9rem; }
  .brand__line2 { font-size: .9rem; }
  .site-nav__dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    display: block;
    margin-top: 0;
  }
  .site-nav__dropdown a { padding: 8px 12px; }
  .site-nav__top .site-nav__caret { display: none; }
}

/* === Home rental cards === */
.home-rental-card {
  background: #fff;
  border: 1px solid var(--c-border, #e5e9ef);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.home-rental-card:hover { box-shadow: 0 10px 30px rgba(15, 39, 70, 0.1); transform: translateY(-2px); }
.home-rental-card__media {
  aspect-ratio: 16 / 9;
  display: block;
  background: #0f2746;
  overflow: hidden;
}
.home-rental-card__media svg,
.home-rental-card__media img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.home-rental-card__body { padding: 20px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.home-rental-card__body h3 { margin: 0; font-size: 1.15rem; color: var(--c-primary-dark); }
.home-rental-card__body h3 a { color: inherit; }
.home-rental-card__body h3 a:hover { color: var(--c-accent); }
.home-rental-card__body p { margin: 0; color: var(--c-text); font-size: .94rem; }
.home-rental-card__body .link-arrow { margin-top: auto; }

/* Make stat-card clickable */
a.stat-card { text-decoration: none; color: inherit; display:block; transition: box-shadow .15s, transform .15s; }
a.stat-card:hover { box-shadow: 0 6px 18px rgba(15, 39, 70, 0.08); transform: translateY(-1px); }

/* === Team grid (наш коллектив) === */
.team-subtitle {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.25rem;
  color: #1e3a5f;
  border-left: 4px solid #c8a04a;
  padding-left: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 0 0 24px;
}

.team-card {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 1px 3px rgba(15, 39, 70, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 39, 70, 0.10);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f4f6fa;
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-card__name {
  font-weight: 700;
  color: #1e3a5f;
  font-size: 0.98rem;
  line-height: 1.3;
}

.team-card__role {
  color: #5a6678;
  font-size: 0.88rem;
  line-height: 1.35;
}

.team-card__phone {
  margin-top: 6px;
  color: #c8a04a;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.team-card__phone:hover {
  text-decoration: underline;
}

.team-card__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.6rem;
  font-weight: 700;
  color: #c8a04a;
  background: #f6f0e2;
}

.service-detail__photo {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 24px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-bg-soft);
  box-shadow: var(--shadow);
}
.service-detail__photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

/* ===== Инфо-полоса в шапке: курсы, BTC, погода ===== */
.info-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.82rem;
  color: var(--c-text);
}
.info-bar__inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}
.info-bar__weather { margin-left: auto; }
.info-bar__block {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.info-bar__label {
  font-weight: 700;
  color: var(--c-primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.info-bar .rate-pill {
  display: inline-block;
  padding: 1px 6px;
  margin-right: 2px;
  background: #f6f7fb;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.info-bar .rate-pill b { color: var(--c-primary); margin-right: 3px; font-weight: 600; }
.info-bar__btc-value b { color: var(--c-primary); margin-right: 4px; }
.info-bar .btc-up { color: #1aa566; font-weight: 600; }
.info-bar .btc-down { color: #d93838; font-weight: 600; }
.info-bar .weather-now { font-weight: 500; }
.info-bar .weather-now b { color: var(--c-primary); margin-left: 2px; }
.info-bar .weather-day {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  background: #f6f7fb;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.78rem;
}
.info-bar .weather-sep { color: var(--c-text-soft); margin: 0 2px; }
.radio-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px 1px 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.radio-btn--top { font-size: 0.72rem; }
.radio-btn:hover { background: rgba(255,255,255,0.22); }
.radio-btn:active { transform: scale(0.97); }
.radio-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 0.6rem;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  line-height: 1;
}
.radio-btn.is-playing { background: #c0392b; border-color: #c0392b; }
.radio-btn.is-playing:hover { background: #a93226; }
.radio-btn.is-playing .radio-btn__icon::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  margin-left: -8px;
  animation: radio-pulse 1.6s ease-in-out infinite;
  opacity: 0;
}
@keyframes radio-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.9; }
}
.radio-btn.is-loading { background: #7a8aa8; border-color: #7a8aa8; cursor: progress; }
@media (max-width: 900px) {
  .info-bar__inner { gap: 8px; padding: 6px 0; }
  .info-bar { font-size: 0.76rem; }
  .info-bar .weather-day:nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
  .info-bar__inner { flex-direction: column; align-items: flex-start; }
}

/* ── Переключатель языка и кнопка доступной версии ── */
.topbar__lang {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 0 6px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .5px;
  transition: color .15s;
}
.topbar__lang.is-active {
  color: #fff;
}
.topbar__lang:hover {
  color: #fff;
}
.topbar__accessible {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  font-size: 12px;
  transition: background .15s, color .15s;
}
.topbar__accessible:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.topbar__accessible-icon {
  font-size: 13px;
}

@media (max-width: 720px) {
  .topbar__accessible-label {
    display: none;
  }
  .topbar__accessible {
    padding: 2px 6px;
  }
}
