/* ==========================================================================
   MAK ASSOCIATES — OFFICIAL STYLESHEET (v2, 2026)
   Theme: Cream #F6F1E8 | Navy #0E2440 | Gold #B08D4F | Line #D9D2C5
   Typography: Cormorant Garamond (Headings) | Inter (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cream: #F6F1E8;
  --white: #FFFFFF;
  --navy: #0E2440;
  --navy-light: #1f3f6b;
  --navy-dark: #081729;
  --gold: #B08D4F;
  --gold-dark: #8A6B32;
  --gold-light: #D8B573;
  --muted: #5C6B7A;
  --line: #D9D2C5;
  --border: #E8E2D5;
  --surface: #FCFAF6;
  
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --h1: clamp(2.2rem, 4.5vw, 3.4rem);
  --h2: clamp(1.8rem, 3.2vw, 2.5rem);
  --h3: clamp(1.3rem, 2vw, 1.6rem);
  --lead: 1.125rem;
  --body: 0.9375rem;
  --small: 0.8125rem;
  
  --shadow-sm: 0 2px 8px rgba(14, 36, 64, 0.05);
  --shadow-md: 0 8px 24px rgba(14, 36, 64, 0.08);
  --shadow-lg: 0 16px 48px rgba(14, 36, 64, 0.14);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--cream);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-dark);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ── Layout Container ── */
.w {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header & Navigation ── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(246, 241, 232, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
}

.logo span span {
  color: var(--gold);
  font-weight: 600;
}

#mn {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

#mn a {
  font-size: var(--body);
  font-weight: 500;
  color: var(--navy);
  padding: 8px 0;
  position: relative;
}

#mn a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.2s ease;
}

#mn a:hover::after {
  width: 100%;
}

.dd {
  position: relative;
}

.ddb {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--body);
  font-weight: 500;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

.dm {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  min-width: 760px;
  z-index: 1001;
  margin-top: 12px;
  animation: fadeIn 0.2s ease;
}

.dd:hover .dm,
.dd:focus-within .dm,
.dm.open {
  display: block;
}

