:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-elev: #ffffff;
  --text: #373737;
  --muted: #373737;
  --primary: #058fdb;
  --primary-dark: #0478b8;
  --accent: #bc42c9;
  --border: rgba(55, 55, 55, 0.16);
  --shadow: 0 18px 40px rgba(55, 55, 55, 0.1);
  --radius: 18px;
  --heading-font: "Unbounded", "IBM Plex Sans", sans-serif;
  --body-font: "IBM Plex Sans", sans-serif;
  --primary-rgb: 5, 143, 219;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: light dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html[data-theme="dark"] {
  --bg: #0c1119;
  --surface: #131a25;
  --surface-elev: #182132;
  --text: #edf3ff;
  --muted: #9badcc;
  --border: rgba(187, 200, 227, 0.2);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] body::before {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
}

html[data-accent="orange"] {
  --primary: #f24500;
  --primary-dark: #ca3900;
  --accent: #f24500;
  --primary-rgb: 242, 69, 0;
}

html[data-accent="blue"] {
  --primary: #058fdb;
  --primary-dark: #0478b8;
  --accent: #058fdb;
  --primary-rgb: 5, 143, 219;
}

html[data-accent="purple"] {
  --primary: #bc42c9;
  --primary-dark: #9a34a5;
  --accent: #bc42c9;
  --primary-rgb: 188, 66, 201;
}

html[data-accent="neon"] {
  --primary: #0a9f0a;
  --primary-dark: #088408;
  --accent: #0a9f0a;
  --primary-rgb: 10, 159, 10;
}

html[data-accent="dark-yellow"] {
  --primary: #ff7b00;
  --primary-dark: #d76700;
  --accent: #ff7b00;
  --primary-rgb: 255, 123, 0;
}

html[data-accent="graphite"] {
  --primary: #373737;
  --primary-dark: #1f1f1f;
  --accent: #373737;
  --primary-rgb: 55, 55, 55;
}

html[data-theme="dark"][data-accent="graphite"] {
  --primary: #ffffff;
  --primary-dark: #e6e6e6;
  --accent: #ffffff;
  --primary-rgb: 255, 255, 255;
}

html[data-theme="dark"][data-accent="graphite"] .btn-primary,
html[data-theme="dark"][data-accent="graphite"] .btn-invert {
  color: #000000;
}

