/*
Theme Name:   Sky Optic
Description:  Child theme of Hello Elementor for sky-optic. Layout and content live in Elementor; this theme only holds code that widgets cannot express.
Template:     hello-elementor
Version:      1.0.0
Text Domain:  sky-optic
*/
/* WP Menu-backed nested Workshop group in Elementor's mega menu. */
.so-wp-category-links--workshop .so-has-submenu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  column-gap: 8px;
}
.so-wp-category-links--workshop .so-has-submenu > a { min-width: 0; }
.so-workshop-toggle {
  display: grid;
  place-items: center;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--e-global-color-text) !important;
  box-shadow: none !important;
  line-height: 0;
  cursor: pointer;
}
.so-workshop-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke: #182530 !important;
}
.so-workshop-toggle:hover,
.so-workshop-toggle:focus {
  background: transparent !important;
  color: var(--e-global-color-ctahover) !important;
  outline: none;
}
.so-workshop-toggle:hover svg,
.so-workshop-toggle:focus svg,
.so-wp-category-links--workshop .so-has-submenu.is-open .so-workshop-toggle svg {
  stroke: #1F8E8B !important;
}
.so-wp-category-links--workshop-extra { display: none; }
.so-wp-category-links--workshop.is-open + .so-wp-category-links--workshop-extra { display: block; }
.so-wp-category-links--workshop .so-has-submenu.is-open > a,
.so-wp-category-links--workshop .so-has-submenu.is-open .so-workshop-toggle {
  color: var(--e-global-color-ctahover) !important;
}
.so-wp-category-links--workshop .so-has-submenu.is-open > a { text-decoration: underline; }

