/*
Theme Name: TECHMED
Theme URI: https://techmed.uz
Description: Редизайн techmed.uz (радиология / медицинская визуализация). Шапка/подвал 1:1 с клиента, тело страниц — дизайн-система mRay (Figtree, #2575fc, тёмно-синий hero, скруглённые карточки без рамок).
Author: claudedev
Version: 1.0.0
Text Domain: techmed
*/

:root{
  --tm-blue:#2575fc;
  --tm-navy:#0b1b3b;
  --tm-navy2:#12244d;
  --tm-ink:#12203a;
  --tm-muted:#5b6b86;
  --tm-line:#e7edf6;
  --tm-bg:#f6f9ff;
  --tm-radius:18px;
  --tm-font:'Figtree',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
}

html,body{overflow-x:hidden;max-width:100%;}
body{font-family:var(--tm-font);color:var(--tm-ink);background:#fff;}
.site-main{min-height:40vh;overflow-x:clip;}
img{max-width:100%;}
.tm-wrap{max-width:1200px;margin:0 auto;padding:0 20px;}
img{max-width:100%;height:auto;}

/* generic page body (non-home content) */
.tm-page{padding:48px 0 72px;}
.tm-page .tm-wrap>h1,.tm-page .tm-wrap>h2{font-family:var(--tm-font);color:var(--tm-ink);letter-spacing:-.02em;}
.tm-page h1{font-size:clamp(28px,4vw,44px);line-height:1.1;margin:0 0 18px;}
.tm-page h2{font-size:clamp(22px,3vw,32px);line-height:1.15;margin:36px 0 14px;}
.tm-page h3{font-size:20px;margin:24px 0 10px;}
.tm-page p{font-size:16px;line-height:1.7;color:#33425f;margin:0 0 14px;}
.tm-page ul{padding-left:1.1em;line-height:1.7;color:#33425f;}
.tm-page a{color:var(--tm-blue);}
.tm-page img{border-radius:14px;}

/* buttons */
.tm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 24px;border-radius:100px;font-weight:600;font-size:15px;
  text-decoration:none;border:0;cursor:pointer;transition:.2s;line-height:1;}
.tm-btn--primary{background:var(--tm-blue);color:#fff;}
.tm-btn--primary:hover{background:#155fe0;transform:translateY(-1px);}
.tm-btn--ghost{background:transparent;color:var(--tm-blue);box-shadow:inset 0 0 0 2px var(--tm-blue);}
.tm-btn--ghost:hover{background:var(--tm-blue);color:#fff;}
.tm-btn--wa{background:#25d366;color:#fff;}
.tm-btn--wa:hover{background:#1eb257;}

/* modal */
.tm-modal{position:fixed;inset:0;z-index:99999;display:none;}
.tm-modal.is-open{display:block;}
.tm-modal__overlay{position:absolute;inset:0;background:rgba(8,18,40,.55);backdrop-filter:blur(3px);}
.tm-modal__card{position:relative;max-width:440px;margin:8vh auto 0;background:#fff;
  border-radius:22px;padding:32px 28px 26px;box-shadow:0 24px 70px rgba(8,18,40,.35);
  animation:tmpop .22s ease;}
@keyframes tmpop{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
.tm-modal__x{position:absolute;top:14px;right:16px;background:none;border:0;font-size:28px;
  line-height:1;color:#8592ad;cursor:pointer;}
.tm-modal__x:hover{color:var(--tm-ink);}
.tm-modal__title{font-size:24px;margin:0 0 6px;color:var(--tm-ink);}
.tm-modal__sub{font-size:14px;color:var(--tm-muted);margin:0 0 18px;}
.tm-form{display:flex;flex-direction:column;gap:11px;}
.tm-form input,.tm-form textarea{width:100%;padding:13px 15px;border-radius:12px;
  border:0;background:#eef3fb;font:inherit;font-size:15px;color:var(--tm-ink);outline:none;transition:.15s;}
.tm-form input:focus,.tm-form textarea:focus{background:#e2ebfb;}
.tm-form textarea{resize:vertical;}
.tm-modal__alt{display:flex;gap:10px;margin-top:14px;}
.tm-modal__alt .tm-btn{flex:1;}

body.tm-modal-open{overflow:hidden;}

@media(max-width:520px){
  .tm-modal__card{margin:6vh 14px 0;padding:26px 20px 22px;}
  .tm-modal__alt{flex-direction:column;}
}

/* ====== Woo templates (mRay style) ====== */
.tmp-wrap{max-width:1180px;margin:0 auto;padding:0 24px;}
.tmp-hero{background:linear-gradient(135deg,#0b1b3b 0%,#12244d 60%,#1c3376 100%);color:#fff;padding:64px 0 56px;}
.tmp-hero__title{font-family:var(--tm-font);font-size:clamp(28px,4.4vw,46px);line-height:1.1;letter-spacing:-.02em;margin:12px 0 8px;color:#fff;}
.tmp-hero__meta{font-size:15px;opacity:.75;text-transform:uppercase;letter-spacing:.08em;}
.tmp-hero__lead{font-size:17px;opacity:.85;max-width:720px;margin:12px 0 0;line-height:1.55;}
.tmp-crumbs{font-size:13px;opacity:.7;display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.tmp-crumbs a{color:#fff;text-decoration:none;}
.tmp-crumbs a:hover{opacity:.75;}
.tmp-crumbs span{opacity:.55;}

.tmp-product{padding:56px 0 40px;}
.tmp-product__grid{display:grid;grid-template-columns:1.05fr 1fr;gap:48px;align-items:start;}
.tmp-product__img{background:#f4f7fd;border-radius:22px;padding:32px;display:flex;align-items:center;justify-content:center;min-height:360px;}
.tmp-product__img img{max-width:100%;max-height:440px;object-fit:contain;}
.tmp-product__short{font-size:17px;line-height:1.65;color:#33425f;margin:0 0 22px;}
.tmp-product__short p{margin:0 0 10px;}
.tmp-product__cta{display:flex;gap:12px;flex-wrap:wrap;margin:6px 0 26px;}
.tmp-product__lead{list-style:none;padding:0;margin:0;display:grid;gap:10px;}
.tmp-product__lead li{display:flex;gap:10px;align-items:flex-start;font-size:15px;color:#33425f;}
.tmp-product__lead li::before{content:"";flex:0 0 18px;width:18px;height:18px;border-radius:50%;background:#2575fc;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");background-size:12px;background-position:center;background-repeat:no-repeat;margin-top:2px;}

.tmp-h2{font-family:var(--tm-font);font-size:clamp(24px,3vw,32px);line-height:1.15;color:#12203a;margin:0 0 22px;letter-spacing:-.01em;}
.tmp-specs{padding:24px 0 40px;}
.tmp-specs__table{background:#fff;border-radius:20px;padding:6px 22px;box-shadow:0 10px 30px -18px rgba(19,25,41,.18);}
.tmp-specs__row{display:grid;grid-template-columns:1fr 1.4fr;gap:24px;padding:14px 0;border-bottom:1px solid #eef2f9;}
.tmp-specs__row:last-child{border-bottom:0;}
.tmp-specs__k{color:#5b6b86;font-size:14px;}
.tmp-specs__v{color:#12203a;font-size:15px;font-weight:500;}

.tmp-desc{padding:16px 0 40px;}
.tmp-desc__body{font-size:16px;line-height:1.7;color:#33425f;}
.tmp-desc__body p{margin:0 0 14px;}
.tmp-desc__body ul{padding-left:1.15em;margin:0 0 14px;}

.tmp-cta{padding:40px 0 72px;}
.tmp-cta__box{background:linear-gradient(135deg,#2575fc 0%,#155fe0 100%);color:#fff;border-radius:22px;padding:44px 36px;text-align:center;}
.tmp-cta__box h2{color:#fff;font-size:clamp(22px,2.8vw,30px);margin:0 0 8px;font-family:var(--tm-font);}
.tmp-cta__box p{color:rgba(255,255,255,.85);margin:0 0 22px;font-size:16px;}
.tmp-cta__row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.tmp-cta__row .tm-btn--primary{background:#fff;color:#2575fc;}
.tmp-cta__row .tm-btn--primary:hover{background:#f0f6ff;}
.tmp-cta__row .tm-btn--ghost{color:#fff;box-shadow:inset 0 0 0 2px #fff;}
.tmp-cta__row .tm-btn--ghost:hover{background:#fff;color:#2575fc;}

.tmp-subcats{padding:36px 0 8px;}
.tmp-subcats__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;}
.tmp-subcat{display:flex;flex-direction:column;background:#fff;border-radius:16px;padding:16px 16px 18px;text-decoration:none;color:#12203a;box-shadow:0 8px 22px -14px rgba(19,25,41,.2);transition:.2s;text-align:center;}
.tmp-subcat:hover{transform:translateY(-3px);box-shadow:0 16px 36px -18px rgba(37,117,252,.3);}
.tmp-subcat__img{aspect-ratio:16/9;background:#f4f7fd;border-radius:12px;overflow:hidden;margin-bottom:12px;}
.tmp-subcat__img img{width:100%;height:100%;object-fit:cover;}
.tmp-subcat span{font-weight:600;font-size:15px;}
.tmp-subcat em{font-style:normal;font-size:12px;color:#7b8299;margin-top:4px;}

.tmp-list{padding:36px 0 24px;}
.tmp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px;}
.tmp-card{display:flex;flex-direction:column;background:#fff;border-radius:18px;text-decoration:none;color:#12203a;box-shadow:0 10px 26px -18px rgba(19,25,41,.22);transition:.2s;overflow:hidden;}
.tmp-card:hover{transform:translateY(-4px);box-shadow:0 20px 44px -22px rgba(37,117,252,.32);}
.tmp-card__img{aspect-ratio:4/3;background:#f4f7fd;display:flex;align-items:center;justify-content:center;padding:14px;}
.tmp-card__img img{max-width:100%;max-height:100%;object-fit:contain;}
.tmp-card__body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:8px;flex:1;}
.tmp-card__body h3{font-family:var(--tm-font);font-size:16px;line-height:1.3;margin:0;color:#12203a;font-weight:600;}
.tmp-card__body p{font-size:13px;color:#5b6b86;line-height:1.5;margin:0;flex:1;}
.tmp-card__link{color:#2575fc;font-weight:600;font-size:13px;margin-top:auto;}

.tmp-related{padding:24px 0 48px;background:#f6f9ff;}
.tmp-empty{font-size:16px;color:#5b6b86;text-align:center;padding:60px 0;}
.tmp-empty a{color:#2575fc;font-weight:600;}
.tmp-pager{display:flex;gap:8px;justify-content:center;margin-top:28px;}
.tmp-pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border-radius:100px;background:#fff;color:#12203a;text-decoration:none;font-weight:500;box-shadow:0 6px 16px -10px rgba(19,25,41,.2);}
.tmp-pager .page-numbers.current{background:#2575fc;color:#fff;}

@media (max-width:840px){
  .tmp-product__grid{grid-template-columns:1fr;gap:28px;}
  .tmp-product__img{min-height:260px;padding:20px;}
  .tmp-hero{padding:44px 0 40px;}
  .tmp-specs__row{grid-template-columns:1fr;gap:4px;padding:12px 0;}
  .tmp-specs__k{font-size:13px;}
  .tmp-cta__box{padding:32px 20px;}
}
@media (max-width:520px){
  .tmp-wrap{padding:0 16px;}
  .tmp-grid{grid-template-columns:repeat(2,1fr);gap:14px;}
  .tmp-card__body{padding:12px 14px 16px;}
  .tmp-card__body h3{font-size:14px;}
  .tmp-card__body p{display:none;}
}

/* Footer readability: dark bg (#131929) needs light text — Elementor's light
   colors did not mirror over, so text fell back to the dark theme ink. */
.elementor-location-footer{color:#c3cede;}
.elementor-location-footer p,
.elementor-location-footer li,
.elementor-location-footer span,
.elementor-location-footer .elementor-heading-title,
.elementor-location-footer .elementor-widget-text-editor,
.elementor-location-footer .elementor-icon-list-text{color:#c3cede !important;}
.elementor-location-footer h1,
.elementor-location-footer h2,
.elementor-location-footer h3,
.elementor-location-footer h4,
.elementor-location-footer h5,
.elementor-location-footer h6,
.elementor-location-footer h1 .elementor-heading-title,
.elementor-location-footer h2 .elementor-heading-title,
.elementor-location-footer h3 .elementor-heading-title,
.elementor-location-footer .elementor-widget-heading .elementor-heading-title{color:#ffffff !important;}
.elementor-location-footer a{color:#aeb9cc !important;transition:color .2s;}
.elementor-location-footer a:hover{color:#ffffff !important;}
.elementor-location-footer .elementor-icon-list-icon i,
.elementor-location-footer .elementor-icon-list-icon svg,
.elementor-location-footer .elementor-social-icon i{color:#c3cede !important;fill:#c3cede !important;}

/* Header menu: ElementsKit's JS is not enqueued in the ported header, so we
   drive dropdowns entirely with CSS (hover on desktop) + a small vanilla JS
   toggle (click on mobile / burger). Panels have inline visibility:hidden
   set by ElementsKit markup, so we override with !important. */
.elementskit-navbar-nav > li{position:relative;}
.elementskit-navbar-nav .elementskit-submenu-panel{
  visibility:hidden;opacity:0;pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  transform:translateY(6px);
}
@media(min-width:1025px){
  .elementskit-navbar-nav > li.elementskit-dropdown-has:hover > .elementskit-submenu-panel,
  .elementskit-navbar-nav li.elementskit-dropdown-has:hover > .elementskit-submenu-panel,
  .elementskit-navbar-nav li.elementskit-dropdown-has.tm-open > .elementskit-submenu-panel{
    visibility:visible !important;opacity:1 !important;pointer-events:auto !important;
    transform:translateY(0);height:auto !important;overflow:visible !important;
  }
  /* Nested dropdown positioning */
  .elementskit-submenu-panel .elementskit-submenu-panel{
    position:absolute;left:100%;top:0;margin-left:2px;
  }
  .elementskit-navbar-nav .elementskit-submenu-panel{
    position:absolute;top:100%;left:0;min-width:240px;
    background:#fff;border-radius:12px;
    box-shadow:0 18px 44px rgba(10,23,48,.14);
    padding:10px 0;margin-top:6px;z-index:9999;
    list-style:none;
  }
  .elementskit-navbar-nav .elementskit-submenu-panel .dropdown-item{
    display:block;padding:10px 20px;color:#12203a !important;
    text-decoration:none;font-size:14.5px;line-height:1.4;
    white-space:nowrap;transition:background .15s, color .15s;
  }
  .elementskit-navbar-nav .elementskit-submenu-panel .dropdown-item:hover{
    background:#eef3fb;color:#2575fc !important;
  }
  .elementskit-navbar-nav .elementskit-submenu-panel li{position:relative;list-style:none;}
}
/* Mobile: click-driven .tm-open state (added by app.js) reveals dropdown inline */
@media(max-width:1024px){
  .elementskit-navbar-nav .elementskit-submenu-panel{
    position:static;box-shadow:none;background:transparent;padding:0 0 0 16px;list-style:none;
  }
  .elementskit-navbar-nav li.tm-open > .elementskit-submenu-panel{
    visibility:visible !important;opacity:1 !important;pointer-events:auto !important;
    transform:none;height:auto !important;overflow:visible !important;
  }
  .elementskit-navbar-nav .dropdown-item{
    display:block;padding:8px 0;text-decoration:none;color:inherit;font-size:15px;
  }
}
/* Chevron indicator on parent items */
.elementskit-navbar-nav .elementskit-dropdown-has > a.ekit-menu-dropdown-toggle::after,
.elementskit-navbar-nav .elementskit-dropdown-has > a.ekit-menu-nav-link::after{
  content:"";display:inline-block;width:8px;height:8px;margin-left:8px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);opacity:.6;vertical-align:middle;
}
