/* Shared styles for every Shegunshi Ltd page. */

:root {
  --terracotta: #c44714;
  --terracotta-hover: #a83b0e;
  --navy: #182232;
  --navy-light: #222f44;
  --text-main: #111827;
  --text-dark: #121820;
  --text-muted: #5a6578;
  --bg-card: #f8fafc;
  --bg-section: #f4f6f8;
  --border-subtle: #e5e9f0;
  --card-bg: #f8fafc;
  --input-border: #e2e8f0;
  --input-placeholder: #94a3b8;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page width. The team page is a narrower column. */
.site-wrap,
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

.team-page .container,
.policy-page .container {
  max-width: 720px;
}

.policy-meta {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.policy-section {
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
}

.policy-section h2 {
  font-size: clamp(16px, 3vw, 18px);
  margin-bottom: 8px;
}

.policy-section p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section a {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
}

.policy-section a:hover {
  color: var(--terracotta-hover);
}

.policy-page footer {
  margin-top: 8px;
}

/* Gray dashes that sit under the header and separate it from the content. */
.top-dashed-line {
  width: 100%;
  height: 1px;
  background-image: linear-gradient(to right, #9aa3af 55%, rgba(255, 255, 255, 0) 0%);
  background-position: top;
  background-size: 5px 1px;
  background-repeat: repeat-x;
  margin-top: 0;
}

/* Header: logo on the left, menu on the right. Same size on every page. */
header {
  padding: 14px 0 10px;
}

.nav-inner,
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.2px;
  line-height: 1;
  color: var(--terracotta);
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px 28px;
}

nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--navy);
}

nav a.active {
  color: var(--terracotta);
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.eyebrow .divider {
  color: #94a3b8;
  margin: 0 5px;
  font-weight: 400;
}

/* Main heading, kept modest so it stays readable on a phone. */
h1,
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(20px, 4.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 12px;
  max-width: 800px;
}

h2,
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(18px, 3.8vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.hero-section,
.hero {
  padding: 20px 0 16px;
}

.hero-desc,
.hero-lead,
.section-lead,
.projects-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 680px;
}

.hero-title {
  margin-bottom: 2px;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-muted);
}

.hero-desc {
  margin-bottom: 16px;
}

.section-lead,
.projects-lead {
  margin-bottom: 16px;
}

.projects-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 6px;
}

.btn-terracotta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--terracotta);
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(196, 71, 20, 0.22);
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.btn-terracotta:hover {
  background-color: var(--terracotta-hover);
  transform: translateY(-1px);
}

/* Homepage facts under the introduction. */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 8px 0 24px 0;
}

.metric-cell {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

/* Learning page figures under the introduction. */
.learn-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.learn-metric-figure {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 2px;
}

.learn-metric-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #4a5160;
}

.learn-metric-note {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.learn-metrics + .hero-lead {
  margin-top: 16px;
}

/* Homepage service summaries. */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pillar-card {
  background-color: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  border-color: #e2e8f0;
  background-color: #ffffff;
}

.pillar-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 6px;
}

.pillar-heading,
.card h3,
.service-card h3,
.profile h2,
.project-heading,
.founder-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #4a5160;
  margin-bottom: 8px;
}

.pillar-body,
.founder-bio,
.card p,
.service-card p,
.profile p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.pillar-points {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--terracotta);
}

.profile p {
  font-size: 14px;
  max-width: 560px;
}

.devanagari {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  color: #4a5160;
}

/* People band on the homepage. */
.people-section-wrap {
  display: block;
  background-color: var(--bg-section);
  padding: 28px 0;
  margin-bottom: 24px;
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.founder-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #edf1f7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.founder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.founder-name {
  margin-bottom: 4px;
}

.founder-role,
.role {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
  display: block;
}

/* Forthcoming work. Set apart from the live arts cards. */
.upcoming-block {
  margin-top: 22px;
}

