:root {
  --premium-gold: #b87908;
  --premium-gold-soft: #fff8e8;
  --premium-ink: #162019;
  --premium-green: #1d7f28;
  --premium-border: #e7dcc2;
  --premium-shadow: 0 18px 50px rgba(65, 47, 14, 0.1);
}

.premium-page {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 48px;
  color: var(--premium-ink);
}

.premium-hero,
.premium-dashboard__head,
.premium-company-editor,
.premium-empty {
  border: 1px solid var(--premium-border);
  border-radius: 24px;
  background: linear-gradient(135deg, #fffdf8 0%, #fff8e8 100%);
  box-shadow: var(--premium-shadow);
}

.premium-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  min-height: 340px;
  padding: 46px 54px;
}

.premium-hero__content { position: relative; z-index: 1; }
.premium-hero h1,
.premium-dashboard__head h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.premium-hero__lead,
.premium-dashboard__head p {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.55;
  color: #4c554e;
}

.premium-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--premium-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}
.premium-price strong { font-size: 36px; }
.premium-price span { color: #687169; }

.premium-hero__mark {
  justify-self: center;
  font-size: 150px;
  line-height: 1;
  color: rgba(184, 121, 8, 0.18);
  transform: rotate(-8deg);
}

.premium-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.premium-btn--primary {
  background: var(--premium-green);
  color: #fff;
  box-shadow: 0 10px 26px rgba(29, 127, 40, 0.18);
}
.premium-btn--primary:hover { background: #176d21; }
.premium-btn--ghost {
  border-color: #d6c79f;
  background: #fff;
  color: #463814;
}
.premium-btn--small {
  min-height: 40px;
  padding: 8px 14px;
  background: #fff;
  border-color: #d9c68f;
  color: #5f450e;
}

.premium-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.premium-benefit,
.premium-grant-card {
  border: 1px solid #e8e8e1;
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(24, 37, 27, 0.05);
}
.premium-benefit__icon {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 8px;
  background: var(--premium-gold-soft);
  color: var(--premium-gold);
  font-weight: 900;
}
.premium-benefit h2 { margin: 16px 0 8px; font-size: 20px; }
.premium-benefit p,
.premium-grant-card p { margin: 0; line-height: 1.5; color: #5d665f; }

.premium-value {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid var(--premium-border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.premium-value div { padding: 20px; border-right: 1px solid var(--premium-border); }
.premium-value div:last-child { border-right: 0; }
.premium-value span { display: block; color: #70786f; margin-bottom: 4px; }
.premium-value strong { font-size: 22px; }
.premium-fineprint { margin: 14px 4px 0; font-size: 12px; color: #747a74; }

.premium-dashboard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 34px;
}
.premium-dashboard__head h1 { font-size: clamp(30px, 4vw, 46px); }
.premium-dashboard__head p { margin-bottom: 0; font-size: 16px; }
.premium-dashboard__head-actions { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }
.premium-dashboard__head-actions form { margin: 0; }

.premium-upcoming {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #dfe8dc;
  border-radius: 14px;
  background: #f7fbf6;
}
.premium-upcoming small { display: block; margin-top: 6px; color: #687268; }

.premium-grants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.premium-grant-card--used { background: #f7f8f6; }
.premium-grant-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.premium-grant-card__top span { font-size: 19px; font-weight: 800; }
.premium-grant-card__top b {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--premium-gold-soft);
  color: var(--premium-gold);
  font-size: 12px;
}
.premium-action-form { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.premium-action-form select,
.premium-company-form input,
.premium-company-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ccd4cc;
  border-radius: 10px;
  background: #fff;
  padding: 9px 11px;
  font: inherit;
  box-sizing: border-box;
}
.premium-action-form select { min-width: 0; flex: 1 1 auto; }
.premium-inline-link { display: inline-block; margin-top: 11px; color: var(--premium-green); }

.premium-company-editor { margin-top: 20px; padding: 28px; background: #fff; }
.premium-section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; }
.premium-section-head h2 { margin: 5px 0 0; font-size: 30px; }
.premium-section-head > a { color: var(--premium-green); }
.premium-company-editor__note { color: #626b64; }
.premium-company-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.premium-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.premium-field--short_description,
.premium-field--public_address,
.premium-field--logo { grid-column: 1 / -1; }
.premium-field--show_email,
.premium-field--show_phone,
.premium-field--show_address,
.premium-field--show_website {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
.premium-field input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; }
.premium-field strong { color: #a42a24; font-size: 12px; }
.premium-company-form > .premium-btn { justify-self: start; }
.premium-empty { margin-top: 20px; padding: 32px; }

.premium-company-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  margin: 14px 0 24px;
  padding: 26px;
  border: 1px solid var(--premium-border);
  border-radius: 22px;
  background: linear-gradient(135deg, #fffdf8, #fff8e8);
  box-shadow: var(--premium-shadow);
}
.premium-company-card__logo {
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #eadcb8;
  border-radius: 20px;
  background: #fff;
  color: var(--premium-gold);
  font-size: 34px;
  font-weight: 900;
}
.premium-company-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.premium-company-card__title-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.premium-company-card__title-row h1 { margin: 0; font-size: clamp(27px, 4vw, 40px); line-height: 1.1; }
.premium-badge,
.premium-verified {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}
.premium-badge { background: #fff0c6; color: #8a5a00; }
.premium-verified { background: #e9f8ec; color: #16702a; }
.premium-company-card__description { margin: 14px 0 7px; font-size: 17px; color: #4c554e; }
.premium-company-card__address { margin: 0 0 16px; color: #6b736d; }
.premium-company-card__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.premium-company-card__actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid #d9cba6;
  border-radius: 10px;
  padding: 8px 13px;
  background: #fff;
  color: #263328;
  text-decoration: none;
}

@media (max-width: 900px) {
  .premium-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-hero { grid-template-columns: minmax(0, 1fr) 120px; padding: 38px 34px; }
  .premium-hero__mark { font-size: 100px; }
  .premium-dashboard__head { align-items: flex-start; flex-direction: column; }
  .premium-dashboard__head-actions { width: 100%; flex-direction: row; }
  .premium-dashboard__head-actions .premium-btn { width: 100%; }
}

@media (max-width: 700px) {
  .premium-page { width: calc(100% - 20px); margin-top: 14px; }
  .premium-hero { display: block; min-height: 0; padding: 28px 20px; border-radius: 18px; }
  .premium-hero__mark { position: absolute; top: 12px; right: 14px; font-size: 72px; }
  .premium-hero h1 { max-width: 90%; font-size: 36px; }
  .premium-hero__lead { font-size: 16px; }
  .premium-price { flex-direction: column; gap: 0; }
  .premium-benefits,
  .premium-value,
  .premium-grants,
  .premium-company-form { grid-template-columns: 1fr; }
  .premium-value div { border-right: 0; border-bottom: 1px solid var(--premium-border); }
  .premium-value div:last-child { border-bottom: 0; }
  .premium-dashboard__head { padding: 24px 20px; border-radius: 18px; }
  .premium-dashboard__head-actions { flex-direction: column; }
  .premium-action-form { flex-direction: column; align-items: stretch; }
  .premium-action-form .premium-btn { width: 100%; }
  .premium-company-editor { padding: 22px 18px; border-radius: 18px; }
  .premium-section-head { align-items: flex-start; flex-direction: column; }
  .premium-field--short_description,
  .premium-field--public_address,
  .premium-field--logo { grid-column: auto; }
  .premium-company-form > .premium-btn { width: 100%; }
  .premium-company-card { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px; border-radius: 18px; }
  .premium-company-card__logo { width: 96px; height: 96px; border-radius: 16px; }
  .premium-company-card__title-row { align-items: flex-start; }
  .premium-company-card__title-row h1 { width: 100%; font-size: 28px; }
  .premium-company-card__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .premium-company-card__actions a { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .premium-company-card__actions { grid-template-columns: 1fr; }
  .premium-btn { width: 100%; }
}
