/* Blog shell — стилі з golovna2 + стаття */
:root {
  --bg: #f1f1f0;
  --card: #ffffff;
  --tile: #f4f4f2;
  --tile-empty: #f0f0ee;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --line: #e8e8e6;
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 1280px; margin: 0 auto; padding: 24px; }
.frame {
  background: var(--card);
  border-radius: 28px;
  padding: 24px 24px 0;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #222; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: #f7f7f5; }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }

.brand {
  display: inline-block;
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 4px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.nav-links { display: flex; gap: 28px; list-style: none; margin-right: auto; }
.nav-links a {
  color: #2b2b2b;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 450;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  flex-shrink: 0;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.lang-switch a:hover { color: var(--ink); background: var(--tile); }
.lang-switch a.is-active {
  background: var(--ink);
  color: #fff;
}
.lang-switch-mobile {
  margin: 8px 0 12px;
  width: fit-content;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
}
.burger svg { width: 18px; height: 18px; }

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  flex-direction: column;
  gap: 4px;
  z-index: 60;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  border-radius: 10px;
}
.mobile-menu a:hover { background: var(--tile); }
.mobile-menu .btn { margin-top: 8px; width: 100%; padding: 14px 18px; font-size: 15px; }

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 60px 30px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.15fr 2fr;
  gap: 70px;
  padding-bottom: 56px;
}
.f-brand-block { max-width: 340px; }
.brand-word {
  display: inline-block;
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 16px;
}
.f-brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.f-contacts {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.f-contacts a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease;
}
.f-contacts a:hover { color: var(--ink); }
.f-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.f-col-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}
.f-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.f-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .2s ease;
}
.f-col a:hover { color: var(--ink); }
.f-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted-2);
}
.f-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.f-legal a {
  color: var(--muted-2);
  text-decoration: none;
  font-size: 12.5px;
  transition: color .2s ease;
}
.f-legal a:hover { color: var(--ink); }

/* Стаття блогу */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px 80px;
}
.blog-article-header { margin-bottom: 0; }
.blog-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.blog-title {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 0;
}
.blog-meta > * + *::before {
  content: "·";
  margin: 0 12px;
  color: var(--muted-2);
}
.article-rule {
  border: 0;
  height: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0 32px;
}
.blog-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  margin-bottom: 28px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.blog-excerpt {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
}

.blog-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.blog-body > *:first-child { margin-top: 0; }
.blog-body p { margin: 0 0 1.15em; }
.blog-body h2 {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
}
.blog-body h3 {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 650;
  margin: 1.5em 0 0.5em;
}
.blog-body ul,
.blog-body ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}
.blog-body li { margin-bottom: 0.4em; }
.blog-body a { color: var(--ink); text-underline-offset: 3px; }
.blog-body blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--ink);
  background: var(--tile);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}