.projects-section {
  margin-bottom: 28px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.project-card {
  border-radius: 10px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-card--light {
  background-color: #f6f1e8;
  border: 1px solid #e4d5c3;
}

.project-card--full {
  margin-top: 16px;
}

.project-card--dark {
  background-color: var(--navy);
  box-shadow: 0 10px 30px rgba(24, 34, 50, 0.15);
}

.project-card--cinema {
  background: linear-gradient(165deg, #243044 0%, #182232 48%, #14110f 100%);
  border: 1px solid rgba(196, 71, 20, 0.38);
  box-shadow: 0 10px 30px rgba(24, 34, 50, 0.18);
}

.project-tag,
.project-subline {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  line-height: 1.35;
}

.project-tag {
  margin-bottom: 8px;
}

.project-subline {
  margin-bottom: 8px;
}

.project-card--light .project-tag,
.project-card--light .project-subline {
  color: var(--terracotta);
}

.project-card--dark .project-tag,
.project-card--dark .project-subline,
.project-card--cinema .project-tag,
.project-card--cinema .project-subline {
  color: #df8047;
}

.project-heading {
  margin-bottom: 8px;
}

.project-card--dark .project-heading,
.project-card--cinema .project-heading {
  color: #f8fafc;
}

.project-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-main);
}

.project-card--dark .project-quote,
.project-card--cinema .project-quote {
  color: #f8fafc;
}

.project-desc {
  font-size: 13.5px;
  line-height: 1.4;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.project-card--dark .project-desc,
.project-card--cinema .project-desc {
  color: #c5ced9;
}

.project-badge {
  margin-top: auto;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  border-radius: 999px;
  padding: 5px 9px;
}

.project-card--light .project-badge {
  color: var(--navy);
  background-color: #e7edf4;
}

.project-card--dark .project-badge,
.project-card--cinema .project-badge {
  color: #f8fafc;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Inner pages: the block under the introduction. */
.strategy-section,
.showcase-section,
.impact-section {
  padding: 24px 0 32px;
  border-top: 1px solid var(--border-subtle);
}

.grid-2x2,
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.quality-block {
  margin-top: 28px;
}

.quality-block ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quality-block li {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.quality-block li strong {
  color: var(--navy);
  font-weight: 700;
}

.card,
.service-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

a.card {
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  background-color: #ffffff;
  border-color: #e2e8f0;
}

/* Gallery page opens as a window over a dimmed page. */
.gallery-popup {
  background-color: rgba(17, 24, 39, 0.55);
}

.popup-backdrop {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
}

.popup-window {
  width: min(1040px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.popup-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px 0;
  background-color: #ffffff;
}

.popup-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: #4a5160;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

.popup-close:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.gallery-popup .hero {
  padding-top: 8px;
}

.gallery-popup .gallery-box,
.gallery-popup .gallery-view,
.gallery-popup .photo-section,
.gallery-popup .books-section,
.gallery-popup .cinema-section {
  scroll-margin-top: 52px;
}

a.project-card {
  color: inherit;
  text-decoration: none;
}

.gallery-popup .gallery-list {
  padding-bottom: 8px;
}

.gallery-popup .photo-section {
  margin-top: 8px;
  padding-bottom: 8px;
}

.books-section {
  padding: 8px 0 20px;
}

.cinema-section {
  padding: 8px 0 24px;
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--card-bg);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  padding: 16px;
}

.book-cover {
  width: 168px;
  flex-shrink: 0;
  border-radius: 4px;
}

.book-block h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #4a5160;
  margin-bottom: 8px;
}

.book-marathi {
  font-family: "Nirmala UI", "Mangal", "Noto Sans Devanagari", Georgia, serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.book-marathi-title {
  font-weight: 600;
  color: var(--text-main);
}

.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 4px;
}

.book-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
}

.book-links a:hover {
  color: var(--terracotta-hover);
}

/* Art gallery: one box per work, each with a link that can be shared. */
.gallery-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 32px;
}

.gallery-box {
  scroll-margin-top: 16px;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.gallery-box h2 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: #4a5160;
  margin-bottom: 6px;
}

.gallery-note {
  font-weight: 500;
  color: var(--text-muted);
}

.gallery-box p {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

.gallery-box .gallery-view {
  scroll-margin-top: 16px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--terracotta);
}

.gallery-view::before {
  content: "↳ ";
}

.gallery-view::after {
  content: " →";
}

/* Photo strip under the four arts cards. */
.photo-section {
  margin-top: 28px;
}

.photo-section .section-lead {
  margin-bottom: 14px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.photo-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 8px;
  display: block;
  background-color: var(--bg-section);
}

/* Proof strip under the technology practice cards. */
.impact-banner {
  margin-top: 20px;
  background-color: var(--navy);
  color: #f8fafc;
  border-radius: 10px;
  padding: 22px 20px;
}

.impact-banner h2 {
  color: #ffffff;
  margin-bottom: 12px;
}

.impact-banner ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.impact-banner li {
  font-size: 13.5px;
  line-height: 1.45;
  color: #c5ced9;
}

.impact-banner li strong {
  color: #f8fafc;
  font-weight: 700;
}

/* Mobile product section on the technology page. */
.apps-section {
  padding: 8px 0 32px;
}

.apps-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.feature-app {
  margin-top: 16px;
  background-color: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 18px;
}

.feature-app > h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #4a5160;
  margin-bottom: 6px;
}

