/* ======================================================================
   Приёмы из папки reference (дополнение к style.css)
   Green Farm Seeds · Potato · Growgarden · potato-4 · видео «First Cognition»
   ====================================================================== */

/* Green Farm Seeds: листаемая полоса объявлений со стрелками */
.topbar { display: flex; align-items: center; justify-content: center; gap: 10px; }
.topbar__btn { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; padding: 2px 10px; cursor: pointer; opacity: .8; }
.topbar__btn:hover { opacity: 1; }
.topbar__msgs { position: relative; flex: 1; max-width: 860px; min-height: 1.5em; }
.topbar__msgs a { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; pointer-events: none; }
.topbar__msgs a.is-on { position: relative; opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 560px) { .topbar__btn { display: none; } }

/* Potato: вертикальная колонка контактов с линиями у левого края первого экрана */
.rail { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.rail a { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.rail a::before { content: ""; width: 30px; height: 2px; background: rgba(255, 255, 255, .7); }
.rail svg { width: 22px; height: 22px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); box-sizing: content-box; transition: background .2s; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail a:hover svg { background: var(--orange); }
@media (max-width: 1240px) { .rail { display: none; } }

/* Potato: вертикальная точечная черта у заголовка и ссылка «Подробнее ›» */
.head-bar { position: relative; padding-left: 26px; }
.head-bar::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px;
  background: linear-gradient(var(--orange), var(--orange)) bottom / 4px 55% no-repeat, radial-gradient(circle, var(--orange) 2px, transparent 2.5px) top / 4px 10px repeat-y; }
.more-link { color: var(--orange-d); font-weight: 800; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.more-link::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform .2s; }
.more-link:hover::after { transform: translateX(4px); }
.card-photo .more-link { color: #FFD08F; }

/* Growgarden: точечная сетка-украшение у фотографий */
.dots { position: relative; isolation: isolate; }
.dots::after { content: ""; position: absolute; width: 150px; height: 150px; right: -26px; bottom: -26px; z-index: -1;
  background: radial-gradient(circle, var(--orange) 2px, transparent 2.6px) 0 0 / 16px 16px; opacity: .55; }
.dots--left::after { right: auto; left: -26px; top: -26px; bottom: auto; }

/* Видео-референс: «стеклянная» заметка поверх фото */
.glass-note { position: absolute; left: -4%; bottom: 8%; z-index: 2; max-width: 240px; padding: 14px 16px; border-radius: 16px; font-size: .9rem; line-height: 1.45;
  background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); color: var(--navy); }
.glass-note b { display: block; color: var(--green); font-family: var(--font-h); }
@media (max-width: 860px) { .glass-note { left: 0; bottom: 0; } }

/* Potato: белые карточки с жёлтым свечением, наезжающие на коричневую полосу */
.band-head { padding-bottom: 40px; }
.band { position: relative; padding-bottom: clamp(48px, 7vw, 80px); background: linear-gradient(transparent 0 42%, var(--brown) 42%); }
.band .vcard { box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 18px 44px rgba(247, 190, 60, .42); }
.band .vcard:hover { box-shadow: 0 0 0 1px #fff, 0 24px 56px rgba(247, 190, 60, .7); }
.band__note { color: #E9DCCB; text-align: center; margin: 34px auto 0; max-width: 760px; }
.band__note a { color: #FFD08F; }
@media (max-width: 980px) { .band { background: linear-gradient(transparent 0 20%, var(--brown) 20%); } }

/* Видео-референс: закреплённое фото, поверх которого проезжают карточки */
/* фото в обычном потоке и «залипает», а заголовок с карточками подтянуты поверх него на высоту экрана —
   так фото не выходит за пределы своего блока */
.sticky-photo { position: relative; overflow: clip; background: #2d4a2f; }
.sticky-photo__bg { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.sticky-photo__bg + * { margin-top: -100vh; }
.sticky-photo__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.sticky-photo__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 40, 25, .45), rgba(20, 40, 25, .12) 50%, rgba(20, 40, 25, .5)); }
.sticky-photo__title { position: relative; z-index: 1; text-align: center; padding-top: 16vh; }
.sticky-photo__title h2 { color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .45); }
.sticky-photo__title .eyebrow { color: #FFD08F; }
.sticky-photo__cards { position: relative; z-index: 1; padding: 22vh 0 30vh; display: grid; gap: 36vh; }
.float-card { max-width: 500px; padding: 28px 30px; border-radius: 24px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.float-card:nth-child(even) { justify-self: end; }
.float-card h3 { font-size: 1.45rem; margin-bottom: .4em; }
.float-card p { margin: 0; color: var(--muted); }
.float-card .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 1.2rem var(--font-h); margin-bottom: 12px; }

/* Growgarden: вкладки с подчёркиванием и стрелкой-указателем */
.tabs-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin: 0 auto 40px; border-bottom: 2px solid rgba(255, 255, 255, .2); max-width: 820px; position: relative; }
.tabs-line button { position: relative; background: none; border: 0; cursor: pointer; padding: 10px 6px 14px; color: rgba(255, 255, 255, .65); font: 700 1rem var(--font); text-align: left; }
.tabs-line button small { display: block; font-weight: 600; font-size: .78rem; }
.tabs-line button b { font-family: var(--font-h); font-size: 1.35rem; font-weight: 700; }
.tabs-line button:hover { color: #fff; }
.tabs-line button.is-active { color: #fff; }
.tabs-line button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; border-radius: 2px; background: #FFD08F; }
.tabs-line button.is-active::before { content: ""; position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #FFD08F; }

/* potato-4: картошка с точками-выносками и цифрами под ними; размытые фото по краям */
.spot { position: relative; overflow: hidden; }
.spot__side { position: absolute; top: 55%; width: 300px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; filter: blur(6px) saturate(1.1); opacity: .7; transform: translateY(-50%); pointer-events: none; }
.spot__side--l { left: -120px; } .spot__side--r { right: -120px; }
@media (max-width: 1100px) { .spot__side { display: none; } }
.spot__panel[hidden] { display: none; }
.spot__panel { animation: spot-in .5s ease; }
@keyframes spot-in { from { opacity: 0; transform: translateY(14px); } }
.spot__figure { position: relative; width: min(420px, 84%); margin: 0 auto; container-type: inline-size; }
.spot__img { position: relative; }
.spot__figure img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: right bottom; border-radius: 50%; border: 8px solid rgba(255, 255, 255, .25); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); cursor: zoom-in; display: block; }
.spot__dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; background: rgba(255, 255, 255, .3); animation: spot-pulse 2.4s infinite; }
@keyframes spot-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }
.spot__dot::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: var(--len, 120px); background: rgba(255, 255, 255, .6); }
.spot__nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 760px; margin: 26px auto 0; text-align: center; position: relative; }
.spot__nums b { display: block; font-family: var(--font-h); font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 500; color: #fff; }
.spot__nums span { color: #CFE5D4; font-size: .95rem; }
.spot__caption { text-align: center; margin: 22px auto 0; color: #E3F0E6; max-width: 660px; }
.spot__caption a { color: #FFD08F; }
@media (max-width: 640px) { .spot__nums { grid-template-columns: 1fr 1fr; } .spot__dot::after { display: none; } }

/* Growgarden: тёмно-зелёная панель с чек-листом (калькулятор) и карточка поверх фото */
.calc { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; }
.calc__panel { position: relative; z-index: 2; background: var(--green-d); color: #E3F0E6; border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); margin-right: -70px; }
.calc__panel h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.calc__panel h2 b { color: #FFD08F; font-weight: 700; }
.calc__panel .lead { color: #CFE5D4; font-size: 1rem; }
.calc__panel .field label { color: #fff; }
.calc__panel .input { background: #fff; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc__result { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-s); background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .4); }
.calc__result b { color: #FFD08F; font-family: var(--font-h); font-size: 1.55rem; }
.calc__result small { display: block; color: #BFD8C6; margin-top: 6px; }
.calc__media { position: relative; }
.calc__media img { width: 100%; height: 480px; object-fit: cover; object-position: right bottom; border-radius: var(--radius) 140px var(--radius) var(--radius); box-shadow: var(--shadow); display: block; }
.calc__card { position: absolute; right: 22px; bottom: -30px; max-width: 300px; background: #fff; border-radius: var(--radius-s); padding: 18px 20px; box-shadow: var(--shadow); }
.calc__card h4 { margin: 0 0 8px; color: var(--navy); font-family: var(--font-h); }
.calc__card .checks { margin: 0; gap: 6px; font-size: .9rem; }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc__panel { margin: 0 0 24px; }
  .calc__media img { height: 300px; }
  .calc__card { position: relative; right: auto; bottom: auto; margin: -50px 16px 0; }
  .calc__row { grid-template-columns: 1fr; }
}

/* Видео-референс: боковое меню разделов с подсветкой текущего */
.side-nav { position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 30; list-style: none; margin: 0; padding: 8px 6px; display: none;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 16px; box-shadow: var(--shadow-s); }
.side-nav a { display: block; padding: 6px 12px; border-radius: 10px; font-size: .8rem; font-weight: 700; color: var(--muted); text-decoration: none; transition: .2s; white-space: nowrap; }
.side-nav a:hover { color: var(--navy); }
.side-nav a.is-active { background: var(--orange); color: #fff; }
.side-nav { opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; transform: translate(-12px, -50%); }
.side-nav.is-shown { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
@media (min-width: 1500px) { .side-nav.is-ready { display: block; } }

/* Growgarden: плавающая тёмно-зелёная панель с круглым значком */
.float-panel { position: relative; background: var(--green-d); color: #E3F0E6; border-radius: var(--radius); padding: 34px 36px 32px 156px; box-shadow: var(--shadow); z-index: 2; }
.float-panel__badge { position: absolute; left: 30px; top: -30px; width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 2.7rem; box-shadow: var(--shadow); border: 6px solid #DDEFD3; }
.float-panel h3 { color: #FFD08F; }
.float-panel p { margin: 0; }
.float-panel--up { margin-top: -110px; }
@media (max-width: 640px) { .float-panel { padding: 84px 22px 24px; text-align: center; } .float-panel__badge { left: 50%; transform: translateX(-50%); } }

/* potato-4: ряд контурных картошек — формы клубня (фильтр справочника) */
.shapes { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px 26px; margin: 4px 0 28px; position: relative; }
.shapes::before { content: ""; position: absolute; left: 0; right: 0; top: 36px; border-top: 1px solid #D9C3A5; }
.shapes button { position: relative; background: transparent; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 6px; padding: 0 6px; color: var(--muted); font: 700 .82rem var(--font); }
.shapes svg { height: 64px; width: auto; transition: transform .2s; }
.shapes svg path { fill: var(--cream); stroke: #B8946E; stroke-width: 2.5; transition: .2s; }
.shapes svg circle { fill: #B8946E; }
.shapes button:hover svg { transform: translateY(-4px) rotate(-4deg); }
.shapes button:hover path { stroke: var(--orange); }
.shapes button.is-active { color: var(--orange-d); }
.shapes button.is-active path { fill: #FCE6D2; stroke: var(--orange); }
