/* Lyceum 123 — site styles (TZ p.16–22, 30). Brand: blue #156ec0, gold #e3bd75 */

/* ---- Inter, self-hosted (p.17) ---- */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;
  src:url(/wp-content/uploads/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;
  src:url(/wp-content/uploads/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;
  src:url(/wp-content/uploads/fonts/inter-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{--lyc-blue:#156ec0;--lyc-blue-dark:#0e4f8c;--lyc-gold:#e3bd75;--lyc-text:#1f2933;--lyc-bg:#f4f7fb}

body,input,button,select,textarea,h1,h2,h3,h4,h5,h6,
.et_pb_text,.et_pb_button,.et_pb_menu .et-menu-nav li a,#top-menu li a{
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif !important}

/* hero title: plain, no italics / letter-spacing (p.17) */
h1.hero-title{font:inherit !important;color:inherit;letter-spacing:normal !important;text-transform:none !important;
  font-style:normal !important;margin:0;padding:0;line-height:inherit}

/* hero video (inserted by script on desktop only, p.16) */
.lyc-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}
.lyc-hero-has-video > *:not(.lyc-hero-video){position:relative;z-index:1}

/* placeholder for pages waiting for content */
.page-stub{padding:28px 24px;border:1px dashed #b9c6d6;border-radius:12px;background:#f7f9fc;color:#5a6b7d;text-align:center;font-size:18px}

/* temporarily hidden items (add class lyc-hide, remove when ready) */
.lyc-hide{display:none !important}

/* ---- inner pages: unified template (p.21) ---- */
body.page:not(.home) #main-content .container,body.single-post #main-content .container{padding-top:0}
body.page:not(.home) #main-content .main_title,body.single-post #main-content .main_title{
  background:var(--lyc-blue);color:#fff;margin:0 0 0;padding:44px 0 40px;
  font-size:clamp(26px,4vw,42px);line-height:1.2;font-weight:700;letter-spacing:0;
  box-shadow:0 0 0 100vmax var(--lyc-blue);clip-path:inset(0 -100vmax)}
body.page:not(.home) #sidebar,body.single-post #sidebar{display:none}
body.page:not(.home) #left-area,body.single-post #left-area{width:100%;padding-bottom:48px;float:none}
body.page:not(.home) #main-content .container:before,body.single-post #main-content .container:before{display:none}
.entry-content{font-size:17px;line-height:1.65;color:var(--lyc-text)}
.entry-content h1,.entry-content h2,.entry-content h3{font-family:'Inter',sans-serif;color:var(--lyc-blue-dark);line-height:1.25;font-style:normal;letter-spacing:0;padding-bottom:10px}
.entry-content h1{font-size:30px}.entry-content h2{font-size:26px}.entry-content h3{font-size:21px}
.entry-content i,.entry-content em{font-style:normal}
.entry-content font{color:inherit !important}
.entry-content img{max-width:100%;height:auto}
.entry-content a{color:var(--lyc-blue)}
.entry-content ul{padding-left:1.2em;list-style:disc}
.entry-content ul ul{margin-top:6px}
.entry-content li{margin:4px 0}
.section-intro{font-size:18px;color:#5a6b7d}

/* breadcrumbs */
.lyc-crumbs{font-size:14px;color:#5a6b7d;padding:16px 0 18px}
.lyc-crumbs a{color:var(--lyc-blue);text-decoration:none}
.lyc-crumbs a:hover{text-decoration:underline}
.lyc-crumbs__sep{margin:0 8px;color:#9aa8b8}

/* ---- news cards ---- */
.lyc-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.lyc-card{background:#fff;border:1px solid #e1e8f0;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 2px 10px rgba(21,110,192,.06)}
.lyc-card__img{display:block;aspect-ratio:16/10;background:var(--lyc-bg);overflow:hidden}
.lyc-card__img img{width:100%;height:100%;object-fit:cover;display:block}
.lyc-card__noimg{display:block;width:100%;height:100%;background:linear-gradient(135deg,#dbe8f6,#f3e6c8)}
.lyc-card__body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.lyc-card time{font-size:13px;color:#6b7b8d}
.lyc-card h3{font-size:18px;line-height:1.3;margin:0;padding:0;color:var(--lyc-text)}
.lyc-card h3 a{color:inherit;text-decoration:none}
.lyc-card p{font-size:15px;line-height:1.5;margin:0;color:#44525f}
.lyc-card__more{margin-top:auto;font-weight:600;color:var(--lyc-blue);text-decoration:none}
.lyc-news__all{text-align:center;margin-top:28px}
.lyc-btn{display:inline-block;padding:12px 28px;border-radius:20px;background:var(--lyc-blue);color:#fff !important;font-weight:700;text-decoration:none}
.lyc-pager{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:32px 0 8px}
.lyc-pager .page-numbers{min-width:40px;height:40px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d5dfeb;border-radius:10px;text-decoration:none;color:var(--lyc-blue)}
.lyc-pager .current{background:var(--lyc-blue);color:#fff;border-color:var(--lyc-blue)}

@media (max-width:980px){.lyc-cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.lyc-cards{grid-template-columns:1fr}}

/* ---- mobile header: logo + burger in one row (p.18) ---- */
@media (max-width:767px){
  .et_pb_section_3_tb_header,.et_pb_column_8_tb_header{display:none !important}
  header.et-l--header > div{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;background:#fff;border-bottom:1px solid #e1e8f0}
  header.et-l--header .et_pb_section_4_tb_header{flex:1 1 auto;padding:0 !important;margin:0 !important;min-height:0}
  header.et-l--header .et_pb_section_4_tb_header .et_pb_row{padding:0 !important;margin:0 !important;width:100% !important}
  header.et-l--header .et_pb_column_7_tb_header{width:100% !important;max-width:230px}
  header.et-l--header .et_pb_column_7_tb_header img{max-height:52px;width:auto;max-width:100%}
  header.et-l--header .et_pb_section_5_tb_header{flex:0 0 auto;width:auto !important;padding:0 !important;margin:0 !important;min-height:0}
  header.et-l--header .et_pb_section_5_tb_header .et_pb_row{padding:0 !important;margin:0 !important;width:auto !important}
  /* the dropdown anchors to the whole header row */
  header.et-l--header .et_pb_section_5_tb_header,
  header.et-l--header .et_pb_section_5_tb_header .et_pb_row,
  header.et-l--header .et_pb_section_5_tb_header .et_pb_column,
  header.et-l--header .et_pb_section_5_tb_header .et_pb_menu,
  header.et-l--header .et_pb_section_5_tb_header .et_pb_menu_inner_container,
  header.et-l--header .et_pb_section_5_tb_header .et_pb_menu__wrap,
  header.et-l--header .et_pb_section_5_tb_header .mobile_nav{position:static !important}
  header.et-l--header .et_pb_menu .et_mobile_menu{position:absolute;left:0;right:0;top:100%;width:auto !important;
    max-height:calc(100vh - 74px);overflow-y:auto;background:#fff;border-top:3px solid var(--lyc-blue);box-shadow:0 12px 24px rgba(0,0,0,.15);z-index:9999}
  header.et-l--header .et_pb_menu .mobile_menu_bar:before{font-size:34px;color:var(--lyc-blue)}
  header.et-l--header .et_pb_menu .et_mobile_menu li a{padding:14px 52px 14px 18px;font-size:17px;font-weight:600;color:var(--lyc-text);border-bottom:1px solid #eef2f7;display:block}
  header.et-l--header .et_pb_menu .et_mobile_menu li li a{padding-left:34px;font-weight:500;font-size:16px}
  header.et-l--header .et_pb_menu .et_mobile_menu li li li a{padding-left:50px}
  /* accordion (p.19) */
  header.et-l--header .et_mobile_menu li.menu-item-has-children{position:relative}
  header.et-l--header .et_mobile_menu li.menu-item-has-children > ul.sub-menu{display:none !important}
  header.et-l--header .et_mobile_menu li.lyc-open > ul.sub-menu{display:block !important}
  header.et-l--header .et_mobile_menu .lyc-toggle{position:absolute;right:0;top:0;width:52px;height:50px;border:0;background:transparent;cursor:pointer;color:var(--lyc-blue);font-size:22px;line-height:1}
  header.et-l--header .et_mobile_menu .lyc-toggle:after{content:'+'}
  header.et-l--header .et_mobile_menu li.lyc-open > .lyc-toggle:after{content:'\2212'}
  header.et-l--header .et_mobile_menu .lyc-close-row{background:var(--lyc-bg);text-align:right}
  header.et-l--header .et_mobile_menu .lyc-close{border:0;background:transparent;color:var(--lyc-blue);font-weight:700;font-size:16px;padding:12px 18px;cursor:pointer}
}

/* ---- "Швидкі посилання" tiles: 2 columns, equal height on phones (p.30) ---- */
@media (max-width:767px){
  .et_pb_row:has(> .et_flex_column_3_24.et_clickable){display:grid !important;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:12px}
  .et_pb_row:has(> .et_flex_column_3_24.et_clickable) > .et_flex_column_3_24{width:auto !important;max-width:none !important;margin:0 !important;height:100%}
}

/* ---- footer ---- */
footer.et-l--footer .et_pb_text a{color:inherit}

/* home: "Останні новини" block */
.lyc-section-title{text-align:center;font-size:clamp(26px,3.4vw,36px);color:var(--lyc-blue-dark);margin:0;padding:48px 0 24px;font-weight:700;letter-spacing:0}
.et-l--post .lyc-news,.et_pb_text .lyc-news{max-width:1180px;margin:0 auto;padding:0 16px 56px}

/* contacts */
.lyc-contacts{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-bottom:28px}
.lyc-contact-block{background:var(--lyc-bg);border:1px solid #e1e8f0;border-radius:14px;padding:18px 22px}
.lyc-contact-block h2{font-size:20px;margin:0 0 6px;padding:0}
.lyc-contact-block p,.lyc-contact-block ul{margin:0;padding-bottom:0}
.lyc-contact-block ul{list-style:none;padding-left:0}
.lyc-map iframe{width:100%;height:420px;border:0;border-radius:14px;display:block}
@media (max-width:767px){.lyc-contacts{grid-template-columns:1fr}.lyc-map iframe{height:320px}}

/* contrast fixes (p.16/p.26 check) */
body #page-container header.et-l--header a.et_pb_button.et_pb_module,body #page-container header.et-l--header a.et_pb_button.et_pb_module:hover{color:#1f2933 !important}
.lyc-card time{color:#566676}

/* desktop dropdowns: flip nested flyouts to the left when they would leave the screen */
body #page-container .et_pb_menu .et-menu li ul.sub-menu li.menu-item-has-children.lyc-flip > ul.sub-menu{left:auto !important;right:calc(100% + 8px) !important}
html,body{overflow-x:clip}
body #page-container .et_pb_menu .et-menu li ul.sub-menu{width:300px !important;min-width:0 !important}
body #page-container .et_pb_menu .et-menu li ul.sub-menu a{white-space:normal !important;width:auto !important;line-height:1.3 !important}

/* phones: no text under 16px in the hero (p.26) */
@media (max-width:767px){
  .lyc-hero .et_pb_text_inner:not(:has(h1)){font-size:16px !important}
  .lyc-hero .et_pb_button{font-size:16px !important}
}

/* ---- search (p.32) ---- */
.lyc-search-li{position:relative;list-style:none}
.lyc-search-toggle{border:0;background:transparent;cursor:pointer;padding:6px 10px;color:var(--lyc-blue);line-height:1}
.lyc-search-toggle svg{width:22px;height:22px;display:block}
.lyc-search-form{display:flex;gap:6px;align-items:center}
.lyc-search-li .lyc-search-form{display:none;position:absolute;right:0;top:100%;z-index:9999;background:#fff;border:1px solid #d5dfeb;border-radius:12px;padding:10px;box-shadow:0 12px 24px rgba(0,0,0,.15);width:320px}
.lyc-search-li.lyc-open .lyc-search-form{display:flex}
.lyc-search-form input[type=search]{flex:1;min-width:0;border:1px solid #c4d1e0;border-radius:8px;padding:9px 12px;font-size:16px;color:var(--lyc-text)}
.lyc-search-form button[type=submit]{border:0;border-radius:8px;background:var(--lyc-blue);color:#fff;padding:9px 14px;font-size:16px;font-weight:600;cursor:pointer}
@media (max-width:767px){
  header.et-l--header .et_mobile_menu .lyc-search-row{padding:10px 14px;background:#fff;border-bottom:1px solid #eef2f7}
}
