/*
  Measurements copied from the live Squarespace site (tibetanmedicine.eu).
  Type scale: size = (setting − 1) × 1.2vw + 1rem, the same formula Squarespace uses.
  Layout: 24-column grid, 4vw side gutter, 11px gap, max width 1800px,
  row height = container width × 0.0215, section padding 3.3vw.
*/
:root{
  --maroon:#4e1414;
  --beige:#f8eee3;
  --heading:"Newsreader",Georgia,serif;
  --body:"Figtree",system-ui,-apple-system,sans-serif;
  --button:"proxima-nova","Figtree",system-ui,sans-serif;
  --quote:"Palatino Linotype","Book Antiqua",Palatino,serif;

  --step:1.2vw;
  --h1:calc(3.3 * var(--step) + 1rem);   /* setting 4.3 */
  --h2:calc(2.3 * var(--step) + 1rem);   /* setting 3.3 */
  --h3:calc(1.3 * var(--step) + 1rem);   /* setting 2.3 */
  --h4:calc(.5 * var(--step) + 1rem);    /* setting 1.5 */
  --p-large:calc(.4 * var(--step) + 1rem); /* setting 1.4 */
  --p:calc(.1 * var(--step) + 1rem);     /* setting 1.1 */
  --p-small:1rem;                        /* setting 1.0 */
  --btn:calc(.2 * var(--step) + 1rem);   /* setting 1.2 */

  --gutter:4vw;
  --gap:11px;
  --max:1800px;
  --container:min(var(--max), calc(100vw - var(--gutter) * 2));
  --cell:calc((var(--max) - var(--gap) * 23) / 24);
  --row:calc(var(--container) * .0215);
  --sec-pad:3.3vw;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;font-size:16px}
