/* Blocks kept from the original kbth.ru (services list, news, clients, testimonials, contacts, 404) in the new style. */
.home-services, .home-news, .home-clients { padding-block: clamp(44px, 5.5vw, 88px); }
.home-services h2, .home-news h2, .home-clients h2, .about-reviews h2 {
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.home-services-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(22px, 2.6vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}
.home-services-list a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  height: 100%;
  padding: 12px;
  border: 1px solid #ebe5f6;
  border-radius: 18px;
  background: white;
  transition: border-color .2s ease, box-shadow .25s var(--ease-out);
}
.home-services-img { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: #ede6fb; }
.home-services-img img { width: 100%; height: 100%; object-fit: cover; }
.home-services-copy { display: grid; gap: 4px; min-width: 0; }
.home-services-copy strong { font-size: 16px; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; }
.home-services-copy > span { color: #5a536e; font-size: 13.5px; line-height: 1.45; }
.home-services-copy em { margin-top: 2px; color: #6425ce; font-size: 13px; font-style: normal; font-weight: 600; }
.home-services-list a:hover { border-color: #d6c3f6; box-shadow: 0 14px 34px #4d2d6c17; }
.home-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; color: #6425ce; font-size: 15px; font-weight: 600; }
.home-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-news-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; }
.home-news-head .home-more { margin-top: 0; }
.home-banner-links { margin-top: 12px; }
.home-banner-links a { color: #e6dcff; text-decoration: underline; text-underline-offset: 4px; }
.home-banner-links a:hover { color: white; }

/* News cards (home and /news) */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: clamp(22px, 2.6vw, 36px) 0 0; padding: 0; list-style: none; }
.news-card { overflow: hidden; border: 1px solid #ebe5f6; border-radius: 20px; background: white; }
.news-card > a { display: flex; flex-direction: column; height: 100%; }
.news-card-img { display: grid; place-items: center; aspect-ratio: 1.6; overflow: hidden; background: #f3eefc; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.news-card time { color: #6e6385; font-size: 13px; }
.news-card strong { font-size: clamp(17px, 1.35vw, 20px); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; }
.news-card-more { color: #6425ce; font-size: 14px; font-weight: 600; }
.news-card details summary { display: inline-flex; min-height: 36px; align-items: center; color: #6425ce; font-size: 14px; font-weight: 600; cursor: pointer; }
.news-card details p { margin-top: 6px; color: #4a4460; font-size: 15px; line-height: 1.6; }
.about-page .news-card details, .news-card details { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.news-list { padding-block: clamp(28px, 3.6vw, 56px) clamp(56px, 7vw, 110px); }
.news-hero, .contacts-hero { padding-bottom: clamp(16px, 2vw, 28px); }
.news-article-image { background: #f3eefc; }
.news-article-image img { object-fit: contain; }

/* Clients and testimonials */
.home-clients-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: clamp(22px, 2.6vw, 36px) 0 0; padding: 0; list-style: none; }
.home-clients-list li { display: grid; justify-items: center; gap: 10px; padding: 18px 12px; border: 1px solid #ebe5f6; border-radius: 18px; background: white; text-align: center; }
.home-client-logo { display: grid; place-items: center; width: 100%; height: 72px; }
.home-client-logo img { width: auto; max-width: 100%; max-height: 72px; object-fit: contain; }
.home-clients-list p { color: #3a3354; font-size: 15px; font-weight: 600; }
.about-reviews { padding-block: clamp(44px, 5.5vw, 88px); }
.about-reviews-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: clamp(22px, 2.6vw, 36px) 0 0; padding: 0; list-style: none; }
.about-reviews-list figure { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; height: 100%; margin: 0; padding: clamp(20px, 2vw, 30px); border: 1px solid #ebe5f6; border-radius: 22px; background: white; }
.about-reviews-list blockquote { margin: 0; }
.about-reviews-list blockquote p { color: #2f2944; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
.about-reviews-list blockquote p::before { content: "“"; display: block; height: 30px; color: #b593f2; font-size: 56px; line-height: 1; }
.about-reviews-list figcaption { display: flex; align-items: center; gap: 12px; }
.about-reviews-list figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; background: #f4f0fb; }
.about-reviews-list figcaption strong { display: block; font-size: 16px; }
.about-reviews-list figcaption small { color: var(--muted); font-size: 13px; }

/* /service extras */
.svc-intro-title { margin-top: clamp(16px, 1.6vw, 24px); font-size: clamp(20px, 1.7vw, 26px) !important; letter-spacing: -.03em !important; }
.svc-process { padding-block: clamp(24px, 3vw, 44px) 0; }
.svc-process h2 { font-size: clamp(26px, 2.6vw, 40px); }
.svc-process ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.svc-process li { position: relative; padding: 52px 18px 18px; border: 1px solid #ebe5f6; border-radius: 18px; background: white; color: #3f3956; font-size: 15px; line-height: 1.55; counter-increment: step; }
.svc-process li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 16px; left: 18px; color: #742cf5; font-size: 13px; font-weight: 700; }
.about-page .svc-more, .about-page .svc-more[open] { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.about-page .svc-more summary { display: inline-flex; min-height: 34px; align-items: center; color: #6425ce; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.svc-more summary::-webkit-details-marker { display: none; }
.svc-more p { margin-top: 4px; }
.art-other { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin: 18px 0 0; padding-left: 22px; color: #6b5e86; }
.art-other a { color: #2f2944; font-size: 16px; line-height: 1.5; text-decoration: underline; text-decoration-color: #d4c4ef; text-underline-offset: 4px; }
.art-other a:hover { color: #6425ce; }

/* Contacts */
.contacts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 40px); padding-block: clamp(20px, 2.6vw, 40px) clamp(48px, 6vw, 90px); }
.contacts-map { overflow: hidden; min-height: 420px; border: 1px solid #e3dbf2; border-radius: 22px; background: #ede6fb; }
.contacts-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.contacts-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.contacts-list li { display: flex; align-items: center; gap: 14px; }
.contacts-list p, .contacts-list a { color: #201939; font-size: clamp(17px, 1.4vw, 20px); font-weight: 650; line-height: 1.4; }
.contacts-list a:hover { color: #6425ce; }
.contacts-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #efe6ff; color: #6425ce; font-size: 20px; }
.contacts-icon-tg::before { content: ""; width: 18px; aspect-ratio: 1; background: currentColor; clip-path: polygon(0 43%, 100% 5%, 78% 93%, 54% 68%, 40% 83%, 42% 57%, 79% 28%, 32% 53%); }
.contacts-note { margin-top: clamp(22px, 2.4vw, 34px); padding: clamp(24px, 2.6vw, 40px); border-radius: 22px; color: white; background: radial-gradient(ellipse at 90% 0%, #6631a7 0%, #201b39 60%, #121222 100%); }
.contacts-note p { font-size: 17px; line-height: 1.55; }
.contacts-note p + p { margin-top: 14px; color: #e4d1fd; }

/* 404 */
.nf { display: grid; justify-items: start; gap: 14px; padding-block: clamp(130px, 13vw, 200px) clamp(48px, 6vw, 90px); }
.nf-code { color: #c2adec; font-size: clamp(90px, 14vw, 200px); font-weight: 600; line-height: .85; letter-spacing: -.06em; }
.nf h1 { font-size: clamp(34px, 4vw, 60px); font-weight: 600; letter-spacing: -.055em; }
.nf p:not(.nf-code) { color: #4a4460; font-size: 18px; }

@media (max-width: 1100px) {
  .home-services-list, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-clients-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .contacts, .about-reviews-list { grid-template-columns: minmax(0, 1fr); }
  .art-other { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .home-services-list, .news-grid, .svc-process ol { grid-template-columns: minmax(0, 1fr); }
  .home-clients-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-map, .contacts-map iframe { min-height: 320px; }
}

/* Form banner on inner pages: keep the heading off the glass graphic, as on the home page. */
.about-contact .contact-banner h2 { max-width: min(16em, 55%); text-wrap: balance; }
@media (max-width: 720px) { .about-contact .contact-banner h2 { max-width: none; } }

/* Home: the H1 is a small kicker with the main query, the slogan under it keeps the display size. */
.hero .hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: #645d78; font-size: 15px; font-weight: 550; line-height: 1.3; letter-spacing: 0; }
.hero .hero-kicker::before { content: ""; flex: none; width: 7px; aspect-ratio: 1; border-radius: 50%; background: #742cf5; }
@media (max-width: 650px) { .hero .hero-kicker { margin-bottom: 14px; font-size: 13px; } }

/* Journal — the KBTH glass and lavender identity. Scoped to the listing. */
.journal { padding-bottom:clamp(48px,7vw,110px); }
/* The header lies over the page (position: absolute), so the intro starts below it: header height + air. */
.journal-intro { padding-top:calc(clamp(64px, 6vw, 98px) + 34px); padding-bottom:38px; }
.journal-crumb { display:flex;gap:12px;color:#736582;font-size:13px; }
.journal-crumb a { color:#5e467a; }
.journal-title-row { display:flex;justify-content:space-between;align-items:end;gap:32px;margin-top:32px; }
.journal-title-row h1 { font-size:clamp(46px,6.8vw,100px);line-height:1.02;letter-spacing:-.065em;font-weight:550;margin:0; }
.journal-title-row>p { color:#4d435d;font-size:clamp(16px,1.4vw,20px);line-height:1.6;padding-bottom:7px; }
.journal-title-row>p span { display:block;margin-top:12px;color:#81738e;font-size:14px; }
.journal-feature-link { display:grid;grid-template-columns:1fr 1.04fr;min-height:440px;border-radius:28px;overflow:hidden;background:#ede6ff;border:1px solid #e1d4f4; }
.journal-feature-copy { display:flex;flex-direction:column;align-items:start;padding:clamp(26px,3.7vw,60px);background:linear-gradient(120deg,#f3edff,#ede6ff); }
.journal-badge { color:#6425ce;background:white;border:1px solid #e0d1f7;border-radius:30px;padding:6px 13px;font-size:12px; }
.journal-feature-copy time { font-size:13px;color:#756783;margin-top:25px; }
.journal-feature-copy h2 { font-size:clamp(25px,3vw,44px);line-height:1.14;letter-spacing:-.045em;margin:12px 0 15px;max-width:20ch; }
.journal-feature-copy>p { font-size:16px;line-height:1.6;color:#5b4c70;max-width:45ch; }
.journal-read { margin-top:28px;display:inline-flex;gap:22px;align-items:center;color:#6425ce;font-size:14px;font-weight:600; }
.journal-read>span { display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#742cf5;color:white;transition:transform .2s; }
.journal-feature-art { min-width:0;background:#f4effb; }
.journal-feature-art img { width:100%;height:100%;object-fit:cover;display:block; }
.journal-feature-link:hover .journal-read>span { transform:translate(2px,-2px); }
.journal-feed { padding-top:64px; }
.journal-feed-top { display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap; }
.journal-feed-top h2 { font-size:clamp(25px,3vw,38px);letter-spacing:-.04em; }
.journal-filters { display:flex;flex-wrap:wrap;gap:6px;border:0;padding:0;margin:0; }
.journal-filters label { padding:10px 16px;min-height:44px;border:1px solid #e4dcef;border-radius:28px;background:#fff9;color:#665575;font-size:13px;cursor:pointer; }
.journal-filters label span { margin-left:6px;opacity:.65; }
.journal-radio,.journal-sr { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.journal-radio:checked+label { background:#6726d9;border-color:#6726d9;color:white; }
.journal-radio:focus-visible+label { outline:3px solid #b297e8;outline-offset:3px; }
.journal-feed:has(#news-articles:checked) [data-kind="company"],.journal-feed:has(#news-company:checked) [data-kind="article"] { display:none; }
.journal .news-grid { gap:30px 24px;margin-top:28px; }
.journal .news-card { background:transparent;border:0;border-radius:0;min-width:0; }
.journal .news-card-img { border-radius:18px;aspect-ratio:1.55;border:1px solid #e9e0f3; }
.journal .news-card-img img { transition:transform .35s ease; }
.journal .news-card>a:hover img { transform:scale(1.035); }
.journal .news-card-body { padding:19px 2px 25px;gap:10px; }
.journal .news-type { color:#742cf5;font-size:12px; }
.journal .news-card strong { font-size:clamp(20px,1.8vw,27px);line-height:1.22;letter-spacing:-.035em;font-weight:550; }
.journal .news-excerpt { color:#756881;font-size:14px;line-height:1.65; }
.journal .news-card-more { margin-top:6px; }
.journal a:focus-visible,.journal summary:focus-visible { outline:3px solid #a17be7;outline-offset:5px; }
@media(min-width:2100px){.journal-feature-link{min-height:540px}}
@media(max-width:900px){.journal-title-row{align-items:start;flex-direction:column;gap:22px}.journal-title-row>p br{display:none}.journal-title-row>p{max-width:38ch}.journal-feature-link{min-height:0}.journal-feature-copy{padding:28px}.journal-feature-copy h2{font-size:29px}}
@media(max-width:600px){.journal-intro{padding-top:108px;padding-bottom:25px}.journal-title-row{margin-top:24px}.journal-title-row h1{font-size:clamp(42px,10vw,58px)}.journal-feature-link{grid-template-columns:1fr;border-radius:20px}.journal-feature-art{grid-row:1;aspect-ratio:1.7}.journal-feature-copy{padding:24px}.journal-feature-copy time{margin-top:18px}.journal-feature-copy h2{font-size:28px}.journal-feed{padding-top:38px}.journal-filters{gap:6px}.journal-filters label{padding:10px 12px}.journal .news-grid{gap:24px}.journal .news-card strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.journal *{transition:none!important}}
