/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.2.0
*/

/* =========================================================
   LICENZIYA MCHS TYUMEN — GLOBAL SITE STYLES
   GeneratePress Child
   Общие компоненты для главной и будущих внутренних страниц
   ========================================================= */


/* =========================================================
   1. BASE / GENERATEPRESS RESET
   ========================================================= */

body {
  background: #ffffff;
  color: #111626;
}

.site-content,
.inside-article,
.separate-containers .inside-article {
  padding: 0 !important;
}

.entry-content {
  margin-top: 0 !important;
}

a {
  text-decoration: none;
}

.os-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111626;
  background: #ffffff;
}

.os-container {
  width: min(1440px, calc(100% - 96px));
  margin: 0 auto;
}


/* =========================================================
   2. GENERATEPRESS HEADER / NAVIGATION
   ========================================================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eceef3;
}

.inside-header {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 24px;
}

.site-logo,
.site-branding {
  flex: 0 0 auto;
  order: 1;
}

.custom-logo {
  display: block;
  max-height: 58px;
  width: auto;
}

/* Навигация справа от логотипа */
.nav-float-right .inside-header .main-navigation {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  margin-right: 0;
}

.main-navigation {
  background: #ffffff;
  border-bottom: 1px solid #eceef3;
}

.site-header .main-navigation {
  border-bottom: 0;
}

.main-navigation .main-nav > ul {
  justify-content: center;
  flex-wrap: nowrap;
}

.main-navigation .main-nav ul li a {
  color: #111626;
  font-size: 16px;
  font-weight: 750;
  padding: 18px 20px;
  white-space: nowrap;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
  color: #a90000;
}

/* Header Widget: телефон + режим работы */
.header-widget {
  order: 3;
  flex: 0 0 auto;
  float: none;
  max-width: none;
  margin-left: 0;
  text-align: right;
}

.header-widget .widget {
  margin: 0;
}

.os-header-phone {
  text-align: right;
  line-height: 1.3;
  white-space: nowrap;
}

.os-header-phone a {
  display: block;
  color: #a90000 !important;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
}

.os-header-phone a:hover {
  color: #820000 !important;
}

.os-header-phone span {
  display: block;
  margin-top: 3px;
  color: #111626 !important;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
}


/* =========================================================
   3. BUTTONS / COMMON ELEMENTS
   ========================================================= */

.os-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #f7e4e4;
  color: #a90000;
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(169, 0, 0, 0.08);
}

.os-btn {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 34px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button.os-btn {
  border: 0;
}

.os-btn:hover {
  transform: translateY(-1px);
}

.os-btn-red {
  background: linear-gradient(180deg, #c00000 0%, #8a0000 100%);
  color: #ffffff !important;
  box-shadow: 0 18px 35px rgba(169, 0, 0, 0.27);
}

.os-btn-red:hover {
  background: linear-gradient(180deg, #d00000 0%, #930000 100%);
  color: #ffffff !important;
}

.os-btn-white,
button.os-btn-white {
  background: #ffffff;
  color: #2e3340 !important;
  border: 1px solid rgba(169, 0, 0, 0.55);
  box-shadow: 0 12px 30px rgba(16, 19, 34, 0.05);
}


/* =========================================================
   4. HERO
   ========================================================= */

.os-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 0 82px;
  background:
    radial-gradient(circle at 88% 20%, rgba(169, 0, 0, 0.12) 0, rgba(169, 0, 0, 0) 28%),
    linear-gradient(90deg, #ffffff 0%, #ffffff 46%, #f7f8fb 100%);
  border-bottom: 1px solid #eceef3;
}

.os-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 19, 34, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 19, 34, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, #000 72%, #000 100%);
  pointer-events: none;
}

.os-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 36px;
  align-items: start;
  min-height: 560px;
}

.os-hero-content {
  position: relative;
  z-index: 5;
  max-width: 720px;
}

.os-hero h1 {
  margin: 24px 0 0;
  max-width: 760px;
  font-size: clamp(48px, 5.8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 950;
  color: #0d1222;
}

.os-hero h1 span {
  display: block;
  margin-top: 8px;
  color: #a90000;
}

.os-lead {
  margin: 24px 0 0;
  max-width: 680px;
  font-size: 21px;
  line-height: 1.62;
  color: #4f5667;
}

.os-hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 34px;
}

.os-feature {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 15px;
  align-items: center;
}

.os-feature-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #a90000;
  background:
    radial-gradient(circle at 35% 28%, #ffffff 0, #f7e6e6 45%, #efcccc 100%);
  box-shadow: 0 14px 28px rgba(169, 0, 0, 0.12);
}

.os-feature-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-feature strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  color: #111626;
  font-weight: 850;
}

