/* /css/styles.css */

:root {
  --green-950: #17311f;
  --green-900: #1e3d29;
  --green-850: #244829;
  --green-800: #2f5d34;
  --green-700: #4e7b42;
  --green-600: #5f8a52;
  --green-100: #eef5e8;
  --green-050: #f7fbf4;

  --yellow-500: #f2c94c;
  --yellow-600: #e4b524;

  --white: #ffffff;
  --text-dark: #223127;
  --text-soft: #5b6a60;
  --text-muted: #738076;

  --border-soft: rgba(30, 61, 41, 0.12);
  --border-medium: rgba(30, 61, 41, 0.18);

  --shadow-soft: 0 16px 40px rgba(20, 40, 24, 0.1);
  --shadow-medium: 0 20px 48px rgba(20, 40, 24, 0.14);

  --container-width: 1160px;

  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --header-height: 82px;
  --transition: 160ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(242, 201, 76, 0.12), transparent 20%),
    linear-gradient(180deg, #f9fcf6 0%, #f1f7eb 100%);
  color: var(--text-dark);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-800);
  text-decoration: none;
  transition:
    color var(--transition),
    opacity var(--transition),
    transform var(--transition);
}

a:hover {
  color: var(--green-900);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: var(--space-3);
}

h2 {
  margin-bottom: var(--space-3);
}

h3 {
  margin-bottom: var(--space-2);
  font-size: 1.15rem;
  line-height: 1.2;
}

p {
  margin-bottom: var(--space-3);
  color: var(--text-dark);
}

ul,
ol {
  margin-top: 0;
}

.container {
  width: min(var(--container-width), calc(100% - 2rem));
  margin: 0 auto;
}

/* ============================ HEADER ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 251, 244, 0.94);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: min(210px, 42vw);
}

.site-logo img {
  width: 100%;
  height: auto;
  max-height: clamp(42px, 6vw, 68px);
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--green-800);
}

.main-nav a.is-active::after,
.main-nav a:hover::after {
  background: var(--yellow-500);
}

/* ============================ SECTIONS ============================ */

.section {
  padding: var(--space-8) 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(238, 245, 232, 0.75));
}

.section-dark {
  background: linear-gradient(180deg, #244829, #1f3f29);
}

.eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--green-800);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

.section-heading-light .section-lead,
.section-heading-light p {
  color: rgba(255, 255, 255, 0.88);
}

.section-title {
  display: inline-block;
  margin: 0 0 var(--space-3);
  padding: 0.4rem 1rem;
  border-radius: 0.3rem;
  background: linear-gradient(90deg, var(--green-800), var(--green-700));
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.section-title-light {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.2));
}

.section-lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ============================ GRID / CARD ============================ */

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.content-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calculator-grid {
  align-items: stretch;
}

.order-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.card {
  height: 100%;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.card > :last-child {
  margin-bottom: 0;
}

.card-title {
  margin: 0 0 var(--space-3);
  color: var(--green-900);
  font-size: 1.08rem;
}

.card-panel,
.feature-card,
.service-card {
  position: relative;
  overflow: hidden;
}

.card-panel::before,
.feature-card::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--green-800), var(--yellow-500));
}

.card-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 245, 0.98));
}

.advantage-card {
  height: 100%;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.1));
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.advantage-card::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow-500);
}

.advantage-card h3,
.advantage-card p {
  color: var(--white);
}

.advantage-card p {
  margin-bottom: 0;
  opacity: 0.9;
}

/* ============================ HERO ============================ */

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(47, 93, 52, 0.06), transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(242, 201, 76, 0.2), transparent 18%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--green-900);
}

.brush-text {
  position: relative;
  display: inline-block;
  color: var(--green-700);
}

.brush-text::before {
  content: "";
  position: absolute;
  left: -0.24em;
  right: -0.24em;
  bottom: 0.08em;
  height: 0.42em;
  background: var(--yellow-500);
  border-radius: 0.45em 0.15em 0.35em 0.2em;
  transform: rotate(-1.5deg);
  z-index: -1;
}

