/*
Theme Name: UltraFan Neon Nights
Theme URI: https://ultrafan.example
Author: UltraFan / Newplay Technology
Description: Корпоративна тема на ultrafan — дизайн посока „Neon Nights“. Изградена изцяло с core Gutenberg блокове, без зависимости от плъгини.
Version: 1.13.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: ultrafan-neon
*/

/* ====== хедър ====== */
/* sticky е на обвивката на template part-а — иначе .uf-header няма накъде да „залепне“ */
.wp-site-blocks > header.wp-block-template-part{
  position: sticky; top: 0; z-index: 90;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part{ top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px){
  .admin-bar .wp-site-blocks > header.wp-block-template-part{ top: 0; }
}
.uf-header{
  position: relative; z-index: 90;
  background: rgba(5,7,7,.82);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.uf-header::before{
  content: ""; position: absolute; inset: 0; z-index: -1;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.uf-header-row{ min-height: 64px; gap: 16px; }
.uf-header .wp-block-navigation{ flex-shrink: 1; }
.uf-header .wp-block-navigation .wp-block-navigation__container{ gap: 4px; }
.uf-logo img{ display:block; }
.uf-logo{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.uf-header .wp-block-navigation a{ padding:8px 8px; border-radius:8px; font-size:13px; }
.uf-header .wp-block-navigation a:hover{ background:rgba(255,255,255,.08); text-decoration:none; }
.uf-lang{ display:flex; gap:2px; border:1px solid rgba(255,255,255,.28); border-radius:999px; padding:2px; }
.uf-lang a{ font-size:10.5px; font-weight:700; padding:6px 8px; border-radius:999px; text-decoration:none; line-height:1; }
.uf-lang a.on{ background:#f2f5f3; color:#0a0c0c; }
.uf-header .wp-block-button__link{ padding:10px 18px; font-size:13px; white-space:nowrap; }
.uf-header .wp-block-buttons, .uf-lang{ flex:none; }

/* ====== херо ====== */
.uf-hero .uf-eyebrow{ margin-bottom: 6px; }
.uf-eyebrow{
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  font-family: var(--wp--preset--font-family--body);
}
.uf-grad-text{
  background: var(--wp--preset--gradient--brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.uf-store-badges img{ height:46px !important; width:auto !important; border-radius:8px; box-shadow:0 0 0 1px rgba(255,255,255,.28); }
.uf-store-badges .wp-block-image{ margin:0; }
.uf-hero-ticker{ border-top:1px solid rgba(255,255,255,.1); }
.uf-hero-ticker strong{ font-family: var(--wp--preset--font-family--heading); font-size:22px; display:block; color:#fff; }
.uf-hero-ticker span{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:#7e8c85; font-weight:500; }

/* ====== секции / карти ====== */
.uf-section-head{ align-items: end; }
.uf-card{
  background: var(--wp--preset--color--card);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
  height: 100%;
}
.uf-card:hover{ transform: translateY(-3px); border-color: rgba(0,255,67,.45); }
.uf-card .wp-block-post-featured-image img{ display:block; }
.uf-card-body{ padding: 4px 22px 24px; }
.uf-card .wp-block-post-date{
  font-size: 11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color: var(--wp--preset--color--accent); padding: 18px 22px 0;
}
.uf-card .wp-block-post-title{ font-size: 19px; line-height:1.3; padding: 8px 22px 0; margin:0; }
.uf-card .wp-block-post-title a{ text-decoration:none; }
.uf-card .wp-block-post-excerpt{ padding: 8px 22px 0; color: var(--wp--preset--color--muted); font-size: 14px; line-height:1.6; }
.uf-card .wp-block-post-excerpt__more-link{ color: var(--wp--preset--color--accent); font-weight:700; font-size:13px; text-decoration:none; display:inline-block; margin-top:8px; }

/* клубни карти */
.uf-club{
  background: var(--wp--preset--color--card);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px; text-align:center;
  transition: border-color .18s ease;
}
.uf-club:hover{ border-color: rgba(0,255,67,.45); }
/* карта с външен линк („Уебсайт"): разтегнат <a> върху цялата карта */
.uf-club.uf-has-link{ position:relative; cursor:pointer; }
.uf-card-link{ position:absolute; inset:0; z-index:1; border-radius:inherit; }
.uf-card-link:focus-visible{ outline:2px solid var(--wp--preset--color--accent); outline-offset:2px; }
.uf-crest{
  width:64px; height:64px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--wp--preset--font-family--heading);
  font-weight:700; font-size:20px; color:#04140a;
  background: var(--wp--preset--gradient--brand);
  margin: 0 auto;
}
.uf-crest.alt{ background: linear-gradient(140deg,#00d0ff,#0080c9); color:#032030; }
.uf-crest.dark{ background:#161b19; color:#00ff43; box-shadow: inset 0 0 0 2px rgba(0,255,67,.33); }
.uf-club h3{ font-size:14px; font-weight:600; margin:0; font-family: var(--wp--preset--font-family--body); }
.uf-club p{ font-size:11.5px; color: var(--wp--preset--color--muted); margin:0; }

/* списъци с шеврон */
.uf-list{ list-style:none; padding-left:0; }
.uf-list li{ position:relative; padding-left:26px; color: var(--wp--preset--color--muted); margin-bottom:12px; line-height:1.55; }
.uf-list li::before{
  content:""; position:absolute; left:0; top:7px; width:12px; height:8px;
  background: var(--wp--preset--color--accent);
  clip-path: polygon(0 0,55% 0,100% 50%,55% 100%,0 100%,45% 50%);
}
.uf-list li strong{ color: var(--wp--preset--color--contrast); }

/* панели и джобове */
.uf-panel{
  background: var(--wp--preset--color--card);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
}
.uf-job{ border:1px solid var(--wp--preset--color--line); background:var(--wp--preset--color--card); border-radius:14px; transition:border-color .15s; }
.uf-job:hover{ border-color: rgba(0,255,67,.45); }
.uf-job-ico{
  width:46px; height:46px; border-radius:12px; background:var(--wp--preset--gradient--brand);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--wp--preset--font-family--heading); font-weight:700; font-size:14px; color:#04140a; flex:none;
}

/* форми (статични в v1) */
.uf-form input:not([type=file]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
.uf-form textarea, .uf-form select{
  width:100%; background:#0d1110; color:var(--wp--preset--color--contrast);
  border:1px solid var(--wp--preset--color--line); border-radius:9px; padding:13px 14px;
  font: 500 14.5px/1.4 var(--wp--preset--font-family--body);
}
.uf-form input:not([type=checkbox]):focus, .uf-form textarea:focus, .uf-form select:focus{ outline:2px solid var(--wp--preset--color--accent); outline-offset:1px; }
.uf-form label{ font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--wp--preset--color--muted); display:block; margin-bottom:7px; }
.uf-form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:600px){ .uf-form-grid{ grid-template-columns:1fr; } }
.uf-form .uf-field{ margin-bottom:14px; }

/* търсачка на новини */
.uf-news-tools .wp-block-search__input{
  background:#0d1110; color:var(--wp--preset--color--contrast);
  border:1px solid var(--wp--preset--color--line); border-radius:999px; padding:12px 18px;
}
.uf-news-tools .wp-block-search__button{ border-radius:999px; background:var(--wp--preset--gradient--brand); color:#04140a; font-weight:700; border:0; padding:12px 22px; }
.uf-news-tools .wp-block-archives-dropdown select{
  background:#0d1110; color:var(--wp--preset--color--contrast);
  border:1px solid var(--wp--preset--color--line); border-radius:999px; padding:12px 16px;
}

/* футър */
.uf-footer{ background:#0a0c0b; border-top:1px solid #1d2320; }
.uf-footer a{ text-decoration:none; }
.uf-footer a:hover{ color: var(--wp--preset--color--accent); }
.uf-footer-head{ font-size:13px !important; letter-spacing:.14em; text-transform:uppercase; color:#8fa096 !important; font-family:var(--wp--preset--font-family--body) !important; font-weight:600 !important; }
.uf-newsletter{ display:flex; gap:8px; }
.uf-newsletter input{ flex:1; min-width:0; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); color:#fff; border-radius:999px; padding:12px 16px; font:500 13.5px var(--wp--preset--font-family--body); }
.uf-newsletter button{ border:0; border-radius:999px; background:var(--wp--preset--gradient--brand); color:#04140a; font-weight:700; font-size:13px; padding:12px 18px; cursor:pointer; }
.uf-footer .wp-block-social-links .wp-social-link{ border:1px solid rgba(255,255,255,.17); border-radius:50%; }
.uf-footer .wp-block-social-links .wp-social-link:hover{ border-color: var(--wp--preset--color--accent); }
.uf-footer-base{ border-top:1px solid rgba(255,255,255,.09); color:#7c8a82; font-size:12.5px; }

/* пагинация */
.wp-block-query-pagination a, .wp-block-query-pagination-numbers .page-numbers{ color: var(--wp--preset--color--muted); text-decoration:none; }
.wp-block-query-pagination .current{ color: var(--wp--preset--color--accent); }

/* дребни */
.uf-note{ font-size:11.5px; color:var(--wp--preset--color--muted); opacity:.75; }
.uf-outline-btn .wp-block-button__link{
  background: transparent !important; color: var(--wp--preset--color--contrast) !important;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45);
}
.uf-outline-btn .wp-block-button__link:hover{ box-shadow: inset 0 0 0 1.5px #fff; }

/* ====== CPT карти (Query Loop) ====== */
.uf-club .wp-block-post-featured-image{ width:64px; margin:0 auto; }
.uf-club .wp-block-post-featured-image img{ width:64px; height:64px; border-radius:0; object-fit:contain; display:block; }
.uf-club .wp-block-post-title{ font-size:14px; font-family:var(--wp--preset--font-family--body); font-weight:600; margin:0; }
/* въздух между логото и името на картата (клубове, партньори, екип) */
.uf-club .wp-block-post-featured-image + .wp-block-post-title{ margin-top:18px; }
.uf-club .uf-crest + .wp-block-heading{ margin-top:18px; }
.uf-club .wp-block-post-title a{ text-decoration:none; }
.uf-club .wp-block-post-excerpt{ font-size:11.5px; color:var(--wp--preset--color--muted); }
.uf-club .wp-block-post-excerpt p{ margin:0; }
/* партньори (търговци) — лога на бяла плочка, защото са правоъгълни и многоцветни */
.uf-vendor .wp-block-post-featured-image{
  box-sizing:border-box; width:100%; margin:0;
  background:#fff; border-radius:12px; padding:14px 18px;
}
.uf-vendor .wp-block-post-featured-image img{
  /* !important: core-та слага inline object-fit:cover на featured image */
  width:100%; height:56px; border-radius:0; object-fit:contain !important; display:block;
}
/* филтър по категория над партньорите (uf_partner_filter_pills() + assets/js/partner-filter.js) */
.uf-filter{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 26px; }
.uf-filter[hidden]{ display:none; }
.uf-pill{
  font:600 13px/1 var(--wp--preset--font-family--body); color:var(--wp--preset--color--contrast);
  background:transparent; border:1px solid rgba(255,255,255,.2); border-radius:999px;
  padding:9px 14px; cursor:pointer; transition:border-color .15s ease, background .15s ease;
}
.uf-pill span{ margin-left:3px; font-weight:500; color:var(--wp--preset--color--muted); }
.uf-pill:hover{ border-color:rgba(0,255,67,.45); }
.uf-pill:focus-visible{ outline:2px solid var(--wp--preset--color--accent); outline-offset:2px; }
.uf-pill.is-active{ background:var(--wp--preset--gradient--brand); color:#04140a; border-color:transparent; }
.uf-pill.is-active span{ color:rgba(4,20,10,.65); }
.wp-block-post-template > li[hidden]{ display:none !important; }
.uf-job .wp-block-post-title{ font-size:16px; margin:0; }
.uf-job .wp-block-post-title a{ text-decoration:none; }
.uf-job .wp-block-post-excerpt{ font-size:13px; color:var(--wp--preset--color--muted); }
.uf-job .wp-block-post-excerpt p{ margin:0; }
.uf-job .wp-block-read-more{ font-weight:700; font-size:13px; color:var(--wp--preset--color--accent); text-decoration:none; }

/* ====== оформление: без черни ленти, подравнени колони ====== */
.wp-site-blocks > * + *{ margin-block-start: 0 !important; }
main > .wp-block-post-content > .alignfull{ margin-block: 0 !important; }
/* лийд параграф: подравнен с колоната (1140), не с ръба на екрана */
main .wp-block-group.alignfull.is-layout-constrained > p[style*="max-width"]{
  margin-left: max(0px, calc((100% - 1140px) / 2)) !important;
  margin-right: auto !important;
}

/* ====== store badges (единствени CTA в херото) ====== */
.uf-store-badges img{ height:52px !important; width:auto !important; border-radius:9px; box-shadow: 0 0 0 1px rgba(255,255,255,.32); background:#000; }
.uf-store-badges a{ display:inline-block; transition: transform .15s ease, filter .15s ease; }
.uf-store-badges a:hover{ transform: translateY(-2px); filter: brightness(1.15); }

/* ====== клубни лога в херото ====== */
.uf-hero-clubs{ margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; }
.uf-hero-clubs .uf-eyebrow{ margin-bottom: 14px; }
.uf-hero-clubs .wp-block-post-featured-image{ width:56px; margin:0; }
.uf-hero-clubs .wp-block-post-featured-image img{ width:56px; height:56px; border-radius:50%; object-fit:cover; display:block; box-shadow: 0 0 0 2px rgba(255,255,255,.18); transition: box-shadow .15s; }
.uf-hero-clubs .wp-block-post-featured-image a:hover img{ box-shadow: 0 0 0 2px var(--wp--preset--color--accent); }
.uf-hero-clubs .wp-block-post-template{ display:flex !important; flex-wrap:wrap; gap:14px; }
.uf-hero-clubs .wp-block-post-template > *{ margin:0; }

/* ====== решения: визуални карти ====== */
.uf-sol-card{
  background: var(--wp--preset--color--card);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px; height: 100%;
  transition: transform .18s ease, border-color .18s ease;
}
.uf-sol-card:hover{ transform: translateY(-3px); border-color: rgba(0,255,67,.5); }
.uf-sol-card a{ text-decoration: none; }
.uf-sol-ico{
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,208,255,.16), rgba(0,255,67,.16));
  border: 1px solid rgba(0,255,67,.35);
  display: flex; align-items: center; justify-content: center;
}
.uf-sol-ico svg{ width: 26px; height: 26px; stroke: var(--wp--preset--color--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.uf-sol-card h3{ font-size: 16px; margin: 0; line-height: 1.3; }
.uf-sol-card .uf-sol-tag{ color: var(--wp--preset--color--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.uf-sol-more{ font-weight: 700; font-size: 13px; color: var(--wp--preset--color--accent); }

/* ====== новини: филтри ====== */
.uf-news-tools .wp-block-group{ align-items: stretch; }
.uf-news-tools .wp-block-search{ margin: 0; }
.uf-news-tools .wp-block-search__inside-wrapper{ gap: 10px; }
.uf-news-tools .wp-block-search__input{
  background:#0d1110; color:var(--wp--preset--color--contrast);
  border:1px solid var(--wp--preset--color--line); border-radius:999px; padding:12px 18px; min-width: 260px;
}
.uf-news-tools .wp-block-search__button{ border-radius:999px; background:var(--wp--preset--gradient--brand); color:#04140a; font-weight:700; border:0; padding:12px 22px; cursor:pointer; }
.uf-news-tools .wp-block-archives-dropdown label{ display:none; }
.uf-news-tools .wp-block-archives-dropdown select{
  appearance:none; -webkit-appearance:none;
  background:#0d1110 url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2398a39d' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  color:var(--wp--preset--color--contrast);
  border:1px solid var(--wp--preset--color--line); border-radius:999px;
  padding:12px 42px 12px 18px; font: 600 13.5px var(--wp--preset--font-family--body); cursor:pointer;
}
.uf-news-tools .wp-block-archives-dropdown select:focus{ outline:2px solid var(--wp--preset--color--accent); outline-offset:1px; }

/* ====== контакти: карта ====== */
.uf-map{ border-radius:14px; overflow:hidden; border:1px solid var(--wp--preset--color--line); margin-top:26px; }
.uf-map iframe{ display:block; width:100%; height:320px; border:0; filter: invert(0.9) hue-rotate(180deg) saturate(0.4) contrast(0.9); }

/* ====== кандидатстване (единична позиция) ====== */
.uf-apply{ background: var(--wp--preset--color--card); border:1px solid var(--wp--preset--color--line); border-radius:14px; }
.uf-file{ position:relative; }
.uf-file input[type=file]{ width:100%; color:var(--wp--preset--color--muted); font:500 13px var(--wp--preset--font-family--body);
  background:#0d1110; border:1px dashed rgba(0,255,67,.4); border-radius:9px; padding:16px 14px; cursor:pointer; }
.uf-file input[type=file]::file-selector-button{
  border:0; border-radius:999px; background:var(--wp--preset--gradient--brand); color:#04140a;
  font:700 12.5px var(--wp--preset--font-family--body); padding:9px 16px; margin-right:12px; cursor:pointer; }

/* ====== подменюта в навигацията ====== */
.uf-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container{
  background:#0a0c0c !important; border:1px solid #222826 !important; border-radius:12px;
  padding:6px !important; min-width:300px !important; box-shadow:0 24px 44px -18px rgba(0,0,0,.6);
}
.uf-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container a{ padding:10px 12px !important; font-size:13px !important; border-radius:8px; }
.uf-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container a:hover{ background:rgba(255,255,255,.07); }

/* мобилен оверлей: четимо, просторно меню */
.uf-header .wp-block-navigation__responsive-container.is-menu-open{
  padding: 76px 26px 32px;
  background: #0a0c0c !important;
}
.uf-header .is-menu-open .wp-block-navigation a{ font-size: 17px; padding: 11px 8px; }
.uf-header .is-menu-open .wp-block-navigation__submenu-container{ padding-left: 14px; border-left: 1px solid var(--wp--preset--color--line); margin: 4px 0 8px; }
.uf-header .is-menu-open .wp-block-navigation__submenu-container a{ font-size: 15px; color: var(--wp--preset--color--muted); }
.uf-header .is-menu-open .wp-block-navigation__submenu-container a:hover{ color: var(--wp--preset--color--contrast); }
.uf-header .is-menu-open .wp-block-navigation__container,
.uf-header .is-menu-open .wp-block-navigation__responsive-container-content{ align-items: flex-start !important; text-align: left; }
.uf-header .is-menu-open .wp-block-navigation__submenu-container{ align-items: flex-start !important; }
.uf-header .is-menu-open li{ width: 100%; }
.uf-header .is-menu-open .wp-block-navigation-item{ align-items: flex-start !important; }
.uf-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item{ align-items: flex-start !important; }
.uf-header .wp-block-navigation__responsive-container-close{ top: 18px; right: 18px; color: #fff; }
.uf-header .wp-block-navigation__responsive-container-open{ color: #fff; }

/* GDPR чекбокс в бюлетина */
.uf-newsletter-wrap{ display:flex; flex-direction:column; gap:10px; }
.uf-gdpr{ display:flex; gap:8px; align-items:flex-start; font-size:11.5px; color:#8fa096; line-height:1.5; cursor:pointer; }
.uf-gdpr input{ margin-top:2px; accent-color:#00ff43; }
/* правни страници */
.uf-legal h2{ font-size:22px; margin-top:34px; }
.uf-legal p, .uf-legal li{ color:var(--wp--preset--color--muted); line-height:1.75; font-size:15px; }

/* ====== контактен инфо панел (v1.4) ====== */
.uf-contact-list{ list-style:none; margin:0; padding:0; }
.uf-contact-list li{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap;
  padding:11px 0; border-bottom:1px solid var(--wp--preset--color--line);
  font-size:14px;
}
.uf-contact-list li:last-child{ border-bottom:0; }
.uf-contact-list li > span:first-child{
  font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:var(--wp--preset--color--accent); flex:none;
}
.uf-contact-list li > span:last-child, .uf-contact-list li > a{ white-space:nowrap; }
.uf-contact-list a{ text-decoration:none; }
.uf-contact-list a:hover{ color:var(--wp--preset--color--accent); }

/* ====== светли правни страници (само хедър, бял фон) ====== */
.uf-legal-light{ background:#ffffff; color:#1d1d1b; min-height:72vh; }
.uf-legal-light .uf-legal h1{ color:#111312; }
.uf-legal-light .uf-legal h2{ color:#111312; }
.uf-legal-light .uf-legal p, .uf-legal-light .uf-legal li{ color:#383838; }
.uf-legal-light .uf-legal a{ color:#00892a; text-decoration:underline; }
.uf-legal-light .has-muted-color{ color:#6a716d !important; }
/* по-дълбоки заглавия и таблици в правните документи (политики, общи условия) */
.uf-legal h3{ font-size:18px; margin-top:28px; }
.uf-legal h4{ font-size:16px; margin-top:22px; }
.uf-legal-light .uf-legal h3, .uf-legal-light .uf-legal h4, .uf-legal-light .uf-legal strong{ color:#111312; }
.uf-legal .wp-block-table{ margin:18px 0 26px; overflow-x:auto; }
.uf-legal .wp-block-table table{ border-collapse:collapse; width:100%; font-size:14px; line-height:1.5; }
.uf-legal .wp-block-table th, .uf-legal .wp-block-table td{ border:1px solid #d9dedb; padding:9px 11px; text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.uf-legal-light .uf-legal .wp-block-table th{ background:#f3f5f4; color:#111312; }
.uf-legal-light .uf-legal .wp-block-table td{ color:#383838; }
/* шаблон „Само съдържание" (напр. /fotm/): без хедър и футър — черен текст на бял фон */
body:has(.uf-content-only){ background:#ffffff; }
.uf-content-only{ min-height:100vh; }
.uf-content-only .uf-legal p, .uf-content-only .uf-legal li, .uf-content-only .uf-legal td{ color:#111; }

/* ================= МОБИЛНИ ПРАВИЛА (v1.4.1) ================= */
body{ overflow-x: clip; }

/* хедър: побиране на тесен екран */
@media (max-width: 660px){
  .uf-header .wp-block-buttons{ display: none; } /* "Заяви демо" е достъпно от менюто */
  .uf-header-row{ min-height: 58px; }
}
@media (max-width: 400px){
  .uf-logo img:last-child{ display: none; } /* само знакът при много тесен екран */
}

/* новини: търсачка и филтър на цял ред */
@media (max-width: 660px){
  .uf-news-tools .wp-block-search{ width: 100%; }
  .uf-news-tools .wp-block-search__input{ min-width: 0; flex: 1; }
  .uf-news-tools .wp-block-search__inside-wrapper{ flex-wrap: nowrap; width: 100%; }
  .uf-news-tools .wp-block-archives-dropdown{ width: 100%; }
  .uf-news-tools .wp-block-archives-dropdown select{ width: 100%; }
}

/* Query Loop грид колони на мобилно */
@media (max-width: 781px){
  .wp-block-post-template.is-layout-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 599px){
  /* новинарските карти са с изображения и текст — една колона */
  .wp-block-post-template.is-layout-grid:has(.uf-card){ grid-template-columns: 1fr !important; }
  /* клубни/партньорски карти остават по две */
  .wp-block-post-template.is-layout-grid:has(.uf-club){ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* колонни секции с карти: 2 колони вместо пълно стифиране */
@media (max-width: 781px){
  .wp-block-columns:has(> .wp-block-column .uf-sol-card){ display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px !important; }
  .wp-block-columns:has(> .wp-block-column .uf-club){ display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px !important; }
  .wp-block-columns:has(> .wp-block-column .uf-sol-card) .wp-block-column,
  .wp-block-columns:has(> .wp-block-column .uf-club) .wp-block-column{ flex-basis: auto !important; }
}

/* отстояния на секциите на мобилно */
@media (max-width: 660px){
  .uf-hero{ padding-top: 64px !important; padding-bottom: 64px !important; }
  main > .wp-block-post-content > .alignfull{ padding-top: 52px !important; padding-bottom: 52px !important; }
  main > .wp-block-post-content > .alignfull.uf-hero{ padding-top: 64px !important; padding-bottom: 60px !important; }
  .uf-hero-clubs{ margin-top: 40px; }
  .uf-store-badges img{ height: 46px !important; }
  .uf-section-head{ row-gap: 14px; }
}

/* формите: грид в една колона по-рано (припокриване на тесни колони) */
@media (max-width: 720px){
  .uf-form-grid{ grid-template-columns: 1fr; }
}

/* контактен списък: етикет над стойността на тясно */
@media (max-width: 480px){
  .uf-contact-list li{ flex-direction: column; align-items: flex-start; gap: 3px; }
}

/* ================= ФОРМИ: box-sizing поправка (коренна причина за припокриването) ================= */
.uf-form, .uf-form *, .uf-form *::before, .uf-form *::after,
.uf-newsletter, .uf-newsletter *,
.uf-news-tools input, .uf-news-tools select, .uf-news-tools button,
.uf-apply, .uf-apply *{
  box-sizing: border-box;
}
.uf-form input, .uf-form textarea, .uf-form select{ display: block; max-width: 100%; }
/* последователен вертикален ритъм: гридът носи отстоянието, не клетките */
.uf-form-grid{ margin-bottom: 14px; }
.uf-form-grid .uf-field{ margin-bottom: 0; }
.uf-form button[type=submit]{ margin-top: 4px; }

/* хедър: менюто и BG/EN плътно до "Заяви демо" вдясно */
.uf-header-row{ justify-content: flex-start !important; }
.uf-header-row > nav.wp-block-navigation{ margin-left: auto; flex-grow: 0 !important; }
.uf-header-row > .uf-lang{ margin-left: 4px; }

/* ====== работещи форми (ultrafan-forms) ====== */
.uf-hp{ position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; pointer-events:none; }
.uf-consent{ margin: 4px 0 16px; }
.uf-form-msg{ margin-top: 14px; font-size: 14px; line-height: 1.5; }
.uf-form-msg.is-ok{ color: var(--wp--preset--color--accent); font-weight: 600; }
.uf-form-msg.is-err{ color: #ff7a6b; font-weight: 600; }

/* ================= v1.9: За нас, Решения, За Търговци, Кариери ================= */
/* варианти на бутони */
.uf-btn-white .wp-block-button__link{ background:#fff !important; color:#0a0c0c !important; }
.uf-btn-green .wp-block-button__link{ background:var(--wp--preset--color--accent) !important; color:var(--wp--preset--color--btn-ink) !important; }
.uf-btn-white .wp-block-button__link:hover, .uf-btn-green .wp-block-button__link:hover{ filter:brightness(.9); }
.uf-btn-cyan .wp-block-button__link{
  background:transparent !important; color:var(--wp--preset--color--accent-2) !important;
  box-shadow:inset 0 0 0 1.5px rgba(0,208,255,.6);
}
.uf-btn-cyan .wp-block-button__link:hover{ box-shadow:inset 0 0 0 1.5px var(--wp--preset--color--accent-2); }

/* неоново сияние в херото */
.uf-about-hero, .uf-careers-hero{ position:relative; overflow:hidden; border-bottom:1px solid var(--wp--preset--color--line); }
.uf-about-hero::before, .uf-careers-hero::before{
  content:""; position:absolute; top:-30%; right:-15%; width:70%; height:130%; pointer-events:none;
  background:radial-gradient(closest-side, rgba(0,255,67,.13), transparent 72%);
}
.uf-about-hero > *, .uf-careers-hero > *{ position:relative; }

/* За нас: херо със снимка */
.uf-about-photo{ margin:0; }
.uf-about-photo img{
  display:block; width:100%; max-width:560px; height:auto; margin-left:auto;
  -webkit-mask-image:linear-gradient(to right, transparent 0, #000 14%);
  mask-image:linear-gradient(to right, transparent 0, #000 14%);
}
@media (max-width:781px){
  .uf-about-photo img{ max-width:420px; margin:0 auto; -webkit-mask-image:none; mask-image:none; }
}

/* За нас: мисия (3 карти) и двете карти за клубове / търговци */
.uf-mission, .uf-duo{ height:100%; box-sizing:border-box; border:1px solid var(--wp--preset--color--line); border-radius:16px; background:var(--wp--preset--color--card); }
.uf-mission > *, .uf-duo > *{ margin:0; }
.uf-mission h3{ font-size:19px; }
.uf-mission p:not(.uf-mission-num){ font-size:14px; line-height:1.65; }
.uf-mission-num{ font-size:12px; font-weight:600; letter-spacing:.08em; color:var(--wp--preset--color--muted); }
.uf-mission.is-green{
  border-color:rgba(0,255,67,.45); box-shadow:0 0 44px -16px rgba(0,255,67,.45);
  background:linear-gradient(165deg, rgba(0,255,67,.1), transparent 60%), var(--wp--preset--color--card);
}
.uf-mission.is-cyan{
  border-color:rgba(0,208,255,.45);
  background:linear-gradient(165deg, rgba(0,208,255,.09), transparent 60%), var(--wp--preset--color--card);
}
.uf-mission.is-green .uf-mission-num{ color:var(--wp--preset--color--accent); }
.uf-mission.is-cyan .uf-mission-num{ color:var(--wp--preset--color--accent-2); }
.uf-duo{ background:radial-gradient(110% 90% at 0% 0%, rgba(0,255,67,.08), transparent 55%), var(--wp--preset--color--card); }
.uf-duo.is-cyan{ background:radial-gradient(110% 90% at 0% 0%, rgba(0,208,255,.1), transparent 55%), #0a1215; }
.uf-duo.is-cyan .uf-eyebrow{ color:var(--wp--preset--color--accent-2); }
.uf-duo > .wp-block-buttons{ margin-top:auto !important; padding-top:12px; }

/* лента с призив (CTA) */
.uf-cta-band{
  border:1px solid var(--wp--preset--color--line); border-radius:18px;
  background:
    radial-gradient(70% 140% at 100% 50%, rgba(0,255,67,.13), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(0,208,255,.1), transparent 60%),
    #0a0f0e;
}
.uf-cta-band h2{ max-width:620px; margin:0; }
@media (max-width:660px){ .uf-cta-band{ padding:34px 24px !important; } }
/* ярък вариант: бранд градиент, черен текст (За Фенове — „Изтегли", Кариери — „Среда, в която…") */
.uf-cta-band.is-brand{
  position:relative; overflow:hidden; border:0; border-radius:28px; color:#04140a;
  background:linear-gradient(110deg, #3cff5c 0%, #00ff43 30%, #00d0ff 100%);
}
.uf-cta-band.is-brand::before, .uf-cta-band.is-brand::after{ /* декоративни кръгове (контури) вдясно */
  content:""; position:absolute; border-radius:50%; pointer-events:none; border:1px solid rgba(4,20,10,.14);
}
.uf-cta-band.is-brand::before{ right:-90px; top:-150px; width:340px; height:340px; }
.uf-cta-band.is-brand::after{ right:10px; top:40px; width:260px; height:260px; }
.uf-cta-band.is-brand > *{ position:relative; z-index:1; }
.uf-cta-band.is-brand h2, .uf-cta-band.is-brand p{ color:#04140a; }
.uf-cta-band.is-brand p{ margin:0; font-size:18px; color:#0b2a18; }
.uf-cta-band.is-brand .uf-store-badges img{ box-shadow:none; }
.uf-cta-band-ico{
  flex:none; width:64px; height:64px; border-radius:18px; background:#04140a; color:var(--wp--preset--color--accent);
  display:flex; align-items:center; justify-content:center;
}
.uf-cta-band-ico svg{ width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* Решения: разширени карти (редуват снимка и текст) */
.uf-sol-row{
  background:var(--wp--preset--color--card); border:1px solid var(--wp--preset--color--line);
  border-radius:18px; padding:14px; column-gap:40px !important; box-sizing:border-box;
}
.uf-sol-row.is-featured{
  border-color:rgba(0,255,67,.5); box-shadow:0 0 50px -22px rgba(0,255,67,.5);
  background:radial-gradient(70% 100% at 100% 0%, rgba(0,255,67,.09), transparent 60%), var(--wp--preset--color--card);
}
.uf-sol-row.is-cyan{
  border-color:rgba(0,208,255,.5);
  background:radial-gradient(70% 100% at 0% 0%, rgba(0,208,255,.09), transparent 60%), #0a1215;
}
/* кутията за визуализация: винаги в пропорциите на илюстрациите (1942×809), с или без снимка —
   така всички редове са еднакви; снимка в друг формат се изрязва (cover), не се разтяга */
.uf-sol-visual{
  aspect-ratio:1942 / 809; width:100%; box-sizing:border-box; border-radius:12px; overflow:hidden;
  border:1px solid rgba(255,255,255,.07); background:linear-gradient(160deg, #181d1c, #0e1211);
}
.uf-sol-visual > figure, .uf-sol-visual figure{ margin:0 !important; width:100%; height:100%; align-self:stretch; }
.uf-sol-visual img{ display:block; width:100% !important; height:100% !important; object-fit:cover; }
.uf-sol-visual:has(img){ padding:0; }
.uf-sol-visual:has(img) .uf-sol-ph{ display:none; }
.uf-sol-ph{ display:flex; flex-direction:column; align-items:center; gap:10px; margin:0; font-size:12px; color:var(--wp--preset--color--muted); text-align:center; }
.uf-sol-ph::before{
  content:""; width:22px; height:22px; opacity:.6;
  background:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a39d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2.5'/%3E%3Ccircle cx='9' cy='9.5' r='1.6'/%3E%3Cpath d='M20.5 15.5l-5-5-9 9'/%3E%3C/svg%3E") no-repeat center/contain;
}
.uf-sol-body{ padding:22px 18px; }
.uf-sol-head{ display:flex; align-items:center; gap:12px; }
.uf-sol-head .uf-sol-ico{ width:38px; height:38px; border-radius:10px; flex:none; }
.uf-sol-head .uf-sol-ico svg{ width:20px; height:20px; }
.uf-sol-ico.is-cyan{ border-color:rgba(0,208,255,.4); background:rgba(0,208,255,.1); }
.uf-sol-ico.is-cyan svg{ stroke:var(--wp--preset--color--accent-2); }
.uf-sol-ico.is-solid{ background:var(--wp--preset--color--accent); border-color:transparent; }
.uf-sol-ico.is-cyan.is-solid{ background:var(--wp--preset--color--accent-2); }
.uf-sol-ico.is-solid svg{ stroke:#04140a; }
.uf-sol-num{ font-size:11.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--wp--preset--color--accent); }
.uf-sol-row:has(.uf-sol-ico.is-cyan) .uf-sol-num{ color:var(--wp--preset--color--accent-2); }
.uf-sol-body h3{ font-size:clamp(22px, 2.4vw, 30px); margin:18px 0 0; }
.uf-sol-desc{ color:var(--wp--preset--color--muted); font-size:14.5px; line-height:1.65; margin:12px 0 0; }
.uf-check{ list-style:none; padding:0; margin:20px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:10px 22px; }
.uf-check li{ position:relative; padding-left:24px; font-size:13.5px; line-height:1.5; }
.uf-check li::before{ content:"✓"; position:absolute; left:0; top:0; font-weight:700; color:var(--wp--preset--color--accent); }
.uf-sol-row:has(.uf-sol-ico.is-cyan) .uf-check li::before{ color:var(--wp--preset--color--accent-2); }
@media (max-width:781px){
  .uf-sol-row .uf-sol-media{ order:-1; } /* снимката винаги отгоре */
  .uf-sol-body{ padding:6px 8px 14px; }
}
@media (max-width:480px){ .uf-check{ grid-template-columns:1fr; } }

/* За Търговци: „Стани част от ultrafan екосистемата" */
.uf-join-intro > p.has-medium-font-size{ max-width:64ch; }
.uf-features{ align-items:stretch !important; }
.uf-feature{ background:var(--wp--preset--color--card); border:1px solid var(--wp--preset--color--line); border-radius:18px; }
.uf-feature.is-hl{ border-color:rgba(0,255,67,.55); background:linear-gradient(100deg, rgba(0,255,67,.08), rgba(0,208,255,.03)), #08110c; }
.uf-feature h3{ font-size:clamp(17px, 1.8vw, 22px); margin:0; }
.uf-feature p{ margin:0; font-size:14.5px; }
.uf-feature-ico, .uf-benefit-ico{
  flex:none; width:52px; height:52px; border-radius:14px; box-sizing:border-box;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,255,67,.08); border:1px solid rgba(0,255,67,.3); color:var(--wp--preset--color--accent);
}
.uf-feature-ico svg, .uf-benefit-ico svg{ width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.uf-feature-ico.is-text{ font:700 18px/1 var(--wp--preset--font-family--heading); }
.uf-feature-ico.is-solid, .uf-benefit-ico.is-solid{ background:var(--wp--preset--color--accent); border-color:transparent; color:#04140a; }

/* Кариери: панел с позиции и карти „Какво предлагаме" */
.uf-jobs-panel{ border-radius:18px; }
.uf-jobs-panel h2{ margin:0; }
.uf-jobs-panel .uf-job{ background:#0c100f; }
.uf-jobs-note{ margin:18px 0 0 !important; font-size:13px; color:var(--wp--preset--color--muted); }
.uf-jobs-note a{ color:var(--wp--preset--color--accent); font-weight:600; text-decoration:none; }
.uf-jobs-note a:hover{ text-decoration:underline; }
.uf-job-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.uf-tag{ font-size:12px; line-height:1; color:#cfd8d2; border:1px solid rgba(255,255,255,.14); border-radius:999px; padding:6px 10px; }
.uf-benefit{ height:100%; box-sizing:border-box; background:var(--wp--preset--color--card); border:1px solid var(--wp--preset--color--line); border-radius:16px; }
.uf-benefit-ico{ width:44px; height:44px; border-radius:12px; }
.uf-benefit-ico svg{ width:22px; height:22px; }
.uf-benefit-text{ margin:0; font:600 17px/1.5 var(--wp--preset--font-family--heading); color:var(--wp--preset--color--contrast); }
.uf-benefit.is-wide{ border-color:rgba(0,255,67,.5); background:linear-gradient(100deg, rgba(0,255,67,.08), rgba(0,208,255,.06)), #08110c; }
.uf-benefit.is-wide .uf-benefit-text{ font-size:clamp(17px, 2vw, 22px); }
@media (max-width:1000px){ .uf-benefits{ grid-template-columns:repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width:520px){ .uf-benefits{ grid-template-columns:1fr !important; } }

/* ================= v1.10: единно начало на страниците, „За феновете" ================= */
/* първата секция на вътрешните страници: еднакво разстояние от менюто, еднакво H1 */
.uf-page-hero .uf-eyebrow{ margin-top:0; margin-bottom:0; }
.uf-page-title{ font-size:clamp(36px, 5vw, 60px); line-height:1.06; letter-spacing:-0.015em; margin:16px 0 0; }
.uf-page-hero .uf-page-title + p, .uf-page-hero .uf-page-title + .wp-block-post-excerpt{ margin-top:22px; }

/* начало: „Бъди част от отбора!" — карта с градиентна рамка и хапчета-линкове */
.uf-fans{
  border:1.5px solid transparent; border-radius:24px;
  background:
    radial-gradient(55% 90% at 10% 0%, rgba(0,255,67,.14), transparent 62%) padding-box,
    radial-gradient(55% 90% at 100% 100%, rgba(0,208,255,.11), transparent 62%) padding-box,
    linear-gradient(#070b0a, #070b0a) padding-box,
    linear-gradient(120deg, rgba(60,255,110,.85), rgba(0,208,255,.85)) border-box;
}
.uf-fans h2{ margin:0; }
.uf-fans > p{ margin:26px 0 0; }
.uf-fans-head .wp-block-button__link{ font-size:16px; padding:16px 30px; }
.uf-fan-pill .wp-block-button__link{
  --uf-ic:var(--wp--preset--color--accent);
  display:inline-flex; align-items:center; gap:12px;
  font:700 16px/1.2 var(--wp--preset--font-family--heading); padding:16px 26px; border-radius:999px;
  background:rgba(0,255,67,.05) !important; color:var(--wp--preset--color--contrast) !important;
  box-shadow:inset 0 0 0 1.5px rgba(0,255,67,.28); transition:box-shadow .15s ease, filter .15s ease;
}
.uf-fan-pill.is-cyan .wp-block-button__link{ --uf-ic:var(--wp--preset--color--accent-2); background:rgba(0,208,255,.05) !important; box-shadow:inset 0 0 0 1.5px rgba(0,208,255,.28); }
.uf-fan-pill.is-solid .wp-block-button__link{ --uf-ic:#04140a; background:var(--wp--preset--color--accent) !important; color:#04140a !important; box-shadow:none; }
.uf-fan-pill .wp-block-button__link:hover{ box-shadow:inset 0 0 0 1.5px var(--uf-ic); }
.uf-fan-pill.is-solid .wp-block-button__link:hover{ box-shadow:none; filter:brightness(.92); }
.uf-fan-pill .wp-block-button__link::before{
  content:""; flex:none; width:20px; height:20px; background:var(--uf-ic);
  -webkit-mask:var(--uf-icon) no-repeat center / contain; mask:var(--uf-icon) no-repeat center / contain;
}
.uf-fan-pill.uf-ico-live .wp-block-button__link::before{ width:10px; height:10px; margin:0 5px; border-radius:50%; background:#ff4d4d; -webkit-mask:none; mask:none; }
.uf-ico-star{ --uf-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E"); }
.uf-ico-bag{ --uf-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8a3 3 0 016 0'/%3E%3C/svg%3E"); }
.uf-ico-calendar{ --uf-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.uf-ico-user{ --uf-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5a7.5 7.5 0 0115 0'/%3E%3C/svg%3E"); }
.uf-ico-play{ --uf-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l13-7.5z' fill='black'/%3E%3C/svg%3E"); }
.uf-ico-trophy{ --uf-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8v5a4 4 0 01-8 0z'/%3E%3Cpath d='M12 13v4M8.5 20.5h7'/%3E%3C/svg%3E"); }
.uf-ico-users{ --uf-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9.5' cy='8' r='3.5'/%3E%3Cpath d='M3 20a6.5 6.5 0 0113 0M15.5 4.6a3.5 3.5 0 010 6.8M21 20a6.5 6.5 0 00-3.5-5.8'/%3E%3C/svg%3E"); }
@media (max-width:660px){
  .uf-fans{ padding:30px 22px 32px !important; }
  .uf-fan-pill .wp-block-button__link{ font-size:14px; padding:12px 18px; gap:10px; }
  .uf-fan-pill .wp-block-button__link::before{ width:17px; height:17px; }
}

/* ================= v1.11: „За Фенове" (/za-fenove/, EN /en/for-fans/) ================= */
.uf-eyebrow.is-cyan{ color:var(--wp--preset--color--accent-2); }
/* котвите от хапчетата не се скриват под залепналия хедър */
.uf-app-section{ scroll-margin-top:72px; }
.admin-bar .uf-app-section{ scroll-margin-top:104px; }

/* херо: снимка с „чипове" от приложението */
.uf-fans-hero .wp-block-columns{ margin-bottom:0; }
.uf-fans-visual{ position:relative; max-width:460px; margin:0 auto; }
.uf-fans-photo{ margin:0; }
.uf-fans-photo img{ display:block; width:100%; height:auto; }
.uf-chip{
  position:absolute; display:flex; align-items:center; gap:12px; z-index:1;
  padding:12px 16px; border-radius:16px; background:rgba(11,14,15,.92);
  border:1px solid #2e3a40; box-shadow:0 20px 50px rgba(0,0,0,.5);
  font-size:15px; line-height:1.25; white-space:nowrap;
}
.uf-chip small{ display:block; font-size:12.5px; color:#8a9499; }
.uf-chip b{ font-weight:600; }
.uf-chip b.is-green{ color:var(--wp--preset--color--accent); }
.uf-chip.is-top{ left:-8%; top:6%; border-color:#1e5a30; }
.uf-chip.is-right{ right:-10%; bottom:26%; border-color:#16505e; }
.uf-chip.is-bottom{ left:2%; bottom:9%; }
.uf-chip-ico{
  flex:none; width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:var(--wp--preset--color--accent); color:#04140a; font-weight:700; font-size:13px;
}
.uf-chip-ico.is-cyan{ background:var(--wp--preset--color--accent-2); }
.uf-chip-ico svg{ width:20px; height:20px; fill:none; stroke:#04140a; stroke-width:2.2; stroke-linecap:round; }
.uf-live-dot{ flex:none; width:10px; height:10px; border-radius:50%; background:#ff3b3b; box-shadow:0 0 12px #ff3b3b; }
@media (max-width:781px){
  .uf-fans-visual{ max-width:340px; }
  .uf-chip{ font-size:13px; padding:9px 12px; gap:9px; }
  .uf-chip small{ font-size:11px; }
  .uf-chip-ico{ width:32px; height:32px; }
  .uf-chip.is-top{ left:-4%; }
  .uf-chip.is-right{ right:-4%; }
}

/* глави на секциите */
.uf-app-head > *{ margin:0; }
.uf-app-head h2{ margin-top:12px; }
.uf-app-head > p:last-child{ margin-top:16px; max-width:62ch; line-height:1.65; }
.uf-app-head.is-center{ text-align:center; }
.uf-app-head.is-center > p:last-child{ margin-inline:auto; }
.uf-app-intro .uf-fan-pills{ justify-content:center; }
.uf-app-section > .uf-app-grid{ margin-top:40px; }
.uf-app-section > .uf-app-grid + .uf-app-grid{ margin-top:16px; }

/* карти с макети от приложението */
.uf-app-card{
  box-sizing:border-box; min-width:0; padding:clamp(18px, 2vw, 24px);
  background:var(--wp--preset--color--card); border:1px solid var(--wp--preset--color--line); border-radius:22px;
}
.uf-app-card.is-green{ border-color:var(--wp--preset--color--accent); background:linear-gradient(170deg, #07170c, #030805 70%); box-shadow:0 0 80px rgba(0,255,67,.08); }
.uf-app-card.is-cyan{ border-color:var(--wp--preset--color--accent-2); background:linear-gradient(170deg, #061620, #030708 70%); }
.uf-app-card.is-brand{ border:0; background:linear-gradient(150deg, #00ff43, #00d0ff); color:#04140a; }
.uf-app-card.is-glow{ position:relative; overflow:hidden; background:#060707; }
.uf-app-card.is-glow::before{ content:""; position:absolute; right:-30%; top:-30%; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle, rgba(0,255,67,.16), transparent 65%); pointer-events:none; }
.uf-app-card.is-glow > *{ position:relative; }
/* nowrap: при flex-wrap (по подразбиране в WP) Chrome мери макетите в тясна колона и ги прави по-високи */
.uf-app-card.is-layout-flex{ flex-wrap:nowrap; }
.uf-app-card > h3{ font-size:20px; line-height:1.25; padding:0 4px; }
.uf-app-card > h3 + p{ margin-top:-12px !important; padding:0 4px; font-size:14px; line-height:1.5; color:var(--wp--preset--color--muted); }
.uf-app-card.is-brand > h3{ color:#04140a; font-size:22px; }
.uf-app-stack{ min-width:0; }
.uf-app-stack > .uf-app-card{ flex:1; }

/* дребните елементи на макетите */
.uf-m, .uf-m-player{ display:flex; flex-direction:column; gap:12px; font-size:14px; line-height:1.4; }
.uf-app-card > .uf-m, .uf-app-card > .uf-m-player, .uf-app-card > .uf-m-split{ flex:none; }
.uf-m p{ margin:0; }
.uf-m small{ display:block; font-size:12px; color:#8a9499; }
.uf-m-row{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.uf-m-dim{ color:#8a9499; font-size:13px; }
.uf-m-label{ font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--wp--preset--color--accent); }
.uf-m-label.is-cyan{ color:var(--wp--preset--color--accent-2); }
.uf-m-label.is-dim{ color:#8a9499; }
.uf-app-card.is-brand .uf-m-label{ color:#04140a; }
.uf-m-strong{ font-size:16px; font-weight:600; }
.uf-m-title{ font:700 22px/1.2 var(--wp--preset--font-family--heading); }
.uf-m-accent{ color:var(--wp--preset--color--accent); font-size:13px; font-weight:600; }
.uf-m-btn{ padding:9px 16px; border-radius:999px; background:var(--wp--preset--color--accent); color:#04140a; font-size:14px; font-weight:700; white-space:nowrap; }

/* мач на живо */
.uf-m-live{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#ff6b6b; }
.uf-m-live::before{ content:""; width:9px; height:9px; border-radius:50%; background:#ff3b3b; box-shadow:0 0 12px #ff3b3b; }
.uf-m-score{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.uf-m-score strong{ font:700 clamp(48px, 6vw, 72px)/1 var(--wp--preset--font-family--heading); letter-spacing:-.02em; }
.uf-m-team{ min-width:84px; height:64px; padding:0 12px; box-sizing:border-box; border-radius:18px; display:flex; align-items:center; justify-content:center; background:#2e3a40; color:#04140a; font:700 14px var(--wp--preset--font-family--heading); letter-spacing:.08em; }
.uf-m-team.is-home{ background:var(--wp--preset--color--accent); }
.uf-m-box{ display:flex; flex-direction:column; gap:10px; padding:14px 16px; border-radius:16px; background:rgba(0,0,0,.35); border:1px solid #173d22; }
.uf-m-event{ display:flex; align-items:center; gap:12px; }
.uf-m-min{ width:34px; color:#8a9499; font-weight:600; }
.uf-m-goal{ flex:none; width:14px; height:14px; box-sizing:border-box; border-radius:50%; border:2px solid var(--wp--preset--color--accent); }
.uf-m-goal.is-cyan{ border-color:var(--wp--preset--color--accent-2); }
.uf-m-yellow{ flex:none; width:10px; height:14px; margin:0 2px; border-radius:2px; background:#ffd23f; }
.uf-m-stat{ display:flex; flex-direction:column; gap:5px; font-size:13px; }
.uf-m-stat b{ font-weight:600; }
.uf-m-duel{ display:flex; height:6px; border-radius:999px; overflow:hidden; background:rgba(0,208,255,.5); }
.uf-m-duel span{ width:var(--w); background:var(--wp--preset--color--accent); }

/* чат и верифицирани профили */
.uf-m-msg{ display:flex; gap:10px; align-items:flex-start; }
.uf-m-msg img{ flex:none; width:34px; height:34px; border-radius:50%; object-fit:cover; }
.uf-m-msg > span{ background:#151b1e; border-radius:4px 14px 14px 14px; padding:9px 12px; }
.uf-m-msg.is-verified > span{ background:#08222a; border:1px solid #16505e; }
.uf-m-msg.is-verified small{ color:var(--wp--preset--color--accent-2); }
.uf-m-msg.is-boxed{ padding:12px; border-radius:14px; background:#08222a; border:1px solid #16505e; }
.uf-m-msg.is-boxed > span{ padding:0; border:0; background:none; }
.uf-m-check{ flex:none; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--wp--preset--color--accent-2); color:#04140a; font-style:normal; font-weight:700; }
.uf-m-input{ display:flex; align-items:center; gap:8px; padding:8px 8px 8px 14px; border-radius:999px; background:#151b1e; border:1px solid #232c30; color:#5a6a70; }
.uf-m-input span{ flex:1; }
.uf-m-input b{ width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--wp--preset--color--accent); color:#04140a; }

/* прогноза */
.uf-m-guess{ display:flex; align-items:center; justify-content:center; gap:12px; }
.uf-m-guess span{ width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:#151b1e; border:1px solid #2e3a40; font:700 28px var(--wp--preset--font-family--heading); }
.uf-m-guess span.is-on{ border-color:var(--wp--preset--color--accent); }
.uf-m-guess i{ font-style:normal; font-size:24px; color:#8a9499; }

/* отборът: класиране, програма, играч, клубна телевизия */
.uf-m-split{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items:start; align-content:start; gap:12px; font-size:14px; }
.uf-m-panel{ display:flex; flex-direction:column; gap:10px; padding:16px; border-radius:18px; background:#0f1416; border:1px solid #232c30; }
.uf-m-panel p{ margin:0; }
.uf-m-line, .uf-m-fixture{ display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:10px; background:#151b1e; }
.uf-m-line > span:first-child{ width:14px; color:#8a9499; font-size:13px; }
.uf-m-line > :nth-child(2){ flex:1; }
.uf-m-line.is-hl{ background:#0b1a10; box-shadow:inset 0 0 0 1px #1e5a30; }
.uf-m-line.is-hl > b:nth-child(2){ color:var(--wp--preset--color--accent); }
.uf-m-fixture{ justify-content:space-between; }
.uf-m-fixture > span{ color:#8a9499; font-size:13px; }
.uf-m-fixture em{ width:22px; height:22px; border-radius:6px; display:flex; align-items:center; justify-content:center; background:var(--wp--preset--color--accent); color:#04140a; font:700 12px var(--wp--preset--font-family--body); font-style:normal; }
.uf-m-fixture em.is-draw{ background:#a6a6a6; }
.uf-m-fixture em.is-soon{ width:auto; background:none; color:var(--wp--preset--color--accent-2); }
.uf-m-player{ padding:18px; border-radius:18px; background:linear-gradient(160deg, #08222a, #050a0c); border:1px solid #16505e; gap:14px; }
.uf-m-player .uf-m-row{ align-items:flex-start; }
.uf-m-player .uf-m-row:last-child{ align-items:center; }
.uf-m-num{ display:block; font:700 56px/1 var(--wp--preset--font-family--heading); color:var(--wp--preset--color--accent-2); margin-bottom:6px; }
.uf-m-avatar{ flex:none; width:80px; height:80px; box-sizing:border-box; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#151b1e; border:2px solid var(--wp--preset--color--accent-2); }
.uf-m-avatar svg{ width:38px; height:38px; fill:none; stroke:#5a6a70; stroke-width:2; stroke-linecap:round; }
.uf-m-tiles{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; text-align:center; }
.uf-m-tiles.is-4{ grid-template-columns:repeat(4, 1fr); }
.uf-m-tiles > span{ padding:9px 4px; border-radius:12px; background:#0f1416; }
.uf-m-tiles b{ display:block; font-size:19px; font-weight:700; }
.uf-m-tiles small{ font-size:11px; }
.uf-m-tiles.is-4 > span{ border:1px solid #232c30; }
.uf-m-form{ display:flex; gap:6px; }
.uf-m-form i{ width:12px; height:12px; border-radius:50%; background:var(--wp--preset--color--accent); }
.uf-m-form i.is-draw{ background:#a6a6a6; }
.uf-m-form i.is-loss{ background:#ff6b6b; }
.uf-m-video{ position:relative; display:block; height:180px; border-radius:18px; overflow:hidden; background:radial-gradient(ellipse at 30% 30%, #173d22, #050a07 70%); border:1px solid #232c30; }
.uf-m-tag{ position:absolute; left:14px; top:12px; padding:4px 10px; border-radius:999px; background:rgba(0,0,0,.6); font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.uf-m-play{ position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); width:60px; height:60px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--wp--preset--color--accent); box-shadow:0 0 40px rgba(0,255,67,.4); }
.uf-m-play svg{ width:22px; height:22px; fill:#04140a; }
.uf-m-video > .uf-m-row{ position:absolute; left:14px; right:14px; bottom:12px; }
.uf-m-video b{ font-weight:600; }

/* точки и изживявания */
.uf-m-level{ padding:5px 12px; border-radius:999px; background:#000; color:var(--wp--preset--color--accent); font-size:12px; font-weight:700; }
.uf-m-points{ font:700 clamp(56px, 6.4vw, 80px)/.95 var(--wp--preset--font-family--heading); letter-spacing:-.03em; }
.uf-m-progress{ height:10px; border-radius:999px; overflow:hidden; background:rgba(0,0,0,.2); }
.uf-m-progress span{ display:block; width:var(--w); height:100%; background:#000; }
.uf-m-progress.is-thin{ height:8px; background:#1a2226; }
.uf-m-progress.is-thin span{ background:var(--wp--preset--gradient--brand); }
.uf-m-small{ font-size:14px; font-weight:600; margin-top:-6px; }
.uf-app-card.is-brand .uf-m-tiles > span{ background:rgba(0,0,0,.12); text-align:left; padding:12px; }
.uf-app-card.is-brand .uf-m-tiles b{ font-size:20px; }
.uf-app-card.is-brand .uf-m-tiles small{ color:#04140a; font-weight:600; font-size:12px; }
.uf-m-offer{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px; border-radius:14px; background:#0f1416; border:1px solid #232c30; }
.uf-m-offer.is-on{ background:#0b1a10; border-color:#1e5a30; }
.uf-m-offer b{ display:block; font-size:16px; font-weight:600; }
.uf-m-offer small{ font-size:13px; margin-top:2px; }
.uf-m-offer em{ flex:none; padding:8px 14px; border-radius:999px; border:1px solid #2e3a40; color:#a6a6a6; font-size:13px; font-style:normal; font-weight:700; white-space:nowrap; }
.uf-m-offer.is-on em{ border-color:transparent; background:var(--wp--preset--color--accent); color:#04140a; }
.uf-m-big{ font:700 22px var(--wp--preset--font-family--heading); color:var(--wp--preset--color--accent); }
.uf-m-task{ display:flex; align-items:center; gap:12px; font-size:15px; }
.uf-m-task i{ flex:none; width:22px; height:22px; box-sizing:border-box; border-radius:50%; border:2px solid #2e3a40; display:flex; align-items:center; justify-content:center; font-size:12px; font-style:normal; font-weight:700; color:#04140a; }
.uf-m-task.is-done i{ border:0; background:var(--wp--preset--color--accent); }
.uf-m-task span{ flex:1; }
.uf-m-task:not(.is-done) span{ color:#a6a6a6; }
.uf-m-task b{ font-size:13px; color:var(--wp--preset--color--accent); }
.uf-m-vote{ position:relative; display:flex; justify-content:space-between; padding:10px 12px; border-radius:10px; overflow:hidden; background:#151b1e; }
.uf-m-vote::before{ content:""; position:absolute; inset:0 auto 0 0; width:var(--w); background:rgba(0,208,255,.14); }
.uf-m-vote.is-on{ box-shadow:inset 0 0 0 1px var(--wp--preset--color--accent-2); }
.uf-m-vote.is-on::before{ background:rgba(0,208,255,.28); }
.uf-m-vote span{ position:relative; }

/* пазаруване */
.uf-m-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.uf-m-chips span{ padding:7px 14px; border-radius:999px; border:1px solid #2e3a40; color:#c9c9c9; font-size:13px; font-weight:600; }
.uf-m-chips span.is-on{ border-color:transparent; background:var(--wp--preset--gradient--brand); color:#04140a; }
.uf-m-chips.is-cyan span{ padding:7px 12px; background:#08222a; border-color:#16505e; color:var(--wp--preset--color--contrast); }
/* търговците: Query Loop на партньорите (филтър по категория + списък с плъзгане, ~4 реда) */
.uf-app-card .uf-filter{
  gap:8px; margin:0 0 4px; flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px;
  width:0; min-width:100%; box-sizing:border-box; /* редът не разширява картата — плъзга се хоризонтално */
  scrollbar-width:thin; scrollbar-color:#2e3a40 transparent;
}
.uf-app-card .uf-pill{ flex:none; white-space:nowrap; padding:7px 14px; border-color:#2e3a40; color:#c9c9c9; font-size:13px; }
.uf-app-card .uf-pill.is-active{ color:#04140a; }
.uf-app-card .uf-pill span{ display:none; } /* без броячите в картата */
.uf-m-shop-list{ margin:0 !important; }
.uf-m-shop-list .wp-block-post-template{
  list-style:none; margin:0; padding:0 4px 0 0; display:flex; flex-direction:column; gap:10px;
  max-height:376px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#2e3a40 transparent;
}
.uf-m-shop-list .wp-block-post-template > li{ margin:0; }
.uf-m-shop{ gap:14px; padding:12px; border-radius:16px; background:#0f1416; border:1px solid #232c30; transition:border-color .15s ease; }
.uf-m-shop.uf-has-link{ position:relative; }
.uf-m-shop.uf-has-link:hover{ border-color:rgba(0,255,67,.45); }
.uf-m-shop-name{ flex:1; min-width:0; gap:2px !important; }
.uf-m-shop .wp-block-post-title{ margin:0; font:600 16px/1.3 var(--wp--preset--font-family--body); }
.uf-m-shop .wp-block-post-excerpt{ margin:0; font-size:13px; line-height:1.4; color:#8a9499; }
.uf-m-shop .wp-block-post-excerpt p{ margin:0; }
.uf-m-logo{ flex:none; width:64px; height:64px; box-sizing:border-box; padding:8px; border-radius:14px; background:#fff; display:flex; align-items:center; justify-content:center; margin:0; }
/* !important: core-та слага inline object-fit:cover на featured image */
.uf-m-logo img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain !important; }
.uf-m-step{ display:flex; align-items:center; gap:14px; padding:14px; border-radius:16px; background:#0f1416; border:1px solid #232c30; font-size:16px; font-weight:600; }
.uf-m-step b{ width:30px; font:700 26px var(--wp--preset--font-family--heading); color:var(--wp--preset--color--accent); }
.uf-m-step.is-brand{ border:0; background:linear-gradient(120deg, #00ff43, #00d0ff); color:#04140a; font-weight:700; }
.uf-m-step.is-brand b{ color:#04140a; }

/* общност */
.uf-m-profile{ display:flex; align-items:center; gap:16px; }
.uf-m-profile img{ flex:none; width:80px; height:80px; box-sizing:border-box; border-radius:50%; object-fit:cover; border:3px solid var(--wp--preset--color--accent); }
.uf-m-profile strong{ display:block; font:700 26px/1.2 var(--wp--preset--font-family--heading); }
.uf-m-profile .uf-m-dim{ display:block; margin-top:4px; font-size:14px; }
.uf-m-note{ display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:14px; background:#0f1416; border:1px solid #232c30; }
.uf-m-note svg{ flex:none; width:18px; height:18px; fill:none; stroke:var(--wp--preset--color--accent); stroke-width:2; stroke-linecap:round; }
.uf-m-group{ display:flex; align-items:center; gap:12px; padding:12px; border-radius:14px; background:#151b1e; }
.uf-m-group i{ flex:none; width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:var(--wp--preset--color--accent); color:#04140a; font-style:normal; font-weight:700; }
.uf-m-group i.is-cyan{ background:var(--wp--preset--color--accent-2); }
.uf-m-group i.is-white{ background:#fff; }
.uf-m-group b{ font-size:15px; font-weight:600; }

@media (max-width:480px){
  .uf-m-score strong{ font-size:44px; }
  .uf-m-team{ min-width:64px; height:52px; font-size:12px; }
  .uf-m-tiles.is-4{ grid-template-columns:repeat(2, 1fr); }
}

/* ================= v1.12: Кариери — „Какво предлагаме" (карти с илюстрация, 2 реда по 3) ================= */
.uf-perk{
  box-sizing:border-box; min-width:0; padding:16px 16px 24px;
  background:var(--wp--preset--color--card); border:1px solid var(--wp--preset--color--line); border-radius:22px;
}
.uf-perk.is-layout-flex{ flex-wrap:nowrap; }
.uf-perk.is-hl{ border-color:var(--wp--preset--color--accent); box-shadow:0 0 44px -18px rgba(0,255,67,.5); }
.uf-perk > p{ margin:0; padding:0 8px; }
.uf-perk-label{ margin-top:10px !important; font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--wp--preset--color--accent); }
.uf-perk .uf-benefit-text{ font-size:17px; line-height:1.45; }
.uf-perk-visual{
  position:relative; box-sizing:border-box; height:170px; border-radius:16px; overflow:hidden;
  background:#0c100f; border:1px solid #1d2422; display:flex; align-items:center; justify-content:center; gap:18px; padding:18px;
  font-family:var(--wp--preset--font-family--body);
}
.uf-perk-visual.is-stack{ flex-direction:column; gap:16px; }
.uf-perk-visual.is-glow{ background:radial-gradient(60% 70% at 50% 50%, rgba(0,208,255,.16), transparent 70%), #0c100f; }
/* отпуск */
.uf-perk-num{ font:700 64px/1 var(--wp--preset--font-family--heading); letter-spacing:-.03em; background:var(--wp--preset--gradient--brand); -webkit-background-clip:text; background-clip:text; color:transparent; }
.uf-perk-dots{ display:grid; grid-template-columns:repeat(8, 8px); gap:5px; }
.uf-perk-dots i{ width:8px; height:8px; border-radius:50%; background:var(--wp--preset--color--accent); }
.uf-perk-dots i.is-off{ background:#1f2a26; }
/* гъвкавост */
.uf-perk-toggle{ display:flex; padding:4px; border-radius:999px; background:#151b1e; border:1px solid #2e3a40; font-size:14px; font-weight:600; }
.uf-perk-toggle span{ padding:8px 18px; border-radius:999px; color:#8a9499; }
.uf-perk-toggle span.is-on{ background:var(--wp--preset--color--accent); color:#04140a; }
.uf-perk-week{ display:grid; grid-template-columns:repeat(5, 1fr); gap:8px; width:100%; max-width:220px; text-align:center; font-size:11px; color:#8a9499; }
.uf-perk-week span{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.uf-perk-week i{ width:100%; height:24px; border-radius:6px; background:var(--wp--preset--color--accent); }
.uf-perk-week i.is-cyan{ background:var(--wp--preset--color--accent-2); }
/* здраве */
.uf-perk-shield{ position:relative; }
.uf-perk-shield svg{ width:84px; height:84px; fill:none; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 18px rgba(0,208,255,.45)); }
.uf-perk-shield .s{ stroke:var(--wp--preset--color--accent-2); stroke-width:1.6; }
.uf-perk-shield .p{ stroke:var(--wp--preset--color--accent); stroke-width:2.4; }
.uf-perk-shield b{ position:absolute; right:-40px; top:-4px; padding:4px 10px; border-radius:999px; background:var(--wp--preset--color--accent-2); color:#04140a; font-size:11px; font-weight:700; letter-spacing:.08em; }
/* спорт */
.uf-perk-card{
  width:190px; box-sizing:border-box; padding:14px 16px; border-radius:14px; transform:rotate(-6deg);
  background:var(--wp--preset--gradient--brand); color:#04140a; box-shadow:0 16px 36px rgba(0,255,67,.18);
  display:flex; flex-direction:column; gap:2px;
}
.uf-perk-card-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.uf-perk-card b{ font-size:15px; letter-spacing:.04em; }
.uf-perk-card svg{ width:20px; height:20px; fill:none; stroke:#04140a; stroke-width:2; stroke-linecap:round; }
.uf-perk-card small{ font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.uf-perk-card em{ font-size:11px; font-style:normal; font-weight:700; }
/* офис */
.uf-perk-icons{ display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; width:100%; }
.uf-perk-icons > span{ display:flex; flex-direction:column; align-items:center; gap:8px; font-size:11px; color:#8a9499; }
.uf-perk-icons i{ width:44px; height:44px; box-sizing:border-box; border-radius:12px; border:1px solid rgba(0,255,67,.35); background:rgba(0,255,67,.06); display:flex; align-items:center; justify-content:center; }
.uf-perk-icons svg{ width:22px; height:22px; fill:none; stroke:var(--wp--preset--color--accent); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
/* продукт */
.uf-perk-phone{ flex:none; width:64px; height:118px; box-sizing:border-box; padding:8px 7px; border-radius:14px; border:2px solid #2e3a40; background:#070a09; display:flex; flex-direction:column; gap:5px; }
.uf-perk-phone i{ height:9px; border-radius:3px; background:#1d2422; }
.uf-perk-phone i.is-grad{ height:18px; background:var(--wp--preset--gradient--brand); }
.uf-perk-phone i.is-big{ flex:1; background:#0f1f15; border:1px solid #1e5a30; }
.uf-perk-pills{ display:flex; flex-direction:column; gap:8px; }
.uf-perk-pills span{ padding:6px 12px; border-radius:999px; border:1px solid #2e3a40; font-size:11px; font-weight:600; white-space:nowrap; }
.uf-perk-pills span.is-on{ border-color:transparent; background:var(--wp--preset--color--accent); color:#04140a; }
/* лентата под картите */
.uf-offer .uf-cta-band h2{ max-width:760px; }
@media (max-width:660px){
  .uf-offer .uf-cta-band{ flex-wrap:wrap !important; }
  .uf-perk .uf-benefit-text{ font-size:16px; }
}

/* ================= v1.12: „Очаквайте скоро" на картите с отбори ================= */
.uf-soon{
  display:inline-block; margin-top:2px; padding:4px 10px; border-radius:999px;
  background:rgba(0,208,255,.12); border:1px solid rgba(0,208,255,.45); color:var(--wp--preset--color--accent-2);
  font-size:9.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; line-height:1.2; white-space:nowrap;
}
/* еднаква височина на картите в реда (етикетът прави картата малко по-висока) */
.wp-block-post-template > li > .uf-club{ height:100%; box-sizing:border-box; }
/* ================= v1.13: заглавията на едно и също място навсякъде ================= */
/* правните документи (бяла страница): първият ред на 56px от менюто, като останалите страници */
main > .wp-block-post-content > .alignfull.uf-legal:first-child{ padding-top:56px !important; }
/* новина / запис: датата под заглавието */
.uf-page-hero .uf-page-title + .wp-block-post-date{ margin-top:18px; }
.uf-page-hero .wp-block-post-featured-image + .uf-page-title{ margin-top:22px; }

/* „За Фенове": снимката с нарисуваните „чипове" от приложението (BG) — по-широка, до долния ръб */
.uf-fans-visual.is-composite{ max-width:600px; margin-right:-4%; }
.uf-fans-visual.is-composite .uf-fans-photo img{ width:100%; height:auto; }

@media (max-width:660px){
  /* секциите на мобилно са на 52px, но херото е на 56px от менюто, както в шаблоните */
  main > .wp-block-post-content > .alignfull.uf-page-hero,
  main > .wp-block-post-content > .alignfull.uf-legal:first-child{ padding-top:56px !important; }
  main > .wp-block-post-content > .alignfull.uf-fans-hero{ padding-bottom:0 !important; }
}
@media (max-width:781px){
  /* снимката идва под бутоните за магазините — без празното поле между тях */
  .uf-fans-hero .wp-block-columns{ gap:24px !important; }
  .uf-fans-hero .wp-block-column.is-vertically-aligned-top{ padding-bottom:0 !important; }
  .uf-fans-visual.is-composite{ max-width:520px; margin:0 auto; }
}

/* хедър 600–860px: менюто не се побира на един ред (пада на два) — бургер меню като на телефон */
@media (min-width:600px) and (max-width:860px){
  .uf-header .wp-block-navigation__responsive-container-open:not(.always-shown){ display:flex; }
  .uf-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){ display:none; }
}
/* стрелката на подменюто: по-голяма зона за докосване (таблет), без да се мести */
.uf-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-icon{
  box-sizing:content-box; padding:8px; margin:-8px -8px -8px -4px;
}

/* телефон: „Заяви демо" остава в хедъра (компактно, до бургер менюто) — в менюто го няма */
@media (max-width:860px){
  .uf-header .wp-block-buttons{ margin-left:auto; }
  .uf-header-row > nav.wp-block-navigation{ order:3; margin-left:0; }
}
@media (max-width:660px){
  .uf-header .wp-block-buttons{ display:flex; }
  .uf-header .wp-block-buttons .wp-block-button__link{ font-size:12.5px; padding:9px 14px; white-space:nowrap; }
  .uf-header-row{ gap:12px; }
}
/* сензорни екрани: по-голям чекбокс за съгласие (целият етикет също е кликаем) */
@media (pointer:coarse){
  .uf-gdpr input{ flex:none; width:18px; height:18px; margin-top:0; }
}

/* „За нас": знакът на ultrafan в херото — цялото изображение, без изрязване. Черният му фон се слива
   с фона на херото (вкл. зеленото сияние): „lighten" показва по-светлото от двете, т.е. фона на
   страницата там, където снимката е черна, и знака там, където е светъл — без видим правоъгълник. */
.uf-about-photo.is-mark img{
  width:auto; max-width:100%; max-height:620px; margin-right:0;
  -webkit-mask-image:none; mask-image:none;
  mix-blend-mode:lighten;
}
@media (max-width:781px){
  .uf-about-hero:has(.uf-about-photo.is-mark) .wp-block-columns{ gap:0 !important; }
  .uf-about-hero:has(.uf-about-photo.is-mark) .wp-block-column.is-vertically-aligned-top{ padding-bottom:0 !important; }
  .uf-about-photo.is-mark img{ max-height:460px; margin:0 auto; }
}

/* текст за съгласие под формите: линкове към политиката и общите условия */
.uf-gdpr .uf-consent-text{ min-width:0; }
.uf-gdpr .uf-consent-text a{ color:var(--wp--preset--color--accent); text-decoration:underline; text-underline-offset:2px; font-weight:600; }
.uf-gdpr .uf-consent-text a:hover{ color:#fff; }
/* във формите етикетите са с главни букви — съгласието е изречение с линкове: нормален регистър */
.uf-form label.uf-gdpr{ display:flex; text-transform:none; letter-spacing:normal; font-size:12.5px; font-weight:500; line-height:1.5; color:#8fa096; }

/* ================= v1.13.1: картите на позициите („Отворени позиции") ================= */
/* мрежа вместо обтичащ се ред: заглавие + тагове вляво (дългото заглавие се пренася в колоната си),
   „Виж повече →" винаги в дясната колона, центрирано — еднакво за всяка позиция. Когато картата е
   тясна (телефон, тесен панел), всички карти са едноколонни и линкът е под таговете. */
.wp-block-post-template:has(> li > .uf-job){ container-type:inline-size; }
.wp-block-post-template > li > .uf-job{
  display:grid !important; grid-template-columns:minmax(0, 1fr) auto;
  align-items:center; column-gap:24px; row-gap:14px;
}
.uf-job > .wp-block-group{ min-width:0; margin:0 !important; }
.uf-job .wp-block-post-title{ line-height:1.3; text-wrap:balance; overflow-wrap:break-word; }
.uf-job > .wp-block-read-more{ justify-self:end; white-space:nowrap; margin:0 !important; }
@container (max-width:440px){
  .wp-block-post-template > li > .uf-job{ grid-template-columns:minmax(0, 1fr); }
  .uf-job > .wp-block-read-more{ justify-self:start; }
}
