@font-face {
  font-family: "Geologica";
  src: url("fonts/Geologica/Geologica-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("fonts/Geologica/Geologica-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto/Roboto-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #38a04c;
  --primary-dark: #2f8b41;
  --secondary: #284e3b;
  --secondary-deep: #1f3d2f;
  --green-light: #f5faf6;
  --peach-light: #feefe3;
  --peach: #f0c9ba;
  --white: #ffffff;
  --text: #252425;
  --muted: #797b7d;
  --line: #d1d4d6;
  --shadow: 0 18px 45px rgba(40, 78, 59, 0.12);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  border-top: 4px solid var(--primary);
  color: var(--text);
  background: var(--white);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--secondary);
  text-decoration: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--primary);
  font-family: "Geologica", Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: "Geologica", Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.header-note {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 500;
}

.hero {
  min-height: min(650px, calc(100vh - 120px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 76px 64px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 39, 27, 0.75) 0%, rgba(18, 39, 27, 0.48) 58%, rgba(18, 39, 27, 0.1) 100%),
    url("fantazia-field.jpg") center / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-art {
  display: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8be39b;
}

h1,
h2 {
  margin: 0;
  font-family: "Geologica", Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(48px, 6vw, 72px);
}

.hero-text {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 300;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(40, 78, 59, 0.4);
  font-size: 13px;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8be39b;
  box-shadow: 0 0 0 5px rgba(56, 160, 76, 0.22);
}

.price-section {
  padding: 110px 0 96px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(38px, 5vw, 58px);
}

.section-heading > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
}

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

.price-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.price-card-cut {
  background: var(--green-light);
}

.price-card-pot {
  background: var(--peach-light);
}

.price-card:hover,
.price-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.price-card:focus-visible,
.button:focus-visible,
.price-nav a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.card-number {
  color: var(--primary);
  font-family: "Geologica", Arial, sans-serif;
  font-size: 16px;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-type {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-content strong {
  max-width: 460px;
  font-family: "Geologica", Arial, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
}

.card-description {
  max-width: 390px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
}

.card-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
}

.updated-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(56, 160, 76, 0.12);
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 21px;
  border-top: 1px solid rgba(40, 78, 59, 0.18);
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
}

.card-link b {
  font-size: 22px;
  font-weight: 400;
}

.site-footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--secondary);
  box-shadow: 0 0 0 100vmax var(--secondary);
  clip-path: inset(0 -100vmax);
  font-size: 14px;
}

.site-footer a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.price-nav {
  display: flex;
  align-items: stretch;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.price-nav a {
  display: grid;
  place-items: center;
  padding: 9px 14px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.price-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--primary);
}

.document-page {
  background: linear-gradient(180deg, var(--green-light) 0, #edf4ef 520px);
}

.catalog-main {
  padding-top: 28px;
  padding-bottom: 88px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.catalog-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 42px;
  margin-bottom: 30px;
}

.catalog-heading .eyebrow {
  margin-bottom: 10px;
}

.catalog-heading h1 {
  max-width: 880px;
  font-size: clamp(42px, 5.4vw, 65px);
}

.catalog-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--primary);
}

.button-primary:hover {
  background: var(--primary-dark);
}

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

.button-secondary:hover {
  border-color: var(--primary);
  background: var(--green-light);
}

.catalog-status {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 38px auto 20px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
}

.status-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(56, 160, 76, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.catalog-status.is-ready .status-spinner {
  width: 8px;
  height: 8px;
  border: 0;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(56, 160, 76, 0.12);
  animation: none;
}

.catalog-status.has-error {
  color: #8a3f32;
}

.catalog-status.has-error .status-spinner {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pdf-pages {
  width: min(100%, 930px);
  display: flex;
  flex-direction: column;
  gap: 46px;
  margin-inline: auto;
}

.pdf-page {
  --page-ratio: 0.707;
  --edge-feather: clamp(9px, 1.4vw, 17px);
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: var(--page-ratio);
  background: transparent;
}

.page-surface,
.page-ambient,
.page-canvas,
.page-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-ambient {
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  filter: blur(25px) saturate(0.86);
  transform: scale(1.035);
  transition: opacity 420ms ease;
}

.page-surface {
  z-index: 2;
  overflow: hidden;
  border-radius: 3px;
  filter: drop-shadow(0 16px 28px rgba(40, 78, 59, 0.12));
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--edge-feather),
    #000 calc(100% - var(--edge-feather)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--edge-feather),
    #000 calc(100% - var(--edge-feather)),
    transparent 100%
  );
}

.page-canvas,
.page-placeholder {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--edge-feather),
    #000 calc(100% - var(--edge-feather)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--edge-feather),
    #000 calc(100% - var(--edge-feather)),
    transparent 100%
  );
}

.page-canvas {
  z-index: 2;
  display: block;
  opacity: 0;
  transition: opacity 260ms ease;
}

.pdf-page.is-ready .page-canvas {
  opacity: 1;
}

.pdf-page.is-ready .page-ambient {
  opacity: 0.42;
}

.page-placeholder {
  z-index: 1;
  background:
    linear-gradient(90deg, transparent 0, rgba(56, 160, 76, 0.055) 48%, transparent 100%),
    var(--white);
  background-size: 220% 100%;
}

.pdf-page.is-rendering .page-placeholder {
  animation: page-loading 1.4s ease-in-out infinite;
}