.os-feature span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.25;
  color: #3f4552;
}

.os-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 40px;
}

.os-note {
  margin-top: 24px;
  color: #555d6c;
  font-size: 17px;
}


/* =========================================================
   5. HERO IMAGE — DESKTOP ONLY
   Декоративная композиция загружается только при ширине > 1200 px.
   На планшетах и мобильных изображение не запрашивается браузером.
   ========================================================= */

.os-hero-visual {
  min-width: 0;
  min-height: 0;
}

@media (min-width: 1201px) {
  .os-hero-visual {
    min-height: 620px;
    background-image: url("https://licenziya-mchs-tyumen.ru/wp-content/uploads/2026/09/mchs-hero.webp");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
  }
}

/* На небольших ноутбуках и ниже декоративную картинку уже не показываем */
@media (max-width: 1200px) {
  .header-widget {
    display: none;
  }

  .inside-header {
    padding: 0 24px;
    gap: 16px;
  }

  .os-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .os-hero-visual {
    display: none;
  }
}


/* =========================================================
   6. STATS
   ========================================================= */

.os-stats {
  position: relative;
  margin-top: -58px;
  z-index: 8;
}

.os-stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border: 1px solid rgba(16, 19, 34, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(16, 19, 34, 0.12);
  overflow: hidden;
}

.os-stat {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: center;
  padding: 42px 44px;
  border-right: 1px solid #eceef3;
}

.os-stat:last-child {
  border-right: none;
}

.os-stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #a90000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 14px 30px rgba(169, 0, 0, 0.2);
}

.os-stat strong {
  display: block;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #101322;
}

.os-stat span {
  display: block;
  margin-top: 8px;
  color: #545b69;
  line-height: 1.4;
}


/* =========================================================
   7. SECTIONS / TYPOGRAPHY
   ========================================================= */

.os-section {
  padding: 96px 0;
}

.os-light {
  background: #f7f8fb;
}

.os-section-head {
  max-width: 800px;
  margin-bottom: 46px;
}

.os-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.os-red-line {
  width: 48px;
  height: 3px;
  margin: 0 auto 20px;
  background: #a90000;
  border-radius: 99px;
}

.os-section h2,
.os-cta h2 {
  margin: 20px 0 0;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  color: #101322;
}

.os-section-head p,
.os-muted {
  margin-top: 18px;
  color: #5f6675;
  font-size: 19px;
  line-height: 1.65;
}


/* =========================================================
   8. TRUST / GENERAL CARDS
   ========================================================= */

.os-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.os-card {
  background: #ffffff;
  border: 1px solid rgba(16, 19, 34, 0.08);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 18px 50px rgba(16, 19, 34, 0.07);
}

.os-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f7e4e4;
  color: #a90000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.os-card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-card h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: #101322;
}

.os-card h3::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: #a90000;
  border-radius: 99px;
  margin: 16px 0 18px;
}

.os-card p {
  margin: 0;
  color: #5f6675;
  line-height: 1.65;
}


/* =========================================================
   9. SERVICES / TWO-COLUMN CONTENT
   ========================================================= */

.os-two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 58px;
  align-items: start;
}

.os-service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.os-service-list div {
  background: #ffffff;
  border: 1px solid rgba(16, 19, 34, 0.08);
  border-radius: 16px;
  padding: 20px 22px;
  font-weight: 750;
  color: #101322;
}


