:root {
  --ink: #121212;
  --muted: #5d6468;
  --cyan: #00aeef;
  --cyan-dark: #008cd2;
  --yellow: #fdbb2e;
  --yellow-soft: #fff5d9;
  --paper: #ffffff;
  --canvas: #f9f9f9;
  --line: #d9dde0;
  --shadow: 0 14px 34px rgba(18, 18, 18, 0.08);
  --radius: 8px;
  --content: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 400 16px/1.6 Ubuntu, Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--cyan-dark);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.site-header {
  color: var(--ink);
  background: var(--cyan);
  border-top: 6px solid var(--paper);
}

.office-row {
  width: min(var(--content), calc(100% - 36px));
  min-height: 124px;
  display: grid;
  grid-template-columns: minmax(310px, 1.35fr) minmax(230px, 0.85fr) minmax(280px, 0.95fr);
  margin: 0 auto;
}

.logo-block,
.office-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 20px 28px;
}

.logo-block {
  padding-left: 0;
}

.office-card {
  border-left: 1px solid rgba(18, 18, 18, 0.28);
}

.office-card small {
  display: block;
  margin-bottom: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.office-card a {
  color: var(--ink);
  font-size: 1.1rem;
}

.header-appointment {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 8px 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  text-decoration: none;
}

.site-logo {
  width: min(360px, 100%);
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}

.pin {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 700;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 54px);
  min-height: 70px;
  padding: 0 18px;
  align-items: center;
  overflow-x: auto;
  color: var(--paper);
  background: var(--ink);
  scrollbar-width: thin;
}

.top-nav a {
  flex: 0 0 auto;
  color: var(--paper);
  font-size: 0.92rem;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--yellow);
}

.mobile-top {
  display: none;
}

.app {
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: 218px minmax(210px, 300px) minmax(0, 1fr) 78px;
  gap: 12px;
  align-items: center;
  padding: 12px max(18px, calc((100vw - var(--content)) / 2));
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18, 18, 18, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 1px;
}

.brand span {
  color: var(--cyan-dark);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.search {
  min-width: 0;
}

.search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search input {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.search input::placeholder {
  color: #73797d;
}

.nav-list {
  display: flex;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 2px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.nav-list a {
  display: grid;
  grid-template-columns: 22px max-content;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--yellow);
  border-color: var(--ink);
}

.dot {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--paper);
  background: var(--cyan-dark);
  border-radius: 50%;
  font-size: 0.7rem;
}

.sidebar-actions {
  display: grid;
}

.side-btn {
  min-height: 40px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
}

.main {
  min-width: 0;
  padding-bottom: 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.88fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: min(690px, calc(100vh - 214px));
  padding: clamp(52px, 7vw, 94px) max(18px, calc((100vw - var(--content)) / 2));
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
}

.hero-copy {
  max-width: 680px;
}

.kicker {
  display: inline-block;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 750px;
  margin: 18px 0 22px;
  color: var(--ink);
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  font-weight: 700;
  line-height: 0.98;
}

.lead {
  max-width: 670px;
  margin: 0;
  font: 500 clamp(1rem, 1.6vw, 1.2rem)/1.7 Lora, Georgia, serif;
}

.office-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.office-strip a,
.office-strip span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 6px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.86rem;
  text-decoration: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.primary,
.secondary,
.chip-button,
.video-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.primary,
.video-button {
  background: var(--cyan);
}

.secondary,
.chip-button {
  background: var(--paper);
}

.primary:hover,
.video-button:hover {
  background: #19b8f2;
}

.secondary:hover,
.chip-button:hover,
.side-btn:hover {
  background: var(--yellow-soft);
}

.hero-panel {
  min-width: 0;
  padding: 14px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 12px 12px 0 rgba(18, 18, 18, 0.12);
}

.photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(180px, 1.25fr) minmax(140px, 0.75fr);
  gap: 10px;
  min-height: 430px;
}

.photo-stack img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-stack img:first-child {
  grid-column: 1 / -1;
}

