/* Service typography, surfaces and controls. */
@media (prefers-reduced-motion: no-preference) {
    .home :is(.trust-strip, #services .reveal-on-scroll, #packages .reveal-on-scroll) {
        transition-duration: 420ms;
        transition-timing-function: cubic-bezier(.22, 1, .36, 1);
        will-change: auto;
    }
    .home :is(#services, #packages) .reveal-on-scroll:not(.is-visible) { transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
    .home :is(.trust-strip, #services .reveal-on-scroll, #packages .reveal-on-scroll) { transition: none; transform: none; opacity: 1; }
}
.geo-page { background: #f7f9f8; }
.geo-page :is(.landing-services, .landing-prices, .landing-tasks, .landing-structure, .landing-steps, .landing-faq, .related-landings),
.service-work, .service-delivery, .service-marketing, .service-contact { padding-block: 64px; overflow-wrap: anywhere; }
.geo-page .block .section-heading,
:is(.service-work, .service-delivery, .service-marketing, .service-contact) .section-heading { max-width: 760px; margin-bottom: 32px; }
.geo-page .block .section-heading h2,
:is(.service-work, .service-delivery, .service-marketing, .service-contact) .section-heading h2 { margin: 0 0 16px; color: #142629; font-size: 36px; font-weight: 750; line-height: 1.2; letter-spacing: 0; text-wrap: balance; }
.geo-page .block .section-heading p:not(.eyebrow),
:is(.service-work, .service-delivery, .service-marketing, .service-contact) .section-heading p:not(.eyebrow) { margin: 0; max-width: 680px; color: #58676d; font-size: 16px; font-weight: 400; line-height: 1.7; }
.geo-page .block .section-heading .eyebrow,
:is(.service-work, .service-delivery, .service-marketing, .service-contact) .section-heading .eyebrow { margin: 0 0 12px; color: #087555; font-size: 12px; font-weight: 750; line-height: 1.5; letter-spacing: 0; }
#service-work, #service-prices, #service-delivery, #contact { scroll-margin-top: 110px; }
.service-work, .service-delivery, .service-marketing, .service-contact { border-top: 1px solid #dce5e1; }

/* Local navigation stays visually distinct from calls to action. */
.service-jumps { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-block: 18px; border-bottom: 1px solid #dce5e1; }
.service-jumps a, .service-proof-links a, .service-text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #21675b; font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: none; }
.service-jumps a { color: #364d50; }
.service-jumps a i { color: #0a8560; width: 18px; text-align: center; }
.service-jumps a:hover, .service-proof-links a:hover, .service-text-link:hover { color: #076a93; text-decoration: underline; text-underline-offset: 5px; }
:is(.service-jumps, .service-work, .service-contact) a:focus-visible { outline: 2px solid #087eaa; outline-offset: 5px; border-radius: 2px; }

/* Individual service cards. */
.geo-page .landing-services .service-grid { gap: 20px; }
.geo-page .landing-services .service-grid:has(> article:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.geo-page .landing-services .service-grid > article { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; align-items: start; gap: 12px 20px; min-width: 0; padding: 28px; border: 1px solid #dbe5e0; border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgb(21 48 39 / 3%); }
.geo-page .landing-services .service-grid > article::before,
.geo-page .landing-services .service-grid > article::after { content: none; }
.geo-page .landing-services .service-grid > article h3 { align-self: center; margin: 0; color: #1b3032; font-size: 21px; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.geo-page .landing-services .service-grid > article p { grid-column: 2; margin: 0; color: #526469; font-size: 15px; font-weight: 400; line-height: 1.75; }
.geo-page .service-scope-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0; border: 1px solid #d1e9de; border-radius: 8px; background: #edf7f1; color: #087a54; font-size: 23px; box-shadow: none; }
.geo-page .landing-services article:nth-child(2n) .service-scope-icon { color: #086c96; background: #edf5fa; border-color: #d7e6ef; }
.geo-page .service-scope-icon .fa-solid { display: inline-block; }
.geo-page .landing-tasks .asg-task-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 10px; }
.asg-task-heading > span:last-child { min-width: 0; }
.asg-task-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; background: #e4f4ee; color: #087a58; font-size: 17px; line-height: 1; }

/* Real project imagery remains fully visible. */
.service-case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.service-case-list:empty { display: none; }
.service-work .service-case { display: grid; grid-template-columns: minmax(140px, .85fr) minmax(0, 1fr); align-items: start; gap: 24px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.service-case-image { display: block; aspect-ratio: 4 / 3; background: #edf2ef; overflow: hidden; border-radius: 6px; border: 1px solid #dce5e1; }
.service-case-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.service-case h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.service-case h3 a { color: #1b3032; }
.service-case p { margin: 0 0 12px; color: #526469; font-size: 15px; line-height: 1.7; }
.service-proof-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; }

/* Acceptance criteria and scope notes. */
.service-delivery-list { margin: 0; counter-reset: delivery; }
.service-delivery-list > div { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.4fr); align-items: start; gap: 32px; padding: 24px 0; border-top: 1px solid #dce5e1; }
.service-delivery-list > div:last-child { border-bottom: 1px solid #dce5e1; }
.service-delivery-list dt { display: flex; align-items: baseline; gap: 20px; color: #1b3032; font-size: 19px; font-weight: 700; line-height: 1.5; }
.service-delivery-list dt::before { counter-increment: delivery; content: counter(delivery, decimal-leading-zero); flex: 0 0 28px; color: #138469; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.service-delivery-list dd { margin: 0; color: #526469; font-size: 16px; line-height: 1.75; }
.service-boundaries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.service-boundaries > div { border-top: 3px solid #88bda7; padding-top: 20px; }
.service-boundaries > div:nth-child(2) { border-color: #88b7ce; }
.service-boundaries > div:nth-child(3) { border-color: #b3bdc1; }
.service-boundaries h3 { margin: 0 0 10px; color: #233c3e; font-size: 18px; line-height: 1.4; letter-spacing: 0; }
.service-boundaries p { margin: 0; color: #58676d; font-size: 15px; line-height: 1.75; }

.service-marketing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.service-marketing-grid li { min-width: 0; min-height: 100%; padding: 22px; border: 1px solid #d9e6e1; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgb(21 48 39 / 4%); }
.service-marketing-step { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 30px; margin-bottom: 18px; border: 1px solid #b9d8cc; border-radius: 999px; color: #087a58; background: #edf7f1; font-size: 13px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.service-marketing-grid li:nth-child(2n) .service-marketing-step { color: #086c96; background: #edf5fa; border-color: #b8d5e3; }
.service-marketing-grid h3 { margin: 0 0 10px; color: #1b3032; font-size: 19px; line-height: 1.35; letter-spacing: 0; }
.service-marketing-grid p { margin: 0; color: #526469; font-size: 15px; line-height: 1.7; }
.service-marketing-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 32px; padding: 18px 0; border-block: 1px solid #dce5e1; color: #526469; font-size: 15px; line-height: 1.65; }
.service-marketing-note strong { color: #1b3032; }
.service-marketing-note span { flex: 1 1 320px; min-width: 0; }
.service-marketing-note a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #21675b; font-weight: 650; text-decoration: none; }
.service-marketing-note a:hover { color: #076a93; text-decoration: underline; text-underline-offset: 5px; }

/* Brief and contact fields share dimensions and focus treatment. */
.service-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.service-contact-grid > * { min-width: 0; }
.service-brief { min-width: 0; max-width: 650px; }
.service-brief h3, .service-contact .lead-form h3 { margin: 0 0 20px; color: #1b3032; font-size: 24px; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.service-brief label { display: block; margin: 20px 0 8px; color: #30494b; font-size: 14px; font-weight: 600; line-height: 1.5; }
.service-brief select, .service-brief textarea,
.service-contact .lead-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.service-contact .lead-form textarea { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 50px; padding: 13px 14px; border: 1px solid #becfca; border-radius: 6px; background: #fff; color: #233b3e; box-shadow: none; font: inherit; font-size: 16px; line-height: 1.5; }
.service-brief textarea { resize: vertical; min-height: 180px; }
.service-brief textarea[readonly] { background: #eef3f5; border-color: #d4e0e4; color: #42606a; font-size: 14px; line-height: 1.75; }
.service-brief :is(select, textarea, button):focus-visible,
.service-contact .lead-form :is(input, textarea):focus-visible { outline: 2px solid #087a58; outline-offset: 3px; }
.brief-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.brief-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 18px; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 650; line-height: 1.5; cursor: pointer; }
.brief-actions .btn-primary { background: #087a58; color: #fff; border: 1px solid #087a58; box-shadow: none; }
.brief-actions .btn-primary:hover { background: #086549; border-color: #086549; }
.brief-download { color: #126989; background: transparent; border: 1px solid #b5cfda; }
.brief-download:hover { background: #eaf3f7; }
.brief-download i { transform: rotate(90deg); }
.brief-status { min-height: 24px; margin: 12px 0 0; color: #08734f; font-size: 14px; line-height: 1.6; }
.brief-enhanced[hidden] { display: none; }
.service-contact .lead-form { min-width: 0; padding: 28px; background: #fff; border: 1px solid #d4e1da; border-top: 3px solid #087a58; border-radius: 8px; box-shadow: 0 8px 24px rgb(21 48 39 / 4%); }
.service-contact .lead-form .form-head { padding-bottom: 20px; border-bottom: 1px solid #e1e9e5; }
.service-contact .lead-form .form-head h3 { margin: 0; }
.service-contact .lead-form .form-head p { color: #58676d; font-size: 14px; line-height: 1.65; }
.service-contact .lead-form .wpcf7-submit { background: #087a58; box-shadow: none; border-radius: 6px; }
.service-contact .lead-form .form-telegram-button { background: #eff6fa; color: #106c92; border: 1px solid #d0e3ed; border-radius: 6px; box-shadow: none; }
.service-contact .lead-form .form-telegram-button:hover { background: #e0eff6; }
.service-contact .lead-form .wpcf7-response-output:empty,
.service-contact .lead-form .cf7-response-top:has(.wpcf7-response-output:empty) { display: none; }
.service-contact .lead-form textarea { min-height: 160px; max-height: none; }

.project-brief-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: start; gap: 48px; }
.project-brief-layout .service-brief { max-width: none; }
.project-brief-visual { margin: 0; min-width: 0; }
.project-brief-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1122 / 1402; object-fit: contain; border-radius: 8px; }
.brief-parameter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.brief-parameter-grid > div { min-width: 0; }
.brief-partnership { min-width: 0; margin: 24px 0; padding: 18px 0; border: 0; border-block: 1px solid #dce5e1; }
.brief-partnership[hidden] { display: none; }
.brief-partnership legend { padding: 0 8px 0 0; color: #21675b; font-size: 16px; font-weight: 650; }
.brief-partnership-offer { margin: 0 0 8px; color: #14212a; font-size: 20px; line-height: 1.35; font-weight: 700; }
.service-brief .brief-partnership textarea { min-height: 128px; }
.brief-budget { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 8px; }
.service-brief input:not([type="checkbox"]):not([type="file"]) { width: 100%; min-width: 0; min-height: 50px; border: 1px solid #becfca; border-radius: 6px; padding: 12px 14px; background: #fff; color: #233b3e; font: inherit; font-size: 16px; }
.brief-details, .project-files { margin: 24px 0; padding: 18px 0; border-block: 1px solid #dce5e1; }
.brief-details summary, .project-files summary { cursor: pointer; color: #21675b; font-size: 16px; font-weight: 650; line-height: 1.5; }
.brief-details summary:focus-visible, .project-files summary:focus-visible { outline: 2px solid #087a58; outline-offset: 4px; }
.brief-options { padding: 0; margin: 20px 0; border: 0; min-width: 0; }
.brief-options legend { padding: 0; margin-bottom: 12px; color: #30494b; font-size: 14px; font-weight: 600; }
[data-brief-extras] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-brief .brief-options label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.5; }
.brief-options input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #087a58; }
.service-brief .brief-details textarea { min-height: 96px; }
.brief-upload { margin: 24px 0; }
.brief-upload[hidden] { display: none; }
.service-brief input[type="file"], .lead-form input[type="file"] { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 50px; border: 1px dashed #a7c6ba; border-radius: 6px; padding: 8px; box-shadow: none; background: #f4f8f6; color: #34574d; font: inherit; font-size: 13px; overflow: hidden; }
:is(.service-brief, .lead-form) input[type="file"]::file-selector-button { margin-right: 10px; min-height: 34px; border: 0; border-radius: 4px; background: #e0efe9; color: #17654b; padding: 8px 12px; font: inherit; font-weight: 650; cursor: pointer; }
.brief-field-note { margin: 10px 0; color: #62716d; font-size: 13px; line-height: 1.6; }
.brief-file-list { list-style: none; padding: 0; margin: 12px 0; }
.brief-file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #dce5e1; padding: 8px 0; color: #30494b; font-size: 14px; }
.brief-file-list li span { min-width: 0; overflow-wrap: anywhere; }
.brief-file-list button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #d0ded8; border-radius: 6px; background: #fff; color: #34574d; cursor: pointer; }
.brief-file-list button:hover { background: #fff1ef; color: #9c372c; }
.brief-file-status { color: #953326; font-size: 14px; line-height: 1.5; }
.project-files .cf7-field { margin-top: 16px; }
:is(.service-brief, .lead-form) :is(select, input, textarea):focus { border-color: #087a58; outline: 2px solid #087a58; outline-offset: 2px; box-shadow: 0 0 0 4px rgb(8 122 88 / 10%); }
.service-brief .brief-options label:has(input:checked) { color: #087a58; font-weight: 600; }
@media (min-width: 701px) { .project-brief-visual { position: sticky; top: 112px; } }
@media (max-width: 1100px) {
    .project-brief-layout { gap: 28px; }
    .geo-page .landing-services .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .geo-page .landing-services .service-grid > article { grid-template-columns: 48px minmax(0, 1fr); padding: 24px; gap: 12px 16px; }
    .geo-page .service-scope-icon { width: 48px; height: 48px; font-size: 21px; }
    .service-case-list { grid-template-columns: minmax(0, 1fr); }
    .service-work .service-case { grid-template-columns: minmax(180px, .6fr) minmax(0, 1fr); }
    .service-contact-grid { gap: 28px; }
}
@media (max-width: 700px) {
    .brief-parameter-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    [data-brief-extras] { grid-template-columns: minmax(0, 1fr); }
    .project-brief-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .project-brief-visual { max-width: 560px; width: 100%; justify-self: center; }
    .geo-page .section-wrap:not(.built-hero) { width: calc(100% - 40px); }
    .geo-page :is(.landing-services, .landing-prices, .landing-tasks, .landing-structure, .landing-steps, .landing-faq, .related-landings),
    .service-work.block, .service-delivery.block, .service-marketing.block, .service-contact.block { padding-block: 40px; }
    .geo-page .block .section-heading h2,
    :is(.service-work, .service-delivery, .service-marketing, .service-contact) .section-heading h2 { font-size: 27px; line-height: 1.25; }
    .geo-page .block .section-heading,
    :is(.service-work, .service-delivery, .service-marketing, .service-contact) .section-heading { margin-bottom: 24px; }
    .geo-page .landing-services .service-grid,
    .geo-page .landing-services .service-grid:has(> article:nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .geo-page .landing-services .service-grid > article { padding: 20px; gap: 14px; }
    .geo-page .landing-services .service-grid > article h3 { font-size: 20px; }
    .geo-page .landing-services .service-grid > article p { grid-column: 1 / -1; }
    .service-contact-grid, .service-boundaries, .service-marketing-grid { grid-template-columns: minmax(0, 1fr); }
    .service-contact-grid { gap: 32px; }
    .service-boundaries { gap: 24px; margin-top: 28px; }
    .service-boundaries > div { padding-top: 16px; }
    .service-delivery-list > div { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 0; }
    .service-delivery-list dt { gap: 12px; font-size: 18px; }
    .service-delivery-list dd { font-size: 15px; }
    .service-brief { max-width: none; }
    .service-work .service-case { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .service-case-image { max-height: 280px; }
    .service-jumps { gap: 4px 20px; }
    .service-contact .lead-form { padding: 20px 16px; }
    .brief-actions { align-items: stretch; }
    .brief-actions button { flex: 1 1 180px; }
}
@media (max-width: 480px) {
    .service-contact .cf7-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
.lead-form .wpcf7 form .wpcf7-response-output:empty {
    display: none;
}

.lead-form .cf7-grid .wpcf7-form-control-wrap {
    display: grid;
    grid-template-rows: auto minmax(46px, auto);
}

.lead-form .cf7-grid .wpcf7-not-valid-tip {
    grid-row: 2;
    align-self: start;
    line-height: 20px;
}
