/* promotion.design
   Breakpoints (same as the old Uncode theme):
     mobile  < 570px
     tablet  570–959px
     desktop ≥ 960px */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/roboto-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/roboto-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Headings: Pathway Extreme 700 with the optical-size axis (opsz 8..12),
   from Google Fonts: css2?family=Pathway+Extreme:opsz,wght@8..12,700 */
@font-face {
  font-family: "Pathway Extreme";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/pathway-extreme-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Pathway Extreme";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/pathway-extreme-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #18ddb1;
  --blue: #31c3dc;
  --orange: #ff590a;
  --dark: #383838;
  --darker: #222;
  --gutter: 36px;
  --font: proxima-nova, sans-serif;
  --font-ui: "Roboto", sans-serif;
  --font-head: "Pathway Extreme", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--dark); -webkit-text-size-adjust: 100%; }

body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.75;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 2em 0 0; }
p:first-child { margin-top: 0; }
strong { font-weight: 600; }

h1, h2, h3, h4, h5, h6 { margin: 0; }
/* in the document outline, not on screen (pages whose design has no visible h1) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3, h4, h5, h6, .promo-big, .tile-title, .hero-title p {
  font-family: var(--font-head); font-weight: 700; font-optical-sizing: auto;
}
.promo-big strong { font-weight: inherit; }
/* long Estonian words must never push the page sideways */
/* last resort only: sizes below are chosen so that whole words fit */
h1, h2, h3, h4, .promo-big { overflow-wrap: break-word; }
h1, h2 { font-size: 32px; line-height: 1.2; letter-spacing: -0.05em; }
/* Blue headings: blue -> green gradient across the text itself. build.py wraps
   heading text in an inline <span>; box-decoration-break gives every line of a
   multi-line heading its own full gradient. */