.stats,
.tools,
.section-grid,
.empty {
  width: min(var(--content), calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 38px;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.stat {
  min-width: 0;
  padding: 22px;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--cyan-dark);
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 500;
}

.tools {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-bottom: 26px;
}

.tool-card,
.guide-section {
  min-width: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-card {
  border-top: 6px solid var(--cyan);
}

.tool-card h2,
.tool-card h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.meal-control {
  display: grid;
  gap: 6px;
}

.meal-control label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.meal-control input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid #aab0b4;
  border-radius: var(--radius);
}

.time-result {
  margin-top: 16px;
  padding: 14px;
  background: var(--yellow-soft);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
  font-weight: 700;
}

.timer-face {
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  margin: 8px auto 16px;
  place-items: center;
  color: var(--ink);
  background: conic-gradient(var(--cyan) var(--timer-progress, 0deg), #dff5fd 0);
  border-radius: 50%;
  font-size: 1.7rem;
  font-weight: 700;
}

.timer-face::after {
  position: absolute;
  inset: 11px;
  content: "";
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.timer-face span {
  position: relative;
  z-index: 1;
}

.timer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.section-grid {
  display: grid;
  gap: 18px;
}

.guide-section {
  scroll-margin-top: 110px;
  border-left: 6px solid var(--cyan);
}

.guide-section.hidden {
  display: none;
}

.section-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-head h2 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.tag {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.content p {
  margin: 0 0 13px;
}

.content ul {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

.content li {
  margin-bottom: 8px;
}

.callout {
  margin: 16px 0;
  padding: 15px 17px;
  background: var(--yellow-soft);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
  font-weight: 700;
}

.media-grid,
.examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

figure {
  margin: 18px 0;
}

.media-grid figure {
  margin: 0;
}

figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.example {
  padding: 14px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}

.accordion {
  display: grid;
  gap: 10px;
}

details {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  min-height: 48px;
  padding: 12px 14px;
  color: var(--cyan-dark);
  font-weight: 700;
  cursor: pointer;
}

details div {
  padding: 0 14px 14px;
}

.empty {
  display: none;
  margin-bottom: 18px;
  padding: 24px;
  background: var(--paper);
  border: 2px dashed var(--cyan);
  border-radius: var(--radius);
  text-align: center;
}

.empty.visible {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  padding: 18px;
  place-items: center;
  background: rgba(18, 18, 18, 0.78);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(900px, 100%);
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.modal-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--cyan);
  border-bottom: 2px solid var(--ink);
}

.close {
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 1.2rem;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (max-width: 1080px) {
  .office-row {
    grid-template-columns: minmax(300px, 1.2fr) minmax(220px, 0.8fr);
  }

  .office-card:last-child {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 76px;
    border-top: 1px solid rgba(18, 18, 18, 0.28);
    border-left: 0;
  }

  .sidebar {
    grid-template-columns: 200px minmax(210px, 280px) minmax(0, 1fr) 72px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 162px;
  }

  .office-row {
    width: min(100% - 28px, 720px);
  }

  .top-nav {
    justify-content: flex-start;
  }

  .sidebar {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 10px;
    padding: 10px 18px;
  }

  .brand {
    display: none;
  }

  .nav-list {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-panel {
    width: min(680px, 100%);
  }

  .tools {
    grid-template-columns: 1fr;
  }

  .guide-section {
    scroll-margin-top: 166px;
  }
}

@media (max-width: 680px) {
  .site-header {
    border-top-width: 4px;
  }

  .office-row {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .logo-block {
    grid-column: 1 / -1;
    min-height: 82px;
    justify-content: center;
    padding: 10px 18px;
  }

  .site-logo {
    width: min(310px, 86vw);
    object-position: center;
  }

  .office-card {
    min-height: 58px;
    justify-content: center;
    padding: 8px 10px;
    border-top: 1px solid rgba(18, 18, 18, 0.28);
    border-left: 0;
    text-align: center;
  }

  .office-card:nth-child(2) {
    border-right: 1px solid rgba(18, 18, 18, 0.28);
  }

  .office-card:last-child {
    grid-column: 2;
    min-height: 58px;
    border-left: 0;
  }

  .office-card small {
    font-size: 0.7rem;
  }

  .office-card a {
    font-size: 1rem;
  }

  .pin {
    display: none;
  }

  .header-appointment {
    min-height: 40px;
    padding: 6px 10px;
  }

  .top-nav {
    min-height: 58px;
    gap: 24px;
    padding: 0 16px;
    font-size: 0.85rem;
  }

  .hero {
    gap: 34px;
    padding: 44px 18px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.2rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .primary,
  .hero-actions .secondary,
  .hero-actions .chip-button {
    width: 100%;
  }

  .hero-panel {
    padding: 10px;
    box-shadow: 7px 7px 0 rgba(18, 18, 18, 0.12);
  }

  .photo-stack {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(170px, auto));
    min-height: 0;
  }

  .photo-stack img:first-child {
    grid-column: auto;
  }

  .stats,
  .tools,
  .section-grid,
  .empty {
    width: min(100% - 24px, var(--content));
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .tool-card,
  .guide-section {
    padding: 18px;
  }

  .time-grid,
  .media-grid,
  .examples {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .tag {
    width: fit-content;
  }

  .timer-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  html {
    scroll-padding-top: 152px;
  }

  .sidebar {
    padding-inline: 12px;
  }

  .hero {
    padding-inline: 14px;
  }

  .office-strip {
    display: grid;
  }

  .office-strip a,
  .office-strip span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .guide-section {
    scroll-margin-top: 156px;
  }
}

@media print {
  body {
    background: var(--paper);
    font-size: 11pt;
  }

  .site-header,
  .sidebar,
  .hero-actions,
  .tools,
  .modal {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
    background: var(--paper);
    border: 0;
  }

  .hero-panel,
  .stats {
    display: none;
  }

  .section-grid {
    width: 100%;
  }

  .guide-section {
    break-inside: avoid;
    box-shadow: none;
  }
}
