/*
Theme Name: MEND FWD
Theme URI: https://mendfwd.com
Author: Nail Mukhtarov
Description: Bilingual WordPress repair and web-support theme for MEND FWD by Nail Mukhtarov.
Version: 2.2.6
Text Domain: nail-wp-care
*/

:root {
  --ink: #152031;
  --muted: #586576;
  --surface: #f5f7fa;
  --card: #ffffff;
  --line: #dce3eb;
  --brand: #0f766e;
  --brand-dark: #0b5651;
  --focus: #b45309;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; padding: .6rem 1rem; }
.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* FI: Tunnus yhdistää selainikkunan, korjauslinjan ja eteenpäin osoittavan nuolen. RU: Знак объединяет окно браузера, линию исправления и стрелку вперёд. */
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: .62rem; font-size: 1.15rem; font-weight: 800; line-height: 1.05; text-decoration: none; white-space: nowrap; }
.brand--home { min-height: 56px; padding: .3rem .5rem .3rem .3rem; border: 1px solid #9ccfc8; border-radius: .65rem; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.brand--home:hover { background: #edf9f7; border-color: var(--brand); box-shadow: 0 4px 12px rgba(15, 118, 110, .14); transform: translateY(-1px); }
.brand--home:active { background: #dff3f0; box-shadow: inset 0 2px 4px rgba(11, 86, 81, .12); transform: translateY(0) scale(.99); }
.brand-mark { display: block; flex: 0 0 auto; height: 48px; width: 74px; }
.brand-wordmark { display: inline-flex; flex-direction: column; gap: .13rem; letter-spacing: -.018em; }
.brand-wordmark__name { color: var(--ink); }
.brand-wordmark__service { color: var(--brand); font-size: .78em; letter-spacing: .01em; }
.brand:hover .brand-wordmark__name, .brand:focus-visible .brand-wordmark__name { color: var(--brand-dark); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .2rem .35rem; }
.site-nav a { color: #263448; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 3px solid transparent; border-radius: .4rem .4rem 0 0; font-size: .93rem; font-weight: 600; text-decoration: none; padding: .35rem .55rem .18rem; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.menu-toggle { display: none; align-items: center; gap: .55rem; min-height: 44px; border: 2px solid var(--brand); border-radius: .5rem; background: #fff; color: var(--brand-dark); cursor: pointer; font: inherit; font-weight: 800; padding: .55rem .75rem; }
.menu-toggle:hover { background: #e2f2f0; }
.menu-backdrop { display: none; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 1.15rem; height: 2px; border-radius: 1px; background: currentColor; content: ''; }
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before { position: absolute; top: -.34rem; left: 0; }
.menu-toggle__icon::after { position: absolute; top: .34rem; left: 0; }
.site-nav > a:hover { background: #edf9f7; color: var(--brand-dark); }
.site-nav > a[aria-current] { border-bottom-color: var(--brand); color: var(--brand-dark); font-weight: 800; }
.site-nav > a[aria-current]:hover { background: transparent; }
.language-switch, .language-link { display: inline-flex; gap: .25rem; border-left: 1px solid var(--line); margin-left: .35rem; padding-left: .55rem; }
.language-switch a { min-height: 36px; border-bottom: 0; border-radius: .35rem; font-weight: 750; padding: .35rem .4rem; }
.language-switch a:hover { background: #edf9f7; color: var(--brand-dark); }
.language-switch a[aria-current] { background: #e2f3f0; color: var(--brand-dark); font-weight: 800; }
.hero { padding: clamp(3.2rem, 8vw, 7rem) 0 4rem; background: linear-gradient(130deg, #edf9f7 0%, #f5f7fa 55%, #e8f0fe 100%); }
.eyebrow { margin: 0 0 .65rem; color: var(--brand-dark); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
h1 { max-width: 870px; font-size: clamp(2.2rem, 5.6vw, 4.7rem); margin: 0; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .6rem; }
.lead { max-width: 700px; margin: 1.35rem 0 0; color: #354255; font-size: clamp(1.08rem, 2vw, 1.25rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button { display: inline-block; background: var(--brand); color: #fff; border: 2px solid var(--brand); border-radius: .5rem; padding: .7rem 1rem; font-weight: 750; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button:active { transform: translateY(1px) scale(.985); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .16); }
.button--ghost { background: transparent; color: var(--brand-dark); }
.button--ghost:hover { background: #e2f2f0; color: var(--brand-dark); }
/* FI: Toissijainen painike erottuu päätoiminnosta myös näppäimistöllä.
 * RU: Вторичная кнопка визуально отличается от основного действия и доступна с клавиатуры. */
.button--disabled, .button--disabled:hover, .button--disabled:active { background: #f1f5f5; border-color: #b7c5c4; color: #5d6b6b; cursor: default; box-shadow: none; transform: none; }
.no-diagnosis-note { max-width: 660px; margin: 1rem 0 0; color: #354255; font-weight: 650; }
.hero-profiles { display: flex; flex-wrap: wrap; gap: .28rem .42rem; margin-top: 1rem; color: var(--muted); font-size: .93rem; }
.hero-profiles a { font-weight: 750; }
.trust-line { margin: 1.2rem 0 0; color: var(--muted); font-size: .92rem; }
.section { padding: clamp(3rem, 6vw, 5.3rem) 0; }
.section--white { background: #fff; }
.section-intro { max-width: 720px; color: var(--muted); margin: -.25rem 0 1.7rem; }
.grid { display: grid; gap: 1.15rem; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: .85rem; padding: 1.35rem; box-shadow: 0 8px 28px rgba(17, 35, 55, .04); }
.card p { color: var(--muted); margin: 0; }
.card--linked { display: block; color: var(--ink); border-left: 5px solid var(--brand); border-radius: 0 .85rem .85rem 0; text-decoration: none; }
.card-link-label { display: inline-block; margin-top: .85rem; color: var(--brand-dark); font-weight: 750; text-decoration: underline; text-underline-offset: .16em; }
.card-link-label::after { content: '→'; display: inline-block; margin-left: .35rem; transition: transform .18s ease; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.step { position: relative; padding: 1.25rem; border: 1px solid #cbe8e3; border-left: 5px solid var(--brand); border-radius: 0 .85rem .85rem 0; background: #fff; box-shadow: 0 8px 28px rgba(17, 35, 55, .04); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 999px; background: #dff3f0; color: var(--brand-dark); font-size: .82rem; font-weight: 800; }
.step h3 { margin-top: .7rem; }
.step p { margin-bottom: 0; color: var(--muted); }
.workflow-panels { display: grid; gap: 1.25rem; max-width: 900px; margin-top: 2rem; }
.workflow-card { border: 1px solid #cbe8e3; border-left: 5px solid var(--brand); border-radius: 0 .85rem .85rem 0; padding: 1.4rem 1.5rem; background: #fff; box-shadow: 0 8px 28px rgba(17, 35, 55, .04); }
.workflow-card h2 { font-size: 1.55rem; }
.workflow-card p:last-child, .workflow-card ol:last-child { margin-bottom: 0; }
.workflow-card--access { background: #edf9f7; }
.notice { max-width: 880px; margin-top: 1.25rem; padding: 1.3rem 1.5rem; border: 1px solid #f5dba3; border-left: 5px solid var(--focus); border-radius: 0 .85rem .85rem 0; background: #fff8e8; }
.notice p { margin-bottom: 0; }
.case-box { max-width: 880px; margin-top: 2rem; padding: 1.5rem; border: 1px solid #cbe8e3; border-left: 5px solid var(--brand); border-radius: 0 .85rem .85rem 0; background: #edf9f7; box-shadow: 0 8px 28px rgba(17, 35, 55, .04); }
.case-proof-grid, .about-proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; max-width: 980px; margin-top: 1.25rem; }
.case-proof-card, .about-proof-card { border: 1px solid #cbe8e3; border-left: 4px solid var(--brand); border-radius: 0 .85rem .85rem 0; padding: 1.3rem 1.4rem; background: #fff; box-shadow: 0 8px 28px rgba(17, 35, 55, .04); }
.about-proof-card:last-child { grid-column: 1 / -1; }
.case-proof-card h2, .about-proof-card h2 { font-size: 1.4rem; margin: .2rem 0 .7rem; }
.case-proof-card p, .about-proof-card p { color: #354255; margin: 0; }
.project-area { color: var(--brand-dark) !important; font-size: .86rem; font-weight: 750; letter-spacing: .02em; text-transform: uppercase; }
.case-evidence { max-width: 880px; margin-top: 1.25rem; padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; }
.case-evidence h2 { font-size: 1.55rem; }
.case-evidence ul { margin: .75rem 0 0; padding-left: 1.25rem; }
.case-evidence li + li { margin-top: .35rem; }
.content-page { padding: 4rem 0 5.5rem; background: #fff; min-height: 65vh; }
.content-page .page-intro { max-width: 760px; font-size: 1.15rem; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1.25rem; min-height: 44px; color: var(--brand-dark); font-weight: 750; text-decoration: none; }
.back-link::before { content: '\2190'; font-size: 1.25rem; line-height: 1; transition: transform .18s ease; }
.back-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: .18em; }
.back-link:hover::before { transform: translateX(-3px); }
.service-actions { margin-top: 1.5rem; }
.content-page .content-block { max-width: 880px; margin-top: 2rem; }
.content-page .content-block, .legal-content { border: 1px solid #cbe8e3; border-left: 5px solid var(--brand); padding: 1.35rem 1.5rem; background: #edf9f7; border-radius: 0 .85rem .85rem 0; }
.content-page .content-block > :first-child, .legal-content > :first-child { margin-top: 0; }
.content-page .content-block > :last-child, .legal-content > :last-child { margin-bottom: 0; }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; margin-top: 2rem; }
.service-detail { border: 1px solid #cbe8e3; border-left: 4px solid var(--brand); border-radius: 0 .85rem .85rem 0; padding: 1.3rem 1.4rem; background: #edf9f7; }
.service-detail h2 { font-size: 1.4rem; }
.service-detail p { margin: .7rem 0 0; color: #354255; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; margin-top: 2rem; }
.price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
.price-card { display: flex; flex-direction: column; }
.price-card h2 { font-size: clamp(1.22rem, 2.2vw, 1.45rem); }
.price-card .price-label { color: var(--muted); display: block; font-size: .8rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.price-card .price { color: var(--brand-dark); font-size: 1.65rem; font-weight: 800; line-height: 1.1; margin: .25rem 0 .8rem; }
.price-card .price-tax { border-top: 1px solid var(--line); color: #354255; font-size: .93rem; font-weight: 650; margin: 0 0 .9rem; padding-top: .85rem; }
.price-card .price-note { margin-top: auto; padding-top: 1rem; font-size: .9rem; }
.price-terms { max-width: 900px; margin-top: 1.25rem; color: var(--muted); font-size: .94rem; }
.payment-terms, .contact-details { max-width: 900px; margin-top: 2rem; padding: 1.35rem; background: #edf9f7; border: 1px solid #cbe8e3; border-left: 5px solid var(--brand); border-radius: 0 .85rem .85rem 0; }
.payment-terms h2, .contact-details h2 { font-size: 1.55rem; margin-bottom: .7rem; }
.payment-terms p, .contact-details p { margin: .7rem 0 0; }
.about-background { border-left: 4px solid var(--brand); padding: 1.2rem 1.35rem; background: #edf9f7; border-radius: 0 .7rem .7rem 0; }
.profile-links { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.65rem 0 2rem; }
.about-intro-layout { display: grid; grid-template-columns: minmax(220px, 310px) minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 4vw, 3rem); max-width: 980px; }
.about-intro-layout h1 { font-size: clamp(2rem, 4.2vw, 3.8rem); }
.profile-photo-frame { margin: 0; border: 1px solid #cbe8e3; border-radius: 1rem; overflow: hidden; background: #edf9f7; box-shadow: 0 12px 32px rgba(17, 35, 55, .1); }
.profile-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 22%; }
/* FI: Projektikortit näyttävät kehitystyön tarkoituksen, toteutetun osuuden ja tilan ilman asiakas- tai lähdekooditietojen paljastamista.
 * RU: Карточки проектов показывают задачу, реализованную часть и статус разработки, не раскрывая данные клиентов и исходный код. */
.selected-work { margin-top: 2.5rem; }
.selected-work__intro { max-width: 790px; color: var(--muted); }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; margin-top: 1.35rem; }
.project-card { display: flex; flex-direction: column; border: 1px solid #cbe8e3; border-top: 5px solid var(--brand); border-radius: .85rem; padding: 1.35rem; background: #fff; box-shadow: 0 8px 28px rgba(17, 35, 55, .04); }
.project-card h3 { margin: .75rem 0 .7rem; font-size: 1.45rem; }
.project-card p { color: #354255; }
.project-status { display: inline-flex; align-self: flex-start; margin: 0; padding: .32rem .58rem; border-radius: 999px; background: #e2f3f0; color: var(--brand-dark) !important; font-size: .76rem; font-weight: 800; letter-spacing: .025em; line-height: 1.2; text-transform: uppercase; }
.project-card h4 { margin: 1.15rem 0 .45rem; color: var(--brand-dark); font-size: 1rem; }
.project-card ul { margin: 0; padding-left: 1.2rem; color: #354255; }
.project-card li + li { margin-top: .35rem; }
.project-tech { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 700; }
.project-boundary { margin: .65rem 0 0; color: var(--muted) !important; font-size: .9rem; }
.development-note { max-width: 880px; margin-top: 1.25rem; padding: 1.3rem 1.5rem; border: 1px solid #cbe8e3; border-left: 5px solid var(--brand); border-radius: 0 .85rem .85rem 0; background: #edf9f7; }
.development-note h2 { font-size: 1.55rem; }
.development-note p:last-child { margin-bottom: 0; }

/* FI: Liike kertoo toiminnosta. Vain painikkeet ja linkilliset kortit reagoivat hiireen.
 * RU: Движение показывает действие. На наведение реагируют только кнопки и карточки со ссылкой. */
.button, .card--linked, .card-link-label::after, input, textarea {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card--linked:hover {
    transform: translateY(-3px);
    border-color: #7dc9c1;
    box-shadow: 0 14px 32px rgba(15, 118, 110, .12);
  }
  .card--linked:hover .card-link-label::after { transform: translateX(3px); }
}
.card--linked:active {
  transform: translateY(0) scale(.992);
  box-shadow: 0 6px 16px rgba(15, 118, 110, .1);
}
input:hover, textarea:hover { border-color: #7dc9c1; }
input:focus, textarea:focus { border-color: var(--brand); background: #f7fffd; box-shadow: 0 0 0 4px rgba(15, 118, 110, .13); outline: 0; }
.form-field:focus-within label { color: var(--brand-dark); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .card--linked, .card-link-label::after, .back-link::before, input, textarea { transition: none; }
}
.content-page ul { padding-left: 1.25rem; }
.legal-page { background: #fff; }
.legal-page h1 { max-width: 920px; }
.legal-content { max-width: 920px; margin-top: 2rem; }
.legal-content h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: #354255; }
.legal-content ol { padding-left: 1.35rem; }
.form-wrap { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: .35rem; }
.form-field--full { grid-column: 1 / -1; }
label { font-weight: 700; }
input, textarea { width: 100%; padding: .65rem .72rem; border: 1px solid #aab5c3; border-radius: .42rem; font: inherit; }
textarea { min-height: 150px; resize: vertical; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-security-note, .form-choice-note { margin: 1rem 0; padding: .85rem 1rem; border-left: 4px solid var(--brand); background: #edf9f7; color: #31495a; font-size: .94rem; }
.form-choice-note { border-left-color: var(--focus); background: #fff8e8; }
.form-consent { margin: 1rem 0; display: flex; align-items: flex-start; gap: .55rem; }
.form-consent input { width: auto; margin-top: .35rem; }
.status { border-radius: .45rem; padding: .85rem 1rem; background: #e7f7ef; color: #155d38; margin-bottom: 1rem; }
.status--error { background: #fff0ef; color: #a32920; }
.site-footer { background: #152031; color: #eaf0f7; padding: 1.35rem 0 1.05rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .75rem 2rem; }
.footer-brand { display: grid; gap: .12rem; }
.footer-brand-title { color: #fff; margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.footer-brand p { margin: 0; font-size: .9rem; }
.footer-brand a, .footer-links a { color: #d2f2ed; }
.footer-links { display: grid; gap: 0; justify-items: end; }
.footer-links div { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { display: inline-flex; align-items: center; min-height: 38px; font-size: .9rem; }
.footer-divider, .footer-joiner { display: inline-flex; align-items: center; min-height: 38px; color: #a9bacd; user-select: none; }
.footer-divider { padding: 0 .35rem; }
.footer-joiner { padding-left: .22rem; }
.footer-copyright { grid-column: 1 / -1; margin: 0; padding-top: .55rem; border-top: 1px solid rgba(196, 208, 221, .22); color: #c4d0dd; font-size: .82rem; line-height: 1.35; }
@media (max-width: 1024px) {
  .grid--four, .steps, .service-detail-grid, .project-grid, .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* FI: Suljettu tablet- ja puhelinvalikko on aina yksi kompakti rivi.
   * Avattu valikko on kelluva oikean reunan paneeli eikä siirrä sivun sisältöä.
   * RU: Закрытая шапка на планшете и телефоне всегда состоит из одной компактной строки.
   * Открытое меню — плавающая панель справа, поэтому оно не сдвигает содержимое страницы. */
  .header-inner { position: relative; z-index: 2; min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .45rem 0; }
  .brand { min-width: 0; gap: .4rem; font-size: 1rem; }
  .brand--home { min-height: 46px; padding: .16rem .34rem .16rem .2rem; }
  .brand-mark { width: 64px; height: 42px; }
  .brand-wordmark__service { display: none; }
  .menu-toggle { display: inline-flex; min-height: 42px; margin-left: 0; padding: .48rem .65rem; }
  .site-nav { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: .2rem; justify-content: flex-start; }
  .site-nav a { justify-content: flex-start; width: 100%; }
  .site-nav .language-switch { align-self: stretch; border-top: 1px solid var(--line); border-left: 0; margin: .35rem 0 0; padding: .55rem 0 0; }
  .site-nav .language-switch a { width: auto; }
  body.nav-enhanced .site-nav { display: none; }
  body.nav-enhanced .site-nav.is-open { position: fixed; top: 4.7rem; right: max(.7rem, calc((100vw - var(--max)) / 2)); z-index: 3; display: flex; width: min(22rem, calc(100vw - 1.4rem)); max-height: calc(100dvh - 5.4rem); overflow-y: auto; padding: .7rem; border: 1px solid #b7dcd7; border-radius: .85rem; background: #fff; box-shadow: 0 18px 50px rgba(17, 35, 55, .24); }
  body.nav-enhanced .site-nav.is-open > a { min-height: 46px; border-bottom-width: 0; border-radius: .5rem; padding: .55rem .65rem; }
  body.nav-enhanced .site-nav.is-open > a[aria-current] { background: #edf9f7; }
  body.nav-enhanced .menu-backdrop.is-visible { position: fixed; inset: 0; z-index: 1; display: block; background: rgba(21, 32, 49, .26); }
  body.mobile-nav-open { overflow: hidden; }
  /* FI: Tabletilla alatunniste pysyy kahdessa tasapainoisessa sarakkeessa.
   * RU: На планшете подвал остаётся в двух сбалансированных колонках.
   * MEND-FWD-COMPACT-FOOTER: tablet-two-columns */
  .site-footer { padding: 1.2rem 0 .9rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem); align-items: start; gap: .65rem clamp(1.25rem, 5vw, 2.5rem); }
  .footer-links { justify-items: end; padding-top: .02rem; }
  .footer-links div { justify-content: flex-end; column-gap: .72rem; row-gap: 0; }
  .footer-divider, .footer-joiner { display: none; }
  .footer-copyright { margin-top: .05rem; padding-top: .5rem; }
}
@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner, .container { width: min(calc(100% - 1.4rem), var(--max)); }
  .grid--two, .grid--four, .price-grid, .steps, .form-grid, .service-detail-grid, .project-grid, .case-proof-grid, .about-proof-grid, .projects-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .site-nav { gap: .1rem .35rem; width: 100%; }
  .site-nav a { font-size: .9rem; }
  .language-switch, .language-link { margin-left: 0; border-left: 0; padding-left: 0; }
  .language-switch a { min-height: 44px; }
  .content-page { padding: 2.7rem 0 3.5rem; }
  .content-page .content-block, .legal-content, .service-detail, .case-evidence, .case-proof-card, .about-proof-card, .project-card, .development-note { padding: 1.1rem; }
  .workflow-card { padding: 1.15rem; }
  .brand-mark { height: 42px; width: 65px; }
  .brand--home { min-height: 50px; padding: .24rem .4rem .24rem .24rem; }
  .about-intro-layout { grid-template-columns: 1fr; }
  .profile-photo-frame { width: min(280px, 100%); }
  /* FI: Puhelimessa linkit pakkaantuvat lyhyiksi riveiksi ilman yksinäistä kohtaa.
   * RU: На телефоне ссылки собираются в короткие строки без одинокого пункта.
   * MEND-FWD-COMPACT-FOOTER: mobile-compact */
  .site-footer { padding: .95rem 0 .7rem; }
  .footer-inner { grid-template-columns: 1fr; gap: .48rem; }
  .footer-brand { gap: .06rem; }
  .footer-brand p { font-size: .87rem; }
  .footer-links { width: 100%; justify-items: start; }
  .footer-links div { justify-content: flex-start; column-gap: .72rem; row-gap: 0; }
  .footer-links a { min-height: 36px; font-size: .87rem; }
  .footer-copyright { margin-top: .08rem; padding-top: .45rem; font-size: .78rem; }
}
/* FI: Kapealla puhelimella tunnus ja valikko pidetään samalla rivillä.
 * RU: На узком телефоне логотип и меню остаются на одной строке. */
@media (max-width: 520px) {
  .brand { min-width: 0; gap: .4rem; font-size: .98rem; }
  .brand-mark { width: 60px; height: 39px; }
  .button-row > .button:first-child { width: 100%; text-align: center; }
}