@keyframes page-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.page-label {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 10px;
  min-width: 28px;
  padding: 4px 7px;
  border-radius: 4px;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 12px rgba(40, 78, 59, 0.1);
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

.reader-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 24px;
  text-align: center;
}

.office-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 8%, rgba(56, 160, 76, 0.12), transparent 28%),
    linear-gradient(180deg, var(--green-light) 0, #edf4ef 100%);
}

.office-header {
  min-height: 90px;
}

.office-logout {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.office-logout:hover {
  border-color: var(--primary);
  background: var(--white);
}

.office-main {
  padding: 46px 0 100px;
}

.office-login {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 70px;
  padding: 72px;
  border: 1px solid rgba(40, 78, 59, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(40, 78, 59, 0.1);
  backdrop-filter: blur(14px);
}

.office-login-copy h1,
.office-heading h1 {
  font-size: clamp(43px, 5vw, 66px);
}

.office-login-copy > p:not(.eyebrow),
.office-heading > div > p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 30px;
  border-radius: 8px;
  background: var(--green-light);
}

.login-form label {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
}

.login-form input {
  min-height: 52px;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
  font: inherit;
  font-size: 18px;
}

.login-form input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(56, 160, 76, 0.16);
}

.login-form .button {
  width: 100%;
}

.form-message {
  min-height: 20px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-message.is-error {
  color: #994334;
}

.form-message.is-success {
  color: var(--primary-dark);
  font-weight: 500;
}

.office-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.office-online {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(56, 160, 76, 0.25);
  border-radius: var(--radius);
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
}

.office-online span,
.upload-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(56, 160, 76, 0.13);
}

.storage-warning {
  margin: -16px 0 30px;
  padding: 16px 18px;
  border: 1px solid #e5c18b;
  border-radius: var(--radius);
  color: #715126;
  background: #fff7e9;
  font-size: 14px;
}

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

.upload-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 34px;
  border: 1px solid rgba(40, 78, 59, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 44px rgba(40, 78, 59, 0.08);
}

.upload-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.upload-card h2 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
}

.current-file {
  min-height: 42px;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.pdf-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-drop {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px dashed #aebbb2;
  border-radius: 7px;
  color: var(--secondary);
  background: var(--green-light);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.file-drop:hover,
.file-drop.is-dragging,
.file-drop.has-file,
.pdf-input:focus + .file-drop {
  border-color: var(--primary);
  background: #edf8ef;
}

.file-drop.is-dragging {
  transform: scale(1.01);
}

.file-drop-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary);
  font-size: 20px;
  line-height: 1;
}

.file-drop strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 500;
}

.file-drop small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.upload-button:disabled,
.login-form .button:disabled {
  opacity: 0.55;
  transform: none;
  cursor: not-allowed;
}

.office-public-link {
  align-self: flex-start;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.office-public-link:hover {
  text-decoration: underline;
}

.office-note {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  margin-top: 24px;
  padding: 24px 28px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--secondary);
  font-size: 14px;
}

.office-note strong {
  color: var(--white);
  font-family: "Geologica", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
}

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.error-code {
  margin: 60px 0 4px;
  color: var(--primary);
  font-family: "Geologica", Arial, sans-serif;
  font-size: 24px;
}

.error-page h1 {
  font-size: clamp(42px, 6vw, 66px);
}

.error-page > p:not(.error-code) {
  margin: 18px 0 30px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 30px, 1240px);
  }

  .hero {
    min-height: 570px;
    padding: 58px 38px;
    background-position: 58% center;
  }

  .price-section {
    padding: 82px 0 72px;
  }

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

  .catalog-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .document-actions {
    justify-content: flex-start;
  }

  .pdf-pages {
    gap: 34px;
  }

  .office-login {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 52px;
  }

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

@media (max-width: 620px) {
  body {
    border-top-width: 3px;
  }

  .site-header {
    min-height: 82px;
    flex-wrap: wrap;
    padding: 13px 0;
  }

  .header-note {
    display: none;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .hero {
    min-height: 520px;
    padding: 44px 24px;
    background-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-badge {
    align-items: flex-start;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-heading > p {
    display: none;
  }

  .price-card {
    min-height: 330px;
    padding: 28px;
  }

  .card-content strong {
    font-size: clamp(30px, 9vw, 42px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .price-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .price-nav a {
    padding: 8px;
    font-size: 10px;
  }

  .catalog-main {
    padding-top: 18px;
  }

  .breadcrumbs {
    margin-bottom: 28px;
  }

  .catalog-heading h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .document-actions {
    width: 100%;
  }

  .document-actions .button {
    flex: 1 1 100%;
  }

  .catalog-status {
    margin-top: 28px;
  }

  .pdf-pages {
    width: calc(100% + 12px);
    margin-left: -6px;
    gap: 24px;
  }

  .page-ambient {
    filter: blur(17px) saturate(0.86);
    transform: scale(1.025);
  }

  .office-main {
    padding-top: 24px;
  }

  .office-login {
    min-height: auto;
    gap: 30px;
    padding: 34px 22px;
  }

  .office-login-copy h1,
  .office-heading h1 {
    font-size: clamp(37px, 11vw, 50px);
  }

  .login-form,
  .upload-card {
    padding: 24px;
  }

  .office-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .office-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
