/* tpl_studiaremonta — «Студия Ремонта» (studiaremonta24.ru), Joomla 6. Same styles as the HTML site (site/assets/css/style.css) plus a few Joomla additions at the end. */
:root {
  --dark: #1a1a1a;
  --dark-2: #232323;
  --dark-3: #2e2e2e;
  --light: #f4f4f4;
  --white: #fff;
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #8a8a8a;
  --muted-d: #9a9a9a;
  --line: #dcdcdc;
  --line-d: rgba(255, 255, 255, .16);
  --acc: #febf01;
  --acc-2: #ffd54a;
  --acc-soft: #fff4cc;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 3vw, 28px);
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
html.is-locked { overflow: hidden; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--light); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: var(--acc); color: var(--ink); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--acc); color: var(--ink); transition: top .2s; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.u:hover { text-decoration-color: var(--acc); }

/* ---------- Sections ---------- */
.sec { padding: clamp(70px, 8vw, 110px) 0; }
.sec--tight { padding: clamp(50px, 6vw, 80px) 0; }
.dark { background: var(--dark); color: #fff; }
.light { background: var(--light); }
.dark .muted, .dark .sh__lbl { color: var(--muted-d); }

/* heading */
.sh { display: grid; grid-template-columns: 1fr minmax(0, .8fr); gap: 20px 60px; align-items: end; margin-bottom: clamp(30px, 4vw, 46px); }
.sh__lbl { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.sh__t { font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; text-transform: uppercase; }
.sh__lead { font-size: 14.5px; line-height: 1.55; max-width: 430px; justify-self: end; }
.sh__lead .u { font-size: 14px; }
.dark .sh__lead { color: #d6d6d6; }
.sh--solo { grid-template-columns: 1fr; }
@media (max-width: 820px) { .sh { grid-template-columns: 1fr; } .sh__lead { justify-self: start; } }

/* dots icon */
.dots { display: inline-grid; grid-template-columns: repeat(2, 5px); gap: 2px; flex: none; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #c9c9c9; }
.dots--1 i:nth-child(1), .dots--2 i:nth-child(-n+2), .dots--3 i:nth-child(-n+3), .dots--4 i { background: var(--ink); }
.dark .dots i { background: #5b5b5b; }
.dark .dots--1 i:nth-child(1), .dark .dots--2 i:nth-child(-n+2), .dark .dots--3 i:nth-child(-n+3), .dark .dots--4 i { background: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 26px; border-radius: 3px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: linear-gradient(90deg, #f2b300, var(--acc) 45%, var(--acc-2)); color: var(--ink); box-shadow: 0 8px 22px -12px rgba(254, 191, 1, .9); }
.btn--accent:hover { box-shadow: 0 12px 28px -10px rgba(254, 191, 1, 1); filter: brightness(1.04); }
.btn--line { border: 1px solid currentColor; }
.btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.dark .btn--line:hover, .hero .btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #333; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--acc); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn--lg { height: 50px; font-size: 15px; }
.btn--block { width: 100%; }
.lnk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lnk:hover { text-decoration-color: var(--acc); }
.round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background .2s; }
.round:hover { background: rgba(0, 0, 0, .06); }
.round--muted { color: var(--muted); }

/* chips (dark labels on photos) */
.chips { position: absolute; z-index: 2; left: 14px; top: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.chips > span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 2px; background: rgba(20, 20, 20, .92); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 2px; background: var(--acc); color: var(--ink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 2px; background: #ececec; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.pill--ok { background: #1a1a1a; color: #fff; }
.pill--now { background: var(--acc); color: var(--ink); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.top { position: fixed; z-index: 50; inset: 0 0 auto; color: #fff; transition: background .3s, box-shadow .3s; }
.top::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent); pointer-events: none; transition: opacity .3s; }
.top.is-solid::before, .top.is-open::before { opacity: 0; }
.top.is-solid, .top.is-open { background: rgba(26, 26, 26, .97); box-shadow: 0 1px 0 var(--line-d); }
.top__bar { position: relative; display: flex; align-items: center; gap: 28px; height: 74px; transition: height .3s; }
.top.is-solid .top__bar { height: 62px; }
.top__logo { position: relative; flex: none; align-self: stretch; width: 100px; }
.top__logo .logo { position: absolute; left: 0; top: 12px; width: 100px; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); transition: top .3s, width .3s; }
.top.is-solid .top__logo .logo { top: 6px; width: 96px; }
.top__nav { display: flex; gap: 22px; margin-left: auto; font-size: 13.5px; }
.top__nav a { position: relative; padding: 6px 0; opacity: .88; transition: opacity .2s; }
.top__nav a:hover, .top__nav a[aria-current="page"] { opacity: 1; }
.top__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acc); }
.top__phone { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.top__phone .i { display: none; }
.burger { display: none; position: relative; width: 42px; height: 42px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .4); }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.top.is-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.top.is-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }
.mobile-menu { max-height: calc(100dvh - 62px); overflow: auto; padding: 4px var(--gut) 26px; background: var(--dark); }
.mobile-menu nav a { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-d); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.mobile-menu nav .dots i { background: #5b5b5b; }
.mobile-menu nav .dots--1 i:nth-child(1), .mobile-menu nav .dots--2 i:nth-child(-n+2), .mobile-menu nav .dots--3 i:nth-child(-n+3), .mobile-menu nav .dots--4 i { background: #fff; }
.mobile-menu nav a[aria-current="page"] { color: var(--acc); }
.mobile-menu__foot { display: grid; gap: 12px; justify-items: start; padding-top: 22px; }
.mobile-menu__phone { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.mobile-menu__foot .btn { justify-self: stretch; }
@media (max-width: 1180px) { .top__nav { display: none; } .top__phone { margin-left: auto; } .burger { display: block; } }
@media (max-width: 640px) {
  .top__bar { gap: 12px; height: 62px; }
  .top__phone span, .top__cta { display: none; }
  .top__phone .i { display: block; }
  .top__phone { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .4); }
  .top__logo { width: 80px; }
  .top__logo .logo, .top.is-solid .top__logo .logo { top: 9px; width: 80px; }
}

.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 3px; border: 1px solid var(--line-d); transition: background .2s, color .2s; }
.socials a:hover { background: var(--acc); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(620px, 100svh, 880px); color: #fff; background: var(--dark); overflow: hidden; }
.hero--page { min-height: clamp(460px, 64svh, 620px); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg picture, .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 10, .78) 0%, rgba(10, 10, 10, .35) 38%, rgba(10, 10, 10, .05) 62%), linear-gradient(90deg, rgba(10, 10, 10, .45), transparent 55%); }
.hero__inner { position: relative; z-index: 1; display: grid; justify-items: start; gap: 22px; padding-top: 120px; padding-bottom: clamp(40px, 6vw, 70px); }
.hero__title { max-width: 900px; font-size: clamp(32px, 4.2vw, 58px); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; text-transform: uppercase; }
.hero--page .hero__title { font-size: clamp(30px, 3.6vw, 50px); }
.hero__lead { max-width: 520px; font-size: 15px; line-height: 1.55; color: #e9e9e9; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.hero__panel { position: absolute; z-index: 2; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; width: min(560px, 46vw); padding: 30px 36px; background: var(--dark); border-top-left-radius: var(--r); }
.hero__panel > div { display: grid; gap: 6px; align-content: start; padding: 0 22px; }
.hero__panel > div + div { border-left: 1px solid var(--line-d); }
.hero__panel .dots { margin-bottom: 6px; }
.hero__panel .dots i { background: #5b5b5b; }
.hero__panel .dots--1 i:nth-child(1), .hero__panel .dots--2 i:nth-child(-n+2) { background: #fff; }
.hero__panel-k { font-size: 12.5px; color: var(--muted-d); }
.hero__panel-v { font-size: 14px; line-height: 1.45; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #cfcfcf; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs a::after { content: "/"; margin-left: 6px; opacity: .5; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hero__chips a, .hero__chips span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 2px; background: rgba(20, 20, 20, .85); font-size: 13px; font-weight: 500; transition: background .2s, color .2s; }
.hero__chips a:hover { background: var(--acc); color: var(--ink); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 6px; }
.hero__stats > div { padding: 4px 24px 4px 0; margin-right: 24px; border-right: 1px solid var(--line-d); }
.hero__stats > div:last-child { border-right: 0; }
.hero__stats b { display: flex; align-items: baseline; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.hero__stats span:not(.num):not(.num__u) { font-size: 12.5px; color: #cfcfcf; }
@media (max-width: 1000px) { .hero__panel { position: relative; width: 100%; margin-top: 0; border-radius: 0; } .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; } }
@media (max-width: 560px) { .hero__panel { grid-template-columns: 1fr; gap: 16px; padding: 22px var(--gut); } .hero__panel > div { padding: 0; } .hero__panel > div + div { border-left: 0; } }

/* ---------- About + stats ---------- */
.about { display: grid; grid-template-columns: 1fr minmax(0, .8fr); gap: 20px 60px; align-items: end; margin-bottom: 40px; }
.about > p { font-size: 14.5px; color: #d6d6d6; max-width: 430px; justify-self: end; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); padding: 26px 0; }
.stats > div { padding: 0 24px; border-left: 1px solid var(--line-d); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats b { display: flex; align-items: baseline; gap: 6px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.03em; }
.stats > div > span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted-d); max-width: 220px; }
.light .stats, .stats--light { border-color: var(--line); }
.light .stats > div { border-color: var(--line); }
.light .stats > div > span { color: var(--muted); }
.num__u { font-size: .62em; font-weight: 600; margin-left: 4px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about > p { justify-self: start; } .stats { grid-template-columns: 1fr 1fr; row-gap: 24px; } .stats > div:nth-child(3) { padding-left: 0; border-left: 0; } }

/* ---------- Problem / solution ---------- */
.ps { display: grid; grid-template-columns: 1fr 300px 1fr; align-items: center; gap: 30px; }
.ps__card { padding: 30px 32px; border-radius: var(--r); background: var(--dark-3); text-align: center; }
.ps__card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.ps__card p { font-size: 15px; line-height: 1.55; color: #e2e2e2; }
.ps__card--b { margin-top: 160px; }
.ps__card--a { margin-bottom: 160px; }
.ps__ring { position: relative; width: 300px; height: 300px; display: grid; place-items: center; }
.ps__ring::before, .ps__ring::after { content: ""; position: absolute; z-index: 2; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .8); }
.ps__ring::before { inset: 0; animation: spin 60s linear infinite; }
.ps__ring::after { inset: 46px; animation: spin 40s linear infinite reverse; }
.ps__img { position: absolute; z-index: 1; left: 50%; top: 50%; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.ps__img picture, .ps__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps__img::after { content: ""; position: absolute; inset: 0; background: rgba(15, 15, 15, .5); }
.ps__ring .i { position: relative; z-index: 3; width: 50px; height: 50px; stroke-width: 1.3; }
@keyframes spin { to { transform: rotate(360deg); } }
.ps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; border-top: 1px solid var(--line-d); padding-top: 26px; }
.ps__list li { display: grid; gap: 6px; }
.ps__list b { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.ps__list span { font-size: 13.5px; color: var(--muted-d); }
@media (max-width: 1000px) { .ps { grid-template-columns: 1fr; justify-items: center; } .ps__card--a, .ps__card--b { margin: 0; width: 100%; } .ps__ring { width: 200px; height: 200px; order: -1; } .ps__ring::after { inset: 30px; } .ps__img { width: 160px; height: 160px; margin: -80px 0 0 -80px; } .ps__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ps__list { grid-template-columns: 1fr; } }

/* ---------- Feature rows / tabs ---------- */
.flist { display: grid; border-top: 1px solid var(--line); }
.frow { display: flex; gap: 22px; align-items: flex-start; padding: 16px 22px; border-bottom: 1px solid var(--line); transition: background .25s; }
.frow .dots { margin-top: 7px; }
.frow b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.frow small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.frow.is-on { background: #e6e6e6; }
.frow.is-on small { color: var(--ink-2); }
button.frow { width: 100%; cursor: pointer; text-align: left; }
button.frow:hover { background: #ececec; }
.dark .flist { border-color: var(--line-d); }
.dark .frow { border-color: var(--line-d); }
.dark .frow small { color: var(--muted-d); }
.dark .frow.is-on { background: var(--dark-3); }
.flist--grid { grid-template-columns: 1fr 1fr; column-gap: 30px; border-top-color: var(--line-d); }
.flist--grid .frow { padding: 14px 0; gap: 14px; }
.flist--grid .frow b { font-size: 14.5px; }
.flist--3 { grid-template-columns: repeat(3, 1fr); border-top-color: var(--line); }
.flist--3 .frow { border-color: var(--line); }
@media (max-width: 760px) { .flist--grid, .flist--3 { grid-template-columns: 1fr; } }
button.lp__media { display: block; width: 100%; }
.lp__media .chips { top: auto; bottom: 14px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; }
.tabs__side { display: grid; align-content: space-between; gap: 30px; }
.tabs__foot { display: flex; align-items: center; gap: 20px; }
.tabs__foot p { font-size: 13.5px; max-width: 300px; }
.tabs__media { position: relative; min-height: 460px; border-radius: var(--r); overflow: hidden; background: #ddd; }
.tabs__pane { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.tabs__pane.is-on { opacity: 1; }
.tabs__pane picture, .tabs__pane img { width: 100%; height: 100%; object-fit: cover; }
.tabs__pane .chips > span:first-child { background: var(--acc); color: var(--ink); }
@media (max-width: 900px) { .tabs { grid-template-columns: 1fr; } .tabs__media { min-height: 360px; order: -1; } .tabs__foot { flex-direction: column; align-items: flex-start; } }

/* ---------- Project cards ---------- */
.pgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.pgrid--3 { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.pcard { position: relative; display: block; min-height: 340px; border-radius: var(--r); overflow: hidden; background: #ddd; color: #fff; }
.pcard > picture, .pcard > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard > picture img { transition: transform 1.2s var(--ease); }
.pcard:hover > picture img { transform: scale(1.04); }
.pcard--big { min-height: 520px; }
.pgrid--3 .pcard { min-height: 470px; }
.pcard__band { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 14px 16px 16px; background: rgba(28, 28, 28, .78); }
.pcard__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pcard__t { font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.pcard--big .pcard__t { font-size: 22px; }
.pcard__city { font-size: 13px; color: #ddd; white-space: nowrap; }
.pcard__thumbs { display: flex; align-items: center; }
.pcard__thumbs span { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 1.5px solid #fff; margin-right: -8px; }
.pcard__thumbs span img { width: 100%; height: 100%; object-fit: cover; }
.pcard__thumbs small { margin-left: 16px; font-size: 12.5px; color: #ddd; }
.pcard .u { font-size: 13px; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: 1fr 1fr; } .pcard--big { grid-column: 1 / -1; min-height: 440px; } }
@media (max-width: 640px) { .pgrid, .pgrid--3 { grid-template-columns: 1fr; } .pcard, .pgrid--3 .pcard { min-height: 420px; } }
.pnav { display: flex; align-items: center; gap: 14px; }

/* ---------- Dark split (approach / remote) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.split__text { display: grid; gap: 22px; align-content: start; }
.split__text .sh { margin-bottom: 0; grid-template-columns: 1fr; }
.split__p { font-size: 15px; line-height: 1.55; color: #d6d6d6; max-width: 460px; }
.light .split__p { color: var(--ink-2); }
.tech { position: relative; padding: 22px; border: 1px solid rgba(255, 255, 255, .55); }
.tech__top { display: flex; justify-content: space-between; margin-bottom: 18px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.tech__cap { margin-top: 12px; text-align: right; font-size: 12.5px; color: #cfcfcf; }
.tech__body { display: grid; place-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* chat mockup */
.chat { width: min(400px, 100%); border-radius: 12px; overflow: hidden; background: #f7f7f5; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e6e6e2; }
.chat__ava { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; }
.chat__ava img { width: 100%; height: 100%; object-fit: cover; }
.chat__head b { display: block; font-size: 14px; font-weight: 700; }
.chat__head small { font-size: 12px; color: var(--muted); }
.chat__body { display: grid; gap: 8px; padding: 14px; }
.msg { position: relative; max-width: 82%; padding: 8px 12px 18px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.msg time { position: absolute; right: 10px; bottom: 4px; font-size: 10.5px; color: #a5a5a5; }
.msg--out { justify-self: end; background: var(--acc-soft); border-bottom-right-radius: 3px; }
.msg--in { justify-self: start; background: #fff; border-bottom-left-radius: 3px; box-shadow: 0 0 0 1px #e6e6e2; }
.msg__who { display: block; font-size: 12px; font-weight: 700; color: #a77800; margin-bottom: 2px; }
.msg__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: -2px -6px 8px; border-radius: 8px; overflow: hidden; }
.msg__pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.voice { display: flex; align-items: center; gap: 3px; padding-right: 30px; }
.voice .i { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--acc); margin-right: 6px; }
.voice i { width: 3px; border-radius: 2px; background: #c9c9c4; }
.voice i:nth-child(3n) { height: 14px; } .voice i:nth-child(3n+1) { height: 8px; } .voice i:nth-child(3n+2) { height: 18px; }
.voice small { margin-left: 8px; font-size: 11px; color: var(--muted); }
.js .msg[data-msg] { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .msg[data-msg].is-shown { opacity: 1; transform: none; }

/* ---------- Photo with white card ---------- */
.overlay { position: relative; min-height: 640px; display: flex; align-items: center; justify-content: flex-end; background: var(--dark); overflow: hidden; }
.overlay__bg { position: absolute; inset: 0; }
.overlay__bg picture, .overlay__bg img { width: 100%; height: 100%; object-fit: cover; }
.overlay__card { position: relative; z-index: 1; width: min(480px, calc(100% - 2 * var(--gut))); margin: 40px max(var(--gut), calc((100vw - var(--wrap)) / 2)); padding: clamp(28px, 4vw, 54px); border-radius: var(--r); background: var(--light); }
.overlay__card .sh { grid-template-columns: 1fr; margin-bottom: 22px; }
.inc { display: grid; }
.inc__k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.inc li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.inc li .i { flex: none; color: var(--ink-2); }
.inc li em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); }
.inc__note { margin: 10px 0 24px; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .overlay { min-height: 0; flex-direction: column; align-items: stretch; } .overlay__bg { position: relative; height: 320px; } .overlay__card { width: auto; margin: -40px var(--gut) var(--gut); } }

/* ---------- Two columns: list + photo ---------- */
.lp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; }
.lp__side { display: grid; align-content: space-between; gap: 30px; }
.lp__media { position: relative; min-height: 460px; border-radius: var(--r); overflow: hidden; background: #ddd; }
.lp__media picture, .lp__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .lp { grid-template-columns: 1fr; } .lp__media { min-height: 360px; } }

/* 4 columns with dots */
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }
.col { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-content: start; }
.col .dots { margin-top: 8px; align-self: start; }
.col b { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.col p { grid-column: 2; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.dark .col p { color: var(--muted-d); }
@media (max-width: 1000px) { .cols4, .cols3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cols4, .cols3 { grid-template-columns: 1fr; } }

/* ---------- Video cards ---------- */
.vgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.vgrid--4 { grid-template-columns: repeat(4, 1fr); }
.vcard__media { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: #222; color: #fff; }
.vcard__media > picture, .vcard__media > picture img, .vcard__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard__media video { z-index: 5; background: #000; }
.vcard__play { position: absolute; z-index: 3; left: 50%; top: 46%; display: grid; place-items: center; width: 58px; height: 58px; margin: -29px; border-radius: 50%; background: var(--acc); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .25s var(--ease); }
.vcard__play .i { margin-left: 3px; }
.vcard__media:hover .vcard__play { transform: scale(1.08); }
.vcard__band { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 12px 14px 14px; background: rgba(28, 28, 28, .8); }
.vcard__band b { font-size: 16px; font-weight: 600; }
.vcard__band span { font-size: 12px; color: #d6d6d6; line-height: 1.4; }
.vcard.is-playing .vcard__play, .vcard.is-playing .chips, .vcard.is-playing .vcard__band { display: none; }
.vrail { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.vrail::-webkit-scrollbar { display: none; }
.vrail .vcard { flex: 1 0 220px; scroll-snap-align: start; }
@media (max-width: 1000px) { .vgrid, .vgrid--4 { grid-template-columns: 1fr 1fr; } }

/* ---------- Stages board ---------- */
.board { width: min(560px, 100%); border-radius: 10px; background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.board__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #ececec; font-size: 14px; }
.board__top b { font-weight: 700; }
.stages { display: grid; padding: 0 18px; }
.stages li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #ececec; font-size: 14px; }
.stages li:last-child { border-bottom: 0; }
.stages__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ececec; font-size: 12px; font-weight: 700; }
.stages li.is-done .stages__n { background: var(--ink); color: #fff; }
.stages li.is-now .stages__n { background: var(--acc); }
.stages__t { display: grid; gap: 2px; font-weight: 600; }
.stages__t small { font-weight: 400; font-size: 12px; color: var(--muted); }
.prog { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: #ececec; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--acc); transition: width 1.6s var(--ease) .3s; }
.is-in .prog i { width: var(--w); }
@media (max-width: 520px) { .stages li { grid-template-columns: 24px 1fr; } .stages li .pill { grid-column: 2; justify-self: start; } }

/* ---------- Geography ---------- */
.geo__big { display: flex; align-items: baseline; font-size: clamp(64px, 8vw, 110px); font-weight: 600; letter-spacing: -.06em; line-height: .9; color: var(--acc); }
.geo__bars { display: grid; }
.geo__bars li { display: grid; grid-template-columns: 170px 1fr 80px; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-d); }
.geo__city { display: grid; font-size: 15px; font-weight: 500; }
.geo__city small { font-size: 12px; font-weight: 400; color: var(--muted-d); }
.geo__track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.geo__track i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--acc); transition: width 1.6s var(--ease); }
.is-in .geo__track i { width: var(--w); }
.geo__km { text-align: right; font-size: 13.5px; }
@media (max-width: 520px) { .geo__bars li { grid-template-columns: 1fr auto; gap: 6px 12px; } .geo__track { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Quiz ---------- */
.qcard { padding: clamp(22px, 3.4vw, 40px); border-radius: var(--r); background: var(--light); color: var(--ink); }
.quiz__top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.quiz__step-n { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.quiz__bar { flex: 1; height: 3px; background: #dedede; }
.quiz__bar i { display: block; height: 100%; width: 20%; background: var(--acc); transition: width .5s var(--ease); }
.quiz__step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.quiz__step:not([hidden]) { animation: stepin .4s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateX(14px); } }
.quiz__q { padding: 0; font-size: clamp(19px, 1.9vw, 24px); font-weight: 700; letter-spacing: -.005em; line-height: 1.25; text-transform: uppercase; margin-bottom: 4px; }
.quiz__q--sm { font-size: 16px; margin-top: 8px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts--row { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt > span { position: relative; display: grid; gap: 2px; height: 100%; padding: 13px 14px 13px 44px; border-radius: 3px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.opt > span::before { content: ""; position: absolute; left: 15px; top: 16px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #bdbdbd; background: #fff; }
.opt b { font-weight: 600; font-size: 15px; }
.opt small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.opt:hover > span { border-color: var(--ink); }
.opt input:checked + span { border-color: var(--ink); background: #ececec; }
.opt input:checked + span::before { border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--acc); background: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.opts--row .opt > span { padding: 11px 12px 11px 40px; }
.opts--row .opt > span::before { top: 13px; left: 13px; }
.range { display: grid; gap: 14px; padding: 6px 0; }
.range__out { font-size: clamp(54px, 6vw, 84px); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: linear-gradient(90deg, var(--acc) var(--p, 17%), #dedede var(--p, 17%)); outline-offset: 8px; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 4px solid var(--acc); cursor: grab; }
.range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 4px solid var(--acc); cursor: grab; }
.range__scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.quiz__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.quiz__nav [data-quiz-next], .quiz__nav [data-quiz-submit] { margin-left: auto; }
.quiz .form__status { margin-top: 10px; }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
@media (max-width: 560px) { .opts, .quiz__fields { grid-template-columns: 1fr; } .opts--row { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__pm { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e6e6e6; transition: background .2s; }
.faq__pm::before, .faq__pm::after { content: ""; position: absolute; left: 9px; right: 9px; top: 14.2px; height: 1.6px; background: var(--ink); }
.faq__pm::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq__item[open] .faq__pm { background: var(--acc); }
.faq__item[open] .faq__pm::after { transform: none; }
.faq__a { padding: 0 50px 20px 0; }
.faq__a p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Services ---------- */
.svc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px 40px; align-items: center; padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: #ddd; }
.svc__media > picture, .svc__media > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc__media img { transition: transform 1.2s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.03); }
.svc--flip .svc__media { order: 2; }
.svc__text { display: grid; gap: 16px; justify-items: start; }
.svc__n { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.svc__name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; text-transform: uppercase; }
.svc__text p { font-size: 15px; color: var(--ink-2); max-width: 500px; }
.svc__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc--flip .svc__media { order: 0; } }

.cmp { overflow-x: auto; border-radius: var(--r); background: #fff; color: var(--ink); }
.cmp__table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.cmp__table th, .cmp__table td { padding: 14px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.cmp__table thead th { vertical-align: bottom; padding-top: 24px; }
.cmp__table thead b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.005em; text-transform: uppercase; margin-top: 8px; }
.cmp__table thead small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 4px; max-width: 220px; }
.cmp__table tbody th { font-weight: 500; color: var(--ink-2); width: 30%; }
.cmp__table .is-hit { background: #fafafa; }
.cmp__table thead .is-hit { box-shadow: inset 0 3px 0 var(--acc); }
.cmp__table .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; }
.cmp__table .yes .i { stroke-width: 2.4; }
.cmp__table .no { color: #c2c2c2; }
.cmp__cta td, .cmp__cta th { border-bottom: 0; padding-top: 16px; padding-bottom: 22px; }
.cmp__note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.stg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stg__item { position: relative; min-height: 380px; border-radius: var(--r); overflow: hidden; color: #fff; background: #333; }
.stg__item > picture, .stg__item > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stg__band { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 16px; background: rgba(28, 28, 28, .8); }
.stg__band b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.stg__band p { font-size: 13px; color: #dcdcdc; line-height: 1.45; }
@media (max-width: 900px) { .stg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stg { grid-template-columns: 1fr; } }

.shot { display: block; width: min(300px, 80vw); border-radius: 22px; padding: 8px; background: #000; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.shot img { width: 100%; border-radius: 15px; }

.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dgrid__i { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #ddd; }
.dgrid__i > picture, .dgrid__i > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dgrid__i img { transition: transform 1s var(--ease); }
.dgrid__i:hover img { transform: scale(1.04); }
.dgrid__i--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.dgrid__i--draw { background: #fff; }
.dgrid__i--draw > picture img { object-fit: contain; padding: 8px; }
.dgrid__i .chips > span { height: 26px; font-size: 12px; }
.dark .dgrid__i--draw { background: #fff; }
.dgrid__i .chips { z-index: 3; }
@media (max-width: 760px) { .dgrid { grid-template-columns: 1fr 1fr; } }

/* ---------- Portfolio ---------- */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter button { height: 34px; padding: 0 14px; border-radius: 2px; background: #e6e6e6; font-size: 13.5px; font-weight: 500; transition: background .2s, color .2s; }
.filter button:hover { background: #dadada; }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter__count { margin-left: 8px; font-size: 13px; color: var(--muted); }

.chats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chatcard { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center; padding: 22px; border-radius: var(--r); background: #fff; }
.dark .chatcard { background: var(--dark-2); color: #fff; }
.chatcard__shot { position: relative; display: block; aspect-ratio: 9 / 18.5; border-radius: 18px; padding: 7px; background: #0b0b0b; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.chatcard__shot picture, .chatcard__shot img { display: block; width: 100%; height: 100%; }
.chatcard__shot img { object-fit: contain; border-radius: 12px; }
.chatcard figcaption { display: grid; justify-items: start; gap: 8px; }
.chatcard__q { font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -.025em; line-height: 1.25; }
.chatcard b { font-weight: 700; }
.chatcard .muted { font-size: 13px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1000px) { .chats { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .chatcard { grid-template-columns: 1fr; } .chatcard__shot { width: 210px; } }

/* case page */
.facts { display: grid; border-top: 1px solid var(--line); margin-bottom: 24px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; white-space: nowrap; }
.facts dd { text-align: right; font-weight: 600; font-size: 14.5px; }
.masonry { columns: 4 240px; column-gap: 12px; }
.masonry__item { display: block; width: 100%; margin-bottom: 12px; border-radius: var(--r); overflow: hidden; break-inside: avoid; background: #ddd; }
.masonry__item img { width: 100%; transition: transform 1s var(--ease); }
.masonry__item:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .masonry { columns: 2; column-gap: 8px; } .masonry__item { margin-bottom: 8px; } }
.bigquote { font-size: clamp(24px, 2.8vw, 36px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 16px; }

/* ---------- Contacts ---------- */
.kgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kcard { position: relative; display: grid; align-content: space-between; gap: 34px; min-height: 200px; padding: 26px; border-radius: var(--r); background: #fff; color: var(--ink); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
a.kcard:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45); }
.kcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kcard__k { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.kcard__ico { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; transition: transform .3s var(--ease); }
.kcard__ico .i { width: 26px; height: 26px; stroke-width: 1.8; }
a.kcard:hover .kcard__ico { transform: scale(1.08) rotate(-6deg); }
.kcard__v { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.kcard__note { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.kcard--phone { background: var(--dark); color: #fff; }
.kcard--phone .kcard__ico { background: var(--acc); color: var(--ink); }
.kcard--max { background: linear-gradient(135deg, #3d8bff 0%, #6a5cff 55%, #a64dff 100%); color: #fff; }
.kcard--vk { background: #0077ff; color: #fff; }
.kcard--phone .kcard__k, .kcard--phone .kcard__note { color: var(--muted-d); }
.kcard--max .kcard__k, .kcard--max .kcard__note, .kcard--vk .kcard__k, .kcard--vk .kcard__note { color: rgba(255, 255, 255, .78); }
.kcard--max .dots i, .kcard--vk .dots i, .kcard--phone .dots i { background: rgba(255, 255, 255, .35); }
.kcard--max .dots--2 i:nth-child(-n+2), .kcard--vk .dots--3 i:nth-child(-n+3), .kcard--phone .dots--1 i:nth-child(1) { background: #fff; }
.kcard::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
@media (max-width: 900px) { .kgrid { grid-template-columns: 1fr; } .kcard { min-height: 0; } }
.req { display: grid; border-top: 1px solid var(--line); margin-bottom: 24px; }
.req div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.req dt { color: var(--muted); }
.req dd { text-align: right; font-weight: 600; }
.dark .req, .dark .req div { border-color: var(--line-d); }
.person { display: inline-flex; align-items: center; gap: 14px; }
.person__ava { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; }
.person__ava img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font-weight: 700; }
.person small { display: block; font-size: 13px; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); }
.field b { color: var(--ink); font-weight: 700; }
.field i { font-style: normal; color: #b5b5b5; }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(254, 191, 1, .5); }
.field input::placeholder, .field textarea::placeholder { color: #b5b5b5; }
.field.has-error input, .field.has-error textarea { border-color: #d93036; }
.field__err { font-size: 12.5px; color: #d93036; }
.form--line .field > span { color: #fff; font-size: 13px; }
.form--line .field input { height: 42px; padding: 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .45); border-radius: 0; background: transparent; color: #fff; }
.form--line .field input:focus { box-shadow: none; border-color: var(--acc); }
.form--line .field input::placeholder { color: #8d8d8d; }
.form--line .check { color: #bdbdbd; }
.form--line .check a { color: #fff; }
.form--line .check input { background: transparent; border-color: rgba(255, 255, 255, .5); }
.seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.seg legend { width: 100%; margin-bottom: 8px; font-size: 13px; color: var(--muted); padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 3px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .2s; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check a { color: var(--ink); text-decoration: underline; }
.check input { flex: none; appearance: none; width: 16px; height: 16px; margin-top: 1px; border: 1px solid #bdbdbd; border-radius: 2px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--acc); border-color: var(--acc); }
.check input:checked::after { content: ""; width: 8px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); }
.check.has-error input { border-color: #d93036; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 13.5px; }
.form__status.is-error { color: #e5484d; }
.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.form-done { display: grid; justify-items: start; gap: 14px; padding: 10px 0; }
.form-done__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--acc); color: var(--ink); }
.form-done p { color: var(--muted); }
.form-done a { color: inherit; text-decoration: underline; }
.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- CTA band + footer ---------- */
.cta { padding: clamp(50px, 6vw, 80px) 0; background: var(--light); border-top: 1px solid var(--line); }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: end; }
.cta { position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22192%22 height=%22192%22 viewBox=%220 0 192 192%22%3E%3Cg fill=%22none%22 stroke=%22%23141414%22 stroke-opacity=%22.09%22 stroke-width=%221%22%3E%3Cpath d=%22M.5 0v192M96.5 0v192M0 .5h192M0 96.5h192%22/%3E%3Cpath d=%22M96 48a48 48 0 0 1-48 48M0 48a48 48 0 0 0 48 48M48 0a48 48 0 0 0-48 48M48 0a48 48 0 0 1 48 48%22 stroke-dasharray=%223 4%22/%3E%3Cpath d=%22M192 144a48 48 0 0 1-48 48M96 144a48 48 0 0 0 48 48M144 96a48 48 0 0 0-48 48M144 96a48 48 0 0 1 48 48%22 stroke-dasharray=%223 4%22/%3E%3Ccircle cx=%2248%22 cy=%2248%22 r=%2214%22/%3E%3Ccircle cx=%22144%22 cy=%22144%22 r=%2214%22/%3E%3C/g%3E%3Cg fill=%22%23141414%22 fill-opacity=%22.1%22%3E%3Ccircle cx=%22140%22 cy=%2244%22 r=%222.2%22/%3E%3Ccircle cx=%22148%22 cy=%2244%22 r=%222.2%22/%3E%3Ccircle cx=%22140%22 cy=%2252%22 r=%222.2%22/%3E%3Ccircle cx=%2244%22 cy=%22140%22 r=%222.2%22/%3E%3Ccircle cx=%2252%22 cy=%22140%22 r=%222.2%22/%3E%3Ccircle cx=%2244%22 cy=%22148%22 r=%222.2%22/%3E%3Ccircle cx=%2252%22 cy=%22148%22 r=%222.2%22/%3E%3C/g%3E%3Ccircle cx=%22148%22 cy=%2252%22 r=%222.2%22 fill=%22%23febf01%22 fill-opacity=%22.55%22/%3E%3C/svg%3E") 0 0 / 192px 192px repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); opacity: .7; pointer-events: none; }
.cta__inner { position: relative; z-index: 1; }
.cta__side { display: grid; gap: 18px; justify-items: start; }
.cta__side p { font-size: 15px; color: var(--ink-2); max-width: 440px; }
.cta .btn--line:hover { background: var(--ink); color: #fff; }
@media (max-width: 820px) { .cta__inner { grid-template-columns: 1fr; } }

.footer { position: relative; overflow: hidden; background: #111; color: #d9d9d9; padding-top: clamp(50px, 6vw, 70px); }
.footer > .wrap { position: relative; z-index: 1; }
.footer > .sbg img { opacity: .06; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 36px 40px; padding-bottom: 44px; }
.footer__brand { display: grid; align-content: start; justify-items: start; gap: 18px; }
.footer__logo .logo { width: 96px; }
.footer__about { max-width: 300px; font-size: 14px; line-height: 1.55; color: #a9a9a9; }
.footer__col { display: grid; align-content: start; justify-items: start; gap: 9px; font-size: 14px; }
.footer__h { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; }
.footer__col a { color: #c9c9c9; transition: color .2s; }
.footer__col a:hover { color: var(--acc); }
.footer__col span { color: #8f8f8f; }
.footer__phone { font-size: 20px; font-weight: 700; color: #fff !important; letter-spacing: -.02em; }
.footer .socials a { border-color: rgba(255, 255, 255, .2); color: #fff; }
.footer__credits { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 30px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.footer__client b { font-weight: 700; color: #fff; }
.footer__partners { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.footer__partner { display: grid; place-items: center; width: 150px; height: 52px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px; transition: border-color .2s, background .2s; }
.footer__partner:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .04); }
.footer__partner img { width: 112px; height: 36px; object-fit: contain; opacity: .8; transition: opacity .2s; }
.footer__partner:hover img { opacity: 1; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: #8f8f8f; }
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__docs a:hover { color: #fff; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* faint photo behind dark sections */
.dark { position: relative; overflow: hidden; }
.dark > .wrap { position: relative; z-index: 1; }
.sbg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sbg img { width: 100%; height: 100%; object-fit: cover; opacity: .07; -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(120% 90% at 50% 50%, #000 40%, transparent 100%); }

/* ---------- Work types ---------- */
.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wgrid--3 { grid-template-columns: repeat(3, 1fr); }
.wcard { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); overflow: hidden; background: #fff; }
.wcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.wcard__media > picture, .wcard__media > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wcard__media img { transition: transform 1.2s var(--ease); }
.wcard:hover .wcard__media img { transform: scale(1.05); }
.wcard__body { display: grid; align-content: start; gap: 10px; padding: 18px 18px 20px; }
.wcard__t { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.wcard__body p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.wcard__list { display: grid; gap: 0; margin-top: 4px; border-top: 1px solid var(--line); }
.wcard__list li { position: relative; padding: 8px 0 8px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.wcard__list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
@media (max-width: 1000px) { .wgrid, .wgrid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .wgrid, .wgrid--3 { grid-template-columns: 1fr; } }

/* rooms */
.rooms { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 14px; }
.room { position: relative; border-radius: var(--r); overflow: hidden; color: #fff; background: #333; }
.room:first-child { grid-row: span 2; }
.room > picture, .room > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room > picture img { transition: transform 1.2s var(--ease); }
.room:hover > picture img { transform: scale(1.05); }
.room__band { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 14px 16px 16px; background: rgba(28, 28, 28, .8); }
.room__band b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.room__band span { font-size: 13px; color: #dcdcdc; line-height: 1.45; }
@media (max-width: 900px) { .rooms { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 280px; } .room:first-child { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 560px) { .rooms { grid-template-columns: 1fr; } .room:first-child { grid-column: auto; } }

/* bathroom steps */
.bsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-d); counter-reset: b; }
.bsteps li { counter-increment: b; display: grid; gap: 8px; align-content: start; padding: 22px 24px 26px 0; border-bottom: 1px solid var(--line-d); }
.bsteps li::before { content: counter(b, decimal-leading-zero); font-size: 13px; font-weight: 700; color: var(--acc); }
.bsteps b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.bsteps p { font-size: 13.5px; color: #c9c9c9; line-height: 1.55; max-width: 330px; }
@media (max-width: 900px) { .bsteps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bsteps { grid-template-columns: 1fr; } }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 60px; align-items: start; }
.docs__nav { display: grid; position: sticky; top: 90px; border-top: 1px solid var(--line); }
.docs__nav a { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.docs__nav a[aria-current="page"] { font-weight: 700; }
.doc { max-width: 820px; }
.doc h3 { margin: 30px 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.doc h3:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc p + p { margin-top: 10px; }
.doc a { text-decoration: underline; }
.doc ul { display: grid; gap: 6px; margin: 10px 0; }
.doc ul li { position: relative; padding-left: 20px; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.doc__req { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 30px; } .docs__nav { position: static; } }

/* ---------- Modal / lightbox / cookie ---------- */
.modal { margin: auto; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: clamp(24px, 4vw, 36px); border: 0; border-radius: var(--r); background: var(--light); color: var(--ink); overflow: auto; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); }
.modal::backdrop { background: rgba(10, 10, 10, .65); }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
.modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e6e6e6; z-index: 2; color: var(--ink); }
.modal__close:hover { background: var(--acc); }
.modal__title { font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; text-transform: uppercase; padding-right: 40px; }
.modal__lead { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.modal__topic { padding: 9px 12px; border-radius: 3px; background: var(--ink); color: #fff; font-size: 13.5px; }
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.label i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 12, .97); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(12, 12, 12, .9); }
.lightbox .modal__close { background: rgba(255, 255, 255, .12); color: #fff; }
.lightbox__fig { display: grid; justify-items: center; gap: 12px; padding: 60px 74px; }
.lightbox__fig img { max-width: min(1500px, 100%); max-height: calc(100dvh - 150px); width: auto; border-radius: 4px; }
.lightbox__fig figcaption { font-size: 13px; color: #bdbdbd; text-align: center; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav:hover { background: var(--acc); color: var(--ink); }
@media (max-width: 620px) { .lightbox__fig { padding: 60px 10px; } .lightbox__nav { top: auto; bottom: 20px; transform: none; } }
.cookie { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 16px; max-width: 520px; padding: 14px 14px 14px 18px; border-radius: var(--r); background: var(--dark); color: #d6d6d6; font-size: 13px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .5); }
.cookie a { color: #fff; text-decoration: underline; }
@media (max-width: 560px) { .cookie { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; } }
.footer { border-top: 1px solid var(--line-d); }

/* ---------- Joomla additions ---------- */
.srsite.no-hero .top { background: rgba(26, 26, 26, .97); }
.srsite.no-hero main { padding-top: 74px; }
.sr-content { padding: clamp(40px, 6vw, 80px) 0; }
.sr-messages { position: fixed; z-index: 60; top: 84px; left: 0; right: 0; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); pointer-events: none; }
.sr-messages * { pointer-events: auto; }
.sr-messages joomla-alert, .sr-messages .alert { display: block; margin-bottom: 12px; padding: 14px 18px; border-radius: var(--r); background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3); }
.doc--wide { max-width: 900px; }
.qcard--white { background: #fff; }
.split--top { align-items: start; }
.hero picture, .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg > img { position: absolute; inset: 0; }
.pcard > img, .room > img, .stg__item > img, .tabs__pane > img, .wcard__media > img, .svc__media > img, .dgrid__i > img, .lp__media > img, .overlay__bg > img, .vcard__media > img, .footer__pic > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard > img { transition: transform 1.2s var(--ease); }
.pcard:hover > img { transform: scale(1.04); }
.dgrid__i--draw > img { object-fit: contain; padding: 8px; }
.person__ava > img, .chat__ava > img { width: 100%; height: 100%; object-fit: cover; }
.masonry__item > img, .shot > img { width: 100%; height: auto; }
.top__logo .logo, .footer__logo .logo { height: auto; }
.logo--text { font-weight: 800; font-size: 20px; letter-spacing: -.03em; text-transform: uppercase; }