.dmg {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.dmg div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dmg b {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.dmg a {
  font-size: 0.875rem;
  color: var(--navy);
  padding: 4px 0;
  line-height: 1.35;
}

.dmg a:hover {
  color: var(--gold-dark);
  padding-left: 3px;
}

.dm .all {
  display: block;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ── Standard Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: var(--body);
  font-weight: 600;
  background-color: var(--navy);
  color: var(--white);
  border: 1.5px solid var(--navy);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn.o {
  background-color: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn.o:hover {
  background-color: var(--navy);
  color: var(--white);
}

.btn.hb {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* ── Typography & Headlines ── */
h1 {
  font-family: var(--font-head);
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-head);
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 14px;
}

h3 {
  font-family: var(--font-head);
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 8px;
}

.lead {
  font-size: var(--lead);
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 580px;
}

.sub {
  font-size: var(--lead);
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 680px;
}

.eyebrow {
  font-size: var(--small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold-dark);
  margin-bottom: 10px;
  display: block;
}

.eyebrow.l {
  color: var(--gold-dark);
}

/* ── Hero Section ── */
.hero {
  padding: 56px 0 40px;
}

.hg {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

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

.fig {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #EFE8DA;
}

.fig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.fig svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Stats Strip ── */
.stats {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 32px;
  margin: 32px auto 28px;
  text-align: center;
}

.stats > div {
  padding: 8px 16px;
  border-right: 1px solid var(--border);
}

.stats > div:last-child {
  border-right: none;
}

.stats b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stats span {
  font-size: var(--small);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ── Jurisdictions / Flags Bar ── */
.flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 56px;
}

.flags small {
  font-size: var(--small);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}

.fo {
  padding: 6px 16px;
  border-radius: 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ── General Section Styles ── */
section {
  padding: 80px 0;
}

section.alt {
  background-color: rgba(246, 241, 232, 0.45);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── About Section ── */
.split.one {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: left;
}

.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.mv div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

h3.mid {
  text-align: center;
  font-size: 1.75rem;
  margin: 56px 0 28px;
  position: relative;
}

h3.mid::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 8px auto 0;
}

/* ── Core Values & Global Presence Grids ── */
.grid.g4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid.g5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card.pt {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.25s ease;
}

.card.pt:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.card.pt .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 8px;
}

.card.gp {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.card.gp:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.card.gp b {
  display: block;
  font-size: 1.15rem;
  font-family: var(--font-head);
  color: var(--navy);
  margin-bottom: 4px;
}

.card.gp span {
  font-size: var(--small);
  color: var(--muted);
}

/* ── Practice Areas & Service Cards ── */
.gl {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  margin: 44px 0 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

button.card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

button.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.ph {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
  background-color: #EFE8DA;
  position: relative;
}

.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.ph svg.bn {
  width: 100%;
  height: 100%;
  display: block;
}

button.card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

button.card ul {
  padding-left: 18px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

span.more {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

button.card:hover span.more {
  color: var(--navy);
  transform: translateX(4px);
  transition: transform 0.2s ease;
}

/* ── Process Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.card.step {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ── Client Portal Teaser ── */
#vaultband {
  text-align: center;
  padding: 68px 0;
}

#vaultband .sub {
  margin: 0 auto 28px;
}

.cta.mid {
  justify-content: center;
}

/* ── Team Section ── */
.grid.tm {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.grid.tm .card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 16px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--gold);
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.meta {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Insights & Newsletter ── */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.chips.lft {
  justify-content: flex-start;
}

.chip {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background-color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover, .chip.on {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.card.art {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.card.art:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-dark);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: inline-block;
}

.news {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.news label {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.news div {
  display: flex;
  gap: 12px;
  flex-grow: 1;
  max-width: 480px;
}

.news input {
  flex-grow: 1;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--surface);
}

/* ── Contact Section & Forms ── */
.cgrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

form#f {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

form input, form select, form textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--surface);
  color: var(--navy);
  transition: all 0.2s ease;
}

form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(14, 36, 64, 0.08);
}

.side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side .card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.side h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

/* ── Footer ── */
footer {
  background-color: var(--navy);
  color: #D3DEEB;
  padding: 64px 0 36px;
}

.fgrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

footer .logo {
  color: var(--white);
  margin-bottom: 12px;
}

footer .logo span span {
  color: var(--gold);
}

footer p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #A3B8CC;
}

footer b {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 14px;
}

footer a, footer span {
  display: block;
  font-size: 0.875rem;
  color: #D3DEEB;
  margin-bottom: 8px;
}

footer a:hover {
  color: var(--gold-light);
}

.disc {
  font-size: 0.75rem;
  color: #7A90A8;
  line-height: 1.6;
  border-top: 1px solid rgba(217, 210, 197, 0.15);
  padding-top: 20px;
  margin-top: 28px;
}

.disc a {
  display: inline;
  color: #A3B8CC;
  text-decoration: underline;
}

/* ── Modal Dialogs ── */
dialog {
  border: none;
  border-radius: 14px;
  background-color: var(--white);
  padding: 40px;
  max-width: 680px;
  width: 92%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 2000;
}

dialog.big {
  max-width: 860px;
  max-height: 88vh;
  overflow-y: auto;
}

dialog::backdrop {
  background: rgba(14, 36, 64, 0.68);
  backdrop-filter: blur(5px);
}

dialog .x[data-close] {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background-color: var(--surface);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all 0.2s ease;
}

dialog .x[data-close]:hover {
  background-color: var(--navy);
  color: var(--white);
}

.ph.wide {
  height: 200px;
  margin-bottom: 24px;
}

.legal {
  max-width: 760px;
}

.legal h3 {
  margin-top: 24px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Salary Tax Calculator Result ── */
.res {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-height: 180px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.calc-row b {
  color: var(--navy);
}

.calc-total {
  border-bottom: 2px solid var(--gold);
  padding-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.calc-total b {
  color: var(--gold-dark);
  font-size: 1.15rem;
}

/* ── Sticky WhatsApp & Cookie Banner ── */
.wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background-color: #25D366;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.wa:hover {
  background-color: #20BA5A;
  color: #fff;
  transform: scale(1.05);
}

.ck {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 998;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
}

.ck[hidden] {
  display: none;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ── Responsive Breakpoints ── */
@media (max-width: 960px) {
  nav { height: 70px; }
  .burger { display: block; }
  
  #mn {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    gap: 16px;
    align-items: flex-start;
  }
  
  #mn.open { display: flex; }
  
  .dm {
    position: static;
    transform: none;
    min-width: auto;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 12px 0 0 12px;
  }
  
  .dmg { grid-template-columns: 1fr; gap: 16px; }
  .btn.hb { display: none; }
  
  .hg { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats > div:nth-child(2) { border-right: none; }
  
  .grid.g4, .grid.g5, .steps, .grid.tm, .fgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: 1fr; }
  .mv { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: none; border-bottom: 1px solid var(--border); }
  .stats > div:last-child { border-bottom: none; }
  
  .grid.g4, .grid.g5, .steps, .grid.tm, .fgrid {
    grid-template-columns: 1fr;
  }
  
  dialog { padding: 24px 18px; }
  .news { flex-direction: column; align-items: stretch; }
  .news div { max-width: 100%; }
}