h2, h1.h2 { color: var(--blue); }
h2 > span, h1.h2 > span, .intro h1 > span {
  background: linear-gradient(to right, var(--blue), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h3 { font-size: 25px; line-height: 1.25; letter-spacing: -0.05em; }
h4 { font-size: 20px; line-height: 1.2; letter-spacing: -0.05em; }
h5 { font-size: 17px; line-height: 1.2; color: var(--accent); }
h2.tight, h1.h2.tight { line-height: 1; }
h2.white, h2.light { color: #fff; }
h2.accent, h1.h2.accent { color: var(--accent); }
h2.white > span, h2.light > span, h2.accent > span, h1.h2.accent > span, .price-row h2 > span { background: none; -webkit-text-fill-color: currentColor; }

/* short line between a heading and its subtitle */
.sep { width: 90px; margin: 27px 0; border: 0; border-top: 2px solid #fff; }
.sep + p { margin-top: 0; }

/* Links inside running text: soft accent underline (from the old custom CSS) */
p a { box-shadow: 0 0.3em rgba(24, 221, 177, 0.3); }


/* ---------- layout ---------- */

.container { max-width: 1296px; margin: 0 auto; padding: 0 var(--gutter); }
.container.wide { padding: 0; }
.center { text-align: center; }

.section { padding: 72px 0; }
.section-text { padding: 108px 0 36px; }
.section-tiles { padding: 36px 0 108px; }
.bg-dark { background-color: var(--dark); }
.bg-darker { background-color: var(--darker); }
.bg-mid { background-color: #444; }
.bg-accent { background-color: var(--accent); background-size: cover; background-repeat: no-repeat; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
.col-start-10 { grid-column: 10 / span 3; }

.only-desktop, .only-mobile { display: none; }

/* ---------- header ---------- */

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; }
.header-bar { height: 154px; display: flex; align-items: center; }
.logo img { height: 100px; width: auto; }

.menu { position: absolute; top: 0; right: 0; left: 0; pointer-events: none; }
.menu ul {
  max-width: 1296px; margin: 0 auto; padding: 0 var(--gutter); list-style: none;
  display: flex; justify-content: flex-end; gap: 4px;
}
.menu a {
  pointer-events: auto;
  display: block; padding: 0 14px; line-height: 154px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s;
}
.menu li:first-child a { padding-left: 0; }
.menu li:last-child a { padding-right: 0; }
.menu a:hover, .menu a[aria-current] { color: var(--accent); }

.menu-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative; height: 80vh; min-height: 600px; overflow: hidden;
  background: #000 var(--poster) center / cover no-repeat;
  display: flex; align-items: flex-end;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-title { position: relative; width: 100%; padding-bottom: 108px; text-align: right; }
.hero-title h1, .hero-title p { color: #fff; }
/* same look as the h1 on pages whose real h1 is further down (Videograafia) */
.hero-title p { margin: 0; font-size: 32px; line-height: 1.2; letter-spacing: -0.05em; }

/* ---------- centered intro (Videograafia) ---------- */

.intro h1 { font-size: 75px; line-height: 1.2; color: var(--orange); }
.intro h1 > span { background-image: linear-gradient(to right, var(--orange), #e3dd00); }
.intro h1 + p { margin-top: 18px; }

.inline-video { width: 100%; height: auto; background: #000; }

/* ---------- Droonivideo: three text rows, 72/36 outside, 72 between ---------- */

.drone-text { padding: 72px 0 36px; }
.drone-text .grid + .grid { margin-top: 72px; }
h3.heavy { line-height: 1; color: #fff; }
strong.accent { color: var(--accent); }
strong.blue { color: var(--blue); }

/* ---------- running text ---------- */

.text p { margin-top: 36px; }
.text p:first-child { margin-top: 0; }

/* ---------- portfolio tiles ----------
   Column count follows the width of the grid itself, like the old Isotope
   grids: >= 1200px "lg", >= 960px "md", >= 480px "sm", narrower: one column. */

.tiles { container-type: inline-size; }
.tiles-grid { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
@container (min-width: 480px) { .tiles-grid { --cols: var(--cols-sm); } }
@container (min-width: 960px) { .tiles-grid { --cols: var(--cols-md); } }
@container (min-width: 1200px) { .tiles-grid { --cols: var(--cols-lg); } }
.tiles-w3 { --cols-lg: 4; --cols-md: 2; --cols-sm: 2; }
.tiles-w4 { --cols-lg: 3; --cols-md: 2; --cols-sm: 2; }
.tiles-w6 { --cols-lg: 2; --cols-md: 1; --cols-sm: 1; }
.tiles-w15 { --cols-lg: 5; --cols-md: 4; --cols-sm: 2; }

/* masonry (site.js): tiles in the shortest column, in order */
.tiles-grid.is-masonry { display: block; position: relative; }
.is-masonry > .tile { position: absolute; width: calc(100% / var(--cols, 1)); }

.tile { position: relative; display: block; overflow: hidden; aspect-ratio: var(--ratio); background: #000; container-type: inline-size; }
.tiles-w4 .tile { aspect-ratio: 432 / 242; }
.tiles-w3 .tile { aspect-ratio: 1 / 0.5625; }
.tiles-w3 .tile.tall { aspect-ratio: 1 / 1.778; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.57, 0.21, 0.69, 1), filter 0.3s cubic-bezier(0.57, 0.21, 0.69, 1);
}
.tile::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.11);
  opacity: 0; transition: opacity 0.2s ease-in-out 0.15s;
}
.tile-title {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  padding: 54px min(36px, 8cqw); text-align: center;
  /* shrinks with the tile so long words ("NAISTEKONVERENTS:") stay whole on narrow tiles */
  font-size: min(25px, 7cqw); font-weight: 700; line-height: 1; letter-spacing: -0.05em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); filter: grayscale(1); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tiles-gradient .tile::after { background: linear-gradient(90deg, #31c3dc, #18ddb1); mix-blend-mode: multiply; }
.tile:hover .tile-title, .tile:focus-visible .tile-title { opacity: 1; transform: none; transition-delay: 0.25s; }

/* tiles slide in when scrolled into view (site.js adds .is-visible) */
.js .reveal { opacity: 0; transform: translateY(60px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- features (icon boxes) ---------- */

.features { margin-top: 36px; row-gap: 36px; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 47px; height: 47px; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature h3 { margin-top: 27px; }
.feature p { margin-top: 36px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 31px; border-radius: 2px;
  background: var(--orange); color: #fff;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 4px 10px -5px rgba(0, 0, 0, 0.6);
  transition: background-color 0.2s;
}
.btn:hover { background: #e64f07; }
.btn svg { width: 12px; height: 12px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ---------- pricing promo ---------- */

.promo { background-position: center bottom; }
/* fixed height keeps the photo whole; text is centred, so smaller text on narrow
   desktops does not leave a gap on top */
.promo .grid { min-height: 400px; align-items: center; }
/* "ei hammusta!" is kept on one line (nbsp), so the size follows the column width */
.promo-big { margin: 0; font-size: min(69px, 5vw); line-height: 1; letter-spacing: -0.05em; color: #f7f7f7; }
/* regular-weight subheading: stays in the text font (Pathway Extreme is loaded in 700 only) */
.promo .promo-sub { margin-top: 36px; font-family: var(--font); font-weight: 400; }
.promo .btn { margin-top: 36px; }
/* the circle photo is part of the background image (944x1408, circle bottom at
   35.3% of its height). Narrow phones: image scales with the block height;
   wider: with the width (circle bottom = 52.65vw). Either way ~36px gap below it. */
.promo-mobile { background-position: center top; padding-top: max(240px, calc(52.65vw + 36px)); }
.promo-mobile .promo-sub { margin-top: 36px; }
.promo-mobile .btn { width: auto; margin: 36px 32px 0; }

/* ---------- logos ---------- */

.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px; margin-top: 36px; }
.logos img { width: 100%; height: auto; }

/* ---------- testimonials ---------- */

.quotes-section { padding-bottom: 72px; }
.quotes { position: relative; display: grid; transition: height 0.4s ease; }
.quote {
  grid-area: 1 / 1; align-self: start; margin: 0; padding: 0;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.quote.is-active { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
.quote p { margin-top: 36px; }
.quote-dots { display: flex; justify-content: center; gap: 12px; padding-top: 36px; }
.quote-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #fff; opacity: 0.4; cursor: pointer; }
.quote-dots button[aria-current] { opacity: 1; }

/* ---------- contact block + form ---------- */

.contact-block { padding-bottom: 0; }
.contact-links { margin-top: 0; }
.contact-links a { box-shadow: 0 0.3em rgba(24, 221, 177, 0.3); }
h2 + .contact-links { margin-top: 5px; }

.contact-form { display: flex; flex-wrap: wrap; align-items: flex-start; margin-top: 18px; }
.contact-form .field, .contact-form .side { margin: 5px 15px 5px 0; padding-top: 18px; }
.contact-form .field { border-bottom: 1px solid #fff; }
.contact-form .half { width: 45%; }
.contact-form .wide { width: 75%; }
.contact-form .side { width: 19%; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  display: block; width: 100%; margin: 0; padding: 10px 15px;
  background: none; border: 0; border-radius: 0; color: #fff;
  font: inherit; font-size: 18px; line-height: normal;
}
.contact-form textarea { height: 232px; resize: vertical; border: 1px solid rgba(255, 255, 255, 0.25); }
.contact-form ::placeholder { color: #fff; opacity: 1; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; background: rgba(255, 255, 255, 0.04); }
.contact-form .check { display: flex; align-items: center; gap: 4.5px; padding-top: 23px; font-weight: 600; cursor: pointer; }
.contact-form .check input {
  appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid #fff; border-radius: 50%;
}
.contact-form .check input:checked { background: var(--accent); border-color: var(--accent); }
.btn-line {
  padding: 10px 20px; border: 1px solid #fff; border-radius: 2px; background: none; color: #fff; cursor: pointer;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
}
.btn-line:hover { background: #fff; color: #333; }
.btn-line:disabled { opacity: 0.5; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { display: block; padding: 4px 15px 0; font-size: 14px; color: var(--orange); }
.form-status { width: 100%; margin: 18px 0 0; font-size: 16px; }
.contact-form[data-status="sent"] .form-status { color: var(--accent); }
.contact-form[data-status="invalid"] .form-status, .contact-form[data-status="failed"] .form-status { color: var(--orange); }

/* Cookie consent banner (see consent.js). Both buttons look the same on purpose:
   refusing must be as easy as agreeing. */
.pd-consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 100000;
  max-width: 420px; padding: 20px 22px;
  background: #1b1d1f; color: #fff; border-top: 2px solid #18ddb1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  font-size: 14px; line-height: 1.55;
}
.pd-consent[hidden] { display: none; }
body .pd-consent p { margin: 0 0 16px; color: #fff; font-size: 13px; line-height: 1.55; }
.pd-consent-actions { display: flex; gap: 10px; }
.pd-consent-actions button {
  flex: 1; padding: 10px 20px; cursor: pointer;
  background: none; color: #fff; border: 1px solid #fff; border-radius: 2px;
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.pd-consent-actions button:hover,
.pd-consent-actions button:focus-visible { background: #fff; color: #333; }
@media (max-width: 569px) {
  .pd-consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- Hinnad ---------- */

.prices { padding: 36px 0 0; }
.prices-lead h3 { font-size: 25px; line-height: 1.2; color: #777; text-align: center; }
.prices-lead { padding-bottom: 36px; }
.price-row { padding: 36px var(--gutter) 72px; }
.price-row + .price-row { padding-top: 36px; }
.price-row h2 { color: #fff; }
.price-row .middle { align-self: center; }
.col-9 { grid-column: span 9; }
.col-start-3 { grid-column: 3 / span 8; }

/* ---------- Kontakt ---------- */

.kontakt { padding: 72px 0 36px; }
.kontakt .grid { column-gap: 72px; }
.kontakt h2 + p, .kontakt h1 + p { margin-top: 36px; }
.kontakt p a { color: var(--accent); }
.kontakt-form { align-self: center; }
.kontakt-form .contact-form { margin-top: 0; }
.map-section { padding-top: 72px; }
.map { height: 410px; background: #ddd; }
.map-zoom { margin: 20px 0 0 20px; }
.map-zoom button {
  display: block; width: 25px; height: 25px; margin-bottom: 1px; padding: 0;
  border: 0; background: var(--accent); color: #fff; font-size: 16px; line-height: 25px; cursor: pointer;
}

/* ---------- 404 ---------- */

.notfound { display: flex; align-items: center; min-height: 100vh; padding: 154px 0 0; background: #666; }
.notfound .container { width: 100%; }
.notfound h1 { font-size: 125px; line-height: 0.5; color: var(--accent); }
.notfound h1 + p { margin-top: 24px; }
.notfound h4 { font-size: 20px; line-height: 1; letter-spacing: normal; }
.notfound .btn { margin-top: 38px; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------- pages without a hero: content starts under the header ---------- */

/* short pages keep the footer at the bottom of the screen, like the old theme */
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > :first-child { flex-grow: 1; }

.plain main { padding-top: 153px; background: var(--dark); }

/* ---------- portfolio item ---------- */

.work { padding: 36px 0; }
.work-video { position: relative; margin: 0 auto; background: #000; }
.work-video::before { content: ""; display: block; padding-top: var(--ratio); }
.work-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-video.square { width: 75%; }
.work-info { margin-top: 54px; }
.work-info p a { color: var(--accent); }

.work-nav { background: #191b1e; }
.work-nav .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
/* half the bar each; long titles wrap, the arrow stays at the outer edge */
.work-prev, .work-next {
  display: inline-flex; align-items: center; gap: 16px; max-width: 50%; min-height: 44px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; line-height: 20px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
a.work-prev:hover, a.work-next:hover { color: var(--accent); }
span.work-prev, span.work-next { opacity: 0.3; }
.work-prev svg, .work-next svg { flex: none; width: 16px; height: 24px; }
.work-next { text-align: right; }

/* ---------- footer ---------- */

.site-footer { background: var(--dark); }
.footer-bar { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-bar p { margin: 0; font-size: 13px; line-height: 1.75; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.footer-bar p a { color: #fff; box-shadow: none; }
.social { display: flex; gap: 9px; margin: 0; padding: 0; list-style: none; }
.social svg { width: 16px; height: 16px; }
.social a { display: block; transition: color 0.2s; }
.social a:hover { color: var(--accent); }

.scroll-top {
  position: fixed; right: 17px; bottom: 82px; z-index: 50;
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  background: #666; color: #fff; border-radius: 2px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transition: opacity 0.3s; }
.scroll-top svg { width: 18px; height: 18px; }

/* ---------- desktop ---------- */

@media (min-width: 960px) {
  .only-desktop { display: grid; }
  .notfound .only-desktop { display: block; }
  .notfound h4 { margin-top: 36px; }
  .not-desktop { display: none; }
  .work-video.tall { width: 50%; }
  /* title left, "Võtke meiega ühendust" right, on the title's first line */
  .work-info { align-items: baseline; }
  .work-info .text { text-align: right; }
  /* narrow side columns: "videoproduktsiooni?" must fit at 960-1200px */
  .grid > .col-4 h2, .grid > .col-3 h2, .grid > .col-4 h1.h2, .grid > .col-3 h1.h2 { font-size: min(32px, 2.65vw); }
  /* follows the title, which shrinks with the column below ~1380px */
  .promo .promo-sub { font-size: min(32px, 2.6vw); }
}

/* ---------- tablet + mobile: burger menu, stacked columns ---------- */

@media (max-width: 959px) {
  .grid { display: block; }
  .only-desktop { display: none; }
  .grid > * + * { margin-top: 36px; }
  .features > * + * { margin-top: 36px; }

  .menu-toggle {
    display: block; position: relative; margin-left: auto; width: 56px; height: 56px; margin-right: -18px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    position: absolute; left: 18px; width: 20px; height: 2px; background: #fff; content: "";
    transition: transform 0.3s, top 0.3s, background-color 0.3s;
  }
  .menu-toggle span { top: 27px; }
  .menu-toggle span::before { left: 0; top: -6px; }
  .menu-toggle span::after { left: 0; top: 6px; }
  .menu-open .menu-toggle span { background: transparent; }
  .menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
  .menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

  .menu { position: static; display: none; pointer-events: auto; }
  .menu-open { background: var(--dark); }
  .menu-open .menu { display: block; padding: 36px 0 36px; }
  .menu ul { display: block; }
  .menu a { line-height: 34px; padding: 0; }
  .menu a::after { content: "›"; margin-left: 6px; }

  /* the old theme shrinks its 108px paddings to 72px below 960px */
  .section-text { padding-top: 72px; }
  .section-tiles { padding-bottom: 72px; }
  .price-row .col-3 { text-align: center; }

  .footer-bar { flex-direction: column; justify-content: center; gap: 0; padding-top: 36px; padding-bottom: 36px; text-align: center; }
  .footer-bar p { min-height: 77px; display: flex; align-items: center; }
  .social { min-height: 46px; align-items: center; }
}

/* ---------- tablet ---------- */

@media (min-width: 570px) and (max-width: 959px) {
  .hero-title { padding-bottom: 72px; }
  .promo .grid { min-height: 0; }
  .promo-text { width: calc(50% - 18px); }
  .promo-big { font-size: min(50px, 5.5vw); }
  /* half-width column: smaller subtitle keeps it clearly under the title (818px: ~25px) */
  .promo .promo-sub { font-size: clamp(18px, 3vw, 26px); }
  .intro h1 { font-size: 50px; }
  .logos { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- mobile ---------- */

@media (max-width: 569px) {
  .only-mobile { display: block; }
  .not-mobile { display: none; }

  .hero { height: 80svh; min-height: 0; background-image: var(--poster-mobile); }
  .hero-title { padding-bottom: 36px; text-align: left; }
  .hero-title h1, .hero-title p { font-size: 25px; }
  .intro h1 { font-size: 35px; }
  .notfound .btn { padding-left: 18px; padding-right: 18px; }
  .prices { padding-top: 72px; }

  /* Pathway Extreme is wider than the old fallback font: scale headings down on
     narrow phones so words like "videoproduktsiooni?" still fit (390px: ~29px) */
  h2, h1.h2 { font-size: min(32px, 6.9vw); }
  h3 { font-size: min(25px, 7.4vw); }
  /* as large as the column allows: "ei hammusta!" (kept on one line) is ~7x its font size wide */
  .promo-mobile .container { container-type: inline-size; }
  .promo-mobile .promo-big { font-size: min(56px, 13.5cqw); }

  .tile-title { font-size: min(17px, 7cqw); }

  .logos { grid-template-columns: repeat(2, 1fr); }

  .work-prev, .work-next { gap: 10px; font-size: 11px; line-height: 16px; letter-spacing: 0.06em; }
  .work-prev svg, .work-next svg { width: 14px; height: 21px; }

  .quote-dots { padding: 18px 0 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}
