:root {
  --ink: #17324d;
  --ink-soft: #52677b;
  --brand: #0d7c66;
  --brand-dark: #075e4d;
  --brand-soft: #e6f6f1;
  --accent: #ffb703;
  --surface: #ffffff;
  --background: #f6f8fb;
  --line: #dce4eb;
  --danger: #bb3e03;
  --shadow: 0 18px 50px rgba(23, 50, 77, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--brand-dark);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 228, 235, 0.85);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 8px 20px rgba(13, 124, 102, 0.25);
}

.brand-mark::before {
  content: "?";
  font-size: 1.3rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
}

.nav-cta {
  padding: 0.55rem 0.9rem;
  color: var(--brand-dark) !important;
  background: var(--brand-soft);
  border-radius: 999px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 4px;
}

.hero {
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 183, 3, 0.2), transparent 26rem),
    radial-gradient(circle at 85% 15%, rgba(13, 124, 102, 0.18), transparent 24rem),
    linear-gradient(145deg, #f9fffd 0%, #f7f9fc 66%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
}

.hero h1,
.tool-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--brand);
  font-style: normal;
}

.hero-copy {
  max-width: 650px;
  margin: 1.35rem 0 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: white;
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(13, 124, 102, 0.25);
}

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

.secondary-button {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.hero-proof {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.hero-proof strong {
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.visual-card {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.visual-card::before {
  content: "Hızlı örnek";
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 850;
}

.visual-card h2 {
  margin: 1rem 0 1.2rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.mock-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.mock-field {
  padding: 0.75rem;
  color: var(--ink-soft);
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.82rem;
}

.mock-field strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
  font-size: 1rem;
}

.mock-result {
  margin-top: 0.8rem;
  padding: 1rem;
  color: white;
  background: var(--brand);
  border-radius: 14px;
}

.mock-result small,
.mock-result strong {
  display: block;
}

.mock-result strong {
  margin-top: 0.15rem;
  font-size: 1.5rem;
}

.visual-blob {
  position: absolute;
  width: 340px;
  height: 340px;
  background: var(--accent);
  border-radius: 42% 58% 62% 38% / 40% 45% 55% 60%;
  opacity: 0.18;
  animation: blob 10s ease-in-out infinite alternate;
}

@keyframes blob {
  to {
    border-radius: 58% 42% 35% 65% / 55% 62% 38% 45%;
    transform: rotate(12deg) scale(1.06);
  }
}

.section {
  padding: 5rem 0;
}

.section-white {
  background: white;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.search-box {
  position: relative;
  max-width: 650px;
  margin-bottom: 2rem;
}

.search-box input {
  width: 100%;
  min-height: 56px;
  padding: 0.8rem 1rem 0.8rem 3rem;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  box-shadow: 0 10px 30px rgba(23, 50, 77, 0.06);
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 124, 102, 0.12);
}

.search-box::before {
  content: "⌕";
  position: absolute;
  left: 1rem;
  top: 50%;
  color: var(--brand);
  font-size: 1.5rem;
  transform: translateY(-52%);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tool-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(23, 50, 77, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card:hover {
  border-color: rgba(13, 124, 102, 0.45);
  box-shadow: 0 18px 40px rgba(23, 50, 77, 0.1);
  transform: translateY(-3px);
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--brand-soft);
  border-radius: 14px;
  font-size: 1.4rem;
}

.tool-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.tool-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.tool-link {
  margin-top: auto;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 850;
}

.tool-link::after {
  content: " →";
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  background: white;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.4rem;
  background: var(--background);
  border-radius: var(--radius-md);
}

.feature-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 10px;
  font-weight: 900;
}

.feature h3 {
  margin: 1rem 0 0.35rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
}

.ad-slot {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #8493a1;
  background: #f1f4f7;
  border: 1px dashed #cbd5dd;
  border-radius: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

/* Gerçek reklam kodu bağlanana kadar boş yer tutucuları ziyaretçiden gizle. */
body:not(.ads-enabled) .ad-slot {
  display: none;
}

.home-ad {
  margin-top: 2rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.faq-list summary {
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.tool-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(155deg, #f0fbf8 0%, #f7f9fc 70%);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.breadcrumbs a {
  color: var(--brand);
  font-weight: 750;
}

.tool-hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
}

.tool-hero p {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.tool-main {
  padding: 3rem 0 5rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 1.5rem;
}

.calculator-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.calculator-title {
  padding: 1.7rem 1.7rem 1.2rem;
}

.calculator-title h2 {
  margin: 0.6rem 0 0.25rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.calculator-title p {
  margin: 0;
  color: var(--ink-soft);
}

.calculator-badge {
  display: inline-flex;
  padding: 0.3rem 0.6rem;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 850;
}

.calculator-form {
  padding: 0 1.7rem 1.7rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
}

.field small {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 650;
}

.project-field {
  grid-column: 1 / -1;
}

.input-wrap {
  position: relative;
  display: block;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 3.5rem 0.65rem 0.8rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  font-weight: 650;
}

.field select {
  padding-right: 0.8rem;
}

.field input:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.12);
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(187, 62, 3, 0.1);
}

.field-unit {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

.calculate-button {
  width: 100%;
  margin-top: 1.25rem;
}

.live-hint,
.form-message {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  text-align: center;
}

.live-hint {
  color: var(--ink-soft);
}

.form-message {
  color: var(--danger);
  font-weight: 750;
}

.calculator-result {
  padding: 1.7rem;
  color: white;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.result-heading span,
.result-heading strong {
  display: block;
}

.result-heading span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 700;
}

.result-heading strong {
  margin-top: 0.2rem;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.4rem 0 0;
}

.result-list div {
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.result-list dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.result-list dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 850;
}

.result-note {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.result-action {
  margin-top: 1rem;
  padding: 0.55rem 0.8rem;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.result-actions .result-action {
  margin-top: 0;
}

.result-action.add-result {
  color: var(--brand-dark);
  background: white;
  border-color: white;
}

.result-invalid {
  margin: 0;
  padding: 1rem;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  font-weight: 750;
}

.shopping-list-trigger {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 35;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem 0.65rem 0.65rem;
  color: white;
  background: var(--brand-dark);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(16, 43, 60, 0.3);
  font-weight: 850;
  cursor: pointer;
}

.shopping-list-trigger:hover,
.shopping-list-trigger:focus-visible {
  background: var(--brand);
}

.shopping-list-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: white;
  border-radius: 50%;
  font-size: 0.9rem;
}

.shopping-list-count {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding-inline: 0.35rem;
  color: var(--ink);
  background: var(--accent);
  border-radius: 99px;
  font-size: 0.75rem;
}

.shopping-list-dialog {
  width: min(calc(100% - 2rem), 680px);
  max-height: min(88dvh, 820px);
  padding: 0;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(16, 43, 60, 0.35);
}

.shopping-list-dialog::backdrop {
  background: rgba(16, 43, 60, 0.62);
  backdrop-filter: blur(4px);
}

.shopping-list-shell {
  max-height: min(88dvh, 820px);
  display: flex;
  flex-direction: column;
}

.shopping-list-header,
.shopping-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  background: white;
}

.shopping-list-header {
  border-bottom: 1px solid var(--line);
}

.shopping-list-eyebrow {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shopping-list-header h2 {
  margin: 0.1rem 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.shopping-list-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink-soft);
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}

.shopping-list-content {
  min-height: 220px;
  overflow-y: auto;
  padding: 1rem 1.35rem;
  background: var(--background);
}

.shopping-list-empty {
  min-height: 250px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
}

.shopping-list-empty > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
  font-size: 1.5rem;
}

.shopping-list-empty h3 {
  margin: 0.9rem 0 0.2rem;
}

.shopping-list-empty p {
  max-width: 360px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.saved-results {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.saved-result {
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.saved-result-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.saved-result-heading span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.saved-result-heading h3 {
  margin: 0.05rem 0 0;
  font-size: 1rem;
}

.saved-result-heading button {
  padding: 0.3rem 0.55rem;
  color: var(--danger);
  background: #fff7f2;
  border: 1px solid #f1d1bf;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.saved-result-total {
  display: block;
  margin-top: 0.8rem;
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.saved-result details {
  margin-top: 0.6rem;
}

.saved-result summary {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.saved-result dl {
  margin: 0.6rem 0 0;
}

.saved-result dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

.saved-result dt {
  color: var(--ink-soft);
}

.saved-result dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.shopping-list-footer {
  border-top: 1px solid var(--line);
}

.list-primary,
.list-secondary {
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.list-primary {
  color: white;
  background: var(--brand);
  border: 1px solid var(--brand);
}

.list-secondary {
  color: var(--danger);
  background: white;
  border: 1px solid var(--line);
}

.list-primary:disabled,
.list-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tool-sidebar {
  display: grid;
  gap: 1rem;
}

.side-card {
  padding: 1.2rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.side-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.side-links {
  display: grid;
  gap: 0.55rem;
}

.side-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.side-links a:hover {
  color: var(--brand);
}

.guide-card {
  max-width: 850px;
  margin-top: 2rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.guide-card h2,
.guide-card h3 {
  letter-spacing: -0.025em;
}

.guide-card h2 {
  margin-top: 0;
}

.guide-card p,
.guide-card li {
  color: var(--ink-soft);
}

.content-page {
  min-height: 65vh;
  padding: 4rem 0 5rem;
}

.content-card {
  max-width: 820px;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.content-card h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.content-card h2 {
  margin-top: 2rem;
}

.content-card p,
.content-card li {
  color: var(--ink-soft);
}

.site-footer {
  padding: 3rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  background: #102b3c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  color: white;
}

.footer-copy {
  max-width: 420px;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.footer-title {
  margin: 0 0 0.8rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 850;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-visual {
    min-height: 360px;
  }

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

  .tool-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .result-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    top: calc(100% + 0.5rem);
    display: none;
    align-items: stretch;
    padding: 0.8rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 0.65rem 0.75rem;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.8rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-visual {
    min-height: 320px;
  }

  .visual-card {
    transform: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .tool-grid,
  .feature-grid,
  .footer-grid,
  .form-grid,
  .tool-sidebar {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 190px;
  }

  .tool-hero {
    padding: 2.5rem 0 2rem;
  }

  .tool-main {
    padding: 1.25rem 0 3.5rem;
  }

  .calculator-title,
  .calculator-form,
  .calculator-result {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .calculator-card,
  .guide-card,
  .content-card {
    border-radius: 18px;
  }

  .result-actions {
    display: grid;
  }

  .result-action {
    width: 100%;
  }

  .shopping-list-trigger {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .shopping-list-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
    margin: auto auto 0.5rem;
    border-radius: 20px;
  }

  .shopping-list-shell {
    max-height: calc(100dvh - 1rem);
  }

  .shopping-list-header,
  .shopping-list-footer {
    padding: 1rem;
  }

  .shopping-list-content {
    padding: 0.8rem;
  }

  .shopping-list-footer {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