html[data-theme="dark"][data-accent="graphite"] .btn-ghost,
html[data-theme="dark"][data-accent="graphite"] .btn-secondary {
  color: #000000;
  border-color: rgba(0, 0, 0, 0.22);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
  background-image:
    linear-gradient(rgba(27, 36, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 36, 51, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

a {
  color: inherit;
  text-decoration: none;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Унифицируем читаемую ширину обычного контента (не карточек). */
main .container > :is(p, .section-intro, .text-block, .benefits-list, .process-result, .portfolio-description) {
  max-width: 72ch;
}

.section {
  padding: 80px 0;
  background: var(--surface);
}

main > .section:nth-of-type(odd) {
  background: var(--surface);
}

main > .section:nth-of-type(even) {
  background: rgba(var(--primary-rgb), 0.14);
}

html[data-theme="dark"] .section {
  background: #0f1622;
}

html[data-theme="dark"] main > .section:nth-of-type(odd) {
  background: #0f1622;
}

html[data-theme="dark"] main > .section:nth-of-type(even) {
  background: rgba(var(--primary-rgb), 0.2);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.95rem, 3.8vw, 3.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-family: var(--heading-font);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-family: var(--heading-font);
  font-weight: 700;
}

h3 {
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(27, 36, 51, 0.08);
}

html[data-theme="dark"] .site-header {
  background: rgba(12, 17, 25, 0.84);
  border-bottom-color: rgba(187, 200, 227, 0.16);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a.is-active {
  color: var(--primary);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  font-weight: 600;
}

.settings-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.settings-toggle:hover {
  transform: rotate(18deg);
  border-color: var(--primary);
}

.settings-panel {
  position: absolute;
  right: 4vw;
  top: 84px;
  width: min(320px, 92vw);
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 120;
}

.settings-panel[hidden] {
  display: none;
}

.settings-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.settings-group + .settings-group {
  margin-top: 12px;
}

.settings-label {
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.settings-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.option-btn.is-active {
  border-color: var(--primary);
  color: var(--primary);
}

.settings-colors {
  gap: 10px;
}

.color-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
}

.color-btn[data-accent-option="orange"] { background: #f24500; }
.color-btn[data-accent-option="blue"] { background: #058fdb; }
.color-btn[data-accent-option="purple"] { background: #bc42c9; }
.color-btn[data-accent-option="neon"] { background: #0a9f0a; }
.color-btn[data-accent-option="dark-yellow"] { background: #ff7b00; }
.color-btn[data-accent-option="graphite"] { background: #ffffff; box-shadow: 0 0 0 1px rgba(55, 55, 55, 0.38); }

.color-btn.is-active {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary);
}

.hero {
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.lead {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 64ch;
}

.hero-description {
  margin-top: 16px;
  color: var(--muted);
  max-width: 64ch;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-ghost,
.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--primary);
}

.btn-ghost:hover,
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: rgba(var(--primary-rgb), 0.07);
}

.btn-invert {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-invert:hover {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait-card {
  width: min(440px, 100%);
  min-height: 410px;
  border-radius: 28px;
  position: relative;
  background: rgba(var(--primary-rgb), 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(27, 36, 51, 0.12);
}

.portrait-image {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.portrait-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 25, 44, 0.02) 45%, rgba(14, 25, 44, 0.42) 100%),
    radial-gradient(circle at 72% 18%, rgba(var(--primary-rgb), 0.18), transparent 35%);
}

.portrait-ring {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
}

.portrait-content {
  position: absolute;
  inset: auto 28px 30px;
  display: grid;
  gap: 6px;
  color: #ffffff;
}

.portrait-name {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
}

.portrait-role {
  opacity: 0.9;
}

.split-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: block;
}

.split-card p {
  color: var(--muted);
  max-width: 70ch;
  margin-top: 10px;
}

.about-action {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 18px;
}

.price-note {
  margin-top: 20px;
}

.grid {
  display: grid;
  gap: 14px;
}

.cards-5,
.cards-7,
.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-7 {
  grid-auto-rows: 1fr;
}

.card,
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover,
.service-card:hover,
.project-card:hover,
.steps li:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.45);
  background: var(--surface);
}

html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .project-card:hover,
html[data-theme="dark"] .steps li:hover {
  background: var(--surface);
  border-color: rgba(var(--primary-rgb), 0.65);
}

.service-card {
  display: grid;
  gap: 8px;
  align-content: start;
  height: 100%;
}

.service-card h3 {
  font-size: 1.03rem;
  min-height: 2.6em;
  display: flex;
  align-items: flex-start;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.services-page .service-card > p:first-of-type {
  min-height: 4.8em;
}

html[data-theme="dark"] .service-card,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .service-card h3 {
  color: var(--text);
}

html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .service-card:hover p,
html[data-theme="dark"] .service-card:hover h3 {
  color: var(--text);
}

.services-page .cards-7 {
  margin-top: 18px;
}

.cost-card {
  max-width: 760px;
}

.service-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 5px;
  font-size: 0.93rem;
}

.center-action {
  margin-top: 24px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.steps span {
  color: var(--primary);
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.text-block {
  display: grid;
  gap: 12px;
}

.text-block p {
  color: var(--muted);
}

.benefits-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.process-result {
  margin-top: 18px;
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(27, 36, 51, 0.08);
}

.project-card h3 {
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-card p {
  color: var(--muted);
}

.project-card .meta {
  margin-top: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.price-hints {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.final-cta {
  text-align: center;
}

.final-cta p {
  margin: 14px auto 0;
  max-width: 76ch;
  color: var(--muted);
}

.centered {
  justify-content: center;
}

.contact-lines {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}

.contact-lines a:hover {
  color: var(--primary);
}

.final-cta .contact-lines .contact-icon--logo img {
  width: 36px;
  height: 36px;
}

.contact-lines--icons-only {
  gap: 20px;
}

.contact-lines--icons-only a {
  text-decoration: none;
  color: inherit;
}

.contact-lines--icons-only a:hover {
  color: inherit;
}

.social-link--icon-only {
  gap: 0;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link--icon-only:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.social-link--icon-only:hover {
  transform: translateY(-3px);
}

.social-link--icon-only:hover .contact-icon--logo img {
  filter: brightness(1.05);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contacts-grid {
  margin-top: 22px;
  grid-template-columns: 1fr;
  max-width: 620px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-icon.contact-icon--logo {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.contact-icon--logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.contact-meta {
  display: grid;
  gap: 2px;
}

.contact-meta strong {
  font-family: var(--heading-font);
  font-size: 0.95rem;
}

.contact-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.portfolio-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-item {
  max-width: none;
}

.game-preview-link {
  display: inline-block;
  width: 100%;
}

.portfolio-preview-link {
  display: inline-block;
  width: 100%;
  color: inherit;
}

.game-preview-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.game-preview-square::after {
  content: "Открыть игру";
  position: absolute;
  inset: auto 12px 12px auto;
  background: rgba(15, 23, 39, 0.72);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.game-preview-square iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.portfolio-preview-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.portfolio-preview-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-square {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  background: rgba(var(--primary-rgb), 0.06);
}

.portfolio-description {
  margin-top: 12px;
  color: var(--muted);
}

.test-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.test-menu a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--primary);
  background: var(--surface);
  font-weight: 600;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 16px;
}

.calc-form,
.calc-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.calc-form {
  display: grid;
  gap: 14px;
}

.calc-field {
  display: grid;
  gap: 8px;
}

.calc-field span {
  font-weight: 600;
}

.calc-field select,
.calc-field input[type="range"] {
  width: 100%;
}

.calc-checks {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  gap: 8px;
}

.calc-checks legend {
  padding: 0 6px;
  font-weight: 700;
}

.calc-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-result h3 {
  margin: 0 0 8px;
}

.calc-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 4px 0 12px;
}

.calc-time {
  font-weight: 700;
  margin: 4px 0 12px;
}

.calc-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  background: #f0f4fb;
  color: #30425f;
  padding: 44px 0;
  border-top: 1px solid rgba(27, 36, 51, 0.1);
}

html:not([data-theme="dark"]) .site-footer {
  background: #000000;
  color: #e8eef0;
  border-top-color: transparent;
}

html[data-theme="dark"] .site-footer {
  background: #000000;
  color: #e8eef0;
  border-top-color: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px;
  align-items: end;
}

.footer-note {
  margin-top: 10px;
  color: #5f6f85;
  max-width: 48ch;
}

html:not([data-theme="dark"]) .footer-note {
  color: #c8d6d9;
}

html[data-theme="dark"] .footer-note {
  color: #c8d6d9;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #30425f;
}

html:not([data-theme="dark"]) .footer-links a {
  color: #e8eef0;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  color: #6f809d;
  font-size: 0.94rem;
  justify-self: end;
}

html:not([data-theme="dark"]) .footer-copy {
  color: #b3c3c8;
}

html[data-theme="dark"] .footer-copy {
  color: #b3c3c8;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.65s ease forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.14s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.22s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.3s;
}

.hero-content > *:nth-child(5) {
  animation-delay: 0.38s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .projects-grid,
  .cards-5,
  .cards-7,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copy {
    justify-self: start;
  }

  .split-card {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 62px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .settings-panel {
    right: 4vw;
    left: 4vw;
    width: auto;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 4vw 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  html[data-theme="dark"] .site-nav {
    background: #101722;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .projects-grid,
  .cards-5,
  .cards-7,
  .why-grid,
  .contacts-grid,
  .calc-layout,
  .portfolio-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .portrait-card {
    min-height: 290px;
  }

  .portrait-image {
    min-height: 290px;
  }

  .split-card {
    padding: 24px;
  }
}