.blog-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  margin: 1.4em 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.blog-body p:has(> img:only-child) {
  margin: 1.4em 0;
}
.blog-body p:has(> img:only-child) img {
  margin: 0;
}
.blog-body figure { margin: 1.4em 0; }
.blog-body figcaption {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* Архів портфоліо / кейсів */
.portfolio-archive {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 40px 88px;
}
.portfolio-archive-head {
  max-width: 560px;
  margin: 0 0 40px;
}
.portfolio-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.portfolio-title {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.portfolio-lead {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.portfolio-card .blog-image {
  width: 100%;
  margin-bottom: 4px;
  border-radius: 14px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 24px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 6px 18px rgba(0,0,0,0.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  min-height: 0;
}
.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.04), 0 14px 30px rgba(0,0,0,0.06);
  border-color: #dddcd8;
}
.portfolio-card-niche {
  display: inline-flex;
  align-items: center;
  background: var(--tile);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
}
.portfolio-card-title {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}
.portfolio-card-text {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}
.portfolio-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.portfolio-card-more svg {
  width: 15px;
  height: 15px;
  transition: transform .2s ease;
}
.portfolio-card:hover .portfolio-card-more svg {
  transform: translateX(3px);
}
.portfolio-empty {
  grid-column: 1 / -1;
  padding: 36px 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

/* Архів блогу v2 — список */
.blog-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 60px 60px;
}
.blog-item {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.blog-item:first-child { padding-top: 0; }
.blog-item:last-child { border-bottom: none; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted-2);
}
.blog-meta .cat {
  background: var(--tile);
  color: var(--muted);
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
}
.blog-item h2 {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 18px;
}
.blog-item h2 a { color: var(--ink); text-decoration: none; }
.blog-item h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-image {
  aspect-ratio: 16 / 9;
  background: var(--tile);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}
.blog-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-item p.excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 20px;
}
.blog-empty {
  padding: 36px 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

/* Архів портфоліо v2 — 3 колонки з зображеннями */
.portfolio-showcase {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 60px 20px;
}
.portfolio-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.p-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.p-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.04), 0 14px 30px rgba(0,0,0,0.06);
}
.p-image {
  aspect-ratio: 4 / 3;
  background: var(--tile);
  position: relative;
  overflow: hidden;
}
.p-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-image .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 12.5px;
  text-align: center;
  padding: 0 20px;
}
.p-body { padding: 22px 22px 24px; }
.p-niche {
  display: inline-block;
  background: var(--tile);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.p-body h3 {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.p-body p.desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
}
.p-foot {
  display: flex;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}
.portfolio-empty-v2 {
  grid-column: 1 / -1;
  padding: 36px 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

/* Кейс */
.case-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px 80px;
}
.case-article-header { margin-bottom: 0; }
.case-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  font-size: 13px;
  color: #2b2b2b;
  margin-bottom: 16px;
}
.case-kicker {
  display: inline-block;
  background: #eef0ec;
  color: #2f2f2f;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  margin: 0;
}
.case-niche-badge {
  display: inline;
  background: none;
  color: #2b2b2b;
  font-size: 13px;
  font-weight: 400;
  padding: 0;
  border-radius: 0;
  margin: 0;
}
.case-title {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.case-result {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 18px;
  color: var(--ink);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 0;
}
.case-meta > * + *::before {
  content: "·";
  margin: 0 12px;
  color: var(--muted-2);
}
.case-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  margin-bottom: 28px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.case-excerpt {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
}
.case-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.case-body > *:first-child { margin-top: 0; }
.case-body p { margin: 0 0 1.15em; }
.case-body h2 {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
}
.case-body h3 {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 650;
  margin: 1.5em 0 0.5em;
}
.case-body ul,
.case-body ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}
.case-body li { margin-bottom: 0.4em; }
.case-body a { color: var(--ink); text-underline-offset: 3px; }
.case-body blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--ink);
  background: var(--tile);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}
.case-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  margin: 1.4em 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.case-body p:has(> img:only-child) {
  margin: 1.4em 0;
}
.case-body p:has(> img:only-child) img {
  margin: 0;
}

/* Головна (landing) */
.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.quiet-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.quiet-link:hover svg { transform: translateX(3px); }

