@font-face {
  font-family: Inter;
  src: url("inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("inter-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --white: #fffdf8;
  --ink: #232a25;
  --subtle: #575f55;
  --line: #d8d8c9;
  --accent: #a64223;
  --accent-hover: #82341d;
  --dark: #193635;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1344px;
  font-family: Inter, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; font-size: 16px; line-height: 1.6; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
main:focus { outline: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
.section-wrap, .header-inner, .hero-inner { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin-inline: auto; }
.section-wrap { padding-block: clamp(42px, 6.5vw, 94px); }
.skip-link { position: absolute; z-index: 3; top: 12px; left: 12px; padding: 8px 14px; color: white; background: var(--dark); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 75px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 25px; font-weight: 770; line-height: 1; letter-spacing: -.065em; }
.wordmark-icon { display: inline-block; width: 23px; height: 23px; border: 2px solid var(--accent); position: relative; }
.wordmark-icon::before { content: ""; position: absolute; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); width: 11px; height: 10px; top: 0; right: 0; }
.wordmark-icon::after { content: ""; position: absolute; border-top: 2px solid var(--accent); width: 8px; height: 11px; bottom: 0; left: 0; }
.primary-nav, .header-controls, .languages { display: flex; align-items: center; }
.primary-nav { gap: clamp(16px, 3vw, 36px); }
.primary-nav a, .languages a, .languages span { text-decoration: none; font-weight: 570; }
.primary-nav a { font-size: .91rem; }
.primary-nav [aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.header-controls { gap: clamp(13px, 2vw, 23px); }
.languages { gap: 8px; font: 650 .71rem/1 ui-monospace, Consolas, monospace; }
.languages a, .languages span { padding-block: 9px; }
.languages span { color: var(--accent); }
.languages a { color: var(--subtle); }
.languages a:hover { color: var(--accent); }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 9px 17px; font-size: .91rem; font-weight: 675; line-height: 1.2; text-decoration: none; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.button:hover { color: var(--accent); border-color: var(--accent); }
.button-primary { color: white; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { color: white; background: var(--accent-hover); border-color: var(--accent-hover); }
.button-header { padding-inline: 13px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.text-link { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-weight: 665; }
.text-link:hover { text-decoration: underline; }

.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); align-items: center; gap: clamp(25px, 4vw, 58px); padding-block: clamp(40px, 6vw, 89px); }
.hero h1, .page-heading h1, h1.page-heading, .article-intro h1 { font-size: clamp(2.55rem, 5.05vw, 5.15rem); font-weight: 760; line-height: .99; letter-spacing: -.07em; text-wrap: balance; }
.hero h1 { max-width: 11.5em; }
html[lang=ru] .hero h1 { font-size: clamp(2.45rem, 4.75vw, 4.65rem); }
.hero .lead { margin-block: 20px 24px; max-width: 35rem; }
.hero-details { color: var(--subtle); font-size: .83rem; margin-top: 16px; }
.lead { font-size: clamp(1rem, 1.45vw, 1.24rem); line-height: 1.6; color: var(--subtle); }
.eyebrow, .figure-caption, .detail-label { font: 650 .73rem/1.45 ui-monospace, Consolas, monospace; letter-spacing: .065em; text-transform: uppercase; }
.eyebrow { color: var(--accent); margin-bottom: 14px; }
.hero figure, .page-figure { overflow: hidden; background: #eae8db; }
.hero img { width: 100%; aspect-ratio: 8/5; object-fit: cover; }
.figure-caption { color: var(--subtle); background: #efede4; border: 1px solid var(--line); border-top: 0; padding: 10px 13px; }
.gallery figure { margin: 0; }

.workflow { border-bottom: 1px solid var(--line); padding-block: clamp(30px, 4vw, 55px); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.workflow article { padding-inline: clamp(15px, 2.5vw, 34px); border-left: 1px solid var(--line); }
.workflow article:first-child { padding-inline-start: 0; border-left: 0; }
.workflow h3 { font-size: clamp(1.04rem,1.4vw,1.23rem); font-weight: 720; letter-spacing: -.035em; margin-bottom: 7px; }
.workflow p { max-width: 40ch; color: var(--subtle); font-size: .91rem; }

.section-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 20px; margin-bottom: clamp(19px,3vw,35px); }
.section-top h2, .cta-panel h2 { font-size: clamp(1.75rem,3.4vw,3.2rem); letter-spacing: -.055em; font-weight: 745; }
.section-top .text-link { flex: 0 0 auto; }
.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(13px,2.25vw,28px); }
.plan-card { min-width: 0; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.plan-card > a { display: block; text-decoration: none; }
.plan-card > a:hover h2, .plan-card > a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.plan-preview { display: block; aspect-ratio: 16/10; overflow: hidden; background: #ece9dd; border-bottom: 1px solid var(--line); }
.plan-preview img, img.plan-preview { width: 100%; height: 100%; object-fit: contain; }
.video-preview { aspect-ratio: 16/9; background: var(--dark); }
img.plan-preview { height: auto; }
.plan-preview[aria-hidden="true"] {
  background-image: linear-gradient(#232a2513 1px, transparent 1px), linear-gradient(90deg, #232a2513 1px, transparent 1px);
  background-size: 20px 20px;
}
.card-copy { padding: clamp(14px,2vw,24px); }
.card-copy h2, .card-copy h3 { font-size: clamp(1.12rem,1.6vw,1.45rem); letter-spacing: -.034em; font-weight: 730; overflow-wrap: anywhere; }
.card-copy p { font-size: .9rem; color: var(--subtle); margin-top: 9px; }
.card-copy .eyebrow { color: var(--accent); font-size: .73rem; margin: 0 0 7px; }
.card-copy .text-link { margin-top: 12px; font-size: .9rem; }
.case-actions { padding: 0 clamp(14px,2vw,24px) clamp(14px,2vw,24px); }
.case-actions .button { min-height: 38px; padding-inline: 11px; font-size: .78rem; }
.final-cta { padding-top: 0; }
.guides-strip { background: #ebece1; border-block: 1px solid var(--line); }
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: grid; }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) auto; gap: 7px 24px; align-items: center; padding-block: clamp(13px,1.7vw,23px); text-decoration: none; }
.guide-list strong { font-size: clamp(1rem,2vw,1.24rem); line-height: 1.3; letter-spacing: -.035em; }
.guide-list span:first-of-type { color: var(--subtle); font-size: .9rem; }
.guide-list .arrow { text-align: right; }
.guide-list a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.cta-panel { background: var(--dark); color: #fffdf7; padding: clamp(28px,5vw,63px); display: flex; gap: 22px; justify-content: space-between; align-items: center; }
.cta-panel .button { color: #fff; border-color: #77a19b; flex: 0 0 auto; }
.cta-panel .button:hover { border-color: #fff; }

.page-heading { max-width: 62rem; padding-bottom: clamp(22px,3vw,40px); }
.page-heading h1, h1.page-heading { font-size: clamp(2.3rem,4.9vw,4.8rem); }
.page-heading .lead { margin-top: 17px; max-width: 57ch; }
.page-heading .button-row { margin-top: 21px; }
h1.page-heading { padding: 12px 0 16px; }
h1.page-heading + .lead { max-width: 62ch; margin-bottom: 21px; }
.section-wrap > .plan-grid + nav { margin-top: 20px; }
[data-project-view] > p:not(.lead) { margin-block: 8px 16px; max-width: 65ch; }
[data-project-view] > section { margin-block: 26px; }
[data-project-view] > section h2 { margin-bottom: 12px; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
[data-project-view] img.plan-preview { max-width: 760px; border: 1px solid var(--line); background: var(--white); }
[data-project-view] table { width: min(100%, 760px); border-collapse: collapse; margin-top: 15px; background: var(--white); }
[data-project-view] td, [data-project-view] th { border: 1px solid var(--line); text-align: left; padding: clamp(6px, 1.5vw, 12px); }
[data-project-view] table [scope="col"] { background: #eaece4; }
[data-project-view] select { font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 8px; max-width: 100%; }
.breadcrumbs { margin-bottom: clamp(15px,3vw,30px); color: var(--subtle); font-size: .86rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 7px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 7px; color: #777d6d; }
.breadcrumbs a:hover { color: var(--accent); }
.article-intro { max-width: 61rem; }
.article-intro h1 { font-size: clamp(2.4rem,5.9vw,5rem); }
.article-intro .lead { max-width: 66ch; margin-top: 21px; }
.article-intro .detail-label { color: var(--subtle); margin-top: 16px; }
.article-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(175px,240px); gap: clamp(24px,5vw,62px); align-items: start; max-width: 1080px; }
.article-cover { margin: 28px 0 36px; max-width: 1080px; }
.article-cover img { width: 100%; height: auto; max-height: 505px; object-fit: cover; }
.article-content { max-width: 730px; min-width: 0; }
.article-content section { margin-top: 31px; scroll-margin-top: 16px; }
.article-content section:first-child { margin-top: 0; }
.article-content h2 { font-size: clamp(1.35rem,2.6vw,2rem); font-weight: 725; letter-spacing: -.05em; margin-bottom: 14px; text-wrap: balance; }
.article-content h3 { margin: 17px 0 8px; font-size: 1.03rem; }
.article-content p + p { margin-top: 13px; }
.article-content p, .article-content li { line-height: 1.73; }
.article-content ol, .article-content ul { padding-inline-start: 24px; }
.article-content li + li { margin-top: 8px; }
.article-content figure { margin-block: 20px 14px; }
.article-content figure img { width: 100%; height: auto; max-height: 470px; object-fit: contain; background: #ede9dc; }
.article-aside { border-left: 1px solid var(--line); padding-left: 20px; margin-top: 2px; }
.article-aside h2 { font-size: 1rem; letter-spacing: -.025em; }
.article-aside ol { list-style: none; margin: 13px 0 20px; padding: 0; }
.article-aside li + li { margin-top: 10px; }
.article-aside a:not(.button) { font-size: .9rem; }
.article-aside .button { margin-top: 14px; }
.article-end { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; }
.watch-player { max-width: 1080px; margin: 0 0 27px; }
.watch-player video { width: 100%; height: auto; aspect-ratio: 16/9; background: var(--dark); }
.media-link { border: 1px solid var(--line); margin-top: 17px; padding: 15px; }
.media-link h2 { margin-bottom: 8px; font-size: clamp(1.17rem,2.4vw,1.7rem); }
.media-link a { font-weight: 680; }
.language-chooser { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; }
.language-chooser .page-heading { max-width: 720px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 27px; display: flex; justify-content: space-between; align-items: center; gap: 16px 25px; }
.footer-inner p { font-size: .83rem; margin-top: 9px; color: var(--subtle); }
.footer-inner nav { display: flex; gap: 8px clamp(12px,2.5vw,26px); flex-wrap: wrap; font-size: .87rem; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .hero h1 { font-size: clamp(2.2rem,5.4vw,4rem); }
  html[lang=ru] .hero h1 { font-size: clamp(2.1rem,5vw,3.8rem); }
  .plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .header-inner { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; padding-block: 12px 6px; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; min-height: 35px; gap: 22px; }
  .header-controls { justify-self: end; }
  .button-header { min-height: 37px; font-size: .8rem; gap: 6px; padding-inline: 7px; }
  .wordmark { font-size: 23px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; }
  .hero h1, html[lang=ru] .hero h1 { font-size: clamp(2.45rem,8.6vw,4rem); }
  .hero .lead { margin-block: 14px 23px; }
  .workflow { padding-block: 21px; gap: 14px; grid-template-columns: 1fr; }
  .workflow article, .workflow article:first-child { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px; }
  .workflow article:last-child { border: 0; padding-bottom: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { grid-row: 1; }
  .article-aside .button { margin-top: 0; }
  .article-aside ol { margin-bottom: 13px; }
  .cta-panel { flex-direction: column; align-items: start; }
}
@media (max-width: 470px) {
  .header-controls { gap: 9px; }
  .languages { gap: 5px; }
  .primary-nav { gap: 13px; }
  .primary-nav a { font-size: .84rem; }
  .section-top { flex-direction: column; align-items: start; }
  .plan-grid { grid-template-columns: 1fr; }
  .guide-list a { grid-template-columns: 1fr auto; gap: 5px 10px; }
  .guide-list span:first-of-type { grid-row: 2; }
  .guide-list .arrow { grid-row: 1; grid-column: 2; }
  .footer-inner { flex-direction: column; align-items: start; }
}
@media (max-width: 340px) {
  .wordmark { gap: 6px; font-size: 21px; }
  .wordmark-icon { width: 20px; height: 20px; }
  .button-header { font-size: .75rem; }
  .button-header span { display: none; }
}