/* =========================================================
   10. PRICE
   ========================================================= */

.os-price-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(16, 19, 34, 0.08);
  border-radius: 24px;
  padding: 38px;
  box-shadow: 0 18px 50px rgba(16, 19, 34, 0.07);
}

.os-price-card h3 {
  margin: 0;
  font-size: 27px;
}

.os-price-card p {
  margin: 10px 0 0;
  color: #5f6675;
}

.os-price span {
  display: block;
  color: #5f6675;
}

.os-price strong {
  display: block;
  color: #a90000;
  font-size: 42px;
  letter-spacing: -0.045em;
  white-space: nowrap;
}


/* =========================================================
   11. STEPS
   ========================================================= */

.os-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.os-steps > div {
  background: #ffffff;
  border: 1px solid rgba(16, 19, 34, 0.08);
  border-radius: 20px;
  padding: 30px;
}

.os-steps span {
  color: #a90000;
  font-weight: 900;
}

.os-steps h3 {
  margin: 14px 0 10px;
  font-size: 22px;
}

.os-steps p {
  margin: 0;
  color: #5f6675;
  line-height: 1.55;
}


/* =========================================================
   12. PORTFOLIO / LICENSE EXAMPLES
   ========================================================= */

.os-portfolio {
  background: #f7f8fb;
}

.os-portfolio .os-section-head {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.os-portfolio .os-section-head h2 {
  margin-bottom: 16px;
}

.os-license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.os-license-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #ffffff;
  border: 1px solid rgba(16, 19, 34, 0.08);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(16, 19, 34, 0.07);
}

.os-license-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.os-license-card-top > div:first-child {
  min-width: 0;
}

.os-city {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: #a90000;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
}

.os-license-card h3 {
  margin: 0;
  color: #101322;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.os-license-card p {
  margin: 0 0 22px;
  color: #5f6675;
  font-size: 16px;
  line-height: 1.6;
}

.os-license-mark {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7e4e4;
  color: #a90000;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(169, 0, 0, 0.12);
}

.os-license-info {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 19, 34, 0.08);
}

.os-license-info span {
  position: relative;
  display: block;
  padding-left: 20px;
  color: #101322;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 750;
}

.os-license-info span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a90000;
}

.os-portfolio-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin-top: 94px;
  clear: both;
}

.os-portfolio-bottom .os-btn {
  position: relative;
  z-index: 4;
}


/* =========================================================
   13. FAQ
   ========================================================= */

.os-faq {
  display: grid;
  gap: 14px;
}

.os-faq details {
  background: #ffffff;
  border: 1px solid rgba(16, 19, 34, 0.08);
  border-radius: 18px;
  padding: 24px 26px;
}

.os-faq summary {
  cursor: pointer;
  font-weight: 850;
  font-size: 18px;
  color: #101322;
}

.os-faq p {
  margin: 16px 0 0;
  color: #5f6675;
  line-height: 1.6;
}


/* =========================================================
   14. CTA
   ========================================================= */

.os-cta {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 44px;
  align-items: center;
  padding: 52px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.13) 0, rgba(255, 255, 255, 0) 28%),
    linear-gradient(135deg, #171a25 0%, #080a0f 100%);
  color: #ffffff;
}

.os-cta h2 {
  color: #ffffff;
}

.os-cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
  line-height: 1.6;
}

.os-form-box {
  background: #ffffff;
  color: #101322;
  border-radius: 22px;
  padding: 32px;
}

.os-form-box h3 {
  margin: 0 0 10px;
  font-size: 25px;
}

.os-form-box p {
  color: #5f6675;
  font-size: 16px;
}


/* =========================================================
   15. ARTICLES
   ========================================================= */

.os-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.os-article-grid article {
  background: #ffffff;
  border: 1px solid rgba(16, 19, 34, 0.08);
  border-radius: 20px;
  padding: 30px;
}

.os-article-grid h3 {
  margin: 0 0 12px;
}

