@import url(../../fonts/spacegrotesk.css);
/* Fotoportaali case – kavand. Portaali enda toonid: tumehall #1e262b, valge, helehall #f5f5f4, kiri Space Grotesk. Aktsenti pole; punane on ainult rasvapliiats kontaktlehel. */
:root {
  --fo-ink: #1e262b; --fo-ink2: #273138; --fo-paper: #f5f5f4; --fo-mid: #8a949a; --fo-pen: #e2462f;
  --fo-font: "Space Grotesk", var(--font-sans);
  --fo-ease: cubic-bezier(.65, 0, .25, 1);
}
.fo-dark { background: var(--fo-ink); color: #e9ecee; }
.fo-light { background: var(--fo-paper); }
.fo-in { max-width: var(--maxw); margin-inline: auto; padding: clamp(3rem, 7vw, 7rem) var(--gutter); }
.fo-k { margin: 0 0 var(--s4); font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #9aa3a8; }
.fo-chips button, .fo-wall__g button { min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: inherit; font: 500 var(--fs-small)/1 var(--fo-font); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.fo-chips button[aria-pressed=true], .fo-wall__g button[aria-pressed=true] { background: var(--fo-ink); border-color: var(--fo-ink); color: #fff; }
.fo-chips button:focus-visible, .fo-wall__g button:focus-visible, .fo-sheet__f:focus-visible, .fo-ld__row:focus-visible { outline: 2px solid var(--fo-pen); outline-offset: 2px; }

/* ---------- Pildiotsija ---------- */
.fo-view { position: relative; min-height: clamp(480px, 80vh, 800px); overflow: hidden; cursor: crosshair; }
.fo-view__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) 50%; filter: brightness(.62); transition: object-position 1.2s var(--fo-ease); }
.fo-view__frame { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: min(46vw, 560px); aspect-ratio: 3 / 2; transform: translate(-50%, -50%); transition: left .5s var(--fo-ease), top .5s var(--fo-ease); pointer-events: none; }
.fo-view__frame i { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(255,255,255,.85); }
.fo-view__frame i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; } .fo-view__frame i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.fo-view__frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; } .fo-view__frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.fo-view__frame { box-shadow: 0 0 0 200vmax rgba(30,38,43,.28); }
.fo-view__af { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border: 2px solid #fff; animation: fo-af 2.6s ease-in-out infinite; }
@keyframes fo-af { 0%, 70%, 100% { transform: scale(1); border-color: #fff; } 78% { transform: scale(.7); border-color: #7cff9a; } 90% { transform: scale(.82); border-color: #7cff9a; } }
.fo-view.is-move .fo-view__frame { transition-duration: .15s; }
.fo-view__in { position: relative; min-height: inherit; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.fo-view__in .fo-k { color: rgba(255,255,255,.75); }
.fo-view__t { margin: 0; max-width: 17ch; font: 500 clamp(2.2rem, 5.4vw, 5rem)/1.02 var(--fo-font); letter-spacing: -.02em; color: #fff; }
.fo-view__hint { margin: var(--s6) 0 0; font-size: var(--fs-small); color: rgba(255,255,255,.75); }

/* ---------- Kontaktleht ---------- */
.fo-sheet { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.fo-sheet__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; background: #11171b; border-radius: 4px; }
.fo-sheet__f { position: relative; display: block; padding: 0 0 22px; border: 0; background: none; cursor: zoom-in; }
.fo-sheet__f img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #000; transition: filter .3s, transform .3s; }
.fo-sheet__f:hover img { transform: scale(1.04); }
.fo-sheet__f[aria-pressed=true] img { outline: 2px solid #fff; outline-offset: 2px; }
.fo-sheet__grid:hover .fo-sheet__f:not(:hover) img { filter: brightness(.6); }
.fo-sheet__n { position: absolute; left: 0; bottom: 3px; font: 500 10px/1 var(--font-mono); letter-spacing: .06em; color: #c9a45c; }
.fo-ring { position: absolute; left: -12%; top: -14%; width: 124%; height: calc(100% - 22px + 28%); overflow: visible; pointer-events: none; }
.fo-ring path { fill: none; stroke: var(--fo-pen); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--fo-ease); }
.fo-sheet__f.is-shop:nth-of-type(11) .fo-ring path { transition-delay: .5s; }
.fo-sheet.is-play .fo-ring path, .no-js .fo-ring path { stroke-dashoffset: 0; }
.fo-sheet__look { position: sticky; top: 96px; }
.fo-sheet__look img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; background: #000; transition: opacity .3s; }
.fo-sheet__look img.is-out { opacity: 0; }
.fo-sheet__no { margin: var(--s2) 0 .3rem; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .1em; color: #c9a45c; }
.fo-sheet__cap { margin: 0; max-width: 48ch; line-height: 1.55; color: #cfd5d8; }
.fo-sheet__tag { margin: .8rem 0 0; font: 600 var(--fs-small)/1.3 var(--fo-font); color: var(--fo-pen); }
.fo-sheet__tag:empty { display: none; }

/* ---------- Brauser ja keeled ---------- */
.fo-browser, .fo-lang { max-width: 1100px; margin-inline: auto; }
.fo-browser__frame { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: #fff; }
.fo-browser__top { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; background: #efefef; border-bottom: 1px solid var(--line); }
.fo-browser__dots { display: flex; gap: 6px; }
.fo-browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #cfcfcf; }
.fo-browser__url { flex: 1; max-width: 460px; margin: 0 auto; padding: .3rem .8rem; border-radius: 6px; background: #fff; font: 400 13px/1.2 var(--font-mono); color: #555; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-browser__view { position: relative; aspect-ratio: 1440 / 900; background: var(--fo-paper); }
.fo-browser__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s; }
.fo-browser__shot.is-on { opacity: 1; }
.fo-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: var(--s2); }
.fo-lang .fo-browser__shot { transition: opacity .45s, filter .45s; }

/* ---------- Telefonid ---------- */
.fo-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 4rem); max-width: 1000px; }
.fo-phones figure { margin: 0; }
.fo-phones img { display: block; width: 100%; height: auto; border-radius: 22px; border: 6px solid var(--fo-ink); background: #fff; }
.js-fo .fo-phones figure { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s var(--fo-ease); }
.js-fo .fo-phones figure:nth-child(2) { transition-delay: .12s; }
.js-fo .fo-phones figure:nth-child(3) { transition-delay: .24s; }
.js-fo .fo-phones.is-play figure { opacity: 1; transform: none; }

/* ---------- Pilt seinale ---------- */
/* Sein on 360 cm lai ja 250 cm kõrge (põrand 27 cm); --u on üks sentimeeter. Diivan 210 × 85 cm, pildi alumine serv 25 cm diivanist kõrgemal. */
.fo-wall { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s4) clamp(1.5rem, 4vw, 4rem); align-items: center; }
.fo-wall__stage { position: relative; aspect-ratio: 360 / 250; container-type: inline-size; background: linear-gradient(#ecebe7 0 89.2%, #d9d6cf 89.2%); border-radius: 14px; overflow: hidden; color: #6b7378; }
.fo-wall__room { position: absolute; inset: 0; --u: calc(100cqw / 360); transition: opacity .4s; }
.fo-wall__sofa { position: absolute; left: calc(75 * var(--u)); bottom: calc(27 * var(--u)); width: calc(210 * var(--u)); height: calc(85 * var(--u)); }
.fo-wall__pic { position: absolute; left: 50%; bottom: calc((27 + 85 + 22) * var(--u)); width: calc(var(--w, 59) * var(--u)); height: calc(var(--h, 48) * var(--u)); transform: translateX(-50%); transition: width .5s var(--fo-ease), height .5s var(--fo-ease), padding .4s, background .4s, border-color .4s; box-sizing: border-box; }
.fo-wall__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* raamitud: raam 2 cm, valge paspartuu */
.fo-wall__stage[data-kind=frame] .fo-wall__pic { border: calc(2 * var(--u)) solid #161616; padding: calc(var(--w, 59) * .09 * var(--u)); background: #fbfbf8; box-shadow: 0 calc(1.2 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.18); }
.fo-wall__stage[data-p=valge] .fo-wall__pic { border-color: #f4f4f2; box-shadow: 0 0 0 1px #d6d4ce, 0 calc(1.2 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.14); }
.fo-wall__stage[data-p=tamm] .fo-wall__pic { border-color: #b48a5a; }
.fo-wall__stage[data-kind=kapa] .fo-wall__pic { box-shadow: calc(.6 * var(--u)) calc(.9 * var(--u)) 0 #c9c6bf; }
.fo-wall__stage[data-kind=print] .fo-wall__pic { padding: calc(1.6 * var(--u)); background: #fff; box-shadow: 0 0 0 1px #dedbd4; }
.fo-wall__ruler { position: absolute; left: 50%; bottom: calc((27 + 85 + 22) * var(--u) - 4.6 * var(--u)); width: calc(var(--w, 59) * var(--u)); height: 8px; transform: translateX(-50%); border: 1px solid #8a949a; border-top: 0; transition: width .5s var(--fo-ease); }
.fo-wall__ruler b { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; color: #4d565b; white-space: nowrap; }
/* litsents: sama pilt kasutuses */
.fo-wall__use { position: absolute; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.fo-wall__stage[data-kind=web] .fo-wall__use--web, .fo-wall__stage[data-kind=printlic] .fo-wall__use--print { opacity: 1; visibility: visible; }
.fo-wall__stage[data-kind=web] .fo-wall__room, .fo-wall__stage[data-kind=printlic] .fo-wall__room { opacity: 0; }
.fo-wall__use--web { inset: 9% 12%; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px #d6d4ce; overflow: hidden; display: flex; flex-direction: column; }
.fo-wall__bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #efefef; font: 400 11px/1 var(--font-mono); color: #777; }
.fo-wall__bar i { width: 7px; height: 7px; border-radius: 50%; background: #cfcfcf; }
.fo-wall__bar span { margin-left: 8px; }
.fo-wall__hero { position: relative; flex: 0 0 58%; overflow: hidden; }
.fo-wall__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fo-wall__hero p { position: absolute; left: 6%; bottom: 10%; margin: 0; font: 600 clamp(.9rem, 2.4cqw, 1.7rem)/1.1 var(--fo-font); color: #fff; }
.fo-wall__lines { display: grid; gap: 7px; padding: 5% 6% 0; }
.fo-wall__lines i { height: 7px; border-radius: 4px; background: #e6e4df; }
.fo-wall__lines i:last-child { width: 60%; }
.fo-wall__use small { margin: auto 6% 4%; font-size: 10px; color: #8a949a; }
.fo-wall__use--print { inset: 6% 0; display: grid; place-items: center; }
.fo-wall__page { position: relative; width: calc(100cqw * .3); aspect-ratio: 210 / 297; background: #fff; box-shadow: 0 0 0 1px #d6d4ce, 8px 10px 0 -2px #e2dfd8; display: flex; flex-direction: column; overflow: hidden; }
.fo-wall__page img { width: 100%; height: 52%; object-fit: cover; display: block; }
.fo-wall__page p { margin: 6% 8% 0; font: 600 clamp(.8rem, 2cqw, 1.3rem)/1 var(--fo-font); color: var(--fo-ink); }
.fo-wall__page .fo-wall__lines { padding: 5% 8% 0; gap: 5px; }
.fo-wall__page .fo-wall__lines i { height: 5px; }
.fo-wall__page small { margin: auto 8% 6%; font-size: 9px; color: #8a949a; }
.fo-wall__ctl { display: grid; gap: var(--s3); }
.fo-wall__l { display: block; margin-bottom: .6rem; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fo-wall__g div { display: flex; flex-wrap: wrap; gap: 6px; }
.fo-wall__price { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; padding-top: var(--s2); border-top: 1px solid var(--line-strong); }
.fo-wall__price span { font-size: var(--fs-small); color: var(--muted); }
.fo-wall__price b { font: 500 clamp(2rem, 3.4vw, 3rem)/1 var(--fo-font); font-variant-numeric: tabular-nums; }
.fo-wall__note { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.fo-wall__go { font-weight: 600; color: inherit; }

/* ---------- Litsents pildi sees ---------- */
.fo-lic { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.fo-lic .fo-k { color: #6b7378; }
.fo-ld__code { display: grid; padding: var(--s3); background: var(--fo-ink); border-radius: 10px; font: 400 13px/1.5 var(--font-mono); color: #9aa3a8; }
.fo-ld__b { padding: .2rem .4rem; }
.fo-ld__row { display: block; width: 100%; margin: 0; padding: .45rem .4rem .45rem 1.6rem; border: 0; border-radius: 4px; background: none; color: #cfd5d8; font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; transition: background .25s; }
.fo-ld__row:hover, .fo-ld__row[aria-pressed=true] { background: rgba(255,255,255,.08); }
.fo-ld__k { color: #c9a45c; }
.fo-ld__v { color: #9fd3b0; }
.fo-ld__say { min-height: 3.2em; margin: var(--s2) 0 0; max-width: 46ch; line-height: 1.55; color: #3a4348; }
.fo-serp { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #dedbd4; overflow: hidden; font-family: Arial, sans-serif; color: #202124; }
.fo-serp__q { padding: 12px 16px; border-bottom: 1px solid #eee; }
.fo-serp__q span { display: block; max-width: 360px; padding: 9px 16px; border-radius: 24px; box-shadow: 0 0 0 1px #dfe1e5; font-size: 14px; }
.fo-serp__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.fo-serp__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; align-content: start; }
.fo-serp__thumbs span { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; background: #eef0f1; }
.fo-serp__thumbs .is-sel { outline: 2px solid #1a73e8; outline-offset: 1px; }
.fo-serp__thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.fo-serp__thumbs em { position: absolute; left: 5px; bottom: 5px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.72); font: 400 10px/1.3 Arial, sans-serif; font-style: normal; color: #fff; }
.fo-serp__panel { padding: 12px 16px 16px; border-left: 1px solid #eee; }
.fo-serp__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.fo-serp__site { margin: 10px 0 2px; font-size: 12px; color: #5f6368; }
.fo-serp__title { margin: 0 0 8px; font-size: 16px; line-height: 1.3; }
.fo-serp__badge { display: inline-block; margin: 0 0 8px; padding: 3px 8px; border-radius: 4px; background: #e8f0fe; font-size: 12px; color: #174ea6; }
.fo-serp dl { margin: 0 0 8px; font-size: 12px; }
.fo-serp dl div { display: flex; gap: .5rem; padding: 2px 0; }
.fo-serp dt { color: #5f6368; } .fo-serp dd { margin: 0; }
.fo-serp__link { margin: 4px 0 0; font-size: 13px; color: #1a0dab; }
.fo-serp [data-f] { border-radius: 6px; transition: box-shadow .3s, background .3s; }
.fo-lic [data-f].is-hl { box-shadow: 0 0 0 3px var(--fo-pen); background-color: rgba(226,70,47,.08); }

/* ---------- Numbrid ja kutse ---------- */
.fo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); border-top: 1px solid var(--line-strong); padding-top: var(--s3); }
.fo-stats b { display: block; font: 400 clamp(2.8rem, 6vw, 5.5rem)/1 var(--fo-font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fo-stats span { font-size: var(--fs-small); color: var(--muted); }
.fo-cta { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: end; }
.fo-cta h2 { grid-column: 1 / span 8; margin: 0; font: 600 clamp(2rem, 4.4vw, 4rem)/1.05 var(--font-sans); letter-spacing: -.02em; }
.fo-cta div { grid-column: 9 / -1; display: grid; gap: var(--s2); }
.fo-cta p { margin: 0; color: #b9c1c5; }
.fo-cta a.fo-go { display: inline-flex; justify-content: center; align-items: center; height: 52px; padding: 0 1.5rem; background: #fff; color: var(--fo-ink); font-weight: 600; text-decoration: none; }
.fo-cta a.fo-go:hover { background: #dfe4e6; }

@media (max-width: 900px) {
  .fo-sheet, .fo-wall, .fo-lic { grid-template-columns: 1fr; }
  .fo-sheet__look { position: static; order: -1; }
  .fo-serp__body { grid-template-columns: 1fr; }
  .fo-serp__thumbs { display: none; }
  .fo-serp__panel { border-left: 0; }
  .fo-phones { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); }
  .fo-phones figure { scroll-snap-align: center; }
  .fo-stats { grid-template-columns: 1fr 1fr; row-gap: var(--s4); }
  .fo-cta h2, .fo-cta div { grid-column: 1 / -1; }
  .fo-view__frame { width: 70vw; }
}
@media (max-width: 560px) {
  .fo-sheet__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px; }
  .fo-sheet__n { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .fo-view__af { animation: none; }
  .fo-view__frame, .fo-view__img, .fo-browser__shot, .fo-wall__pic, .fo-wall__ruler, .fo-ring path { transition: none; }
  .js-fo .fo-phones figure { opacity: 1; transform: none; transition: none; }
}