.hero-text {
  max-width: 640px;
  margin: 0 0 var(--space-5);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.hero-actions {
  margin-top: 0;
  margin-bottom: var(--space-5);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  color: var(--green-900);
  font-weight: 700;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual-card {
  width: min(100%, 440px);
  min-height: 320px;
  padding: 2rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 242, 0.97));
  border: 1px solid var(--border-soft);
  box-shadow: 0 24px 60px rgba(31, 63, 41, 0.14);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-visual-card::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  background: rgba(242, 201, 76, 0.16);
  border-radius: 50%;
}

.hero-visual-badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(47, 93, 52, 0.1);
  color: var(--green-900);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.hero-phone {
  display: inline-block;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--green-900);
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.hero-visual-text {
  margin: 1rem 0 0;
  max-width: 300px;
  color: var(--text-soft);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ============================ SPECIAL HERO ELEMENTS ============================ */

.hero-badge {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 0.9rem 1.4rem 1rem;
  position: relative;
  background: var(--yellow-500);
  color: #1f2a1f;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
  border-radius: 0.35rem;
  transform: rotate(-2deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  clip-path: polygon(
    2% 18%,
    10% 6%,
    22% 10%,
    34% 3%,
    48% 10%,
    62% 4%,
    76% 12%,
    90% 5%,
    98% 18%,
    95% 34%,
    100% 48%,
    94% 66%,
    98% 82%,
    88% 94%,
    74% 88%,
    60% 96%,
    46% 89%,
    32% 96%,
    18% 88%,
    8% 94%,
    2% 82%,
    6% 64%,
    0% 48%,
    5% 32%
  );
}

.hero-badge::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0.55rem;
  height: 4px;
  background: rgba(31, 42, 31, 0.95);
  border-radius: 999px;
  transform: rotate(-4deg);
}

.icon-circle {
  width: 74px;
  height: 74px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #5e8e4c 0%, #3f6f37 55%, #2f5d34 100%);
  color: #ffffff;
  font-size: 1.9rem;
  font-weight: 700;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 22px rgba(31, 63, 41, 0.18),
    inset 0 2px 8px rgba(255, 255, 255, 0.14);
  overflow: hidden;
  flex-shrink: 0;
}

.icon-circle span,
.icon-circle img {
  display: block;
  width: 58%;
  height: 58%;
  object-fit: contain;
}

/* ============================ FORMS / CALCULATOR ============================ */

.estimate-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.fieldset {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.fieldset legend {
  padding: 0 0.45rem;
  color: var(--green-900);
  font-weight: 800;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: var(--space-4);
}

.field:last-child {
  margin-bottom: 0;
}

label {
  font-weight: 700;
  color: var(--green-900);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8cc;
  border-radius: 14px;
  background: var(--white);
  color: var(--text-dark);
  padding: 0.9rem 1rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(78, 123, 66, 0.12);
}

textarea {
  resize: vertical;
}

.summary-list {
  display: grid;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--green-050);
  border: 1px solid rgba(47, 93, 52, 0.08);
}

.summary-row span {
  color: var(--text-soft);
  font-weight: 600;
}

.summary-row strong {
  color: var(--green-900);
  font-size: 1.05rem;
}

.estimate-total {
  margin: var(--space-4) 0 var(--space-2);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-900);
}

.estimate-total strong {
  font-size: 1.35rem;
}

