/* tomski.ee — base styles for all block types.
   Per-block styles (positions, colours, typography) are generated by the
   renderer into a <style> tag on each page. */

/* ---------------------------------------------------------------- base */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { border: 0; }
sup { line-height: 0; font-size: smaller; vertical-align: super; }
sub { line-height: 0; font-size: smaller; vertical-align: sub; }
.page { position: relative; }
.blk-anchor { position: relative; height: 0; }
:focus-visible { outline: 2px solid #7109b6; outline-offset: 2px; }

/* --------------------------------------------------------- zero blocks */
.zb { position: relative; -webkit-text-size-adjust: 100%; }
.zb-art { position: relative; width: 100%; height: 550px; overflow: hidden; }
.zb-carrier, .zb-filter { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.zb-carrier { z-index: 0; }
.zb-filter { z-index: 1; transform: translateZ(0); }
.zb-el { position: absolute; box-sizing: border-box; display: table; }
.zb-atom { display: table-cell; vertical-align: middle; width: 100%; -webkit-text-size-adjust: 100%; }
a.zb-atom { text-decoration: none; color: inherit; }
.zb-atom a { color: inherit; text-decoration: none; }
.zb-atom ul, .zb-atom ol { margin-top: 0; margin-bottom: 0; padding-left: 20px; }
.zb-atom li { margin: 0; padding: 0; }
.zb-atom strong, .zb-atom b { font-weight: 700; }
.zb-img { width: 100%; height: auto; display: block; }
.zb-vector-atom svg { display: block; }
.zb-html-atom { vertical-align: top; }

.zb-video, .zb-video > .zb-atom { display: block; height: 100%; }
.zb-iframe { display: block; width: 100%; height: 100%; border: 0; }

/* groups (incl. auto-layout groups, whose children flow with flexbox) */
.zb-group { position: absolute; box-sizing: border-box; display: block; }
.zb-mol { position: relative; width: 100%; height: 100%; box-sizing: border-box; border-width: 0; }
.zb-fc { position: relative !important; left: auto !important; top: auto !important; flex-shrink: 0; height: fit-content; }

/* buttons */
.zb-button { display: block; }
.zb-button > .zb-atom {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 100%; height: 100%; overflow: hidden; text-align: center; white-space: normal; cursor: pointer;
}
.zb-btn-content { display: flex; align-items: center; justify-content: center; column-gap: 10px; }
.zb-btn-text { display: block; text-overflow: ellipsis; }
.zb-btn-border { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; border-radius: inherit; pointer-events: none; z-index: 1; }
.zb-btn-border::before, .zb-btn-border::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.zb-button > .zb-atom::before, .zb-button > .zb-atom::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; border-radius: inherit; }

/* horizontally scrollable artboard (drag/swipe; scrollbar hidden) */
.zb-art.zb-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; }
.zb-art.zb-scroll::-webkit-scrollbar { display: none; }
.zb-art.zb-scroll.is-dragging { cursor: grabbing; user-select: none; }
.zb-art.zb-scroll.is-dragging iframe { pointer-events: none; }
.zb-el.arrow-left, .zb-el.arrow-right { cursor: pointer; }

