@font-face {
  font-family: Onest;
  src: url("assets/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Onest;
  src: url("assets/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: #151412;
  background: #fff;
  font-family: Onest, Arial, sans-serif;
  --wine: #781b38;
}
h1, h2, p, dl, dd { margin: 0; }

.hero, #uslugi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 56px 12px;
  text-align: center;
}
.portrait {
  width: clamp(160px, 31vw, 368px);
  aspect-ratio: 368 / 185;
  overflow: hidden;
}
.portrait img {
  display: block;
  width: 175%;
  transform: translate(-13%, -19%);
}
.hero h1 {
  position: relative;
  width: min(92%, 858px);
  aspect-ratio: 858 / 188;
  display: grid;
  align-items: center;
  margin: max(-28px, -2.5vw) 0 12px;
}
.hero h1 img { display: block; width: 100%; transform: rotate(-2deg); }
.pitch {
  margin-top: 8px;
  font-size: clamp(21px, 2.85vw, 34px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.023em;
}
.signature {
  margin-top: 17px;
  color: #484848;
  font-size: clamp(16px, 1.95vw, 23px);
  line-height: 1.4;
}

#uslugi h2 {
  margin-bottom: clamp(28px, 4vw, 48px);
  font-size: clamp(17px, 1.65vw, 26px);
  font-weight: 500;
  letter-spacing: -.035em;
}
.services { width: min(100%, 1100px); }
.services > a {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0 .42em;
  list-style: none;
  cursor: pointer;
  font-size: clamp(23px, 5.3vw, 78px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.023em;
}
summary::-webkit-details-marker { display: none; }
summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.services > a::before, .services > a::after {
  content: "";
  position: absolute;
  top: 21%;
  height: 58%;
  width: .17em;
  color: var(--wine);
  border: solid currentColor;
  opacity: 0;
  transition: transform .22s ease-out, opacity .18s;
}
.services > a::before { left: 0; border-width: 2px 0 2px 2px; transform: translateX(-.35em); }
.services > a::after { right: 0; border-width: 2px 2px 2px 0; transform: translateX(.35em); }
.services > a:is(:hover, :focus-visible), details[open] summary { color: var(--wine); }
.services > a:is(:hover, :focus-visible)::before,
.services > a:is(:hover, :focus-visible)::after,
.services:not(:has(a:hover, a:focus-visible)) > a:first-child::before,
.services:not(:has(a:hover, a:focus-visible)) > a:first-child::after {
  transform: none;
  opacity: 1;
}

#agency-stats {
  width: min(1140px, 94%);
  margin: auto;
  padding: clamp(36px, 5vw, 80px) 0;
  border-top: 1px solid #918e89;
}
#stats-title {
  font-size: clamp(33px, 4.6vw, 70px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.055em;
}
.period { margin: 38px 0 14px; font-size: 17px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.metrics div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  border-top: 1px solid #c4c0bc;
  padding: 16px 0 4px;
}
.metrics dt { font-size: clamp(14px, 1.4vw, 20px); }
.metrics dd {
  font-size: clamp(35px, 4.5vw, 68px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.05em;
}
.metrics .primary { grid-column: 1/-1; border: 0; padding: 0 0 8px; }
.primary dd { color: var(--wine); font-size: clamp(48px, 10vw, 146px); line-height: 1; }

@media (max-width: 760px) {
  .services > a { font-size: clamp(23px, 6.8vw, 46px); line-height: 1.5; }
  #agency-stats { width: 90%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .period { margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.period-picker { display: flex; gap: .5rem 1.3rem; flex-wrap: wrap; margin-top: 24px; }
.period-picker button {
  padding: .4em 0; border: 0; border-bottom: 2px solid transparent; background: none;
  color: #514b48; cursor: pointer; font: inherit;
}
.period-picker button[aria-pressed="true"] { border-color: var(--wine); color: var(--wine); }
.section {
  width: min(1140px, 94%); margin: auto; padding: clamp(40px, 6vw, 86px) 0;
  border-top: 1px solid #918e89;
}
.section h2 {
  margin: 0 0 clamp(24px, 3vw, 48px); font-size: clamp(36px, 5vw, 76px);
  line-height: 1; font-weight: 600; letter-spacing: -.055em;
}
.section a { color: inherit; text-decoration: none; }
.section a:focus-visible, .section summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.case-grid, .reel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; }
.case { display: block; }
.case img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 0; }
.case span { display: block; margin: 12px 0 0; font-size: clamp(19px, 1.65vw, 26px); line-height: 1.18; letter-spacing: -.035em; }
.section a:hover strong, .case:hover span { color: var(--wine); }
.more-cases { margin-top: 24px; }
.more-cases summary { width: fit-content; padding-block: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: .23em; list-style: none; }
.more-cases summary span { color: #605a56; }
.more-cases[open] .case-grid { margin-top: 20px; }
.tool-list a {
  display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: baseline; gap: 12px;
  padding: 22px 0; border-top: 1px solid #b8b1ae;
}
.tool-list strong { font-size: clamp(23px, 2.6vw, 40px); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; }
.tool-list span, .reel-grid span { color: #58534f; }
.tool-list b { color: var(--wine); font-weight: 400; font-size: 24px; }
.reel-grid figure { min-width: 0; margin: 0; }
.reel-grid video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #171413; }
.reel-grid figcaption { display: grid; gap: 3px; margin-top: 12px; }
.reel-grid span { font-size: 14px; }
.reel-grid strong { font-size: clamp(21px, 2.25vw, 32px); font-weight: 500; letter-spacing: -.035em; }
@media(max-width: 700px) {
  .section { width: 90%; }
  .case-grid, .reel-grid { grid-template-columns: 1fr; }
  .tool-list a { grid-template-columns: 1fr auto; gap: 4px; }
  .tool-list span { grid-column: 1; }
  .tool-list b { grid-column: 2; grid-row: 1 / 3; }
}

[hidden] {display:none !important}
a {color:inherit}
.mast,.end-inner,.catalog,.story-head,.story-next,.brief,.service-work {width:min(1140px,94%);margin-inline:auto}
.mast {display:flex;align-items:center;gap:2rem;padding:16px 0;border-bottom:1px solid #aaa39b}
.mast .brand {margin-right:auto}.brand img{width:118px;display:block}
.mast nav {display:flex;gap:clamp(12px,2.4vw,38px)}
.mast a,.end-inner a,.story-head a,.roles button {text-decoration:none}
.mast a:hover,.end-inner a:hover,.story-head a:hover {color:var(--wine);text-decoration:underline}
.hero {min-height:calc(100svh - 67px)}
footer {border-top:1px solid #dedede;margin-top:45px}
.end-inner {padding-block:clamp(40px,7vw,92px)}
.end-inner h2,.brief h2,.service-work h2 {font-size:clamp(32px,4vw,62px);line-height:1.05;letter-spacing:-.048em}
.end-inner p {margin:16px 0 26px;font-size:clamp(17px,2vw,25px)}
.end-inner a {display:inline-block;margin:0 24px 22px 0;border-bottom:1px solid}
.end-inner small{display:block;color:#595551;max-width:90ch;margin-top:10px}
.cookie {position:fixed;z-index:3;bottom:12px;right:12px;background:#fff;color:#292422;padding:10px 14px;font-size:13px;box-shadow:0 1px 10px #0002}
.cookie button,.roles button,.load-more,.lead button {font:inherit;color:inherit;cursor:pointer}
.cookie button {background:transparent;border:0;text-decoration:underline}
.story-head {padding:clamp(32px,5vw,80px) 0}
.story-head h1 {max-width:21ch;margin:26px 0 0;font-size:clamp(38px,5.6vw,84px);font-weight:550;line-height:1.02;letter-spacing:-.054em;overflow-wrap:break-word}
.story-head p {max-width:53ch;margin-top:21px;font-size:clamp(19px,2vw,30px);line-height:1.27}
.story-cover {display:block;width:min(1140px,94%);max-height:70svh;object-fit:contain;background:#171413;margin:auto}
.prose {width:min(720px,90%);margin:52px auto;font-size:clamp(17px,1.5vw,22px);line-height:1.5;overflow-wrap:break-word}
.prose h2 {font-size:1.8em;letter-spacing:-.045em;line-height:1.08;margin:2em 0 .6em}
.prose p,.prose h3,.prose blockquote {margin:.8em 0}.prose blockquote {border-left:2px solid var(--wine);padding-left:1em}
.case-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:18px;margin-bottom:40px}
.case-kpis>div,.service-work li {border-top:1px solid #aba39b;padding-top:12px}
.case-kpis>div>div:first-child {font-size:clamp(29px,3.5vw,46px);line-height:1.2;color:var(--wine)}
.story-next {border-top:1px solid #aba39b;padding-block:20px}
.story-next span,.text-link {display:block}
.text-link {width:fit-content;margin:18px 0;font-weight:500;text-underline-offset:4px}
.prose .text-link {display:inline-block;margin:12px 15px 0 0}
.service-work ul {list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;font-size:21px}
.brief {padding:40px 0}.lead {max-width:650px;margin-top:22px}
.lead label,.lead input,.lead textarea {display:block;width:100%}
.lead input,.lead textarea {font:inherit;margin:5px 0 16px;padding:12px;background:#fff;border:1px solid #afa49e}
.lead button {background:var(--wine);color:white;border:none;padding:12px 22px}
.lead output {display:block;margin-top:12px}
.film-grid {display:grid;grid-template-columns:1.15fr .92fr 1fr;gap:clamp(8px,1.5vw,22px);align-items:start}
.film-card {position:relative;isolation:isolate;overflow:hidden;display:block;aspect-ratio:4/5;background:#301c22;color:white!important;text-decoration:none}
.film-card img,.film-card::after {position:absolute;inset:0;width:100%;height:100%}
.film-card img {object-fit:cover;filter:saturate(.82);transition:transform .45s}
.film-card::after {content:"";background:linear-gradient(180deg,#0a030543,transparent 25%,transparent 45%,#17030aba);pointer-events:none}
.film-card:hover img,.film-card:focus-visible img {transform:scale(1.035)}
.film-card strong,.film-card span {position:absolute;z-index:1;color:#fff!important}
.film-kind {top:18px;left:18px;font-size:13px}
.film-card strong {bottom:15px;left:15px;right:40px;font:italic 500 clamp(40px,5.7vw,89px)/.88 Georgia,serif;letter-spacing:-.07em;text-wrap:balance}
.film-play {right:14px;top:14px;border:1px solid #fffd;border-radius:50%;width:34px;height:34px;display:grid;place-content:center;font:12px Arial;padding-left:2px}
.film-seoul {margin-top:clamp(16px,4vw,64px);aspect-ratio:3/4}
.film-regatta {aspect-ratio:4/5.4}
.roles {display:flex;gap:14px;flex-wrap:wrap;margin:44px 0 20px}
.roles button,.load-more {background:none;border:0;padding:6px 0;border-bottom:1px solid transparent}
.roles button[aria-pressed=true],.load-more {border-color:var(--wine);color:var(--wine)}
.load-more {margin-top:20px}
@media(max-width:700px){
.mast{flex-wrap:wrap;gap:10px;padding:12px 0}.mast nav{order:2;flex-basis:100%;justify-content:space-between}.brand img{width:96px}
.film-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.film-rodnaya{grid-column:1/-1;aspect-ratio:1.65}
.film-seoul,.film-regatta{margin:0;aspect-ratio:3/4}
.film-kind{top:10px;left:10px;font-size:11px}.film-play{right:8px;top:8px;width:26px;height:26px}
.film-card strong{font-size:clamp(31px,7.6vw,54px);bottom:11px;left:10px;right:8px}
.film-rodnaya strong{font-size:clamp(45px,12vw,72px)}
.service-work ul{grid-template-columns:1fr}.cookie{max-width:calc(100% - 24px)}
}
@media(prefers-reduced-motion:reduce){.film-card img{transition:none}}

.svc-intro, .svc-result, .svc-content, .watch {
  width: min(1140px, 94%); margin-inline: auto;
}
.svc-intro, .svc-result, .svc-content { border-top: 1px solid #272322; padding-block: clamp(26px, 5vw, 68px); }
.svc-intro, .svc-result { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 76px); }
.svc-intro h2, .svc-result h2, .svc-content h2 {
  font-size: clamp(26px, 3.5vw, 52px); font-weight: 550; line-height: 1.06; letter-spacing: -.045em;
}
.svc-intro p, .svc-result p { font-size: clamp(18px, 1.65vw, 25px); line-height: 1.4; }
.svc-intro p { margin-top: 1em; }
.svc-art { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.svc-grid, .web-examples { display: grid; gap: 25px; margin-top: clamp(24px, 4vw, 52px); }
.svc-grid { grid-template-columns: repeat(3, 1fr); }
.web-examples { grid-template-columns: repeat(2, 1fr); }
.svc-grid article, .web-examples a { padding-top: 12px; border-top: 1px solid #aaa5a3; }
.svc-grid h3, .web-examples strong { display: block; font-size: clamp(20px, 2vw, 28px); line-height: 1.15; font-weight: 550; margin: 0 0 10px; }
.svc-grid p, .faq p, .web-examples span { line-height: 1.5; font-size: 18px; }
.web-examples a { color: inherit; text-decoration: none; }
.web-examples a:hover strong, .faq summary:hover { color: var(--wine); }
.faq details { border-bottom: 1px solid #aaa5a3; padding: 18px 0; }
.faq details:first-of-type { margin-top: 20px; }
.faq summary { cursor: pointer; display: flex; align-items: baseline; gap: 18px; justify-content: space-between; list-style: none; font-size: clamp(18px, 2vw, 25px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--wine); }
.faq details[open] summary::after { content: '−'; }
.faq p { max-width: 68ch; margin-top: 12px; }
.audit-sheet { background: #681c34; color: white; padding: clamp(24px, 3vw, 42px); }
.audit-sheet h2 { font-size: 16px; letter-spacing: 0; }
.audit-sheet ol { padding-left: 1.2em; line-height: 1.7; }
.metric-source { font-size: 14px; line-height: 1.45; margin: 16px 0; max-width: 68ch; }
.film-play { width: auto; height: auto; padding: 6px 12px; border-radius: 0; font: inherit; font-size: 14px; background: #181415aa; }
.watch { padding-block: clamp(26px, 5vw, 72px); }
.watch header { margin-block: 26px; }
.watch h1 { font-weight: 550; letter-spacing: -.04em; font-size: clamp(32px, 5vw, 64px); line-height: 1.05; overflow-wrap: anywhere; }
.watch header p { color: var(--wine); }
.watch video { width: 100%; height: min(68svh, 730px); display: block; background: #111; }
.watch video[hidden] { display: none; }
.watch-status { margin-block: 20px; }
@media (max-width: 700px) {
  .svc-intro, .svc-result, .svc-grid, .web-examples { grid-template-columns: minmax(0, 1fr); }
  .watch video { height: auto; max-height: 72svh; min-height: 195px; }
}

@media (max-width: 700px) { .film-seoul .film-play, .film-regatta .film-play { display: none; } }

.wordmark { display: inline-block; color: #131313; font-family: Onest, sans-serif; font-weight: 790; letter-spacing: -.086em; line-height: 1; }
.mast .wordmark { font-size: clamp(25px, 2.7vw, 37px); }
.hero h1 { width: auto; aspect-ratio: auto; margin: 0 0 14px; }
.hero .wordmark { font-size: clamp(54px, 15vw, 192px); line-height: 1.03; }
.archive-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 1px solid currentColor; border-radius: 0; font-size: 16px; font-weight: 550; color: #181716; text-decoration: none; }
.archive-button:hover, .archive-button:focus-visible { background: #181716; border-color: #181716; color: white; }
#cases .archive-button { margin-top: 24px; }
.reel-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.reel-heading h2 { margin: 0; }
.youtube-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px,3vw,40px); margin-top: 28px; }
.youtube-grid figure { margin: 0; }
.youtube-grid figure:first-child { grid-column: 1/-1; }
.youtube-grid .youtube-cover, .youtube-grid iframe { display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; background: #171416; }
.youtube-cover { cursor: pointer; }
.youtube-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.youtube-cover:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; }
.youtube-grid figcaption { margin-top: 8px; font: 500 clamp(16px,1.5vw,22px)/1.25 Onest,sans-serif; }
.metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media(max-width:700px) {
  .youtube-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Видеотека: формат кадра задаёт ширину обложки в журнальной полосе. */
.video-edition { width: min(1520px, 94%); margin: 0 auto; }
.edition-head { padding-top: clamp(20px, 4vw, 56px); }
.edition-head a { font-size: 15px; color: inherit; text-underline-offset: .2em; }
.edition-head h1 { margin: .15em 0 .18em; font-size: clamp(64px, 10vw, 152px); font-weight: 570; line-height: 1.08; letter-spacing: -.075em; }
.video-edition .edition-body { padding-top: clamp(15px, 2vw, 30px); border-top: 1px solid #aaa39b; }
.video-library { display: flex; flex-wrap: wrap; align-items: start; gap: clamp(6px, 1.15vw, 18px); }
.archive-film { display: block; flex: none; width: min(32%, 420px); max-width: 100%; }
.archive-film img { display: block; width: 100%; height: auto; object-fit: contain; }
.archive-film:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.video-edition .load-more { display: block; margin: clamp(22px, 3vw, 44px) auto; padding: 10px 20px; border: 1px solid currentColor; }
.archive-film[style] img { height: 100%; }
#period-month .period { display: flex; align-items: center; gap: .75em; }
.live-badge { display: inline-flex; align-items: center; gap: .4em; font-size: .7em; font-weight: 700; letter-spacing: .07em; color: var(--wine); }
.live-badge::before { content: ''; width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.month-updated { display: block; margin-top: 14px; color: #595551; }
