@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #172722;
  background: #f4f5ee;
  --forest: #134333;
  --lime: #d8f575;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.top { border-bottom: 1px solid #dbe1d6; }
.top-inner, .footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-inner { min-height: 76px; }
.brand { display: inline-flex; align-items: center; color: #172722; text-decoration: none; font-size: 25px; font-weight: 800; letter-spacing: -.06em; }
.brand-accent { color: #34664d; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-right: 9px;
  border-radius: 8px;
  color: var(--lime);
  background: var(--forest);
  font-size: 22px;
  letter-spacing: 0;
}
.category { color: #41564a; font-size: 14px; font-weight: 600; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: stretch; padding-block: 42px; }
h1 { margin: 0 0 24px; font-size: clamp(44px, 5.6vw, 80px); font-weight: 800; line-height: .98; letter-spacing: -.074em; }
h1 span { color: #34664d; }
form { border: 1px solid #dbe1d6; border-radius: 20px; background: #fff; padding: clamp(16px, 2.2vw, 28px); }
.field-grid { display: grid; grid-template-columns: 1.23fr 1fr; gap: 15px 13px; }
.field { display: grid; gap: 6px; align-content: end; min-width: 0; }
.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 700; }
.optional { color: #57655d; font-weight: 400; }
input, textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #cdd7cc;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7f8f4;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #58665e; opacity: 1; }
:focus-visible { outline: 3px solid #408069; outline-offset: 2px; }
button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 9px;
  padding: 10px 16px;
  background: var(--lime);
  color: #182719;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button:hover:enabled { background: #c9ea59; }
button:disabled { cursor: wait; opacity: .75; }
button span { font-size: 21px; }
.feedback { margin: 12px 0 0; color: var(--forest); font-size: 14px; font-weight: 700; }
.feedback:empty { margin: 0; }
.feedback[data-state="error"] { color: #a02525; }
.photo { position: relative; overflow: hidden; border-radius: 24px; background: #263c34; min-height: 440px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.footer { min-height: 66px; border-top: 1px solid #dbe1d6; color: #41564a; font-size: 13px; }
.footer span:first-child { font-weight: 800; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 36px); }
  .hero { gap: 24px; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .top-inner { min-height: 62px; }
  .hero { grid-template-columns: 1fr; padding-block: 26px; }
  h1 { margin-bottom: 18px; font-size: clamp(40px, 9vw, 60px); }
  .desktop-break { display: none; }
  .photo { min-height: 250px; height: min(68vw, 360px); }
}