/* --------------------------------------------------------------- forms */
.zf { position: relative; width: 100%; }
.zf-fields { display: flex; flex-direction: column; }
.zf-field { position: relative; box-sizing: border-box; }
.zf-label { display: block; padding-bottom: 5px; font-size: 16px; line-height: 1.35; }
.zf-input {
  display: block; box-sizing: border-box; width: 100%; height: 60px; margin: 0; padding: 0 20px;
  border: 1px solid #000; border-radius: 0; background: #fff; color: #000;
  font: inherit; font-size: 16px; line-height: 1.33; outline: none; -webkit-appearance: none; appearance: none;
}
.zf-input:focus-within { box-shadow: 0 0 0 3px rgba(113, 9, 182, .15); }
.zf-textarea { height: auto; min-height: 102px; padding-top: 17px; padding-bottom: 17px; resize: vertical; }
.zf-phone { display: flex; align-items: center; padding: 0; cursor: text; }
.zf-cc { position: relative; display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px 0 20px; white-space: nowrap; cursor: pointer; flex: 0 0 auto; }
.zf-cc-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .6; }
.zf-cc-select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.zf-phone-input { flex: 1 1 0; width: 0; min-width: 0; height: 100%; margin: 0; padding: 0 20px 0 0; border: 0; background: transparent; color: inherit; font: inherit; outline: none; }
.zf-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.zf-error { margin-top: 5px; color: #f95d51; font-size: 13px; line-height: 1.3; }
.zf-field.has-error .zf-input { border-color: #f95d51 !important; }
.zf-submit {
  display: inline-flex; align-items: center; justify-content: center; height: 60px; padding: 0 30px;
  border: 0; border-radius: 0; background: #000; color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.zf-submit[disabled] { opacity: .6; cursor: default; }
.zf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.zf-note { margin-top: 12px; font-size: 13px; line-height: 1.4; opacity: .6; }
.zf-status { margin-top: 10px; padding: 10px 15px; border-radius: 4px; background: #f95d51; color: #fff; font-size: 14px; line-height: 1.4; }
.zf-success { padding: 20px; border-radius: 7px; background: #62c584; color: #fff; font-size: 18px; line-height: 1.4; text-align: center; }
.zf.is-sent .zf-fields, .zf.is-sent .zf-note { display: none; }

/* ------------------------------------------------- standard containers */
.blk { position: relative; }
.std-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* -------------------------------------------------------- image slider */
.sl-title { font-family: var(--font-headline); font-size: 42px; line-height: 1.23; font-weight: 600; margin-bottom: 90px; overflow-wrap: break-word; }
.sl { position: relative; }
.sl-frame { position: relative; max-width: 1100px; margin: 0 auto; }
.sl-viewport { position: relative; margin: 0 auto; overflow: hidden; touch-action: pan-y; }
.sl-track { display: flex; transition: transform .3s ease-in-out; will-change: transform; }
.sl-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; }
.sl-slide img { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.sl-fullheight .sl-slide { height: 100vh; height: 100svh; }
.sl-fullheight .sl-slide img { width: auto; max-height: 100%; object-fit: contain; }
.sl-arrow {
  position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; padding: 0; border: 0; border-radius: 100px; transform: translateY(-50%); cursor: pointer;
}
.sl-prev { left: 0; }
.sl-next { right: 0; }
.sl-arrow svg { display: block; width: 15px; height: 28px; }
.sl-dots { display: flex; justify-content: center; padding-top: 16px; }
.sl-dot { width: 8px; height: 8px; margin: 10px 5px; padding: 0; border: 0; border-radius: 100px; background: #c7c7c7; cursor: pointer; }

/* ----------------------------------------------- horizontal image strip */
.cr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.cr-title { flex: 1; min-width: 0; font-size: 36px; line-height: 1.25; overflow-wrap: break-word; }
.cr-controls { display: inline-flex; flex: 0 0 auto; gap: 5px; }
.cr-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; cursor: pointer; }
.cr-btn svg { display: block; width: 40px; height: 40px; }
.cr-next svg { transform: rotate(180deg); }
.cr-btn[disabled] { opacity: .4; cursor: default; }
.cr { position: relative; }
.cr-track {
  --cr-pad: calc((100% - min(100% - 40px, 1160px)) / 2);
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 0 var(--cr-pad); scroll-padding-left: var(--cr-pad); outline: none;
}
.cr-track::-webkit-scrollbar { display: none; }
.cr-item { flex: 0 0 auto; scroll-snap-align: start; }
.cr-item img { display: block; width: auto; height: 500px; user-select: none; -webkit-user-drag: none; }
.cr-hint { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: multiply; transition: opacity .3s; }
.cr-hint-card { fill: rgba(190, 190, 190, .3); animation: cr-card 2s infinite; }
.cr-hint-hand { fill: #bebebe; animation: cr-hand 2s infinite; }
.cr.is-touched .cr-hint { opacity: 0; }
@media (hover: none) and (max-width: 960px) { .cr-hint { display: block; } }
@keyframes cr-hand { 0% { transform: translateX(80px) scale(1); opacity: 0; } 10% { opacity: 1; } 20%, 60% { transform: translateX(175px) scale(.6); } 80% { transform: translateX(5px) scale(.6); opacity: 1; } 100% { transform: translateX(5px) scale(.6); opacity: 0; } }
@keyframes cr-card { 0%, 20% { transform: translateX(0); } 60%, 80% { transform: translateX(-200px); } 100% { transform: translateX(0); } }

/* ------------------------------------------- standard content sections */
.std-heading { font-family: var(--font-headline); font-size: 42px; line-height: 1.23; font-weight: 600; margin-bottom: 60px; text-align: center; }
.std-uptitle { font-family: var(--font-text); font-size: 14px; line-height: 1.55; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; }
.std-title { font-family: var(--font-headline); font-size: 36px; line-height: 1.23; font-weight: 600; margin-bottom: 20px; overflow-wrap: break-word; }
.std-subtitle { font-family: var(--font-text); font-size: 20px; line-height: 1.35; margin-bottom: 20px; }
.std-text { font-family: var(--font-text); font-size: 18px; line-height: 1.55; }
.std-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 60px; margin-top: 30px; padding: 0 30px; box-sizing: border-box;
  background: #000; color: #fff; font-family: var(--font-text); font-size: 16px; font-weight: 700; text-decoration: none; transition: opacity .2s;
}
.std-btn:hover { opacity: .85; }
.std-image-left, .std-image-right { display: flex; align-items: center; gap: 60px; }
.std-media { flex: 0 0 42%; }
.std-media img { display: block; width: 100%; height: auto; }
.std-media img.is-cover { aspect-ratio: 4 / 5; object-fit: cover; }
.std-media.is-round img { aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.std-body { flex: 1; min-width: 0; }
.is-center { text-align: center; }
.std-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 40px 0 0; padding: 0; list-style: none; text-align: left; }
.std-feature { display: flex; align-items: flex-start; gap: 20px; font-family: var(--font-text); font-size: 18px; line-height: 1.45; }
.std-feature-num { flex: 0 0 auto; min-width: 40px; font-family: var(--font-headline); font-size: 48px; line-height: 1; opacity: .25; }
.std-divider { height: 1px; background: linear-gradient(to right, transparent, var(--divider) 25%, var(--divider) 75%, transparent); }
.std-form .zf { max-width: 560px; margin: 0 auto; font-family: var(--font-text); }
.zf-standard .zf-fields { gap: 20px; }
.zf-standard .zf-submit { width: 100%; }
.zf-standard .zf-note { text-align: center; }
@media screen and (max-width: 1200px) { .sl-title, .std-heading { font-size: 38px; } .std-title { font-size: 32px; } }
@media screen and (max-width: 960px) {
  .sl-title { margin-bottom: 45px; }
  .cr-head { margin-bottom: 30px; }
  .std-image-left, .std-image-right { flex-direction: column; gap: 30px; }
  .std-image-right .std-media { order: -1; }
  .std-features { grid-template-columns: 1fr 1fr; }
  .sl-arrow { display: none; }
}
@media screen and (max-width: 640px) {
  .sl-title, .std-heading { font-size: 30px; }
  .std-title { font-size: 26px; }
  .std-text, .std-feature { font-size: 16px; }
  .std-features { grid-template-columns: 1fr; gap: 24px; }
}
@media screen and (max-width: 480px) { .sl-title, .std-heading { font-size: 28px; } }

/* --------------------------------------------- CMS preview indicator */
.cms-preview-bar { position: fixed; left: 16px; bottom: 16px; z-index: 2147483000; display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #111; color: #fff; font: 600 13px/1.2 system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.cms-preview-bar a { color: #c9a3ff; text-decoration: none; }

/* ------------------------------------------------------ cookie banner */
/* consent.js renders it hidden; site.js shows it until the visitor chooses.
   Allowing and refusing are equally easy: two buttons of the same size. */
.cc { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1000; display: flex; justify-content: center; padding: 0 12px max(12px, env(safe-area-inset-bottom)); pointer-events: none; font-family: var(--font-text, Arial, sans-serif); }
.cc[hidden] { display: none; }
.cc__box { box-sizing: border-box; width: min(100%, 560px); max-height: calc(100vh - 24px); overflow: auto; padding: 18px 20px 16px; border: 1px solid rgba(17, 17, 17, .08); border-radius: 20px; background: #fff; color: #2b2b33; box-shadow: 0 18px 50px rgba(17, 17, 17, .22); pointer-events: auto; }
.cc__title { margin: 0 0 6px; color: #111; font-size: 17px; font-weight: 800; line-height: 1.3; }
.cc__text { margin: 0; font-size: 14.5px; line-height: 1.5; }
.cc__text a { color: #7109b6; }
.cc__prefs { display: grid; gap: 10px; margin: 14px 0 0; }
.cc__prefs[hidden] { display: none; }
.cc__opt { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.cc__opt input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #7109b6; }
.cc__opt b { color: #111; }
.cc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.cc__btn { flex: 1 1 150px; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 14px; background: #7109b6; color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.cc__btn--none { background: #1a1a1f; }
.cc__btn[hidden] { display: none; }
.cc__btn:hover { filter: brightness(1.12); }
.cc__link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: #7109b6; font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc__link[hidden] { display: none; }
/* phones: compact, so the page's first screen stays visible; "choose" sits beside the title */
@media (max-width: 480px) {
  .cc { padding: 0 8px max(8px, env(safe-area-inset-bottom)); }
  .cc__box { position: relative; padding: 12px 14px; border-radius: 18px; }
  .cc__title { margin: 0 88px 4px 0; font-size: 15.5px; }
  .cc__text { font-size: 13px; line-height: 1.45; }
  .cc__actions { gap: 8px; margin-top: 10px; }
  .cc__btn { flex-basis: 120px; min-height: 42px; padding: 8px 10px; border-radius: 12px; font-size: 14px; }
  .cc__link { position: absolute; top: 2px; right: 8px; font-size: 13.5px; }
  .cc__opt { font-size: 13px; }
}