body{margin:0;font-family:var(--body);color:#000;font-size:var(--p);line-height:1.5;letter-spacing:-.01em;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:var(--maroon)}

h1,h2,h3,h4{font-family:var(--heading);font-weight:500;letter-spacing:normal;margin:0}
h1{font-size:var(--h1);line-height:1.0416}
h2{font-size:var(--h2);line-height:1.0896;letter-spacing:-.02em}
h3{font-size:var(--h3);line-height:1.1376;letter-spacing:-.02em}
h4{font-size:var(--h4);line-height:1.176;letter-spacing:-.02em}
.faq summary{letter-spacing:-.02em}
p{margin:0 0 1rem}
p:last-child{margin-bottom:0}
.large{font-size:var(--p-large)}
.small{font-size:var(--p-small)}
.tiny{font-size:.8rem}
ul{margin:1em 0;padding-left:1.4em}
ul:first-child{margin-top:0}
ul:last-child{margin-bottom:0}
li p,li p:last-child{margin:.5em 0}

/* ---------- Sections & fluid grid ---------- */
.sec{position:relative;padding:var(--sec-pad) 0;min-height:33vh;display:flex;flex-direction:column;justify-content:center}
.sec>.fe{width:100%}
.white{background:#fff}
.beige{background:var(--beige)}
.maroon{background:var(--maroon);color:#fff}
.maroon a{color:#fff}
.bgimg{background:#000 var(--bg) center/cover no-repeat;color:#fff}
.bgimg::before{content:"";position:absolute;inset:0;background:#000;opacity:var(--ov,0)}
.bgimg>*{position:relative}
.bgimg a{color:#fff}

.fe{
  display:grid;
  grid-template-columns:minmax(calc(var(--gutter) - var(--gap)),1fr) repeat(24,minmax(0,var(--cell))) minmax(calc(var(--gutter) - var(--gap)),1fr);
  grid-template-rows:repeat(var(--rows,1),minmax(var(--row),auto));
  grid-auto-rows:minmax(var(--row),auto);
  gap:var(--gap);
}
.gallery{--row:calc(var(--container) * .01337)}
.b{grid-area:var(--a);min-width:0;position:relative}
.c{text-align:center}
.r{text-align:right}
.b.img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.shape.fill{background:var(--beige)}
.shape.card{background:#fff;border:2px solid var(--beige)}
.fillbox{align-self:start;background:var(--beige);color:#000;font-family:var(--quote);font-size:var(--p);line-height:1.5;padding:calc((var(--container) - var(--gap) * 23) / 24 + var(--gap))}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);margin:24px 0}
.step{background:#fff;padding:32px 28px;text-align:center}
.step h4{margin:20px 0 10px}
#soovita .large{font-size:calc(.25 * var(--step) + 1rem);margin-top:-12px}
#soovita .btnb{padding-top:22px}
.step-num{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--maroon);color:#fff;font-family:var(--heading);font-size:22px}
.hrb{display:flex;align-items:center}
.hrb hr{width:100%;border:0;height:1px;background:#000;margin:0}
.quote{border:2px solid var(--beige);padding:32px;align-self:start}
.quote blockquote{margin:0;font-family:var(--quote);font-size:var(--p);line-height:1.5}

/* ---------- Buttons (fill their grid block, like Squarespace) ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;font-family:var(--button);font-weight:500;font-size:var(--btn);line-height:normal;letter-spacing:normal;padding:0 2.004em;text-decoration:none;border:2px solid var(--maroon);transition:opacity .2s,background .2s,color .2s;cursor:pointer}
/* Every button: same height (62px) and same side padding; width follows the text */
.btn{height:62px}
.btnb{display:flex;align-items:flex-start}
.btnb.c{justify-content:center}
.btnb.r{justify-content:flex-end}
.btnb.bottom{align-items:flex-end}
.btn-outline{background:transparent;color:var(--maroon)}
.btn-outline:hover{background:var(--maroon);color:#fff}
.btn-solid{background:var(--maroon);color:#fff}
.btn-solid:hover{opacity:.85}
.btn-light{background:transparent;color:#fff;border-color:#fff}
.btn-light:hover{background:#fff;color:var(--maroon)}
.maroon .btn-solid,.bgimg .btn-solid{color:#fff}
.btn-pair{gap:10px}
.btn-pair .btn{flex:1;padding:0 .8em}

/* ---------- Announcement bar ---------- */
.announce{position:relative;background:var(--maroon);color:#fff;text-align:center;padding:.8rem 3rem;font-size:1rem;line-height:1.5}
.announce p{margin:0}
.announce a,.announce u{color:#fff}
.announce-close{position:absolute;right:16px;top:50%;transform:translateY(-50%);background:none;border:0;font-size:20px;cursor:pointer;line-height:1;color:#fff}

/* ---------- Header (overlays hero) ---------- */
.hero{min-height:66vh;padding:calc(6vw + 100px + var(--sec-pad) * 2) 0 calc(var(--sec-pad) * 2)} /* top padding = header height (3vw + 100px logo + 3vw), like the live site */
.site-header{position:absolute;top:0;left:0;right:0;z-index:5;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:3vw 4vw;gap:24px}
.nav{display:flex;flex-wrap:wrap;gap:0 1.1em}
.nav a{color:#fff;text-decoration:none;font-size:var(--p);line-height:1.5;border-bottom:1px solid transparent}
.nav a.active,.nav a:hover{border-bottom-color:#fff}
.logo img{height:100px;width:auto}
.header-cta{justify-self:end}

.burger{display:none;justify-self:end;background:none;border:0;width:36px;height:28px;cursor:pointer;flex-direction:column;justify-content:space-around}
.burger span{display:block;height:2px;background:#fff}
.mobile-menu{display:none}

/* ---------- Banners ---------- */
.banner{min-height:66vh;padding:calc(var(--sec-pad) * 2) 0}

/* ---------- News ---------- */
.news-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2%;padding-bottom:39px}
.news-card{text-decoration:none;color:#000}
.news-card img{width:100%;aspect-ratio:16/9;object-fit:cover;margin-bottom:15px}
.news-card span{display:block;font-size:20px;line-height:30px;margin-bottom:2px}
.news-card:hover span{text-decoration:underline}

/* ---------- FAQ accordion ---------- */
.faq details{border-top:1px solid #000}
.faq details:last-child{border-bottom:1px solid #000}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 0;font-family:var(--heading);font-weight:500;font-size:var(--h4);line-height:normal}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-family:var(--body);font-weight:300;font-size:1.6rem;line-height:1;transition:transform .25s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq-a{padding:0 0 30px}

/* ---------- Map ---------- */
.map iframe{width:100%;height:100%;min-height:300px;border:0;display:block}

/* ---------- Newsletter (MailerLite form, laid out like the live site) ---------- */
.newsletter{color:#000}
.nl{background:var(--beige);color:#000;padding:3.2vw;text-align:center;align-self:center} /* box hugs its content: same space below the small print as above the heading */ /* live: padding scales with the window (41px at 1280px wide) */
.nl h2{font-size:var(--h3);line-height:1.2;max-width:85%;margin:0 auto 16px}
.nl h2+p{max-width:85%;margin:16px auto 0}
.nl form{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:8px 12px;margin:0;padding:40px 0}
.nl .ml-form-formContent{flex:0 1 280px;min-width:0}
.nl .ml-form-embedSubmit{flex:none}
.nl .ml-field-group{margin:0}
.nl input[type=email]{display:block;width:100%;height:62px;margin:0;padding:0 32px;border:1px solid rgba(0,0,0,.12);border-radius:0;font:inherit;font-size:var(--p);background:#fff;color:#000}
.nl button{height:62px;margin:0;background:#000;color:#fff;border:0;padding:0 2.004em;font:500 var(--btn) var(--button);cursor:pointer;transition:opacity .2s}
.nl button:hover{opacity:.85}
.nl button.loading{width:170px;display:inline-flex;align-items:center;justify-content:center}
.nl .ml-error input{border-color:#c00}
.nl .tiny{font-size:1rem;line-height:24px;margin:0}
.ml-form-successBody{padding:40px 0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.ml-form-embedSubmitLoad{display:inline-block;width:20px;height:20px}
.ml-form-embedSubmitLoad:after{content:"";display:block;width:11px;height:11px;margin:1px;border-radius:50%;border:4px solid #fff;border-color:#fff #fff #fff transparent;animation:ml-spin 1.2s linear infinite}
@keyframes ml-spin{to{transform:rotate(360deg)}}

/* ---------- Footer ---------- */
.footer{min-height:0}
.footer .logo-b img{object-fit:contain;object-position:left center}

/* ---------- Mobile: blocks stack in reading order ---------- */
@media (max-width:767px){
  :root{--gutter:6vw}
  .fe{display:flex;flex-direction:column;gap:28px;padding:0 var(--gutter)}
  .b{grid-area:auto}
  .sec{min-height:0;padding:48px 0}
  .hero,.banner{min-height:70vh;padding-top:120px}
  .shape{display:none}
  .on-fill{background:var(--beige);color:#000;padding:28px}
  .fillbox{padding:28px}
  .steps{grid-template-columns:1fr;margin:8px 0}
  .on-fill + .on-fill{margin-top:-28px;padding-top:0}
  .b.img{margin:0 calc(var(--gutter) * -1)}
  .b.img img{position:static;height:auto;max-height:520px}
  .b.img:not(.logo-b) img{aspect-ratio:3/2;max-height:none;object-fit:cover}

  .r{text-align:left}
  .btnb.r{justify-content:flex-start}
  .site-header{grid-template-columns:1fr auto;padding:20px var(--gutter)}
  .nav,.header-cta{display:none}
  .burger{display:flex}
  .logo img{height:64px}
  body.menu-open .mobile-menu{display:flex;position:fixed;inset:0;z-index:50;background:var(--maroon);flex-direction:column;align-items:center;justify-content:center;gap:24px}
  .mobile-menu a{color:#fff;font-size:1.5rem;text-decoration:none;font-family:var(--heading)}
  .mobile-menu .btn{margin-top:12px}
  body.menu-open .burger{position:fixed;right:var(--gutter);top:36px;z-index:60}
  .news-grid{grid-template-columns:1fr 1fr;gap:20px 12px}
  .news-card span{font-size:1.05rem;line-height:1.4}
  .gallery .fe{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:0}
  .gallery .b.img{margin:0}
  .gallery .b.img img{height:180px}
  .nl{padding:32px 20px;align-self:stretch}
  .nl h2,.nl h2+p{max-width:none}
  .nl form{flex-direction:column;align-items:stretch;padding:28px 0}
  .nl .ml-form-formContent{flex:none}
  .nl input[type=email]{width:100%}
  .nl button{width:100%}
  .map iframe{min-height:320px}
  .footer .copy{margin-top:24px} /* clear space between the disclaimer and the copyright line */
  .footer .logo-b{margin:0} /* not an edge-to-edge photo: line up with the footer text */
  .footer .logo-b img{height:60px;width:auto}
}

/* ---------- Blog: Artiklid list (blog/index.html) — measured from the live /blog page ---------- */
.hero.hero-sm{padding:calc(6vw + 100px + var(--sec-pad)) 0 var(--sec-pad)}
.blog-list{width:var(--container);margin:0 auto;padding:var(--gutter) 0 calc(var(--gutter) + 125px)}
.post-card{display:flex;align-items:center;gap:3vw;margin-bottom:95px}
.post-card:last-child{margin-bottom:0}
.post-card-img{flex:0 0 45%;display:block}
.post-card-img img{width:100%;aspect-ratio:16/9;object-fit:cover}
.post-card-text{flex:1;min-width:0}
.blog-date{display:block;font-family:var(--button);font-weight:600;font-size:var(--p);line-height:1;margin-bottom:20px}
.blog-title{font-size:calc(var(--h2) * .7);line-height:1.2;margin:0 0 1px}
.blog-title a{color:#000;text-decoration:none}
.blog-title a:hover{text-decoration:underline}
.blog-excerpt p{margin:16px 0}
.read-more{display:inline-block;font-size:var(--p);color:var(--maroon);text-decoration:underline;text-underline-offset:.18em}
.read-more:hover{text-decoration-thickness:2px}

/* ---------- Blog: article pages (blog/<slug>/index.html) ---------- */
.site-header.on-light{position:relative}
.on-light .nav a{color:#000}
.on-light .nav a.active,.on-light .nav a:hover{border-bottom-color:#000}
.on-light .logo img{filter:brightness(0)} /* the logo file is white; live shows it white-on-white */
.on-light .burger span{background:#000}
body.menu-open .burger span{background:#fff}
/* Article reading layout: tuned for long-form reading rather than copied from the live site.
   ~68 characters per line, 19-20px text, 1.75 line height, regular weight, clear heading rhythm. */
.post{--read:clamp(16.5px, calc(.15 * var(--step) + 1rem), 18.5px);width:min(calc(100% - var(--gutter) * 2), 720px);margin:0 auto;padding:4vw 0 0}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:0 11px;font-family:var(--button);font-weight:600;font-size:var(--p);line-height:1;margin-bottom:42px}
.post-title{font-size:calc(var(--h1) * .7);line-height:1.15;letter-spacing:-.01em;margin:0 0 48px;text-wrap:balance}
.post-body{margin-bottom:38.4px;font-size:var(--read);line-height:1.75;letter-spacing:-.011em;font-weight:400;color:#1c1c1c;text-wrap:pretty;overflow-wrap:break-word}
.post-body strong,.post-body b{font-weight:600;color:#000}
.post-body a{color:var(--maroon);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
.post-body a:hover{text-decoration-thickness:2px}
.post-body a.btn{text-decoration:none}
.post-body a.btn-solid,.post-body a.btn-outline:hover{color:#fff}
.pb{padding:20px 0}
.pb:first-child{padding-top:0}
.pb.text p{margin:32px 0} /* double the live spacing between paragraphs */
.pb.text p.large{font-size:1.15em;line-height:1.6;font-weight:500;color:#000} /* summary paragraphs */
.pb.text>:first-child{margin-top:0}
.pb.text>:last-child{margin-bottom:0}
.pb.text h2,.pb.text h3,.pb.text h4{color:#000;line-height:1.2;letter-spacing:-.01em;text-wrap:balance}
.pb.text h2{font-size:var(--h3);margin:64px 0 20px}
.pb.text h3{font-size:var(--h3);margin:64px 0 20px}
.pb.text h4{font-size:calc(var(--h4) * 1.1);margin:48px 0 12px}
.pb.text>:first-child:is(h2,h3,h4){margin-top:0}
.pb.text h2+p,.pb.text h3+p,.pb.text h4+p{margin-top:0}
.pb.text ul,.pb.text ol{margin:24px 0;padding-left:1.6em}
.pb.text li{padding-left:.3em}
.pb.text li+li{margin-top:10px}
.pb.text li p{margin:0}
.pb.text li::marker{color:#555}
/* numbered sections that start with a headline (e.g. "Kui massaaž ei aita"): number matches the headline */
.pb.text li:has(>h3:first-child)::marker{font-family:var(--heading);font-weight:500;font-size:var(--h3);color:#000}
.pb.text li:has(>h3)+li:has(>h3){margin-top:0}
.pb.text li:has(>h3) p{margin:32px 0}
.pb.text li:has(>h3) h3+p{margin-top:0}
.pb figure{margin:0}
.pb figure img{width:100%;height:auto}
.pb figcaption{font-size:.85em;line-height:1.55;color:#555}
.pb figcaption p{margin:12px 0 0}
.pb.line hr{border:0;height:1px;background:rgba(0,0,0,.25);margin:16px 0}
.pb.button{display:flex;justify-content:center}
.pb.button.left{justify-content:flex-start}
.pb.button.right{justify-content:flex-end}
.video-frame{position:relative;height:0}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* same width as the footer content (grid lines 4 to 24: the container minus two columns each side) */
.post-pagination{--col:calc((var(--container) - var(--gap) * 23) / 24);width:calc(var(--container) - (var(--col) + var(--gap)) * 4);margin:0 auto;display:flex;justify-content:space-between;align-items:flex-start;gap:27px;padding:calc(76.8px + 4vw) 0 38.4px}
.pag{--fs:calc(var(--h3) * .7);display:flex;align-items:flex-start;gap:20px;max-width:42%;color:#000;text-decoration:none}
.pag.next{margin-left:auto;text-align:right}
.pag-title{font-family:var(--heading);font-weight:500;font-size:var(--fs);line-height:1.25;max-width:15em;text-wrap:balance} /* long titles break onto 2–3 even lines */
.pag.prev::before,.pag.next::after{content:"";flex:0 0 auto;width:13px;height:13px;margin-top:calc(var(--fs) * .625 - 6.5px);border:solid #000;border-width:0 0 2px 2px;transform:rotate(45deg)}
.pag.next::after{transform:rotate(-135deg)}
.pag:hover .pag-title{text-decoration:underline}

@media (max-width:767px){
  .hero.hero-sm{padding:120px 0 48px}
  .blog-list{width:auto;padding:48px var(--gutter)}
  .post-card{flex-direction:column;align-items:stretch;gap:20px;margin-bottom:56px}
  .post-card-img{flex:none}
  .post{width:auto;padding:32px var(--gutter) 0}
  .post-title{font-size:39px;margin-bottom:32px}
  .post-body{line-height:1.65}
  .pb.text h2,.pb.text h3{font-size:31px;margin:48px 0 16px}
  .pb.text li:has(>h3:first-child)::marker{font-size:31px}
  .pb.text ul,.pb.text ol{padding-left:24px}
  .post-pagination{width:auto;gap:16px;padding:48px var(--gutter) 40px}
  .pag{--fs:18px;max-width:50%;gap:10px}
  .on-light .site-header,.site-header.on-light{padding:20px var(--gutter)}
}


/* Massage sections: less space between them (outer edges keep the normal padding) */
:is(#konsultatsioon,#lymfimassaaz,#lymfimassaaznagu,#neurosedatiiv,#kombineeritud){padding-top:1.5vw}
:is(#kunye,#konsultatsioon,#lymfimassaaz,#lymfimassaaznagu,#neurosedatiiv){padding-bottom:1.5vw}
@media (max-width:767px){
  :is(#konsultatsioon,#lymfimassaaz,#lymfimassaaznagu,#neurosedatiiv,#kombineeritud){padding-top:24px}
  :is(#kunye,#konsultatsioon,#lymfimassaaz,#lymfimassaaznagu,#neurosedatiiv){padding-bottom:24px}
}


/* Massage sections: tighter space under the headline */
@media (min-width:768px){
  :is(#kunye,#konsultatsioon,#lymfimassaaz,#lymfimassaaznagu,#neurosedatiiv,#kombineeritud) .b:has(>h2) + .b{margin-top:-20px}
}
@media (max-width:767px){
  :is(#kunye,#konsultatsioon,#lymfimassaaz,#lymfimassaaznagu,#neurosedatiiv,#kombineeritud) .b:has(>h2) + .b{margin-top:-6px}
}

/* Massage sections on mobile: same order everywhere (photo, headline, text, beige box, button, link, quote) */
@media (max-width:767px){
  .m-sec .b{order:3}
  .m-sec .b:has(>h2){order:2}
  .m-sec .btnb{order:5}
  .m-sec .btnb ~ .b{order:6}
  .m-sec .b.quote{order:7}
  .m-sec .b.fillbox{order:4}
  .m-sec .b.img{order:1}

}

/* Mobile: all headlines 30% larger */
@media (max-width:767px){
  :root{
    --h1:calc((3.3 * var(--step) + 1rem) * 1.3);
    --h2:calc((2.3 * var(--step) + 1rem) * 1.3);
    --h3:calc((1.3 * var(--step) + 1rem) * 1.3);
    --h4:calc((.5 * var(--step) + 1rem) * 1.3);
  }
  h1,h2,h3,h4{hyphens:auto;overflow-wrap:break-word}
}


/* Mobile: "Vaata kõiki" goes below the article cards */
@media (max-width:767px){
  .news .news-all{order:2;justify-content:center}
  .news .news-grid{padding-bottom:5px}
}

/* Mobile: double the space after each price card in the Broneeri seanss section */
@media (max-width:767px){
  #hinnakiri .btn-pair,#hinnakiri .card-end{margin-bottom:28px}
}

/* Mobile menu: burger turns into an X while the menu is open */
.burger span{transition:transform .25s}
body.menu-open .site-header{z-index:60}
body.menu-open .site-header .logo{visibility:hidden}
body.menu-open .burger{justify-content:center}
body.menu-open .burger span:first-child{transform:translateY(1px) rotate(45deg)}
body.menu-open .burger span:last-child{transform:translateY(-1px) rotate(-45deg)}

/* Mobile: double the space after each therapy description in Toetavad Tiibeti Teraapiad */
@media (max-width:767px){
  .toetavad .b:has(>h4) + .b:not(:last-child){margin-bottom:28px}
}

/* Mobile: double the space between the gift card text and the photo */
@media (max-width:767px){
  .kinkekaardid .b:has(+ .b.img){margin-bottom:28px}
}

/* Mobile: Asukoht, gallery, Sinu terapeut, Tiibeti Meditsiini põhitõed, footer */
@media (max-width:767px){
  #asukoht .b.img{margin:0}                                   /* house photo inside the side padding */
  .gallery{padding-bottom:0}
  .gallery .fe{grid-template-rows:none;grid-auto-rows:auto}   /* no empty rows under the four photos */
  #minust .b.img img{aspect-ratio:4/5;object-position:50% 0}  /* portrait, head not cut */
  #minust .b:has(>h4){margin-top:28px}                        /* 2x space above Erialane haridus */
  #minust .year{margin-bottom:-22px}                          /* year sits close to its text */
  #tiibetimeditsiinist .b:has(>h3):not(.on-fill){margin-top:28px}
  .footer .logo-b img{height:84px}
}

/* Mobile: double the space above each small headline in Miks valida Tiibeti Teraapiad */
@media (max-width:767px){
  .miks .b:has(>h4){margin-top:28px}
  .miks .b:has(>h4) + .b{margin-top:-14px}
}

/* Gentle scroll-in animation (classes added by anim.js) */
.anim-ready .anim{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.anim-ready .anim.anim-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .anim-ready .anim{opacity:1;transform:none;transition:none}
}


/* Massage description sections: text, button, link and quote flow as one block with fixed spacing */
.flow{align-self:start}
.flow p:has(+ .flow-btn){margin-bottom:0}
.flow-btn{display:flex;margin:24px 0 16px}
.flow-btn + p{margin-top:0}
.flow .quote{margin-top:40px}
@media (max-width:767px){
  .m-sec .flow{display:contents}
  .m-sec .flow > *{order:3;margin:0}
  .m-sec .flow-btn{order:5}
  .m-sec .flow-btn ~ *{order:6}
  .m-sec .flow .quote{order:7}
}

/* Desktop: Kombineeritud (last massage section) has half the space below its content */
@media (min-width:768px){
  #kombineeritud{padding-bottom:1vw}
}

/* Soovita sõbrale: a bit more space on top, less at the bottom */
#soovita{padding-top:4.2vw;padding-bottom:2.64vw}
@media (max-width:767px){
  #soovita{padding-top:60px;padding-bottom:38px}
}

/* YouTube fallback when a page is opened from disk (see video.js) */
.video-fallback{position:absolute;inset:0;display:block;background:#000}
.video-fallback img{width:100%;height:100%;object-fit:cover;opacity:.9}
.video-play{position:absolute;left:50%;top:50%;width:68px;height:48px;margin:-24px 0 0 -34px;background:#f00;border-radius:12px}
.video-play::after{content:"";position:absolute;left:27px;top:14px;border-style:solid;border-width:10px 0 10px 17px;border-color:transparent transparent transparent #fff}
.video-fallback:hover .video-play{background:#c00}
