/*
Theme Name: LOTOVSEM Smart 1.7.3 Exact 1.2.5 Checker Working 1.2.5 Checker
Theme URI: https://lotovsem.ru/
Author: LOTOVSEM
Description: SEO-safe LOTOVSEM portal theme with lottery archives, draw pages, ticket checker and responsive layouts.
Version: 1.7.3
License: GNU General Public License v2 or later
Text Domain: khaddokothon
*/

/* Minimal safety layer. Main visual styles are loaded by the theme assets. */
html, body { max-width: 100%; }
img, iframe, video { max-width: 100%; height: auto; }

/* =========================================================
   v1.5.0 CLEAN DRAW PAGES
   The legacy blog-item renderer is no longer used on draw pages.
   ========================================================= */
.lv-single-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}
.lv-single-main{min-width:0;width:100%}
.lv-draw-page{min-width:0;width:100%;max-width:100%}
.lv-draw-head{background:#fff;border:1px solid #e7e9ee;border-radius:16px;padding:22px 24px;margin-bottom:14px;box-shadow:0 7px 24px rgba(28,39,60,.05)}
.lv-draw-head h1{margin:3px 0 7px!important;font-size:clamp(28px,3vw,42px)!important;line-height:1.1!important;color:#171c29!important}
.lv-draw-date{color:#737b88;font-size:14px;font-weight:600}
.lv-draw-checker{min-width:0;width:100%;max-width:100%}
.lv-draw-section{min-width:0;width:100%;max-width:100%;margin:16px 0;background:#fff;border:1px solid #e7e9ee;border-radius:16px;padding:18px;box-shadow:0 7px 24px rgba(28,39,60,.05)}
.lv-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.lv-draw-section h2{margin:0 0 12px!important;font-size:23px!important;line-height:1.2!important;color:#1a2030!important}
.lv-section-head h2{margin-bottom:0!important}
.lv-scroll-hint{font-size:12px;color:#8b919c;white-space:nowrap}

.lv-draw-table-fit{display:block;width:100%;max-width:100%;min-width:0;overflow:visible;border:1px solid #eceef2;border-radius:12px;background:#fff}
.lv-draw-table-fit table{display:table!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;border-collapse:collapse!important;table-layout:fixed!important}
.lv-draw-table-fit th,.lv-draw-table-fit td{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;padding:8px 6px!important;vertical-align:middle!important;text-align:center!important}
.lv-draw-table-fit th{background:#f5f6f8!important;color:#4b5360!important;font-size:11px!important;line-height:1.2!important;font-weight:800!important}
.lv-draw-table-fit td{font-size:13px!important;line-height:1.35!important}
.lv-draw-table-fit th:nth-child(1),.lv-draw-table-fit td:nth-child(1){width:9%!important}
.lv-draw-table-fit th:nth-child(2),.lv-draw-table-fit td:nth-child(2){width:57%!important}
.lv-draw-table-fit th:nth-child(3),.lv-draw-table-fit td:nth-child(3){width:15%!important}
.lv-draw-table-fit th:nth-child(4),.lv-draw-table-fit td:nth-child(4){width:19%!important}
.lv-draw-table-fit td:nth-child(2){text-align:left!important}
.lv-draw-table-fit td:nth-child(2) span,
.lv-draw-table-fit td:nth-child(2) i,
.lv-draw-table-fit td:nth-child(2) b,
.lv-draw-table-fit td:nth-child(2) strong{max-width:100%!important}
.lv-draw-summary__body{line-height:1.65;color:#444b58}
.lv-draw-summary__body ul{padding-left:20px}
.lv-video-wrap{width:100%;max-width:100%;overflow:hidden;border-radius:12px}
.lv-video-wrap iframe,.lv-video-wrap video,.lv-video-wrap embed{display:block;width:100%!important;max-width:100%!important;aspect-ratio:16/9;height:auto!important;border:0}
.lv-draw-nav{display:flex;justify-content:space-between;gap:12px;margin:16px 0 6px}
.lv-draw-nav a{display:inline-flex;padding:10px 14px;border:1px solid #e1e4e9;border-radius:10px;background:#fff;color:#202737;text-decoration:none!important;font-weight:700}
.lv-draw-nav a:hover{border-color:#e82f41;color:#e82f41!important}

@media(min-width:1280px){.lv-single-layout{grid-template-columns:minmax(0,1fr) 380px}}

@media(max-width:991px){
 .lv-single-layout{grid-template-columns:minmax(0,1fr)}
 .lv-single-layout aside,.lv-single-layout .sidebar,.lv-single-layout .widget-area{width:100%!important;max-width:100%!important}
}
@media(max-width:767px){
 html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
 .lv-page-space,.lv-page-space>.container,.lv-single-layout,.lv-single-main,.lv-draw-page,.lv-draw-section,.lv-draw-checker{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 .lv-page-space>.container{padding-left:10px!important;padding-right:10px!important}
 .lv-draw-head{padding:15px 14px;border-radius:13px;margin-bottom:10px}
 .lv-draw-head h1{font-size:26px!important}
 .lv-draw-section{padding:12px;border-radius:13px;margin:12px 0}
 .lv-section-head{display:block}
 .lv-draw-section h2{font-size:19px!important}
 .lv-draw-table-fit{width:100%!important;max-width:100%!important;border-radius:9px;overflow:visible!important}
 .lv-draw-table-fit table{display:table!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}
 .lv-draw-table-fit th,.lv-draw-table-fit td{padding:5px 2px!important;font-size:10px!important;line-height:1.2!important;white-space:normal!important}
 .lv-draw-table-fit th:nth-child(1),.lv-draw-table-fit td:nth-child(1){width:8%!important}
 .lv-draw-table-fit th:nth-child(2),.lv-draw-table-fit td:nth-child(2){width:60%!important}
 .lv-draw-table-fit th:nth-child(3),.lv-draw-table-fit td:nth-child(3){width:13%!important}
 .lv-draw-table-fit th:nth-child(4),.lv-draw-table-fit td:nth-child(4){width:19%!important}
 .lv-draw-table-fit td:nth-child(2){font-size:0!important;line-height:1!important;text-align:left!important}
 .lv-draw-table-fit td:nth-child(2) span,
 .lv-draw-table-fit td:nth-child(2) i,
 .lv-draw-table-fit td:nth-child(2) b,
 .lv-draw-table-fit td:nth-child(2) strong{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;max-height:24px!important;margin:1px!important;padding:0!important;border-radius:50%!important;font-size:10px!important;line-height:24px!important;vertical-align:middle!important;box-sizing:border-box!important}
 .lv-draw-table-fit td:nth-child(2){word-spacing:3px!important}
 .lv-draw-nav{display:grid;grid-template-columns:1fr}
 .lv-draw-nav a{justify-content:center;width:100%}
}

/* =========================================================
   v1.5.2 MOBILE TABLE POLISH
   Remove truly empty source columns and use all phone width.
   ========================================================= */
.lv-draw-table-fit .lv-empty-col{display:none!important}

@media(max-width:767px){
  .lv-draw-section h2{font-size:18px!important;line-height:1.18!important;letter-spacing:-.01em!important}

  .lv-draw-table-fit table.lv-visible-cols-3 th:nth-child(1),
  .lv-draw-table-fit table.lv-visible-cols-3 td:nth-child(1){width:9%!important}
  .lv-draw-table-fit table.lv-visible-cols-3 th:nth-child(2),
  .lv-draw-table-fit table.lv-visible-cols-3 td:nth-child(2){width:66%!important}
  .lv-draw-table-fit table.lv-visible-cols-3 th:nth-child(3),
  .lv-draw-table-fit table.lv-visible-cols-3 td:nth-child(3){width:25%!important}

  .lv-draw-table-fit th:first-child{
    font-size:0!important;
    white-space:nowrap!important;
  }
  .lv-draw-table-fit th:first-child::after{
    content:'Тур';
    font-size:10px!important;
    line-height:1!important;
  }

  .lv-draw-table-fit td:nth-child(2){
    padding-left:4px!important;
    padding-right:4px!important;
  }
  .lv-draw-table-fit td:nth-child(2) br{display:none!important}
  .lv-draw-table-fit td:nth-child(2) span,
  .lv-draw-table-fit td:nth-child(2) i,
  .lv-draw-table-fit td:nth-child(2) b,
  .lv-draw-table-fit td:nth-child(2) strong{
    margin:2px!important;
  }
}

/* =========================================================
   v1.5.3 MOBILE DRAW CARDS
   Desktop keeps the real table. Mobile shows the same data
   as compact tour cards, without horizontal scrolling.
   ========================================================= */
.lv-mobile-draw-cards{display:none}

@media(max-width:767px){
  .lv-draw-table-fit table.lv-has-mobile-cards{display:none!important}
  .lv-mobile-draw-cards{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    width:100%;
    max-width:100%;
    padding:6px;
  }
  .lv-mobile-draw-card{
    width:100%;
    min-width:0;
    padding:10px;
    background:#fff;
    border:1px solid #e7e9ee;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(25,35,55,.035);
  }
  .lv-mobile-draw-card__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
  }
  .lv-mobile-draw-card__tour{
    flex:0 0 auto;
    color:#202633;
    font-size:13px;
    line-height:1.2;
    font-weight:800;
  }
  .lv-mobile-draw-card__prize{
    min-width:0;
    color:#168446;
    font-size:13px;
    line-height:1.2;
    font-weight:800;
    text-align:right;
  }
  .lv-mobile-draw-card__balls{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:5px;
    min-width:0;
    font-size:0;
    line-height:1;
  }
  .lv-mobile-draw-card__balls br{display:none!important}
  .lv-mobile-draw-card__balls span,
  .lv-mobile-draw-card__balls i,
  .lv-mobile-draw-card__balls b,
  .lv-mobile-draw-card__balls strong{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:30px!important;
    min-width:30px!important;
    max-width:30px!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    margin:0!important;
    padding:0!important;
    border-radius:50%!important;
    box-sizing:border-box!important;
    font-size:11px!important;
    line-height:30px!important;
    vertical-align:middle!important;
  }
  .lv-draw-table-fit{
    border:0!important;
    background:transparent!important;
  }
}


/* v1.5.5 — polished guide, summary and video */
.lv-draw-guide{
  display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:14px;
  margin:16px 0 18px;padding:16px 18px;border:1px solid #f0dfe2;border-radius:16px;
  background:linear-gradient(135deg,#fff 0%,#fff7f8 58%,#fff 100%);
  box-shadow:0 10px 28px rgba(31,42,68,.06);position:relative;overflow:hidden
}
.lv-draw-guide:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(#ef2d3d,#ff7b87)}
.lv-draw-guide__icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:#ef2d3d;color:#fff;font-weight:900;font-size:21px;border:0;box-shadow:0 7px 18px rgba(239,45,61,.22)}
.lv-draw-guide__content{display:flex;flex-direction:column;gap:3px;min-width:0}
.lv-draw-guide__eyebrow{font-size:11px;line-height:1.2;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#d52939}
.lv-draw-guide__content strong{font-size:17px;line-height:1.2;color:#171b24}
.lv-draw-guide__content span{font-size:13px;line-height:1.45;color:#747c89;max-width:560px}
.lv-draw-guide__link{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 14px;border-radius:11px;background:#ef2d3d;color:#fff!important;font-weight:800;font-size:13px;text-decoration:none!important;white-space:nowrap;box-shadow:0 6px 16px rgba(239,45,61,.16)}
.lv-draw-guide__link b{font-size:17px;line-height:1}
.lv-draw-guide__link:hover{background:#c91e2e;color:#fff!important;text-decoration:none!important;transform:translateY(-1px)}

.lv-section-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.lv-section-title-row h2{margin:2px 0 0!important}
.lv-draw-summary{padding:20px!important}
.lv-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lv-summary-stat{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:92px;padding:14px 16px;border:1px solid #e8ebf0;border-radius:14px;background:linear-gradient(180deg,#fff 0%,#fafbfc 100%)}
.lv-summary-stat span{font-size:12px;line-height:1.3;font-weight:700;color:#7b8390}
.lv-summary-stat strong{font-size:24px;line-height:1.05;font-weight:900;color:#1a2030;letter-spacing:-.02em}
.lv-summary-stat:first-child strong{color:#1c69b4}
.lv-summary-stat:last-child strong{color:#d72b3a}
.lv-draw-summary__body{font-size:15px;line-height:1.65}
.lv-draw-summary__body > strong:first-child,.lv-draw-summary__body > h3:first-child{display:none!important}

.lv-draw-video{padding:20px!important;overflow:hidden}
.lv-video-title-row{margin-bottom:12px}
.lv-video-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border-radius:999px;background:#fff0f2;color:#d92b3b;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.lv-video-wrap{position:relative;width:100%;max-width:100%;overflow:hidden;border-radius:14px;background:#111;box-shadow:0 6px 20px rgba(20,30,50,.10)}
.lv-video-wrap iframe,.lv-video-wrap video,.lv-video-wrap embed{display:block;width:100%!important;max-width:100%!important;aspect-ratio:16/9;height:auto!important;border:0;border-radius:14px}

@media(max-width:767px){
  .lv-draw-guide{grid-template-columns:42px minmax(0,1fr);gap:10px;padding:13px 13px 14px;margin:12px 0 14px;border-radius:14px}
  .lv-draw-guide__icon{width:42px;height:42px;border-radius:12px;font-size:18px}
  .lv-draw-guide__eyebrow{font-size:10px}
  .lv-draw-guide__content strong{font-size:15px}
  .lv-draw-guide__content span{font-size:12px;line-height:1.4}
  .lv-draw-guide__link{grid-column:1/-1;width:100%;justify-content:space-between;white-space:normal;text-align:left;font-size:13px;padding:11px 13px;margin-top:2px}
  .lv-draw-summary,.lv-draw-video{padding:14px!important}
  .lv-section-title-row{margin-bottom:10px}
  .lv-summary-grid{grid-template-columns:1fr 1fr;gap:8px}
  .lv-summary-stat{min-height:78px;padding:11px 12px;border-radius:12px}
  .lv-summary-stat span{font-size:10px}
  .lv-summary-stat strong{font-size:18px}
  .lv-video-badge{font-size:9px;padding:5px 7px}
  .lv-video-wrap{border-radius:11px}
  .lv-video-wrap iframe,.lv-video-wrap video,.lv-video-wrap embed{border-radius:11px}
}

/* v1.5.8 — single page sidebar must fill its CSS-grid column */
@media (min-width:821px){
  .lv-single-layout > aside.lv-sidebar{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:0 0 auto!important;
    padding-left:0!important;
    padding-right:0!important;
  }
}


/* v1.6.3 — restored legacy generated copy + clean checker defaults */
.lv-legacy-seo-intro{max-width:980px;margin-top:10px!important;font-size:16px!important;line-height:1.72!important;color:#59616d!important}
.lv-legacy-draw-intro{max-width:980px;margin-top:13px;padding-top:13px;border-top:1px solid #edf0f4;color:#59616d}
.lv-legacy-draw-intro p{margin:0!important;font-size:15px!important;line-height:1.68!important}
.lv-home-copy__desc a{font-weight:700;color:#d92335!important;text-decoration:none!important;border-bottom:1px solid rgba(217,35,53,.25)}
.lv-home-copy__desc a:hover{border-bottom-color:#d92335}
@media(max-width:767px){.lv-legacy-seo-intro{font-size:15px!important;line-height:1.65!important}.lv-legacy-draw-intro p{font-size:14px!important;line-height:1.62!important}}

/* =========================================================
   v1.6.5 — ALIGN MAIN CONTENT WITH SIDEBAR
   Legacy main.css applies section { padding: 7.5rem 0 } on desktop.
   New LOTOVSEM layouts use <section> as the main grid column, so that
   legacy rule pushed content far below the sidebar. Reset it only for
   the direct layout column, preserving normal sections inside content.
   ========================================================= */
.lv-layout-row > section,
.lv-single-layout > section.lv-single-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    align-self: start !important;
}

.lv-layout-row > section > :first-child,
.lv-single-main > :first-child {
    margin-top: 0 !important;
}