.feature-quote {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-main);
}

.feature-app > p {
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.feature-app h4 {
  margin: 14px 0 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--navy);
}

.capability {
  margin-bottom: 10px;
}

.capability h5 {
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.capability p {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 16px;
}

.store-links {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.store-links a {
  color: var(--navy);
  text-decoration: none;
}

.store-links a:hover {
  color: var(--terracotta);
}

.store-links span {
  margin: 0 6px;
}

/* Team profiles. Photos sit beside the name; the biography follows underneath. */
.team-page .hero {
  padding: 16px 0 8px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--border-subtle);
}

.profile-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.profile h2 {
  margin-bottom: 2px;
}

.portrait {
  width: 112px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  background-color: #eef1f4;
}

.profile .credentials {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

.profile li strong {
  color: var(--navy);
  font-weight: 700;
}

.profile h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin: 8px 0 0;
}

.profile ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile li {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Contact form. */
.form-section {
  padding: 20px 0 32px;
  max-width: 640px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 71, 20, 0.1);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6578' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  width: 100%;
  background-color: var(--terracotta);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
  background-color: #ab3c0e;
}

.btn-submit:active {
  transform: scale(0.995);
}

/* Closing band with the company line. */
footer {
  background-color: var(--navy);
  color: #ffffff;
  padding: 16px 0 14px;
}

.team-page footer {
  margin-top: 8px;
}

footer h2,
.footer-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-meta,
.footer-crn {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .metrics-bar,
  .learn-metrics {
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
  }

  .pillars-grid,
  .founders-grid,
  .projects-grid,
  .grid-2x2,
  .grid-2col {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid img {
    height: 160px;
  }

  nav {
    gap: 8px 14px;
  }

  nav a {
    font-size: 12px;
  }
}

@media (max-width: 540px) {
  .site-wrap,
  .container {
    padding: 0 16px;
  }

  .metrics-bar {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-section {
    padding: 16px 0 12px;
  }

  .nav-wrapper,
  .nav-inner {
    align-items: flex-start;
  }

  .portrait {
    width: 88px;
    height: 110px;
  }

  .book-block {
    flex-direction: column;
  }

  .book-cover {
    width: 140px;
  }

  .profile-head {
    gap: 12px;
  }

  .profile {
    padding: 14px 0;
  }

  .form-section {
    padding: 16px 0 28px;
  }
}