.os-article-grid p {
  margin: 0;
  color: #5f6675;
}


/* =========================================================
   16. CUSTOM FOOTER
   ========================================================= */

.os-footer {
  background: #171a25;
  color: #ffffff;
  padding: 70px 0 28px;
}

.os-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 46px;
}

.os-footer h3 {
  margin: 0 0 18px;
  color: #ffffff;
}

.os-footer p,
.os-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 8px;
}

.os-footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
}

/* Скрываем стандартный footer GeneratePress, так как используется .os-footer */
.site-info {
  display: none;
}


/* =========================================================
   17. POPUP MAKER
   Только реально использовавшиеся правила из исходного CSS.
   Поля Contact Form 7 отдельно не переоформляем.
   ========================================================= */

.pum-overlay {
  background: rgba(10, 12, 18, 0.62) !important;
  transition: opacity 0.28s ease !important;
}

.pum-container {
  background: #ffffff !important;
  border-radius: 22px !important;
  padding: 24px !important;
  max-width: 520px !important;
  width: calc(100% - 32px) !important;
  box-shadow: 0 30px 90px rgba(16, 19, 34, 0.32) !important;
  border: none !important;
  opacity: 1 !important;
  animation: osPopupIn 0.32s ease-out both;
  transform-origin: center center;
}

.pum-content,
.pum-content * {
  opacity: 1 !important;
}

.pum-close {
  width: 36px !important;
  height: 36px !important;
  right: 14px !important;
  top: 14px !important;
  background: #f7e4e4 !important;
  color: #a90000 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  font-size: 22px !important;
  line-height: 36px !important;
  text-align: center !important;
}

.wpcf7-form p {
  margin-bottom: 10px;
}

@keyframes osPopupIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =========================================================
   18. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .os-container {
    width: min(1200px, calc(100% - 48px));
  }

  .os-hero-grid,
  .os-two-col,
  .os-cta {
    grid-template-columns: 1fr;
  }

  .os-hero-grid {
    min-height: auto;
  }

  .os-hero-visual {
    display: none;
  }

  .os-stats-card,
  .os-card-grid,
  .os-steps,
  .os-license-grid,
  .os-article-grid {
    grid-template-columns: 1fr;
  }

  .os-stat {
    border-right: none;
    border-bottom: 1px solid #eceef3;
  }

  .os-stat:last-child {
    border-bottom: none;
  }

  .os-price-card {
    grid-template-columns: 1fr;
  }

  .os-footer-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   19. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 760px) {
  .inside-header {
    padding: 0 24px;
  }

  .custom-logo {
    max-height: 48px;
  }

  .main-navigation .main-nav ul li a {
    padding: 13px 10px;
    font-size: 14px;
  }

  .os-container {
    width: min(100% - 32px, 1200px);
  }

  .os-hero {
    padding: 18px 0 72px;
  }

  .os-hero h1 {
    margin-top: 22px;
    font-size: 46px;
    letter-spacing: -0.05em;
  }

  .os-lead {
    margin-top: 24px;
    font-size: 18px;
  }

  .os-hero-features {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }

  .os-hero-buttons {
    margin-top: 32px;
  }

  .os-note {
    margin-top: 22px;
  }

  .os-btn {
    width: 100%;
    min-height: 62px;
    font-size: 16px;
  }

  .os-section {
    padding: 68px 0;
  }

  .os-service-list {
    grid-template-columns: 1fr;
  }

  .os-stat {
    grid-template-columns: 54px 1fr;
    padding: 28px 24px;
  }

  .os-stat-icon {
    width: 54px;
    height: 54px;
  }

  .os-card,
  .os-price-card,
  .os-cta,
  .os-form-box,
  .os-article-grid article {
    padding: 26px;
  }

  .os-price strong {
    font-size: 34px;
  }

  .pum-container {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    padding: 20px !important;
  }

}


/* =========================================================
   20. RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {
  .os-license-card-top {
    flex-direction: column;
  }

  .os-license-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .os-license-card h3 {
    font-size: 21px;
  }
}
