/* Медиар Русе — site styles (matches the original WordPress/Oxygen design) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/montserrat-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --blue: #28527d;
  --blue-soft: rgba(40, 82, 125, .86);
  --orange: #f07410;       /* brand colour: lines, ticks, accents */
  --orange-dark: #b85400;  /* buttons with white text: contrast 4.9:1 */
  --grey: #f2f2f2;
  --grey-2: #f4f4f4;
  --dark: #333333;
  --text: #000000;
  --wrap: 1380px;
  --font: "Montserrat", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 700; text-transform: uppercase; line-height: 1.2; margin: 0; }
p { margin: 0 0 15px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 10px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Top strip + header */
.topbar { height: 20px; background: var(--dark); }
.site-header { display: flex; align-items: center; background: #fff; height: 80px; padding-left: 10px; position: relative; z-index: 20; }
.logo img { width: 182px; height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; }
.nav > ul > li > a, .nav .sub-toggle {
  display: block; padding: 7px 20px 5px; font: 600 15px/22.5px var(--font); text-transform: uppercase;
  color: #000; text-decoration: none; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.nav > ul > li > a:hover, .nav .sub-toggle:hover, .nav > ul > li.active > a, .nav > ul > li.active > .sub-toggle { border-bottom-color: currentColor; }
.nav .has-sub { position: relative; }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 320px; box-shadow: 0 8px 20px rgba(0,0,0,.12); padding: 8px 0; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub, .nav .has-sub.open .sub { display: block; }
.nav .sub a { display: block; padding: 8px 20px; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav .sub a:hover { color: var(--blue); }
.header-cta {
  display: flex; align-items: center; justify-content: center; text-align: center; align-self: stretch;
  margin-left: 20px; width: 210px; background: var(--orange-dark); color: #fff; text-decoration: none;
  font-weight: 700; text-transform: uppercase; font-size: 15px; line-height: 1.5;
}
.header-cta:hover, .header-cta:focus-visible { background: var(--blue); }
.nav-toggle { display: none; margin-left: auto; margin-right: 12px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #000; margin: 5px 0; }

/* Page title band */
.page-head { background: var(--blue-soft); color: #fff; text-align: center; padding: 38px 10px 32px; margin-bottom: 40px; }
.page-head h1 { font-size: 26px; max-width: 1360px; margin: 10px auto 0; }
.crumbs { font-size: 12px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs .sep { margin: 0 9px; }

/* Home: hero */
.hero { background-size: cover; background-position: center; min-height: 538px; display: flex; align-items: center; }
.hero-box { background: var(--blue-soft); color: #fff; max-width: 700px; margin: 0 45px; padding: 40px 45px; }
.hero h1 { font-size: 25px; }
.hero-text { font-size: 17.9px; line-height: 1.35; margin-top: 20px; }

.section-title { font-size: 29.75px; text-align: center; margin: 55px 0 40px; }

/* Home: services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { position: relative; display: block; height: 203px; overflow: hidden; text-decoration: none; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.service-card:hover img { transform: scale(1.04); }
.service-card h3 {
  position: absolute; left: 0; right: 0; bottom: 20px; min-height: 60px; display: flex; align-items: center;
  padding: 10px 15px; background: var(--blue-soft); color: #fff; font-size: 14px;
}

/* Home: about */
.about { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; }
.about-img { display: flex; align-items: center; justify-content: center; padding: 30px; }
.about-box { background: var(--grey); padding: 50px 60px; }
.about-box h2 { font-size: 29.75px; margin-bottom: 30px; }
.about-box ul { padding-left: 20px; margin: 0; }

/* Blog cards */
.posts { padding-bottom: 60px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card .thumb { display: block; position: relative; aspect-ratio: 400 / 250; overflow: hidden; background: #ddd; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { font-size: 16px; line-height: 1.25; margin: 20px 0 15px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card .meta { font-size: 13px; color: #555; margin: -8px 0 10px; }
.post-card p { margin: 0; }
.date-badge { position: absolute; top: 15px; right: 15px; background: #fff; padding: 4px 12px; font-weight: 600; font-size: 14px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pager a, .pager span { padding: 6px 12px; text-decoration: none; }
.pager span { background: var(--blue); color: #fff; }
.pager a:hover { color: var(--blue); }

/* Content pages and posts */
.content { padding-bottom: 50px; }
.content h2 { font-size: 20px; margin: 45px 0 25px; }
.content h3 { font-size: 14px; margin: 45px 0 25px; }
.content p { margin: 15px 0; }
.content ul, .content ol { padding-left: 30px; margin: 0 0 15px; }
.content a { color: var(--blue); }
.content figure { margin: 20px 0; }
.content table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 14px; }
.content td, .content th { border: 1px solid #ccc; padding: 6px 8px; vertical-align: top; }
.wp-block-table { overflow-x: auto; }
.page-content h2 { text-align: center; }
.has-text-align-left { text-align: left !important; }
.related { padding-top: 10px; }

/* Contact */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 80px; }
.contacts h2 { font-size: 18px; margin: 0 0 30px; }
.contacts h3 { text-transform: none; font-size: 15px; margin-bottom: 2px; }
.contacts p { margin-bottom: 18px; }
.contacts a { text-decoration: none; }
.form { display: grid; gap: 28px; }
.form label { display: block; margin-bottom: 5px; }
.form input, .form textarea { width: 100%; font: inherit; padding: 6px 8px; border: 1px solid #ccc; border-radius: 3px; background: #fff; }
.form textarea { height: 154px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit { background: #000; color: #fff; border: 0; padding: 12px 48px; font: 700 12px var(--font); text-transform: uppercase; cursor: pointer; }
.submit:hover { background: var(--blue); }
.notice { padding: 14px 16px; margin-bottom: 20px; }
.notice:focus { outline: 2px solid var(--blue); }
.notice.ok { background: #e3f6ec; color: #135c3c; }
.notice.err { background: #fde8e8; color: #8a1c1c; }

/* Footer: partners, call band, columns */
.site-footer { margin-top: 60px; color: #fff; background: var(--blue); }
.partners { background: var(--grey-2); padding: 50px 0; }
.partners .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; align-items: center; justify-items: center; }
.partners img { max-height: 80px; width: auto; }
.cta-band { background: var(--blue-soft); padding: 35px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: 36px; }
.cta-phone { color: #fff; text-decoration: none; font-size: 36px; line-height: 1.3; }
.cta-btn { color: #fff; text-decoration: none; border: 2px solid #fff; border-radius: 3px; padding: 20px 30px; font-weight: 700; font-size: 20px; text-transform: uppercase; }
.cta-btn:hover { background: #fff; color: var(--blue); }
.footer-main { padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-main h3 { font-size: 14px; margin-bottom: 25px; }
.footer-main h3.follow { margin: 30px 0 15px; }
.footer-main p { font-size: 14px; margin-bottom: 10px; }
.footer-main ul { list-style: none; padding: 0; margin: 0; }
.footer-main li { font-size: 14px; margin-bottom: 12px; }
.footer-main a { color: #fff; text-decoration: none; }
.footer-main a:hover { text-decoration: underline; }
.fb { display: inline-block; padding: 4px 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 20px 0; font-size: 14px; }

/* Tablet and phone */
@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); padding: 10px 0 20px; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; text-align: center; }
  .nav > ul > li > a, .nav .sub-toggle { width: 100%; padding: 12px 20px; border-bottom: 0; }
  .nav .sub { position: static; box-shadow: none; min-width: 0; padding: 0; }
  .nav .has-sub:hover .sub { display: none; }
  .nav .has-sub.open .sub { display: block; }
  .header-cta { width: auto; padding: 0 14px; margin-left: 0; font-size: 12px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-header { height: 70px; }
  .logo img { width: 140px; }
  .header-cta { font-size: 11px; padding: 0 10px; line-height: 1.3; }
  .nav-toggle { margin-right: 6px; padding: 8px; }
  .hero { min-height: 0; padding: 0; }
  .hero-box { margin: 0; padding: 30px 20px; max-width: none; }
  .hero-text { font-size: 16px; }
  .section-title { font-size: 22px; margin: 40px 0 25px; }
  .service-grid, .post-grid, .contacts, .footer-grid { grid-template-columns: 1fr; }
  .about-box { padding: 30px 20px; }
  .about-box h2 { font-size: 22px; }
  .page-head h1 { font-size: 20px; }
  .partners .wrap { grid-template-columns: repeat(2, 1fr); }
  .cta-band h2, .cta-phone { font-size: 26px; }
  .cta-btn { font-size: 16px; padding: 14px 22px; }
}

/* Contact map */
.map iframe { display: block; }

/* Cookie banner (shown only when a tracking code is set in /site-codes.js) */
.cookie-settings { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; margin-left: 20px; padding: 0; }
#cookie-banner { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 35, 55, .75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
#cookie-banner .cookie-box { background: #fff; color: #000; max-width: 560px; width: 100%; padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.4); text-align: center; }
#cookie-banner h2 { font-size: 20px; margin-bottom: 14px; }
#cookie-banner p { margin: 0 0 24px; font-size: 15px; }
#cookie-banner a { color: var(--blue); }
#cookie-banner .cookie-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
#cookie-banner button { flex: 1 1 180px; font: 700 14px var(--font); text-transform: uppercase; padding: 14px 18px; cursor: pointer; border: 2px solid var(--blue); background: var(--blue); color: #fff; }
#cookie-banner button:hover, #cookie-banner button:focus-visible { background: var(--orange-dark); border-color: var(--orange-dark); }
body.cookie-lock { overflow: hidden; }
.form-note { font-size: 12px; color: #444; margin: 12px 0 0; }
.form-note a { color: var(--blue); }

/* Google Ads landing page */
.lp-header .lp-cta { margin-left: auto; }
.lp-hero { background-size: cover; background-position: center; position: relative; padding: 50px 0; }
.lp-hero::before { content: ""; position: absolute; inset: 0; background: rgba(40, 82, 125, .82); }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.lp-hero-text { color: #fff; }
.lp-hero h1 { font-size: 34px; margin-bottom: 18px; }
.lp-lead { font-size: 18px; line-height: 1.45; margin-bottom: 20px; }
.lp-ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.lp-ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; font-size: 16px; }
.lp-ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--orange); font-weight: 700; font-size: 20px; }
.lp-phone { display: inline-block; background: var(--orange-dark); color: #fff; text-decoration: none; font-weight: 700; font-size: 22px; padding: 14px 26px; }
.lp-phone:hover, .lp-phone:focus-visible { background: #fff; color: var(--blue); }
.lp-form { background: #fff; padding: 28px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.lp-form h2 { font-size: 22px; margin-bottom: 6px; }
.lp-form > p { margin-bottom: 18px; color: #444; }
.lp-form .form { gap: 14px; }
.lp-form textarea { height: 80px; }
.lp-submit { width: 100%; background: var(--orange-dark); font-size: 14px; padding: 16px; }
.lp-submit:hover { background: var(--blue); }
.lp-section { padding-bottom: 50px; }
.lp-soft { background: var(--grey); padding-top: 1px; }
.lp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lp-card { background: #fff; border-top: 4px solid var(--blue); padding: 24px 20px; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.lp-card h3 { font-size: 15px; margin-bottom: 12px; }
.lp-card p { margin: 0; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.lp-steps li { counter-increment: s; text-align: center; }
.lp-steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--orange-dark); color: #fff; font-weight: 700; font-size: 22px; }
.lp-steps strong { display: block; text-transform: uppercase; margin-bottom: 6px; }
.lp-faq { max-width: 900px; }
.lp-faq details { border-bottom: 1px solid #ddd; padding: 16px 0; }
.lp-faq summary { font-weight: 700; cursor: pointer; font-size: 16px; }
.lp-faq details p { margin: 12px 0 0; }
.lp-faq a { color: var(--blue); }
.lp-footer { margin-top: 0; }
.lp-footer a { color: #fff; }
@media (max-width: 991px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp-header .lp-cta { display: flex; font-size: 12px; }
  .lp-hero { padding: 30px 0; }
  .lp-hero h1 { font-size: 26px; }
  .lp-lead { font-size: 16px; }
  .lp-grid, .lp-steps { grid-template-columns: 1fr; }
  .lp-phone { display: block; text-align: center; }
}

/* Call-to-action box under posts and service pages */
.help-box { background: var(--grey); border-left: 5px solid var(--orange); padding: 26px 28px; margin: 0 0 50px; max-width: 900px; }
.help-box h2 { font-size: 20px; margin-bottom: 12px; }
.help-box ul { margin: 0 0 12px; padding-left: 20px; }
.help-box li { margin-bottom: 4px; }
.help-box a { color: var(--blue); font-weight: 600; }
.help-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.help-box .help-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  text-decoration: none; padding: 10px 22px; font-weight: 700; text-transform: uppercase; font-size: 14px; border: 2px solid; }
.help-box .help-actions .help-call { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.help-box .help-actions .help-form { background: #fff; border-color: var(--blue); color: var(--blue); }
.help-box .help-actions .help-call:hover, .help-box .help-actions .help-call:focus-visible { background: var(--blue); border-color: var(--blue); }
.help-box .help-actions .help-form:hover, .help-box .help-actions .help-form:focus-visible { background: var(--blue); color: #fff; }
@media (max-width: 480px) {
  .help-box { padding: 22px 18px; }
  .help-actions { flex-direction: column; gap: 12px; }
  .help-box .help-actions a { width: 100%; }
}

/* Blog posts: date line and comfortable line length */
.post-meta { font-size: 14px; color: #555; margin-top: 0 !important; }
.post-content { font-size: 16px; line-height: 1.65; }
.post-content > * { max-width: 80ch; }