.section { max-width: 1180px; margin: 0 auto; padding: 90px 60px 100px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-title {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
}
.section-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  margin: 18px auto 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
  padding: 90px 60px 70px;
  max-width: 1180px;
  margin: 0 auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  font-size: 13px;
  color: #2b2b2b;
  margin-bottom: 28px;
}
.badge-tag {
  background: #eef0ec;
  color: #2f2f2f;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
h1.hero-title {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 38px;
}
.hero-cta { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }

.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.avatars { display: flex; }
.av {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  box-shadow: 0 0 0 1px var(--line);
}
.av:first-child { margin-left: 0; }
.av-1 { background: linear-gradient(135deg, #ffb88c, #de6262); }
.av-2 { background: linear-gradient(135deg, #f7971e, #ffd200); }
.av-3 { background: linear-gradient(135deg, #ff6e7f, #bfe9ff); }
.av-4 { background: linear-gradient(135deg, #ee9ca7, #ffdde1); }
.av-5 { background: linear-gradient(135deg, #2af598, #009efd); }

.grid-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  padding: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: stretch;
  justify-items: stretch;
}
.tile {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--tile);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
  overflow: hidden;
}
.tile.empty { background: var(--tile-empty); }
.tile.filled { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 14px rgba(0,0,0,0.04); }
.tile.filled:hover { transform: translateY(-3px); }
.tile img {
  display: block;
  width: 46%;
  height: 46%;
  max-width: 46%;
  max-height: 46%;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.tile.center {
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.tile.center svg {
  display: block;
  width: 46%;
  height: 46%;
  color: #fff;
  flex-shrink: 0;
}

.who-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}
.who-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.who-point .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tile);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--ink);
}
.who-point .ic svg { width: 18px; height: 18px; }
.who-point p { font-size: 15px; line-height: 1.5; color: var(--ink); padding-top: 7px; }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 6px 18px rgba(0,0,0,0.04);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.04), 0 14px 30px rgba(0,0,0,0.06);
}
.case-card .case-niche {
  display: inline-block;
  background: var(--tile);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
}
.case-card .case-num {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 20px 0 10px;
}
.case-line { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cases-more { text-align: center; margin-top: 50px; }

.principles-list {
  max-width: 840px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.principle {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
}
.p-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.principle p {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
.principles-more { text-align: center; margin-top: 50px; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  background: var(--tile);
  border-radius: 24px;
  padding: 36px 32px 30px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  background: #efefed;
}
.svc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform .22s ease;
}
.svc-card:hover .svc-icon { transform: translateY(-2px) scale(1.05); }
.svc-icon img { width: 20px; height: 20px; object-fit: contain; }
.svc-icon svg { width: 20px; height: 20px; color: var(--ink); }
.svc-card h3 {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.svc-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
  flex-grow: 1;
}
.svc-card .quiet-link { font-size: 14.5px; pointer-events: none; }
.svc-card:hover .quiet-link svg { transform: translateX(4px); }

.mission {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 60px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.mission h2 {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', system-ui, sans-serif;
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
}
.mission p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  padding-top: 8px;
}

/* Сторінка «Про мене» */
.page-head {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 60px 0;
  text-align: center;
}
.page-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 18px;
}
.page-title {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 18px;
}
.page-sub {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 60px 100px;
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.intro-photo {
  aspect-ratio: 4 / 5;
  background: var(--tile);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.intro-text .kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}
.intro-text h2 {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', sans-serif;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 20px;
}
.intro-text p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}
.intro-text p:last-child { margin-bottom: 0; }

.stats {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 60px 90px;
  border-top: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat-card {
  background: var(--tile);
  border-radius: 20px;
  padding: 30px 26px 26px;
}
.stat-num {
  font-family: 'Google Sans Flex', 'Google Sans', 'Onest', sans-serif;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.stats-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}
.stats-badge .ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tile);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stats-badge .ic svg { width: 16px; height: 16px; color: var(--ink); }
.stats-badge .ic img { width: 20px; height: 20px; object-fit: contain; }
.stats-badge .txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.stats-badge .txt .t { font-size: 13.5px; font-weight: 600; }
.stats-badge .txt .s { font-size: 12px; color: var(--muted); }

.tools-wrap {
  max-width: 780px;
  margin: 0 auto;
}
.tgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.ttile {
  aspect-ratio: 1 / 1;
  background: var(--tile);
  border-radius: 18px;
  display: grid;
  place-items: center;
  transition: transform .25s ease;
}
.ttile.empty { background: var(--tile-empty); }
.ttile.filled { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 14px rgba(0,0,0,0.04); }
.ttile.filled:hover { transform: translateY(-3px); }
.ttile img { width: 50%; height: 50%; object-fit: contain; }
.ttile.center { background: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.ttile.center svg { width: 46%; height: 46%; color: #fff; }

.contact-panel {
  background: var(--tile);
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
}
.contact-panel .section-title { max-width: 620px; margin-left: auto; margin-right: auto; }
.contact-panel .section-sub { margin-bottom: 38px; }
.contact-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.contact-alt { font-size: 13.5px; color: var(--muted-2); }
.contact-alt span { color: var(--muted); }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav > .btn-dark { display: none; }
  .nav > .lang-switch { display: none; }
  .burger { display: inline-flex; margin-left: auto; flex-shrink: 0; }
}
@media (max-width: 960px) {
  .frame { padding: 16px 12px 0; border-radius: 24px; }
  .page { padding: 12px; }
  .footer { padding: 56px 24px 26px; }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-bottom: 44px;
  }
  .f-brand-block { max-width: 440px; }
  .f-cols { gap: 32px 24px; }
  .blog-article,
  .case-article,
  .portfolio-archive { padding: 40px 24px 64px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 12px; }

  .section { padding: 60px 24px 70px; }
  .section-head { margin-bottom: 50px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 60px 24px 50px;
    text-align: center;
  }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .social-proof { justify-content: center; }
  .grid-wrap { margin: 0 auto; max-width: 480px; }
  .who-points { grid-template-columns: 1fr; gap: 18px; max-width: 480px; }
  .cases-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-grid { grid-template-columns: 1fr; gap: 18px; }
  .svc-card { min-height: auto; padding: 30px 26px 26px; }
  .mission {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 24px;
  }
  .mission p { padding-top: 0; }

  .page-head { padding: 50px 24px 0; }
  .blog-list { padding: 50px 24px 44px; }
  .blog-item { padding: 38px 0; }
  .portfolio-showcase { padding: 50px 24px 10px; }
  .intro {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 44px 24px 70px;
  }
  .intro-photo { max-width: 340px; margin: 0 auto; }
  .stats { padding: 50px 24px 60px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-card { padding: 24px 20px 20px; }
  .tgrid { grid-template-columns: repeat(5, 1fr); max-width: 480px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .portfolio-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .f-cols { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
}
@media (max-width: 620px) {
  .portfolio-grid-v2 { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 540px) {
  .frame { padding: 10px 8px 0; border-radius: 20px; }
  .page { padding: 8px; }
  .brand { font-size: 22px; }
  .nav { padding: 12px 2px 14px; }
  .footer { padding: 44px 16px 22px; }
  .footer-main { gap: 38px; padding-bottom: 38px; }
  .brand-word { font-size: 22px; }
  .f-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-top: 22px;
  }
  .f-legal { justify-content: center; }
  .blog-article,
  .case-article,
  .portfolio-archive { padding: 28px 16px 48px; }
  .blog-body,
  .case-body { font-size: 16px; }
  .blog-excerpt,
  .case-excerpt { font-size: 16.5px; }
  .portfolio-card { padding: 20px 18px 18px; }
  .portfolio-card-title { font-size: 18px; }

  .section { padding: 44px 16px 50px; }
  .section-head { margin-bottom: 40px; }
  .section-title { font-size: 28px; letter-spacing: -0.025em; }
  .section-sub { font-size: 14.5px; }
  .hero { padding: 40px 16px 30px; gap: 36px; }
  h1.hero-title { font-size: 36px; letter-spacing: -0.03em; }
  .hero-sub { font-size: 15px; }
  .badge { margin-bottom: 22px; font-size: 12px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { flex: 1; min-width: 0; padding: 13px 18px; font-size: 14.5px; }
  .grid { gap: 8px; }
  .tile { border-radius: 12px; }
  .case-card .case-num { font-size: 34px; }
  .case-card { padding: 24px 20px 20px; }
  .cases-more { margin-top: 36px; }
  .principle { gap: 18px; padding: 22px 4px; }
  .principle p { font-size: 18px; }
  .principles-more { margin-top: 36px; }
  .svc-card { padding: 26px 22px 24px; border-radius: 20px; }
  .mission { padding: 44px 16px; gap: 20px; }
  .mission h2 { font-size: 27px; }
  .mission p { font-size: 14.5px; line-height: 1.65; }

  .page-head { padding: 40px 16px 0; }
  .page-title { font-size: 32px; }
  .page-sub { font-size: 15px; }
  .blog-list { padding: 40px 16px 34px; }
  .blog-item { padding: 30px 0; }
  .blog-item h2 { font-size: 21px; }
  .blog-item p.excerpt { font-size: 14.5px; }
  .portfolio-showcase { padding: 40px 16px 6px; }
  .p-body { padding: 18px 18px 20px; }
  .p-body h3 { font-size: 17px; }
  .intro { padding: 36px 16px 50px; gap: 28px; }
  .intro-photo { max-width: 260px; border-radius: 20px; }
  .intro-text h2 { font-size: 22px; }
  .intro-text p { font-size: 14.5px; line-height: 1.65; }
  .stats { padding: 40px 16px 44px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 20px 18px 18px; border-radius: 16px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 13px; }
  .stats-badges { gap: 8px; margin-top: 18px; }
  .stats-badge { padding: 11px 13px; }
  .tgrid { grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 320px; }
  .ttile { border-radius: 12px; }
  .contact-panel { padding: 52px 20px; border-radius: 20px; }
  .contact-btns .btn { flex: 1; min-width: 0; }
}
@media (max-width: 380px) {
  h1.hero-title { font-size: 32px; }
}
