.case-page, .case-news, .case-foot { --mk-ink:#111; --mk-muted:#595959; --mk-blue:#00c2ff; --mk-line:#dedede; --mks-accent:#19bef0; }
.case-page *, .case-news *, .case-foot * { box-sizing:border-box; }
.case-shell { width:min(calc(100% - 64px), 1340px); margin-inline:auto; }
.case-page a:focus-visible, .case-page button:focus-visible, .case-news a:focus-visible, .case-news input:focus-visible, .case-foot a:focus-visible, .case-dialog button:focus-visible { outline:3px solid #007eae; outline-offset:4px; } .case-page { --case-section-gap:clamp(24px,3vw,40px); background:#fff; color:var(--mk-ink); font:400 16px/1.6 Montserrat,Arial,sans-serif; }
.case-page h1,.case-page h2,.case-page h3,.case-page p,.case-page figure { margin:0; }
.case-page h1,.case-page h2,.case-page h3 { color:var(--mk-ink); font-family:inherit; }
.case-page a { color:inherit; }
.case-page .mks-crumbs { display:flex; flex-wrap:wrap; align-items:center; column-gap:8px; row-gap:4px; padding-top:clamp(10px,1.3vw,18px); font-size:13px; line-height:1.4; color:#555; }
.case-page .mks-crumbs a { color:#555; text-decoration:underline; }
.case-page .mks-crumbs [aria-hidden] { color:#777; }
.case-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.96fr); gap:clamp(28px,4.5vw,75px); align-items:center; padding:32px 0 0; }
.case-hero--nophoto { grid-template-columns:minmax(0,1fr); }
.case-title { max-width:26ch; font-size:clamp(26px,calc(22px + 1.2vw),40px); font-weight:700; line-height:1.12; letter-spacing:-.043em; text-wrap:balance; }
.case-page .case-lead { max-width:52ch; margin:21px 0 28px; font-size:clamp(16px,1.24vw,19px); line-height:1.58; color:#454545; }
.case-page .mks-cta { display:flex; gap:12px; align-items:stretch; width:fit-content; max-width:100%; }
.case-page .mks-cta__call { flex:1 1 auto; min-height:68px; padding:0 24px; border-radius:6px; background:var(--mks-accent); color:#fff; text-decoration:none; display:flex; align-items:center; justify-content:center; gap:14px; transition:background .2s; }
.case-page .mks-cta__call span { display:flex; flex-direction:column; gap:2px; }
.case-page .mks-cta__call b { font-size:18px; line-height:1.2; font-weight:800; text-transform:uppercase; letter-spacing:.03em; }
.case-page .mks-cta__call i { font-style:normal; font-size:15px; line-height:1.2; font-weight:600; }
.case-page .mks-cta__msg { min-height:68px; padding:0 22px; border-radius:6px; border:2px solid #111; background:#fff; color:#111; text-decoration:none; display:flex; align-items:center; justify-content:center; gap:10px; font-size:15px; font-weight:700; white-space:nowrap; transition:background .2s,color .2s; }
@media (hover:hover) {
.case-page .mks-cta__call:hover { background:#0fa3d6; color:#fff; }
.case-page .mks-cta__msg:hover { background:#111; color:#fff; }
}
.case-icon { width:18px; height:18px; display:inline-block; flex:none; }
.case-button,.case-link { display:inline-flex; align-items:center; justify-content:center; gap:10px; font-family:inherit; font-size:14px; font-weight:600; line-height:1.3; cursor:pointer; text-decoration:none; }
.case-link:hover { text-decoration:underline; text-underline-offset:4px; }
.case-photos { display:grid; grid-template-columns:1.18fr 1fr; gap:8px; min-width:0; }
.case-photos:has(> .case-photo:only-child) { grid-template-columns:1fr; }
.case-photo { position:relative; display:block; width:100%; height:clamp(360px,29.5vw,450px); padding:0; border:0; border-radius:10px; overflow:hidden; background:#eee; cursor:zoom-in; color:#fff; font:inherit; }
.case-photos:has(> .case-photo:nth-child(4)) { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:clamp(176px,calc(14.75vw - 4px),221px); }
.case-photos:has(> .case-photo:nth-child(4)) > .case-photo { height:100%; min-height:0; }
.case-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 50%; transition:transform .25s ease; }
.case-photo:hover img { transform:scale(1.025); }
.case-photo::after { content:''; position:absolute; inset:55% 0 0; background:linear-gradient(transparent,rgba(0,0,0,.7)); pointer-events:none; }
.case-photo__caption { position:absolute; bottom:14px; left:16px; right:10px; z-index:1; font:600 13px/1.4 Montserrat,Arial,sans-serif; text-align:left; }
.case-photo__more { position:absolute; right:12px; bottom:12px; z-index:1; padding:4px 10px; border-radius:20px; background:rgba(255,255,255,.94); color:#111; font:600 13px/1.4 Montserrat,Arial,sans-serif; }
.case-zoom { position:absolute; top:12px; right:12px; display:grid; place-items:center; width:32px; height:32px; background:rgba(255,255,255,.94); color:#111; border-radius:50%; }
.case-zoom .case-icon { width:15px; height:15px; }
.case-body { background:#fff; padding:var(--case-section-gap) 0 0; scroll-margin-top:90px; }
.case-grid { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(295px,.9fr); gap:clamp(32px,6.4vw,105px); align-items:start; }
.case-page h2 { font-size:clamp(28px,2.5vw,38px); font-weight:700; letter-spacing:-.04em; line-height:1.18; }
.case-story h3 { font-size:clamp(20px,1.55vw,24px); font-weight:600; line-height:1.25; letter-spacing:-.025em; }
.case-story__part { margin-top:25px; }
.case-story__part + .case-story__part { padding-top:24px; border-top:1px solid var(--mk-line); }
.case-story__part p, .case-story__part li { font-size:16px; line-height:1.7; color:#343434; }
.case-story__part p { margin-top:9px; }
.case-story__part ul, .case-story__part ol { margin:9px 0 0; padding-left:22px; }
.case-story__part h2, .case-story__part h3 + h3, .case-story__part h4 { margin-top:14px; font-size:18px; line-height:1.3; letter-spacing:-.02em; }
.case-story__part img { max-width:100%; height:auto; }
.case-story__part a { color:#0068a3; text-decoration:underline; text-underline-offset:3px; }
.case-story__result { border-left:3px solid var(--mk-blue); padding-left:17px; }
.case-sidebar { background:#fff; border:1px solid #e1e1e1; border-radius:10px; padding:clamp(20px,2.1vw,34px); }
.case-page .case-sidebar h2 { font-size:23px; letter-spacing:-.03em; margin-bottom:14px; }
.case-service { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; border-top:1px solid #e7e7e7; text-decoration:none; line-height:1.45; font-size:15px; font-weight:500; }
.case-service:hover { text-decoration:underline; text-underline-offset:3px; }
.case-service .case-icon { color:#585858; width:16px; }
.case-other { padding:var(--case-section-gap) 0 0; }
.case-section-head { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:25px; }
.case-related { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.case-card { border:1px solid var(--mk-line); border-radius:10px; overflow:hidden; display:grid; grid-template-rows:auto 1fr; text-decoration:none; background:#fff; transition:box-shadow .2s; }
.case-card:hover { box-shadow:0 10px 25px rgba(0,0,0,.10); }
.case-card img { aspect-ratio:2.05/1; width:100%; height:auto; display:block; object-fit:cover; }
.case-card__label { padding:18px 20px 21px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; font-size:clamp(16px,1.3vw,20px); line-height:1.4; font-weight:600; }
.case-card__label .case-icon { margin-top:3px; } .case-dialog { max-width:min(calc(100vw - 30px),440px); width:100%; max-height:90dvh; padding:30px; border:0; border-radius:10px; color:#111; font-family:Montserrat,Arial,sans-serif; overflow:auto; }
.case-dialog::backdrop { background:rgba(0,0,0,.76); }
.case-round { display:grid; place-items:center; flex:none; width:40px; height:40px; padding:0; border:1px solid #d5d5d5; border-radius:50%; background:#fff; color:#111; cursor:pointer; }
.case-round:hover { background:#eee; }
.case-round[hidden] { display:none; }
.case-gallery { width:fit-content; max-width:min(96vw,920px); padding:0; background:#171717; color:#fff; }
.case-gallery__bar { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 16px; }
.case-page .case-gallery__bar h2 { margin:0; font-size:17px; color:#fff; letter-spacing:0; }
.case-gallery__bar button { width:34px; height:34px; }
.case-gallery__stage { display:grid; grid-template-columns:42px minmax(0,1fr) 42px; gap:10px; align-items:center; padding:0 12px 14px; }
.case-gallery__figure { margin:0; min-width:0; }
.case-gallery__stage img { max-width:100%; width:auto; height:auto; max-height:min(72dvh,900px); display:block; margin:auto; }
.case-gallery__figure figcaption { padding-top:8px; font-size:14px; text-align:center; color:#ddd; }
.case-gallery__figure figcaption:empty { display:none; }
.case-gallery__stage .case-round { width:36px; height:36px; }
body:has(dialog[open]) { overflow:hidden; }
@media (min-width:769px) and (max-width:1120px) {
.case-hero { grid-template-columns:minmax(0,1fr); }
.case-hero__copy { max-width:760px; }
.case-photos { max-width:760px; width:100%; }
.case-photo { height:320px; }
.case-photos:has(> .case-photo:nth-child(4)) { grid-auto-rows:156px; }
}
@media (max-width:1050px) {
.case-hero { gap:26px; }
.case-shell { width:calc(100% - 44px); }
.case-grid { gap:30px; grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr); }
.case-news__grid { grid-template-columns:1fr; gap:16px; }
}
@media (max-width:768px) {
.case-page .mks-cta { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; width:100%; }
.case-page .mks-cta__call { min-height:64px; gap:12px; }
.case-page .mks-cta__call svg { width:22px; height:22px; }
.case-page .mks-cta__call b { font-size:16px; letter-spacing:0; }
.case-page .mks-cta__call i { font-size:14px; }
.case-page .mks-cta__msg { min-height:52px; padding:0 10px; gap:8px; }
.case-photos:has(> .case-photo:nth-child(4)) { grid-auto-rows:clamp(126px,37vw,216px); }
}
@media (max-width:760px) {
.case-shell { width:calc(100% - 32px); }
.case-hero { grid-template-columns:1fr; padding:24px 0 0; gap:23px; }
.case-page .case-lead { margin:14px 0 20px; }
.case-photo { height:clamp(220px,53vw,355px); }
.case-photos { gap:6px; }
.case-photo__caption { font-size:11px; left:10px; bottom:10px; }
.case-zoom { width:28px; height:28px; right:8px; top:8px; }
.case-grid { grid-template-columns:1fr; gap:25px; }
.case-story__part p, .case-story__part li { font-size:15px; }
.case-section-head { flex-wrap:wrap; gap:10px; }
.case-related { grid-template-columns:1fr; gap:10px; }
.case-card { grid-template-rows:auto; grid-template-columns:minmax(84px,25%) 1fr; align-items:stretch; }
.case-card img { width:100%; height:100%; min-height:95px; max-height:155px; aspect-ratio:auto; }
.case-card__label { padding:14px; align-items:center; font-size:15px; }
.case-gallery__stage { grid-template-columns:31px minmax(0,1fr) 31px; padding:0 6px 12px; gap:3px; }
.case-gallery__stage .case-round { width:30px; height:30px; }
} .case-news { background:#fff; color:#111; padding:clamp(24px,3vw,40px) 0 30px; font:400 16px/1.5 Montserrat,Arial,sans-serif; }
.case-news__grid { display:grid; grid-template-columns:1fr 2fr; align-items:start; gap:30px; }
.case-news h2 { display:flex; align-items:center; gap:12px; margin:0; padding-top:6px; font:700 25px/1.18 Montserrat,Arial,sans-serif; letter-spacing:-.04em; color:#111; }
.case-news__envelope { flex:none; display:block; width:clamp(38px,4vw,54px); height:auto; }
.case-news .wpcf7-form { display:grid; grid-template-columns:minmax(100px,1fr) minmax(100px,1fr) auto; gap:10px; margin:0; }
.case-news .wpcf7-form > p { margin:0; min-width:0; }
.case-news .wpcf7-form > p:nth-of-type(4), .case-news .wpcf7-response-output { grid-column:1 / -1; }
.case-news .hidden-fields-container { display:none; }
.case-news .wpcf7-form-control-wrap { display:block; }
.case-news input.form__input { min-width:0; width:100%; height:auto; min-height:45px; margin:0; background:#fff; border:1px solid #bcbcbc; border-radius:6px; padding:0 13px; font:inherit; font-size:15px; color:#111; }
.case-news input.form__input::placeholder { color:#6b6b6b; }
.case-news .wpcf7-submit.form__button { width:auto; height:auto; min-height:45px; margin:0; padding:0 22px; border:0; border-radius:6px; background:var(--mk-blue); color:#fff; font:600 14px/1.3 Montserrat,Arial,sans-serif; text-transform:none; cursor:pointer; }
.case-news .wpcf7-submit.form__button:hover { background:#12b4ea; }
.case-news .wpcf7-form > p:nth-of-type(4) { display:flex; align-items:baseline; gap:7px; margin-top:1px; font-size:12px; line-height:1.45; color:#4a4a4a; }
.case-news .wpcf7-form > p:nth-of-type(4) > .wpcf7-form-control-wrap { display:inline; flex:none; }
.case-news .wpcf7-list-item { margin:0; }
.case-news .wpcf7-list-item input[type=checkbox] { position:static; -webkit-appearance:auto; appearance:auto; width:14px; height:14px; margin:0; accent-color:#111; cursor:pointer; }
.case-news .wpcf7-list-item-label { display:none; }
.case-news .checkbox_label { position:static; margin:0; padding:0; font:400 12px/1.45 Montserrat,Arial,sans-serif; color:#4a4a4a; cursor:pointer; }
.case-news .checkbox_label::before, .case-news .checkbox_label::after, .case-news .activeLabel::before, .case-news .activeLabel::after { content:none !important; display:none !important; }
.case-news .checkbox_label a { color:#0068a3; text-decoration:underline; text-underline-offset:3px; }
.case-news .wpcf7-not-valid-tip { margin-top:4px !important; font-size:12px !important; }
.case-news .wpcf7-response-output { margin:2px 0 0 !important; padding:8px 12px !important; font-size:13px; border-radius:6px; }
.case-news .wpcf7-spinner { margin:0 0 0 8px; }
@media (max-width:1050px) { .case-news__grid { grid-template-columns:1fr; gap:16px; } }
@media (max-width:520px) {
.case-news h2 { gap:9px; padding-top:0; font-size:clamp(20px,5.6vw,25px); }
.case-news .wpcf7-form { grid-template-columns:1fr; }
} .case-foot { color:#111; background:#fff; border-top:1px solid #dedede; font:400 14px/1.5 Montserrat,Arial,sans-serif; }
.case-foot #yandex-map { display:block; }
.case-foot__top { display:grid; grid-template-columns:minmax(170px,.95fr) minmax(305px,1.65fr) minmax(145px,.72fr) minmax(205px,.96fr); grid-template-areas:"brand services clients contact"; gap:clamp(20px,2.6vw,48px); padding:30px 0 24px; align-items:start; }
.case-foot__brand { grid-area:brand; }
.case-foot__services { grid-area:services; }
.case-foot__clients { grid-area:clients; }
.case-foot__contact { grid-area:contact; display:grid; justify-items:start; gap:7px; }
.case-foot__logo { display:inline-block; }
.case-foot__logo svg { width:145px; height:auto; display:block; }
.case-foot address { margin:13px 0 6px; max-width:32ch; font-style:normal; font-size:13px; line-height:1.5; color:#444; }
.case-foot__hours { display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:500; }
.case-foot__hours::before { content:""; width:7px; height:7px; border-radius:50%; background:#19bef0; }
.case-foot a { color:inherit; text-decoration:none; }
.case-foot a:hover { text-decoration:underline; text-underline-offset:3px; }
.case-foot nav h2 { margin:0; font:600 17px/1.4 Montserrat,Arial,sans-serif; color:#111; letter-spacing:0; text-transform:none; }
.case-foot nav ul { list-style:none; margin:9px 0 0; padding:0; }
.case-foot__services ul { columns:2; column-gap:18px; }
.case-foot nav li { break-inside:avoid; margin:0; padding:0; }
.case-foot nav li::before { content:none; }
.case-foot nav li a { display:block; padding:3px 0; font-size:13px; line-height:1.45; color:#111; }
.case-foot__phones { display:grid; gap:2px; }
.case-foot__phones a { font-size:18px; line-height:1.45; font-weight:700; white-space:nowrap; }
.case-foot__email { font-size:14px; overflow-wrap:anywhere; }
.case-foot__reach,.case-foot__social { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.case-foot__reach { column-gap:12px; }
.case-foot .case-foot__callback, .case-foot__policies a { text-decoration:underline; text-underline-offset:3px; }
.case-foot__callback { font-size:13px; }
.case-foot__social a { display:grid; place-items:center; width:30px; height:32px; }
.case-foot__social img { display:block; width:26px; height:26px; object-fit:contain; }
.case-foot .case-foot__calc { display:inline-flex; min-height:40px; padding:8px 16px; align-items:center; justify-content:center; background:#19bef0; color:#fff; font-size:14px; font-weight:700; border-radius:6px; }
.case-foot .case-foot__calc:hover { background:#0fa3d6; text-decoration:none; }
.case-foot__bottom { display:grid; grid-template-columns:minmax(180px,1fr) minmax(260px,1.8fr) auto; gap:18px; align-items:center; padding:14px 0; border-top:1px solid #e3e3e3; color:#555; font-size:12px; line-height:1.5; }
.case-foot__policies { display:flex; align-items:center; flex-wrap:wrap; gap:5px 16px; }
.case-foot__credit { display:inline-flex; align-items:center; gap:6px; width:fit-content; }
@media (max-width:1000px) and (min-width:681px) {
.case-foot__top { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); grid-template-areas:"brand contact" "services clients"; gap:22px 32px; }
.case-foot__bottom { grid-template-columns:1fr 1.3fr; }
.case-foot__credit { grid-column:1/-1; }
}
@media (max-width:680px) {
.case-foot__top { grid-template-columns:minmax(0,1fr); grid-template-areas:"brand" "contact" "services" "clients"; padding:20px 0 0; gap:0; }
.case-foot__brand { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:8px 12px; }
.case-foot__logo svg { width:125px; }
.case-foot__hours { grid-column:2; grid-row:1; justify-self:end; }
.case-foot address { grid-column:1/-1; margin:0; max-width:none; }
.case-foot__contact { padding:13px 0 17px; }
.case-foot__services,.case-foot__clients { border-top:1px solid #e3e3e3; }
.case-foot nav h2 { font-size:16px; padding:12px 0 5px; }
.case-foot nav ul { margin:0 0 10px; }
.case-foot nav li a { padding:5px 0; font-size:14px; }
.case-foot__services ul { columns:1; }
.case-foot__bottom { grid-template-columns:1fr; gap:9px; padding:14px 0 18px; }
.case-foot__policies { display:grid; gap:6px; }
}
@media (min-width:390px) and (max-width:680px) {
.case-foot__top { grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); grid-template-areas:"brand brand" "contact contact" "services clients"; column-gap:18px; }
}
@media (min-width:1001px) {
.case-foot nav h2 { font-size:20px; }
.case-foot nav li a,.case-foot__email,.case-foot__callback,.case-foot .case-foot__calc { font-size:16px; }
.case-foot__phones a { font-size:22px; }
.case-foot address,.case-foot__hours { font-size:15px; }
.case-foot__bottom { font-size:14px; }
}
@media (prefers-reduced-motion:reduce) { .case-photo img, .case-card, .case-page .mks-cta__call { transition:none; } }