.estimate-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.checkbox-field {
  margin-bottom: var(--space-4);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.checkbox-label input {
  width: auto;
  margin-top: 0.2rem;
}

.status {
  min-height: 24px;
  margin: 0 0 var(--space-4);
  font-weight: 700;
  color: var(--green-900);
}

.status.is-error {
  color: #b42318;
}

/* ============================ BUTTONS ============================ */

.button-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.button-primary {
  background: var(--yellow-500);
  color: #1f2a1f;
  box-shadow: var(--shadow-soft);
}

.button-primary:hover {
  background: var(--yellow-600);
  color: #1f2a1f;
  transform: translateY(-2px);
}

.button-outline {
  background: var(--white);
  color: var(--green-900);
  border-color: var(--green-900);
}

.button-outline:hover {
  background: var(--green-900);
  color: var(--white);
}

.button-dark {
  background: var(--green-900);
  color: var(--white);
}

.button-dark:hover {
  background: var(--green-950);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================ CONTACT / FOOTER ============================ */

.contact-card {
  text-align: center;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.phone-ribbon {
  padding: 1.75rem 0;
  background: linear-gradient(90deg, #f2c94c, #efbb24);
  box-shadow: inset 0 10px 25px rgba(255, 255, 255, 0.2);
}

.phone-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.phone-ribbon-label {
  margin: 0 0 0.3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #2a331f;
}

.phone-ribbon-number {
  display: inline-block;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #1f2a1f;
  text-decoration: none;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-footer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ============================ PRINT / MUNKALAP ============================ */
/* /css/styles.css */
/* A teljes body.print-page blokkot és a hozzá tartozó @media print / @media (max-width: 768px)
   részt cseréld le erre */

body.print-page {
  background:
    radial-gradient(circle at top right, rgba(242, 201, 76, 0.12), transparent 18%),
    linear-gradient(180deg, #f4f9ef 0%, #edf5e7 100%);
  color: var(--text-dark);
  font-size: 13px;
  line-height: 1.35;
}

body.print-page .topbar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 0 0;
}

body.print-page .topbar .button {
  min-width: 120px;
  min-height: 40px;
  padding: 0.65rem 0.95rem;
}

body.print-page .page-shell {
  width: 210mm;
  min-height: 297mm;
  max-width: calc(100% - 12px);
  margin: 0.35rem auto 0.75rem;
  padding: 8mm;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(20, 40, 24, 0.08);
}

body.print-page .print-hero {
  margin-bottom: 0.5rem;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 8px 18px rgba(31, 63, 41, 0.12);
}

body.print-page .print-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 0.75rem;
  align-items: start;
}

body.print-page .print-brand {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

body.print-page .print-logo-box {
  width: 58px;
  min-width: 58px;
  height: 58px;
  padding: 0.3rem;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.print-page .print-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.print-page .print-brand-copy {
  min-width: 0;
  max-width: 340px;
}

body.print-page .print-hero .eyebrow {
  margin-bottom: 0.15rem;
  color: var(--yellow-500);
  font-size: 0.72rem;
}

body.print-page .print-title {
  margin: 0 0 0.2rem;
  max-width: 7ch;
  color: var(--white);
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 0.92;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

body.print-page .print-subtitle {
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  line-height: 1.3;
}

body.print-page .print-meta-card {
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

body.print-page .meta-row,
body.print-page .info-row,
body.print-page .price-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
}

body.print-page .meta-row + .meta-row,
body.print-page .info-row + .info-row,
body.print-page .price-row + .price-row {
  margin-top: 0.3rem;
}

body.print-page .meta-row span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 700;
}

body.print-page .meta-row strong {
  color: var(--white);
  text-align: right;
  font-size: 0.88rem;
}

body.print-page .content-grid,
body.print-page .sign-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
  align-items: start;
}

body.print-page .span-2 {
  grid-column: 1 / -1;
}

body.print-page .card {
  height: auto;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(20, 40, 24, 0.04);
  break-inside: avoid;
  page-break-inside: avoid;
}

body.print-page .card-title {
  margin: 0 0 0.45rem;
  color: var(--green-900);
  font-size: 0.92rem;
  line-height: 1.15;
}

body.print-page .accent-card {
  background: linear-gradient(180deg, #fbfdf8 0%, #f3f8ee 100%);
}

body.print-page .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

body.print-page .section-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 800;
}

body.print-page .info-list,
body.print-page .price-list {
  display: grid;
  gap: 0.28rem;
}

body.print-page .info-row span,
body.print-page .price-row span,
body.print-page .inline-note,
body.print-page .sign-card span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

body.print-page .info-row strong,
body.print-page .price-row strong {
  text-align: right;
  color: var(--text-dark);
  font-size: 0.86rem;
}

body.print-page .price-row.total {
  margin-top: 0.15rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(30, 61, 41, 0.16);
}

body.print-page .table-wrap {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

body.print-page .items-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.76rem;
}

body.print-page .items-table th,
body.print-page .items-table td {
  padding: 0.32rem 0.45rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(30, 61, 41, 0.08);
  line-height: 1.2;
}

body.print-page .items-table th {
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 800;
}

body.print-page .items-table tbody tr:nth-child(even) {
  background: #fafcf8;
}

body.print-page .note-box {
  min-height: 54px;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdf9 100%);
  line-height: 1.35;
  font-size: 0.8rem;
}

body.print-page .lines-box {
  min-height: 62px;
  border-radius: 10px;
  border: 1px dashed rgba(30, 61, 41, 0.18);
  background:
    linear-gradient(to bottom, transparent 16px, rgba(30, 61, 41, 0.08) 17px) repeat-y;
  background-size: 100% 17px;
}

body.print-page .sign-grid {
  margin-top: 0.5rem;
}

body.print-page .sign-card {
  min-height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 1rem;
}

@page {
  size: A4;
  margin: 6mm;
}

@media print {
  body.print-page .no-print {
    display: none !important;
  }

  body.print-page {
    background: var(--white) !important;
    font-size: 12px;
    line-height: 1.28;
  }

  body.print-page .page-shell {
    width: auto;
    min-height: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.print-page .print-hero,
  body.print-page .card {
    box-shadow: none;
  }

  body.print-page .print-hero {
    margin-bottom: 6px;
    padding: 8px 10px;
  }

  body.print-page .print-hero-inner {
    grid-template-columns: minmax(0, 1fr) 235px !important;
    gap: 8px;
  }

  body.print-page .print-brand {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
  }

  body.print-page .print-logo-box {
    width: 52px;
    min-width: 52px;
    height: 52px;
    padding: 3px;
  }

  body.print-page .print-title {
    max-width: 7ch;
    font-size: 1.85rem;
    margin-bottom: 0.15rem;
  }

  body.print-page .print-subtitle {
    font-size: 0.74rem;
    line-height: 1.2;
    max-width: 26ch;
  }

  body.print-page .print-meta-card {
    padding: 8px 9px;
  }

  body.print-page .content-grid,
  body.print-page .sign-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.print-page .span-2 {
    grid-column: 1 / -1;
  }

  body.print-page .card {
    padding: 8px 10px;
    border-radius: 10px;
  }

  body.print-page .card-title {
    margin-bottom: 4px;
    font-size: 0.86rem;
  }

  body.print-page .items-table {
    font-size: 0.72rem;
  }

  body.print-page .items-table th,
  body.print-page .items-table td {
    padding: 3px 5px;
  }

  body.print-page .note-box {
    min-height: 46px;
    padding: 7px 8px;
    font-size: 0.76rem;
    line-height: 1.28;
  }

  body.print-page .lines-box {
    min-height: 52px;
    background:
      linear-gradient(to bottom, transparent 14px, rgba(30, 61, 41, 0.08) 15px) repeat-y;
    background-size: 100% 15px;
  }

  body.print-page .sign-card {
    min-height: 34px;
    padding-top: 0.8rem;
  }
}

@media (max-width: 768px) {
  body.print-page .page-shell {
    max-width: calc(100% - 1rem);
    margin: 0.5rem auto 1rem;
    padding: 1rem;
  }

  body.print-page .topbar {
    padding-top: 0.75rem;
  }

  body.print-page .topbar .button {
    width: auto;
    min-width: 0;
  }

  body.print-page .print-hero-inner {
    grid-template-columns: 1fr !important;
  }

  body.print-page .print-brand {
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: start;
  }

  body.print-page .print-logo-box {
    width: 60px;
    min-width: 60px;
    height: 60px;
  }

  body.print-page .print-brand-copy {
    max-width: none;
  }

  body.print-page .print-title {
    max-width: none;
    font-size: clamp(1.35rem, 8vw, 2.1rem);
    line-height: 0.96;
  }

  body.print-page .content-grid,
  body.print-page .sign-grid {
    grid-template-columns: 1fr !important;
  }

  body.print-page .span-2 {
    grid-column: auto;
  }
}