/* Nested lists of the mega menu items that have children (the prototype's .has-sub / .mega__sub). */
.elementor-icon-list-items > .elementor-icon-list-item.so-sub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  column-gap: 8px;
}
.elementor-icon-list-item.so-sub > a { min-width: 0; }
.so-sub-toggle {
  display: grid;
  place-items: center;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--e-global-color-text) !important;
  box-shadow: none !important;
  line-height: 0;
  cursor: pointer;
}
.so-sub-toggle svg { display: block; width: 16px; height: 16px; stroke: #182530 !important; }
.so-sub-toggle:hover, .so-sub-toggle:focus { background: transparent !important; color: var(--e-global-color-ctahover) !important; outline: none; }
.so-sub-toggle:hover svg, .so-sub-toggle:focus svg, .so-sub.is-open .so-sub-toggle svg { stroke: #1F8E8B !important; }
.so-sub-list { display: none; grid-column: 1 / -1; flex-direction: column; gap: 14px; margin: 0; padding: 20px 0 0 16px; list-style: none; }
.so-sub.is-open > .so-sub-list { display: flex; animation: so-enter-up .35s cubic-bezier(.25, .8, .25, 1); }
.so-sub-list a {
  color: var(--e-global-color-text);
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: -.02em;
  text-underline-offset: 3px;
  transition: color .2s cubic-bezier(.25, .8, .25, 1);
}
.so-sub-list a:hover { color: var(--e-global-color-ctahover); text-decoration: underline; }
.so-sub.is-open > a { color: var(--e-global-color-ctahover) !important; text-decoration: underline; }

/* The absolute Elementor header needs room below WordPress's fixed admin bar. */
body.admin-bar .elementor-location-header > .e-con { top: 32px !important; }
body.admin-bar .elementor-location-header .elementor-sticky--active { top: 48px !important; }
@media (max-width: 782px) {
  body.admin-bar .elementor-location-header > .e-con { top: 46px !important; }
  body.admin-bar .elementor-location-header .elementor-sticky--active { top: 62px !important; }
}
@media (max-width: 640px) {
  body.admin-bar .elementor-location-header .elementor-sticky--active { top: 54px !important; }
}
/* Up to 600px WordPress makes the admin bar absolute (it scrolls away), so the stuck bar goes back to the Elementor offset (8px) */
@media (max-width: 600px) {
  body.admin-bar .elementor-location-header .elementor-sticky--active { top: 8px !important; }
}

.so-footer-offer .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  line-height: 1.2;
  padding-top: 0;
  padding-bottom: 0;
}
.so-footer-offer .elementor-button-content-wrapper { display: flex; align-items: center; }

/* The prototype's mobile panel combines primary links, contacts and categories. */
.so-mobile-mega[hidden] { display: none !important; }
@media (max-width: 640px) {
  body.so-mobile-menu-open { overflow: hidden; }
  .so-wp-header-menu .e-n-menu-wrapper { display: none !important; }
  .so-wp-header-menu .e-n-menu-toggle,
  .so-wp-header-menu .e-n-menu-toggle:hover,
  .so-wp-header-menu .e-n-menu-toggle:focus,
  .so-wp-header-menu .e-n-menu-toggle:active {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
  }
  .so-wp-header-menu .e-n-menu-toggle .e-open svg,
  .so-wp-header-menu .e-n-menu-toggle:hover .e-open svg,
  .so-wp-header-menu .e-n-menu-toggle:focus .e-open svg { fill: var(--e-global-color-primary) !important; }
  .so-wp-header-menu .e-n-menu-toggle[aria-expanded="true"] .e-open { display: none !important; }
  .so-wp-header-menu .e-n-menu-toggle[aria-expanded="true"] .e-close { display: none !important; }
  .so-wp-header-menu .e-n-menu-toggle[aria-expanded="true"] {
    position: relative;
    width: 28px;
    height: 28px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .so-wp-header-menu .e-n-menu-toggle[aria-expanded="true"]::before,
  .so-wp-header-menu .e-n-menu-toggle[aria-expanded="true"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--e-global-color-primary);
  }
  .so-wp-header-menu .e-n-menu-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
  .so-wp-header-menu .e-n-menu-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }
  .so-mobile-mega {
    display: block;
    position: fixed;
    z-index: 9999;
    top: var(--so-mobile-mega-top, 139px);
    left: 16px;
    right: 16px;
    max-height: calc(100dvh - var(--so-mobile-mega-top, 139px) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 32px 24px;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(20,28,59,.06);
    scrollbar-width: none;
  }
  .so-mobile-mega::-webkit-scrollbar { display: none; }
  .so-mobile-mega__top { display: flex; flex-direction: column; gap: 18px; padding-bottom: 32px; border-bottom: 1px solid var(--e-global-color-icy); }
  .so-mobile-mega__top > a { color: var(--e-global-color-primary); font-family: Sora, sans-serif; font-size: 20px; font-weight: 600; line-height: 25px; text-decoration: none; }
  .so-mobile-mega__top > a:hover { color: var(--e-global-color-ctahover); }
  .so-mobile-mega__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; }
  .so-mobile-mega__contacts a { display: inline-block; padding: 12px 24px; border-radius: 100px; background: var(--e-global-color-grey); color: var(--e-global-color-text); text-decoration: none; font-size: 16px; line-height: 19px; }
  .so-mobile-mega__contact-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .so-mobile-mega__contacts .so-mobile-mega__whatsapp { background: var(--e-global-color-whatsapp); color: #fff; }
  .so-mobile-mega__categories { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; }
  .so-mobile-mega__category-title { display: block; margin-bottom: 14px; color: var(--e-global-color-text); font-family: Sora, sans-serif; font-size: 20px; font-weight: 700; line-height: 25px; text-decoration: none; }
  .so-mobile-mega__category ul { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
  .so-mobile-mega__category li a { color: var(--e-global-color-text); font-size: 16px; font-weight: 400; line-height: 19px; text-decoration: none; }
  .so-mobile-mega__category li a:hover,
  .so-mobile-mega__nested-head.is-open > a { color: var(--e-global-color-ctahover); text-decoration: underline; }
  .so-mobile-mega__nested-head { display: grid; grid-template-columns: minmax(0,1fr) 16px; align-items: center; gap: 8px; }
  .so-mobile-mega__nested-toggle { display: grid; place-items: center; width: 16px !important; min-width: 16px !important; max-width: 16px !important; height: 16px !important; min-height: 16px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--e-global-color-text) !important; cursor: pointer; }
  .so-mobile-mega__nested-toggle:hover,
  .so-mobile-mega__nested-head.is-open .so-mobile-mega__nested-toggle { color: var(--e-global-color-ctahover) !important; }
  .so-mobile-mega__nested-toggle svg { display: block; width: 16px; height: 16px; stroke: #182530 !important; }
  .so-mobile-mega__nested-toggle:hover svg,
  .so-mobile-mega__nested-head.is-open .so-mobile-mega__nested-toggle svg { stroke: #1F8E8B !important; }
  .so-mobile-mega__category .so-mobile-mega__nested { margin: 20px 0 0 16px; }
  .so-mobile-mega__category .so-mobile-mega__nested[hidden] { display: none; }
  .so-footer-offer, .so-footer-offer .elementor-button { width: 100%; }
  .so-footer-offer .elementor-button { padding: 0 17px; white-space: nowrap; font-size: 14px; }
  .so-footer-whatsapp, .so-footer-whatsapp .elementor-button { width: 207px; }
}

/* Requests counter in the header button (prototype .counter) */
.so-request-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin: -6px -10px -6px 8px;
  padding: 0 8px;
  border-radius: 100px;
  background: var(--e-global-color-white);
  color: var(--e-global-color-secondary);
  font-size: 14px;
  line-height: 1;
}

/* footer address and phone: links in the colour of the text; on hover the accent colour and an underline, like the other footer columns */
.elementor-location-footer .elementor-widget-text-editor a { color: inherit; text-decoration: none; transition: color .2s cubic-bezier(.25, .8, .25, 1); }
.elementor-location-footer .elementor-widget-text-editor a:hover { color: var(--e-global-color-accent); text-decoration: underline; text-underline-offset: 2px; }

/* footer column links: underline on hover, like the prototype (.footer__col a:hover) */
.so-wp-footer-categories .elementor-icon-list-item:hover .elementor-icon-list-text,
.so-wp-footer-company .elementor-icon-list-item:hover .elementor-icon-list-text,
.so-wp-footer-help .elementor-icon-list-item:hover .elementor-icon-list-text {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Motion: gentle transitions between states (prototype 24.10.2026) ---------- */
@keyframes so-enter-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes so-pop { 40% { transform: scale(1.25); } }

.is-enter { animation: so-enter-up .3s cubic-bezier(.25, .8, .25, 1); }

/* drop-down lists (country code, subject, manufacturer ...) and the Workshop sub-menu */
.so-dd__list:not([hidden]) { animation: so-enter-up .18s cubic-bezier(.25, .8, .25, 1); }
.so-wp-category-links--workshop.is-open + .so-wp-category-links--workshop-extra { animation: so-enter-up .35s cubic-bezier(.25, .8, .25, 1); }
.so-mobile-mega__category .so-mobile-mega__nested:not([hidden]) { animation: so-enter-up .35s cubic-bezier(.25, .8, .25, 1); }

/* the search history under the header search field: only when there is something to show (search-history.js) */
.so-search-history { display: none; }
.so-search-history.has-history { display: flex; }

/* header drop-downs (categories, search, language): the panel drops in, in the search the field and the chips follow one by one.
   Elementor switches the panel from display: none to flex, so this is a keyframe animation (a closing one is not possible without JS) */
@keyframes so-drop-in { from { opacity: 0; transform: translateY(-12px) scale(.985); } }
@keyframes so-rise-in { from { opacity: 0; transform: translateY(10px); } }
.e-n-menu-content.e-active > .e-con { transform-origin: 50% 0; animation: so-drop-in .5s cubic-bezier(.22, 1, .36, 1) both; }
.e-n-menu-content:has(.elementor-widget-search-form).e-active .elementor-widget-search-form { animation: so-rise-in .5s cubic-bezier(.22, 1, .36, 1) .08s both; }
.e-n-menu-content:has(.elementor-widget-search-form).e-active .e-con .e-con .elementor-widget-button { animation: so-rise-in .5s cubic-bezier(.22, 1, .36, 1) .16s both; }
.e-n-menu-content:has(.elementor-widget-search-form).e-active .e-con .e-con .elementor-widget-button:nth-child(2) { animation-delay: .2s; }
.e-n-menu-content:has(.elementor-widget-search-form).e-active .e-con .e-con .elementor-widget-button:nth-child(3) { animation-delay: .24s; }
.e-n-menu-content:has(.elementor-widget-search-form).e-active .e-con .e-con .elementor-widget-button:nth-child(4) { animation-delay: .28s; }
.e-n-menu-content:has(.elementor-widget-search-form).e-active .e-con .e-con .elementor-widget-button:nth-child(5) { animation-delay: .32s; }

/* Requests counter pops when a request is added */
.so-request-count.is-pop { animation: so-pop .3s cubic-bezier(.25, .8, .25, 1); }

/* marquees (brand logos, shipping ribbon) can be dragged */
.so-home-brands, .so-home-ship { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.so-home-brands.is-dragging, .so-home-ship.is-dragging { cursor: grabbing; }
.so-home-brands img, .so-home-ship img { -webkit-user-drag: none; }

@media (prefers-reduced-motion: reduce) {
  .is-enter, .so-dd__list:not([hidden]), .so-wp-category-links--workshop.is-open + .so-wp-category-links--workshop-extra,
  .so-mobile-mega__category .so-mobile-mega__nested:not([hidden]), .so-request-count.is-pop,
  .e-n-menu-content.e-active > .e-con, .e-n-menu-content.e-active .elementor-widget-search-form, .e-n-menu-content.e-active .elementor-widget-button { animation: none !important; }
}

/* header menu triggers without a link (search, language) are still clickable;
   Elementor sets cursor:default on .e-n-menu-title-container:not(.e-link) and everything inside it */
.elementor-widget-n-menu .e-n-menu-title.e-click .e-n-menu-title-container:not(.e-link),
.elementor-widget-n-menu .e-n-menu-title.e-click .e-n-menu-title-container:not(.e-link) * { cursor: pointer; }

/* Header on a phone: the signed-in name must not push the pill row under the logo (the row would grow over the page title) */
@media (max-width: 640px) {
	.elementor-location-header > .e-con > .e-con:first-child { flex-wrap: nowrap; column-gap: 8px; }
	.elementor-location-header > .e-con > .e-con:first-child > .e-con:last-child,
	.elementor-location-header > .e-con > .e-con:first-child > .e-con:last-child .e-con { min-width: 0; flex-wrap: nowrap; }
	.elementor-location-header .elementor-widget-button:has(.so-hdr-name) { min-width: 0; }
	.elementor-location-header .so-hdr-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Touch screens: iOS Safari zooms into any field with a font below 16px on focus; keep every search field at 16px (!important beats the page-scoped :not(#so) rules) */
@media (max-width: 1024px) {
	.elementor-search-form__input,
	.so-dd__search,
	.dd__search,
	.acc-search input { font-size: 16px !important; }
}

/* The footer always sits at the bottom of the window, also on short pages (K9, 09.11.2026) */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > footer.elementor-location-footer { margin-top: auto; }

/* K10 (10.11.2026): home trust line instead of the Google reviews carousel (TZ 6.6: text only, links to the profiles).
   A blue band (icy) fills the whole space between the workshop block and the footer, also behind their rounded corners
   (--so-tl-r = their radius), as in the prototype (css/style.css .trustline). */
.so-home-trust.e-con { --so-tl-top: 56px; --so-tl-r: 56px; position: relative; z-index: 0; margin-top: calc(-1 * var(--so-tl-top)); padding: calc(var(--so-tl-top) + 64px) 60px calc(var(--so-tl-r) + 64px); justify-content: center; background: #E8EEF6; }  /* --so-tl-top: radius of the workshop block, --so-tl-r: of the footer */
.elementor-81 .elementor-element-74838c9 { position: relative; z-index: 1; }
body:has(.so-home-trust) .elementor-location-footer { position: relative; z-index: 1; margin-top: -56px; }
.so-home-trust .so-trust-line { width: 100%; max-width: 1200px; text-align: center; }
.so-home-trust .elementor-widget.so-trust-line { font-size: 22px !important; line-height: 30px !important; letter-spacing: -0.01em !important; color: #182530; }
.so-home-trust .so-trust-star { color: #FFC402; }
.so-home-trust .so-trust-sep { margin: 0 6px; color: rgba(24,37,48,.65); }
.so-home-trust .so-trust-line a { color: #289D9A; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.so-home-trust .so-trust-line a:hover { color: #1F8E8B; }
@media (max-width: 1024px) {
  .so-home-trust.e-con { --so-tl-r: 40px; padding: calc(var(--so-tl-top) + 48px) 40px calc(var(--so-tl-r) + 48px); }
  body:has(.so-home-trust) .elementor-location-footer { margin-top: -40px; }
  .so-home-trust .elementor-widget.so-trust-line { font-size: 19px !important; line-height: 27px !important; }
}
@media (max-width: 640px) {
  .so-home-trust.e-con { --so-tl-top: 32px; --so-tl-r: 32px; padding: calc(var(--so-tl-top) + 36px) 16px calc(var(--so-tl-r) + 36px); }
  body:has(.so-home-trust) .elementor-location-footer { margin-top: -32px; }
  .so-home-trust .elementor-widget.so-trust-line { font-size: 17px !important; line-height: 26px !important; }
  .so-home-trust .so-trust-sep { display: block; height: 0; overflow: hidden; margin: 4px 0; }
}

/* K10: Request List ends with the form (no reviews block below it any more): space before the footer, as on Contact */
.elementor-285 .elementor-element-5a4fdea { margin-bottom: 140px; }
@media (max-width: 1024px) { .elementor-285 .elementor-element-5a4fdea { margin-bottom: 96px; } }
@media (max-width: 640px) { .elementor-285 .elementor-element-5a4fdea { margin-bottom: 72px; } }

/* Footer bottom bar (Footer 60 and its language copies keep the element ids): copyright | "Design & development" | legal links,
 * always one row (Alina 11.11.2026). With space-between the middle block moved right because the copyright is wider than the
 * links. Now: the side columns are as wide as their text and share the rest equally, so the middle block is centred on the
 * bar while there is room and moves towards the links when there is not (the copyright never wraps). Narrow laptops
 * (1025-1319 px), where the German copyright, the credit and the links do not fit in one line at all: the copyright takes the
 * free width and wraps only if it has to, the credit sits before the links. Phones and tablets keep Elementor's stacked layout. */
@media (min-width: 1025px) {
	.elementor-location-footer .elementor-element-0556f87 {
		display: grid !important;
		grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
		align-items: center;
		column-gap: 32px;
	}
	.elementor-location-footer .elementor-element-0556f87 > :first-child { justify-self: start; }
	.elementor-location-footer .elementor-element-0556f87 > :nth-child(2) { justify-self: center; width: auto; }
	.elementor-location-footer .elementor-element-0556f87 > :last-child { justify-self: end; width: auto; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
	.elementor-location-footer .elementor-element-0556f87 { grid-template-columns: minmax(0, 1fr) auto max-content; column-gap: 28px; }
}
@media (min-width: 1280px) and (max-width: 1319px) {  /* the German copyright is longer: one line only from 1320 px (ES and RU too) */
	html[lang^="de"] .elementor-location-footer .elementor-element-0556f87,
	html[lang^="es"] .elementor-location-footer .elementor-element-0556f87,
	html[lang^="ru"] .elementor-location-footer .elementor-element-0556f87 { grid-template-columns: minmax(0, 1fr) auto max-content; column-gap: 28px; }
}

/* Home hero, Russian (K14, 16.11.2026; client: as close to the English 52 px as possible, "офтальмологического" in one line).
 * Scoped to body.home: the pages are built by one generator and reuse element ids (07d5ad0 is also the first About side link, d39313d a Sell
 * side link), an id-only rule enlarged them (K14).
 * Title: the hero column is about 50vw - 97px wide (416 px at 1025, 543 at 1280, 623 at 1440); the longest word is 11.0 em wide in Onest 700,
 * so the size is the column / 11.4 (a little room), at most 52 px as in English: 36 px at 1025, 47.6 at 1280, 52 from ~1400. Line height as EN.
 * Buttons: "Смотреть новое / б/у оборудование" are 289 + 267 px with 24 px side padding, the row 543 px at 1280 → 15 px side padding (532 px
 * with the 12 px gap), in one row from 1280 like EN. */
@media (min-width: 1025px) {
	html[lang^="ru"] body.home .elementor-element-07d5ad0 .elementor-heading-title { font-size: min(calc((50vw - 97px) / 11.4), 40px) !important; line-height: 1.23 !important; }
	html[lang^="ru"] body.home .elementor-element-45c74c6 .elementor-button { padding-left: 15px !important; padding-right: 15px !important; }
}
/* the same rule on tablets (column 100vw - 63px, 52 px as in Elementor) and phones (column 100vw - 32px, 34 px in Elementor): at 34 px the word
 * was 374 px in a 343 px column on a 375 px phone and the page scrolled sideways; now 30 px at 375, 25 px at 320 */
@media (min-width: 641px) and (max-width: 1024px) {
	html[lang^="ru"] body.home .elementor-element-07d5ad0 .elementor-heading-title { font-size: min(calc((100vw - 64px) / 11.4), 34px) !important; }
}
@media (max-width: 640px) {
	html[lang^="ru"] body.home .elementor-element-07d5ad0 .elementor-heading-title { font-size: min(calc((100vw - 32px) / 11.4), 28px) !important; }
}

/* Home "Why Sky Optic" numbers, Russian: at 1920 px the numbers are 94 px and "12 месяцев" is 504 px in a 499 px tile, 2 lines. 88 px for all four
 * (the same size in every tile), "12 месяцев" 472 px, one line. Below 1441 px Elementor's smaller sizes stay (2 lines there, as in English)
 * (K14, Alina, 16.11.2026). */
/* (superseded 20.11.2026: the numbers are 48 px in every language, see the K17 block at the end) */

/* Home category tiles, Russian: "Оптическая мастерская" is 213 px at 18 px, the title box 187 px at 1280 (tile 227 px with 20 px margins), it took
 * 2 lines. Below 1440 px: 16 px and 16 px side margins for the title and the text under it (box 195 px, title 189 px); from 1440 the tile is wide
 * enough for 18 px (K14, 16.11.2026). */
@media (min-width: 1025px) and (max-width: 1280px) {
	html[lang^="ru"] body.home .so-category-card > .elementor-widget-heading .elementor-heading-title { font-size: 16px !important; }
	html[lang^="ru"] body.home .so-category-card > .elementor-widget:not(:first-child) { margin-left: 16px !important; margin-right: 16px !important; }
}

/* Shipping ribbon on the home page: the pills have a fixed width of 321 px (230 px on phones) in the Elementor data, which cut the longer
 * Spanish / Russian text ("Enviamos a todo el mundo"). The width is now a minimum, the pill grows with its text (13.11.2026). */
html .so-home-ship .elementor-widget-heading { width: auto !important; min-width: 321px; }
@media (max-width: 640px) { html .so-home-ship .elementor-widget-heading { min-width: 230px; } }

/* Footer, "Bank transfer" pill (Footer 60 and its language copies keep the element ids): it had no padding, so the longer Spanish / Russian
 * label ("Transferencia bancaria", "Банковский перевод") wrapped and touched the left edge. Padding, label left, wallet icon right (13.11.2026). */
.elementor-location-footer .elementor-element-a59a8be { padding: 8px 24px; justify-content: space-between; }
.elementor-location-footer .elementor-element-a59a8be > .elementor-widget-heading { flex: 1 1 auto; min-width: 0; text-align: left; }
.elementor-location-footer .elementor-element-a59a8be > .elementor-widget-image { flex: none; }

/* Footer bottom bar, credit "Design & development by [coma]": the group was aligned to the bottom (flex-end), so the text sat lower than the logo
 * and the links; the Russian / Spanish text also wrapped into two lines. Centered, one line (13.11.2026). */
.elementor-location-footer .elementor-element-418247a { align-items: center !important; }
.elementor-location-footer .elementor-element-418247a .so-credit-text .elementor-heading-title { white-space: nowrap; line-height: 1; }
.elementor-location-footer .elementor-element-418247a .elementor-widget-image img { display: block; }
/* the word "coma" of the logo image lies in the lower part of its box (the dots above it): with the box centred, its base line sits on the text base line (checked on the pixels, 13.11.2026) */
/* laptop widths: the credit block never shrinks below its content (the text overflowed onto the logo and the links) */
.elementor-location-footer .elementor-element-418247a { min-width: max-content; }
.elementor-location-footer .elementor-element-418247a > * { flex: none; }

/* Spanish / Russian: the copyright, the credit and the four links do not fit in one row below ~1440 px (the copyright column shrank to nothing or
 * the credit ran over the logo). From 1025 to 1439 px: row 1 the copyright, row 2 the credit on the left and the links on the right (13.11.2026). */
@media (min-width: 1025px) and (max-width: 1280px) {
	html[lang^="es"] .elementor-location-footer .elementor-element-0556f87,
	html[lang^="ru"] .elementor-location-footer .elementor-element-0556f87 { grid-template-columns: max-content minmax(0, 1fr); row-gap: 10px; column-gap: 28px; padding-top: 14px !important; padding-bottom: 14px !important; height: auto !important; min-height: 60px; }
	html[lang^="es"] .elementor-location-footer .elementor-element-0556f87 > :first-child,
	html[lang^="ru"] .elementor-location-footer .elementor-element-0556f87 > :first-child { grid-column: 1 / -1; }
	html[lang^="es"] .elementor-location-footer .elementor-element-0556f87 > :last-child,
	html[lang^="ru"] .elementor-location-footer .elementor-element-0556f87 > :last-child { justify-self: end; }
}

/* K16 (17.11.2026): the Borlabs cookie settings button sits in the bottom right corner on phones (bottom left it covered the text above the price); size unchanged */
@media (max-width: 767px) {
  #BorlabsCookieBox .brlbs-cmpnt-widget, .brlbs-cmpnt-container .brlbs-cmpnt-widget { left: auto !important; right: 0 !important; }
}

/* K17 (20.11.2026, client): fonts too large, one size per kind of element on every page; logo x2; photo blocks smaller.
 * Scale (all languages, all pages built with Elementor): page title H1 40 / 34 / 28 px (desktop / tablet <=1024 / phone <=640), section title H2 30 / 26 / 24,
 * big numbers 48 / 40 / 36, caption under a number 20, statement line 24. Products keep their own title size (30, long names), the account
 * header "Welcome back" (24) is a panel title. Rules use tags and classes, not ids alone: ids repeat between pages (see K14). */
body:not(.single-product) .elementor-widget-heading h1.elementor-heading-title { font-size: 40px !important; line-height: 1.2 !important; }
.elementor-widget-heading h2.elementor-heading-title { font-size: 30px !important; line-height: 1.25 !important; }
body.home [data-elementor-type="wp-page"] :is(.elementor-element-b4bc392, .elementor-element-47b1274, .elementor-element-264c030, .elementor-element-d39313d) .elementor-heading-title,
body.home [data-elementor-type="wp-page"] :is(.elementor-element-1436938, .elementor-element-2d1d5e1, .elementor-element-300def9, .elementor-element-84589a0) .elementor-heading-title,
html .so-sell-step-number .elementor-heading-title { font-size: 48px !important; line-height: 1.1 !important; }
body.home [data-elementor-type="wp-page"] :is(.elementor-element-5a4984f, .elementor-element-c5de40b, .elementor-element-45080d0, .elementor-element-3a1c7cd) .elementor-heading-title { font-size: 20px !important; line-height: 1.3 !important; }
body.home [data-elementor-type="wp-page"] .elementor-element-28d97b0 .elementor-heading-title,
.so-about-warranty .elementor-heading-title { font-size: 24px !important; line-height: 1.3 !important; }
.so-about-tile .elementor-heading-title { font-size: 30px !important; line-height: 1.2 !important; }
@media (max-width: 1024px) {
	body:not(.single-product) .elementor-widget-heading h1.elementor-heading-title { font-size: 34px !important; }
	.elementor-widget-heading h2.elementor-heading-title { font-size: 26px !important; }
	body.home [data-elementor-type="wp-page"] :is(.elementor-element-b4bc392, .elementor-element-47b1274, .elementor-element-264c030, .elementor-element-d39313d) .elementor-heading-title,
	body.home [data-elementor-type="wp-page"] :is(.elementor-element-1436938, .elementor-element-2d1d5e1, .elementor-element-300def9, .elementor-element-84589a0) .elementor-heading-title,
	html .so-sell-step-number .elementor-heading-title { font-size: 40px !important; }
	.so-about-tile .elementor-heading-title { font-size: 26px !important; }
}
@media (max-width: 640px) {
	body:not(.single-product) .elementor-widget-heading h1.elementor-heading-title { font-size: 28px !important; }
	.elementor-widget-heading h2.elementor-heading-title { font-size: 24px !important; }
	body.home [data-elementor-type="wp-page"] :is(.elementor-element-b4bc392, .elementor-element-47b1274, .elementor-element-264c030, .elementor-element-d39313d) .elementor-heading-title,
	body.home [data-elementor-type="wp-page"] :is(.elementor-element-1436938, .elementor-element-2d1d5e1, .elementor-element-300def9, .elementor-element-84589a0) .elementor-heading-title,
	html .so-sell-step-number .elementor-heading-title { font-size: 36px !important; }
	.so-about-tile .elementor-heading-title { font-size: 24px !important; }
}
/* FAQ questions and the FAQ block on Sell: 24 -> 20 px (accordion titles, Sora 700) */
.so-sell-faq h3.elementor-heading-title, .so-faq-question .elementor-heading-title { font-size: 20px !important; line-height: 1.3 !important; }
/* catalog / category hero title (shortcode markup, ids in the selector in catalog.css) */
html body .so-catalog-hero .page-hero__title { font-size: 40px !important; line-height: 1.2 !important; }
@media (max-width: 1024px) { html body .so-catalog-hero .page-hero__title { font-size: 34px !important; } }
@media (max-width: 640px) { html body .so-catalog-hero .page-hero__title { font-size: 28px !important; } }

/* Logo in the header x2 (116 -> 232 px; the header widget 40c132d is also the H1 widget on inner pages, so only inside the header) */
.elementor-location-header .elementor-element-40c132d img { width: 232px !important; max-width: none !important; height: auto !important; }
@media (max-width: 1024px) { .elementor-location-header .elementor-element-40c132d img { width: 200px !important; } }
@media (max-width: 640px) { .elementor-location-header .elementor-element-40c132d img { width: 160px !important; } }

/* Photo blocks of the home page (hero 931 px, "Why Sky Optic" 2 x 375, "Our Workshop" 2 x 374): about 15 % lower on desktop */
@media (min-width: 1025px) {
	body.home .elementor-element-b8d14cf { min-height: 790px !important; }
	body.home .elementor-element-18b56bf { grid-template-rows: 320px 320px !important; }
	body.home .elementor-element-74838c9 { grid-template-rows: 320px 320px !important; }
}

/* Request list: block titles ("0 items", "Your information") 34 -> 30 px like every H2 (desktop; the phone sizes of request-page.css stay) */
@media (min-width: 1025px) { html body :is(.rl__count, .rl-form__title, .rl__success-title):not(#so) { font-size: 30px !important; line-height: 38px !important; } }

/* K17 (20.11.2026, client): less space under the step numbers (the number box stayed 140 px high from the 80 px digits; digit is 48 px now): 90 px box.
 * Home "Our Ordering Process" (number widgets 1436938 / 2d1d5e1 / 300def9 / 84589a0, only inside the page: 300def9 is also a footer id) and Sell "How it works". */
body.home [data-elementor-type="wp-page"] :is(.elementor-element-1436938, .elementor-element-2d1d5e1, .elementor-element-300def9, .elementor-element-84589a0).elementor-widget { min-height: 90px !important; height: 90px !important; }
html .so-sell-step-number { height: 90px !important; }
@media (min-width: 1025px) {
	body.home [data-elementor-type="wp-page"] .e-con:has(> :is(.elementor-element-1436938, .elementor-element-2d1d5e1, .elementor-element-300def9, .elementor-element-84589a0)) { min-height: 300px !important; }
	html .so-sell-step { min-height: 320px !important; }
}

/* K17 (20.11.2026, client, second round) */
/* Home "Why Sky Optic" block: half the original height (rows 375 -> 188 px, the 4 tiles and the photo with smaller padding) */
@media (min-width: 1025px) {
	body.home .elementor-element-18b56bf { grid-template-rows: 188px 188px !important; }
	body.home .elementor-element-18b56bf > .e-con { padding: 24px 32px !important; }
}
/* "Every device is inspected at our facility..." on the dark tile of "Our Workshop": white like the other texts of the block */
body.home [data-elementor-type="wp-page"] .elementor-element-28d97b0 .elementor-heading-title { color: #fff !important; }
/* product description (tab "Description"): darker than ink 65 % for contrast */
.single-product:not(#so) .pd__lead { color: rgba(24, 37, 48, .9); }
/* hero buttons swapped to match the badges on the product cards (Used = turquoise, New = white / outlined) */
body.home [data-elementor-type="wp-page"] .elementor-element-d930377 .elementor-button { background-color: transparent !important; color: var(--e-global-color-primary) !important; border: 1px solid var(--e-global-color-primary) !important; padding-left: 23px !important; padding-right: 23px !important; }
body.home [data-elementor-type="wp-page"] .elementor-element-d930377 .elementor-button:hover { background-color: var(--e-global-color-icy) !important; color: var(--e-global-color-bluedark) !important; }
body.home [data-elementor-type="wp-page"] .elementor-element-f0d269f .elementor-button { background-color: var(--e-global-color-secondary) !important; color: #fff !important; border: 1px solid transparent !important; }
body.home [data-elementor-type="wp-page"] .elementor-element-f0d269f .elementor-button:hover { background-color: var(--e-global-color-ctahover) !important; color: #fff !important; }
/* "Why Sky Optic" photo tile: the tile is lower now, align the picture to the top so the head is not cut (client, 20.11.2026) */
body.home [data-elementor-type="wp-page"] .elementor-element-c3960e6 { background-position: 50% 0 !important; }
/* product description: the product.css rule (with :not(#so)) loads later, so the colour needs the stronger selector */
html body.single-product:not(#so) .pd__lead { color: rgba(24, 37, 48, .9) !important; }

/* K24 (26.11.2026): header on narrow laptops, 1025-1280 px. The pills wrapped their text onto two lines, the menu gap (64 px) pushed
   "Requests" out of the nav pill and the signed-in name widened the row. Smaller type, padding and gaps instead of wrapping. */
@media (min-width: 1025px) and (max-width: 1280px) {
	.elementor-location-header .elementor-element-fd2a8ee { padding: 16px 24px; column-gap: 8px; }
	.elementor-location-header .elementor-element-4bcb31d,
	.elementor-location-header .elementor-element-5a4fdea,
	.elementor-location-header .elementor-element-58acbb5 { column-gap: 8px; }
	.elementor-location-header .elementor-element-40c132d img { width: 170px !important; }
	.elementor-location-header .elementor-element-fd2a8ee .elementor-button { padding: 10px 14px; font-size: 14px; }
	.elementor-location-header .elementor-element-fd2a8ee .elementor-button-text { white-space: nowrap; }
	.elementor-location-header .elementor-element-fd2a8ee .e-n-menu-title { padding: 10px 14px; }
	.elementor-location-header .elementor-element-fd2a8ee .e-n-menu-title-text { font-size: 14px; }
	.elementor-location-header .so-hdr-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
	.elementor-location-header .elementor-element-cf9ceb3 { padding: 16px 20px; column-gap: 16px; }
	.elementor-location-header .elementor-element-45080d0 .e-n-menu-heading { gap: 0; }
	/* Elementor sets margin-inline-end: clamp(32px, ...) with !important on the items (post-57.css); the same selector, one class more */
	.elementor-location-header .elementor-element.elementor-element-45080d0 .e-n-menu-heading>.e-n-menu-item.e-n-menu-item:not(:last-child) { margin-inline-end: 22px !important; }
	.elementor-location-header .elementor-element-45080d0 .e-n-menu-title-text { font-size: 16px; }
	.elementor-location-header .elementor-element-96e0a9a .elementor-button { padding: 12px 18px; font-size: 15px; }
}

/* K24: home "Our Workshop" on narrow laptops (1025-1280 px): the text block spans the whole width in the first grid row, which was fixed at 320 px,
   but the text, the list and the button need ~420 px (DE / RU more), so the photo tiles covered the button and the list. First row: as high as the content. */
@media (min-width: 1025px) and (max-width: 1280px) {
	body.home .elementor-element-74838c9 { grid-template-rows: auto 320px auto !important; }
}
