.farm-page, .contact-page, .sales-page {
  --folio-pad: clamp(1.3rem, 5.2vw, 6.5rem);
  --folio-paper: #f0f2eb;
  --folio-green: #163a35;
  --folio-rule: #b7c6bb;
}
.farm-page { background: #102c2b; color: #f3f5ea; }
.film-tour { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); grid-template-areas: "heading image" "heading controls"; gap: .6rem clamp(2rem,4.4vw,5.5rem); align-content: center; padding: clamp(6.6rem,13vh,10.5rem) var(--folio-pad) clamp(2.6rem,5vw,5.3rem); max-width: 116rem; margin-inline: auto; }
.tour-heading { grid-area: heading; align-self: center; padding-bottom: 1.5rem; }
.tour-heading h1, .contact-copy h1, .sales-intro h1, .not-found h1 { font-size: var(--type-product); letter-spacing: -.05em; line-height: .96; }
.farm-location { font-size: .99rem; color: #c9dbcd; margin: 0 0 1.1rem; }
.tour-lead { margin: 1.45rem 0 0; max-width: 25rem; font-size: clamp(1.08rem,1.38vw,1.38rem); line-height: 1.5; color: #dfebe1; }
.tour-image { grid-area: image; position: relative; overflow: hidden; align-self: end; background: #1d3836; }
.tour-image video { width: 100%; aspect-ratio: 3/2; height: auto; object-fit: cover; }
.tour-controls { grid-area: controls; display: flex; justify-content: space-between; gap: .65rem; align-items: center; }
.tour-chapters { display: flex; gap: clamp(.85rem,2.1vw,2.4rem); }
.tour-chapters button { min-height: 44px; position: relative; color: #c1d5ca; }
.tour-chapters button::after { content: ''; position: absolute; inset: auto 0 .25rem; height: 2px; background: #dbecdb; transform: scaleX(0); transform-origin: left center; transition: transform .3s ease; }
.tour-chapters button[aria-pressed=true] { color: #fbfcf2; }
.tour-chapters button[aria-pressed=true]::after { transform: scaleX(1); }
.tour-controls .motion { position: static; display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.farm-contents { display: flex; flex-wrap: wrap; column-gap: 1.25rem; margin-top: 1rem; }
.farm-contents .line-link { text-decoration-color: #9ab8a6; }
.farm-sorting {
  display: grid;
  grid-template-columns: minmax(0, 39rem) minmax(0, 26rem);
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2.5rem, 5.5vw, 5.5rem) var(--folio-pad);
  background: var(--folio-paper);
  color: var(--folio-green);
}
.farm-sorting figure { margin: 0; }
.farm-sorting img { display: block; width: 100%; height: auto; }
.farm-sorting figcaption { margin-top: .5rem; color: #405b4f; font-size: .94rem; }
.farm-sorting h2 { font: 500 var(--type-chapter)/1.04 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.farm-sorting p { margin: 1rem 0 .55rem; line-height: 1.55; }
@media (max-width: 700px) {
  .farm-sorting { grid-template-columns: minmax(0, 36rem); gap: 1.25rem; }
}
.farm-main [id]:target { scroll-margin-top: 1rem; }
.water-chapter { background: var(--folio-paper); color: var(--folio-green); }
.water-cover { display: grid; position: relative; isolation: isolate; overflow: hidden; min-height: clamp(23rem,62vw,49rem); min-height: clamp(23rem,76svh,49rem); align-items: end; padding: clamp(2.4rem,7vw,8rem) var(--folio-pad); background: #193331; color: #f5f4e9; }
.water-cover img, .water-cover::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.water-cover img { object-fit: cover; object-position: center 52%; }
.water-cover::after { content: ''; background: linear-gradient(0deg,rgba(8,28,28,.8),transparent 82%), linear-gradient(90deg,rgba(16,35,34,.24),transparent 72%); }
.water-cover-type { width: min(100%,103rem); margin-inline: auto; }
.water-cover h2 { max-width: 13ch; font: 500 var(--type-product)/.98 var(--serif); letter-spacing: -.045em; }
.water-story { max-width: 100rem; margin-inline: auto; padding: clamp(3.2rem,7.8vw,8rem) var(--folio-pad) clamp(2.3rem,5vw,5rem); }
.water-intro { margin: 0 auto clamp(2.6rem,6.5vw,7.5rem); text-align: center; max-width: 35ch; font: 500 clamp(1.8rem, 1.3rem + 1.4vw, 2.85rem)/1.12 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.water-switch { display: flex; flex-wrap: wrap; gap: .3rem clamp(1.2rem,4vw,4.3rem); border-bottom: 1px solid var(--folio-rule); }
.water-switch button { position: relative; padding: .55rem 0 .85rem; min-height: 46px; color: #4a655a; text-align: start; font-size: clamp(1rem,1.15vw,1.18rem); }
.water-switch button::after { position: absolute; content: ''; left: 0; right: 0; bottom: -1px; border-bottom: 3px solid transparent; }
.water-switch button[aria-selected="true"] { color: #153b33; font-weight: 600; }
.water-switch button[aria-selected="true"]::after { border-color: #235545; }
.water-path { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.86fr); gap: clamp(1.8rem,6.2vw,7rem); padding: clamp(2rem,3.4vw,4rem) 0; }
.water-path:focus-visible { outline: 2px solid currentColor; outline-offset: 7px; }
.water-path-image { margin: 0; align-self: start; }
.water-path-image img, .water-film video { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: #c8d3c7; }
.water-film { position: relative; }
.channel-toggle { position: absolute; bottom: .65rem; right: .65rem; color: white; border-radius: 50%; background: rgba(5,22,25,.7); }
.water-path-image figcaption, .growth-stage figcaption, .quality-image figcaption { margin-top: .6rem; color: #4c6256; font-size: .94rem; }
.water-path-image figcaption { color: #344d41; }
.water-path-body h3 { margin: 0; font: 500 var(--type-chapter)/1.03 var(--serif); letter-spacing: -.043em; }
.water-measure { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .8rem; margin: 1.25rem 0; }
.water-measure strong { font: 500 clamp(2rem,3.15vw,3.5rem)/1.1 var(--serif); white-space: nowrap; }
.water-measure span { font-size: 1rem; color: #425f52; }
.water-line { list-style: none; padding: 0; margin: 1.6rem 0 .35rem; }
.water-line li { position: relative; padding: 0 0 1rem 1.55rem; }
.water-line li:not(:last-child)::after { content: ''; position: absolute; left: .24rem; width: 1px; top: .85rem; height: calc(100% - .25rem); background: #90ad9a; }
.water-line li::before { content: ''; position: absolute; left: 0; top: .57rem; width: .56rem; height: .56rem; border: 1.5px solid #527b65; border-radius: 50%; }
.water-line b, .water-line span { display: block; }
.water-line b { font-weight: 600; }
.water-line span { margin-top: .18rem; max-width: 35ch; color: #40594e; }
.water-adaptation { max-width: 39rem; margin: .25rem 0 .45rem; line-height: 1.58; color: #40594e; }
.water-path-body .line-link { font-weight: 600; }
.water-source { display: flex; flex-wrap: wrap; column-gap: clamp(1.25rem,3vw,3rem); margin: 0; padding-block-start: .45rem; border-top: 1px solid var(--folio-rule); color: #395c4d; }
.water-source a { font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) {
  .can-cover .cover-frame:has(.water-path:target:not([hidden])) > .water-chapter { position: relative; top: auto; }
  .water-path[role="tabpanel"]:not([hidden]) .water-path-image img { animation: water-image-in .42s ease-out; }
  @keyframes water-image-in { from { opacity: .7; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
}
.farm-growing, .farm-quality { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); align-content: start; column-gap: clamp(2.4rem,7vw,8rem); padding: clamp(3.5rem,7vw,8rem) max(var(--folio-pad),calc((100% - 100rem)/2)); }
.farm-growing { display: block; color: #173a35; background: #dfe7dd; }
.growth-header {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1.35rem 2rem; margin-bottom: clamp(1.4rem, 3vw, 2.8rem);
}
.growth-header h2 { margin: 0; }
.growth-tabs { display: flex; gap: clamp(.85rem, 2vw, 2rem); color: #38564d; }
.growth-tabs button {
  display: flex; align-items: center; gap: .55rem;
  min-height: 48px; padding: 0 0 .45rem; border-bottom: 2px solid transparent;
}
.growth-tabs button img { width: 3.2rem; height: 2.2rem; object-fit: cover; }
.growth-tabs button[aria-selected="true"] { border-color: currentColor; color: #12392e; font-weight: 600; }
.growth-tabs button:hover, .growth-tabs button:focus-visible { color: #0c362a; border-bottom-color: #698878; }
.growth-stage {
  display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, .92fr);
  align-items: center; gap: clamp(1.6rem, 5vw, 5rem);
}
.growth-stage:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.growth-stage + .growth-stage:not([role='tabpanel']) { margin-top: 2.75rem; }
.growth-stage figure { margin: 0; }
.growth-photo { position: relative; overflow: hidden; background: #c6d3c8 center / cover; }
#otbor-ikry .growth-photo { background-image: url('/media/thumbs/ikra-raduzhnoy-foreli-250.webp'); }
#kormlenie .growth-photo { background-image: url('/media/thumbs/waterchapter-feeding-360.webp'); }
#sortirovka-molodi .growth-photo { background-image: url('/media/thumbs/sortirovka-360.webp'); }
.farm-main .growth-stage[role='tabpanel']:target { scroll-margin-block-start: 5.5rem; }
.growth-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.growth-stage figcaption { margin-top: .55rem; }
.growth-copy { max-width: 34rem; min-width: 0; padding-block: 1rem; }
.growth-copy h3 { margin: 0; font: 500 clamp(1.85rem, 2.9vw, 2.7rem)/1.06 var(--serif); letter-spacing: -.03em; }
.growth-copy p { margin: .85rem 0 0; max-width: 44ch; color: #36534a; line-height: 1.58; }
.growth-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; margin-top: clamp(1.7rem, 3.3vw, 3.5rem); padding-top: 1rem; border-top: 1px solid var(--folio-rule);
}
.farm-output { display: grid; grid-template-columns: auto minmax(0, 22rem); align-items: center; gap: 1.2rem; margin: 0; }
.farm-output strong { white-space: nowrap; font: 500 clamp(2.3rem, 3.4vw, 3.3rem)/1 var(--serif); letter-spacing: -.04em; }
.farm-output span { color: #405951; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .can-cover .cover-frame:has(.growth-stage:target:not([hidden])) > .farm-growing { position: relative; top: auto; }
  .growth-stage[role="tabpanel"]:not([hidden]) .growth-photo img { animation: growth-photo-in .3s ease-out; }
  @keyframes growth-photo-in { from { opacity: .8; transform: scale(1.012); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
  .growth-header { display: block; }
  .growth-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin-top: 1.3rem; }
  .growth-tabs button { flex-direction: column; align-items: stretch; gap: .32rem; text-align: left; }
  .growth-tabs button img { width: 100%; height: clamp(2.2rem,7vw,3rem); }
  .growth-stage { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .growth-copy { padding: .2rem 0 0; }
  .growth-copy p { margin-top: .5rem; }
  .growth-foot { gap: .5rem; }
}
.farm-growing h2, .farm-quality h2 { font-size: var(--type-chapter); letter-spacing: -.047em; line-height: .98; text-wrap: balance; }
.farm-note { border-top: 1px solid var(--folio-rule); padding: 1rem 0 1.3rem; }
.farm-note h3, .farm-witness h3 { margin: 0; font: 500 var(--type-subhead)/1.08 var(--serif); letter-spacing: -.025em; }
.farm-note p, .quality-heading p, .contact-copy p { margin: .55rem 0 0; max-width: 35rem; font-size: clamp(1rem,1.16vw,1.18rem); line-height: 1.6; color: #405951; }
.farm-quality { grid-template-areas: "intro notes" "reports reports"; align-items: start; color: #f0f3e7; background: #193936; --folio-rule: #58756a; }
.quality-heading { grid-area: intro; }
.quality-notes { grid-area: notes; }
.quality-heading p, .quality-notes p, .quality-image figcaption { color: #c9dbd1; }
.quality-heading p { margin-top: 1.1rem; }
.quality-image { margin: 1.7rem 0 0; }
.quality-image video { display: block; width: min(100%,17rem); height: auto; aspect-ratio: 9/16; background: #102b28; }
.farm-broadcast { margin-top: 1.15rem; }
.farm-broadcast summary { width: fit-content; min-height: 44px; padding-block: .7rem; cursor: pointer; text-decoration: underline; text-underline-offset: .26em; }
.farm-broadcast iframe { display: block; width: min(100%,52rem); height: auto; aspect-ratio: 16/9; border: 0; background: #102b28; }
.quality-notes .line-link, .farm-witness .line-link { text-decoration-color: #91ac99; margin-right: 1rem; }
.farm-witness { grid-area: reports; margin-top: 2rem; }
.witness-film {display:grid;grid-template-columns:minmax(0,1fr) minmax(10rem,15rem);align-items:center;gap:clamp(1.25rem,3vw,3rem);margin-top:1.75rem;padding-top:1.75rem;border-top:1px solid #516961}
.witness-film video {display:block;width:100%;height:auto;aspect-ratio:9/16;background:#142b2e}
@media (max-width:620px) {
  .witness-film {grid-template-columns:1fr}
  .witness-film video {width:min(100%,17.5rem);justify-self:center}
}
@media (min-width:1000px) {
  .farm-witness {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(2rem,4vw,4rem)}
  .farm-witness > h3,.farm-witness > .farm-broadcast {grid-column:1/-1}
  .witness-film {grid-template-columns:minmax(0,1fr) minmax(9rem,39%);gap:clamp(1rem,2vw,2rem)}
}
.farm-witness p { margin: .55rem 0 .3rem; max-width: 35rem; line-height: 1.6; color: #c9dbd1; }
.line-link, .contact-online a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-decoration-color: #839c8d; text-underline-offset: .3em; }
.line-link:hover, .contact-online a:hover { text-decoration-color: currentColor; }
.contact-page, .sales-page { background: var(--folio-paper); color: #183732; }
.contacts-main, .sales-main { max-width: 104rem; margin: auto; padding: clamp(1.6rem,3vw,3.2rem) var(--folio-pad) clamp(2.5rem,5vw,5rem); }
.contacts-layout { display: grid; grid-template-columns: minmax(0,.81fr) minmax(0,1.19fr); gap: clamp(2rem,5.2vw,6rem); align-items: center; }
.contact-copy h1 { margin-bottom: clamp(1.5rem,2.8vw,3.2rem); }
.contact-sales h2, .contact-place h2 { font: 500 1rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color: #48665b; margin: 0 0 .45rem; }
.contact-phone { display: inline-flex; min-height: 44px; align-items: center; font: 500 clamp(2.1rem,3.4vw,3.85rem)/1.15 var(--serif); letter-spacing: -.03em; white-space: nowrap; }
.contact-phone:hover { text-decoration: underline; text-underline-offset: .18em; }
.contact-copy p { margin: .45rem 0 .1rem; max-width: 28rem; }
.contact-place { border-top: 1px solid var(--folio-rule); padding-top: 1.15rem; margin-top: 1.35rem; }
.contact-place address { font-size: clamp(1.1rem,1.45vw,1.5rem); line-height: 1.35; font-style: normal; }
.coordinate-line { display: flex; align-items: center; flex-wrap: wrap; column-gap: .85rem; margin-block: .45rem .75rem; font-variant-numeric: tabular-nums; }
.coordinate-line button { min-height: 44px; text-decoration: underline; text-underline-offset: .22em; font-size: .92rem; color: #345b50; }
.copy-feedback { font-size: .9rem; }
.solid-link, .sales-card button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; color: #f5f8ee; background: #1a423a; padding: .72rem 1.25rem; border-radius: 2px; }
.solid-link:hover, .sales-card button:hover { background: #2e5548; }
.contact-map { margin: 0; }
.map-surface { position: relative; isolation: isolate; background: #d7dfcd; aspect-ratio: 11/8; }
.map-cover { width: 100%; height: auto; }
#live-map, #live-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#live-map { z-index: 1; background: #dce5d8; }
.map-open { z-index: 2; position: absolute; left: .85rem; bottom: .85rem; min-height: 44px; padding: .5rem 1rem; background: #153a33; color: #f3f6eb; border-radius: 2px; }
.map-open:hover { background: #315746; }
.contact-map figcaption, .contact-online { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.contact-map figcaption { color: #496458; font-size: .9rem; }
.contact-map figcaption a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: .22em; }
.contact-online { margin-top: clamp(2rem,4.4vw,4rem); border-top: 1px solid var(--folio-rule); padding-top: .75rem; }
.sales-main { max-width: 85rem; }
.sales-intro p { margin: .9rem 0 1.8rem; color: #445e54; font-size: 1.1rem; }
.sales-filters { display: flex; flex-wrap: wrap; column-gap: 1.3rem; padding: .15rem 0; border-top: 1px solid var(--folio-rule); border-bottom: 1px solid var(--folio-rule); }
.sales-filters a { min-height: 46px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.sales-filters a[aria-current] { border-color: #2f5c48; }
.sales-card { margin: 1.2rem 0; border: 1px solid #becdc1; padding: clamp(1.1rem,2.3vw,2.25rem); background: #f8f9f2; }
.sales-card header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.sales-card h2 { font-size: clamp(2.1rem,3.6vw,3.6rem); line-height: 1.05; letter-spacing: -.035em; margin: .5rem 0; }
.sales-meta, .sales-state, .sales-card dt { color: #496558; font-size: .94rem; }
.sales-card dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(11rem,1fr)); gap: .85rem 1.5rem; margin: 1rem 0 1.25rem; }
.sales-card dl div { min-width: 0; }
.sales-card dd { margin: .18rem 0 0; overflow-wrap: anywhere; }
.sales-card dd a { text-decoration: underline; text-underline-offset: .22em; }
.sales-card form { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem 1rem; padding-top: 1rem; border-top: 1px solid #d5ded2; }
.sales-card label { display: grid; gap: .24rem; font-size: .94rem; }
.status-select { position: relative; }
.status-select::after { content: ''; position: absolute; right: 1rem; top: 42%; width: .43rem; height: .43rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.status-select select { min-height: 44px; min-width: 10.5rem; padding: .4rem 2.4rem .4rem .85rem; background: #fff; color: #19372c; border: 1px solid #93a998; border-radius: 2px; font: inherit; appearance: none; }
.sales-card button { min-height: 44px; }
.sales-empty { margin: 2.5rem 0 1rem; }
.sales-pages { display: flex; justify-content: space-between; gap: 1rem; }
.not-found { min-height: 48vh; margin: 2.5rem var(--folio-pad); }
.not-found p { margin: 1.25rem 0 1.5rem; }
@media (max-width: 800px) {
  .film-tour { grid-template-columns: 1fr; grid-template-areas: "heading" "image" "controls"; padding-top: 6rem; }
  .tour-heading { padding-bottom: .95rem; }
  .farm-location { margin-bottom: .53rem; }
  .tour-lead { max-width: 35rem; margin-top: .8rem; }
  .contacts-layout { grid-template-columns: 1fr; }
  .contact-map { max-width: 43rem; width: 100%; }
}
@media (max-width: 620px) {
  .film-tour { padding-top: 5.7rem; }
  .tour-heading h1, .contact-copy h1, .sales-intro h1, .not-found h1 { font-size: clamp(3.05rem,12vw,4.75rem); }
  .tour-chapters { gap: 1rem; }
  .tour-chapters button { font-size: .96rem; }
  .farm-quality, .water-path { grid-template-columns: 1fr; }
  .farm-quality { grid-template-areas: "intro" "notes" "reports"; row-gap: 1.75rem; }
  .farm-witness { margin-top: 0; }
  .farm-output { column-gap: 1rem; }
  .water-cover { min-height: 24rem; }
  .water-cover h2 { font-size: clamp(2.8rem,10vw,4.35rem); }
  .water-path-image img, .water-film video { aspect-ratio: 3/2; }
  .water-path-body h3 br { display: none; }
  .contact-online { gap: .2rem .9rem; }
  .sales-card dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sales-filters { column-gap: .9rem; }
}
@media (max-width: 355px) {
  .tour-chapters { gap: .6rem; }
  .tour-controls { gap: .15rem; }
  .sales-card header { flex-wrap: wrap; }
}
