/* Лендинг agrodo.ru. Цвета и кнопки берутся из app.css.
   Строй страницы: белая шапка, светло-серые скруглённые карточки, жёлтый акцент, одна тёмная карточка. */
.landing { display: block; background: #fff; }
.landing .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.landing .wrap.narrow { max-width: 800px; }
.landing section { padding: 56px 0; }
.landing h1, .landing h2, .landing h3 { font-weight: 600; letter-spacing: -.01em; }
.landing h2 { font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.12; margin-bottom: 40px; }
.landing h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 10px; }
.landing .center { text-align: center; }
.landing input:not([type="checkbox"]) { min-height: 48px; margin: 0 0 12px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn.big { min-height: 56px; padding: 0 44px; font-size: 1.05rem; border-radius: 14px; }
.hint { color: var(--muted); font-size: .9rem; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: #fff; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.55rem; color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.logo img { display: block; border-radius: 9px; }
.logo svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top nav { display: flex; gap: 34px; margin: 0 auto; }
.top a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover, .top .enter:hover { text-decoration: underline; }
.top .btn { font-weight: 600; min-height: 48px; }

/* первый экран */
.landing .hero { background: var(--bg); padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 24px; align-items: start; }
.hero h1 { font-size: clamp(2rem, 3.7vw, 2.9rem); line-height: 1.1; margin-bottom: 18px; }
.lead { font-size: 1.1rem; max-width: 26em; margin: 0 0 22px; }
.reg-card { background: #fff; border: 1.5px solid var(--accent); border-radius: 22px; padding: 26px 24px 20px; }
.reg-card h2 { font-size: 1.15rem; font-weight: 500; margin-bottom: 16px; letter-spacing: 0; }
.reg-card .check { font-size: .92rem; margin: 2px 0 14px; }
.reg-card .hint { margin: 12px 0 0; text-align: center; }
.sub { display: flex; align-items: center; gap: 8px; }
.sub input { flex: 1; min-width: 0; }
.sub span { white-space: nowrap; margin-bottom: 12px; color: var(--muted); }
#subHint { display: block; margin: -6px 0 10px; font-size: .85rem; min-height: 1em; }
#subHint.ok { color: var(--ok); } #subHint.bad { color: var(--danger); }

/* телефон и ноутбук, собранные из блоков */
.devices { position: relative; height: 520px; }
.phone { position: absolute; left: 0; top: 0; z-index: 2; width: 240px; height: 505px; padding: 16px 14px; background: #fff; border: 4px solid var(--accent);
  border-radius: 34px; box-shadow: 0 0 0 3px #1F2226, 0 30px 50px -30px rgba(31, 34, 38, .5); overflow: hidden; }
.phone::before { content: ""; display: block; width: 70px; height: 18px; margin: -4px auto 14px; border-radius: 10px; background: #1F2226; }
.phone-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.phone-top small { display: block; color: var(--muted); font-size: .72rem; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent); }
.promo { padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: .78rem; margin-bottom: 8px; }
.p-row { display: flex; justify-content: space-between; gap: 8px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.p-row b { font-weight: 600; white-space: nowrap; }
.p-btn { margin-top: 18px; padding: 12px; border-radius: 12px; background: var(--accent); text-align: center; font-weight: 600; font-size: .85rem; }
.laptop { position: absolute; left: 190px; right: 0; top: 130px; }
.screen { height: 330px; padding: 14px 14px 0 64px; background: #fff; border: 8px solid #1F2226; border-bottom-width: 10px; border-radius: 16px 16px 0 0; overflow: hidden; }
.base { height: 12px; margin: 0 -26px; border-radius: 0 0 14px 14px; background: linear-gradient(#D9DBDF, #B9BCC2); }
.s-head { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 10px; }
.s-head span { color: var(--muted); }
.s-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.s-cols i { display: block; font-style: normal; font-size: .68rem; color: var(--muted); margin-bottom: 6px; }
.tk { padding: 8px; border-radius: 8px; font-size: .68rem; font-weight: 600; margin-bottom: 6px; min-height: 64px; }
.tk small { display: block; font-weight: 400; margin-top: 3px; }
.c1 { background: #CFEFFB; } .c2 { background: #FFE9A8; } .c3 { background: #D8F5D0; } .c4 { background: #E6DBFA; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.points div { background: #fff; border-radius: 20px; padding: 22px 20px; }
.points b { display: block; font-size: 1.05rem; font-weight: 500; line-height: 1.25; margin-bottom: 8px; }
.points span { color: var(--muted); font-size: .95rem; }

/* плитки возможностей */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 48px; max-width: 1090px; margin: 0 auto; }
.tile { display: flex; align-items: center; gap: 22px; min-height: 76px; padding: 12px 28px; border-radius: 14px; background: var(--bg); font-weight: 500; font-size: 1.05rem; }
.tile svg { flex: none; width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tile em { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); font-style: normal; font-size: .75rem; font-weight: 500; }

/* крупные карточки */
.card { background: var(--bg); border-radius: 30px; padding: 40px 28px 28px; }
.card p { margin: 0; color: var(--muted); max-width: 34em; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.bento .card { grid-column: span 2; display: flex; flex-direction: column; min-height: 300px; }
.bento .b1, .bento .b2 { grid-column: span 3; min-height: 420px; }
.bento .b5 { background: #2B2F33; color: #fff; }
.bento .b5 p { color: #D5D8DC; }
.art { margin-top: auto; padding-top: 28px; }
.order-art { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.chip { padding: 6px 12px; border-radius: 8px; background: #fff; font-size: .85rem; }
.chip.on { background: var(--accent); font-weight: 600; }
.sheet { flex-basis: 100%; max-width: 300px; margin-top: 10px; padding: 16px 18px; border-radius: 14px; background: #fff; display: grid; gap: 4px;
  box-shadow: 0 16px 30px -22px rgba(31, 34, 38, .5); transform: rotate(-2deg); }
.sheet span { color: var(--muted); font-size: .9rem; }
.sheet strong { justify-self: end; }
.stock-art { display: grid; gap: 10px; max-width: 380px; padding: 18px; margin-top: auto; border-radius: 14px; background: #fff; }
.stock-art div { display: grid; grid-template-columns: 90px 1fr 60px; gap: 10px; align-items: center; font-size: .9rem; }
.stock-art i { height: 8px; border-radius: 4px; background: var(--accent); }
.stock-art b { text-align: right; font-weight: 600; }
.stock-art .low i { background: var(--danger); } .stock-art .low b { color: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 150px; border-bottom: 1px dashed #666C73; }
.bars i { flex: 1; max-width: 5px; border-radius: 3px 3px 0 0; background: var(--accent); }
.cta { margin: 44px 0 0; }

/* заголовок с выделенными словами и шаги */
.landing .big-title mark { background: none; color: var(--accent-text); }
.steps3 { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps3 li { counter-increment: s; background: var(--bg); border-radius: 30px; padding: 30px 28px; }
.steps3 li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); font-weight: 700; font-size: 1.15rem; }
.steps3 b { display: block; font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.steps3 span { color: var(--muted); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--bg); border-radius: 30px; padding: 34px 28px 28px; border: 1.5px solid transparent; }
.plan.best { background: #fff; border-color: var(--accent); }
.price { font-size: 2.2rem; font-weight: 600; margin: 4px 0 20px; line-height: 1.1; }
.price small { display: block; font-size: .9rem; font-weight: 400; color: var(--muted); margin-top: 6px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.plan li b { font-weight: 500; text-align: right; }
.plan .btn:not(.primary) { background: #fff; }
.landing #tariffs .hint { max-width: 720px; margin: 28px auto 0; }

/* вопросы, вход, подвал */
details { background: var(--bg); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; }
details p { color: var(--muted); margin: 12px 0 0; }
.enter-card h2 { font-size: 1.5rem; margin-bottom: 18px; }
#find { display: flex; gap: 12px; }
#find input { flex: 1; margin: 0; }
#found { margin-top: 14px; display: grid; gap: 8px; }
#found .btn { background: #fff; }
footer { padding: 32px 0; color: var(--muted); }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { max-width: 560px; }
  .top nav { display: none; }
  .top .enter { margin-left: auto; }
  .tiles { gap: 12px; }
  .bento .card, .bento .b1, .bento .b2 { grid-column: span 3; min-height: 0; }
}
@media (max-width: 700px) {
  .landing section { padding: 40px 0; }
  .landing .hero { padding: 32px 0 40px; }
  .landing h2 { margin-bottom: 26px; }
  .top .wrap { height: 60px; gap: 14px; }
  .top .btn { display: none; }
  .devices { height: 430px; }
  .phone { width: 200px; height: 420px; }
  .laptop { left: 150px; right: -120px; top: 90px; }
  .points, .tiles, .steps3, .plans { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .bento .card, .bento .b1, .bento .b2 { grid-column: auto; }
  .card, .steps3 li, .plan { border-radius: 22px; padding: 26px 20px 22px; }
  .tile { min-height: 62px; padding: 10px 18px; gap: 14px; }
  .tile svg { width: 34px; height: 34px; }
  .hero-right { overflow: hidden; }
  #find { flex-direction: column; }
}

/* контакты и кнопка «Написать нам» */
.contacts a { color: inherit; font-weight: 600; }
.cw { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cw-up .cw { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }         /* в маркете внизу полоса корзины */
.cw-btn { width: 58px; height: 58px; border: 0; border-radius: 50%; background: #FBC503; color: #25282D; cursor: pointer; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45); display: grid; place-items: center; }
.cw-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cw-panel { width: min(320px, calc(100vw - 36px)); padding: 14px; border-radius: 18px; background: #fff; color: #25282D; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .45); }
.cw-title { display: block; margin: 2px 6px 8px; font-size: 1.05rem; }
.cw-panel a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.cw-panel a:hover { background: #F4F5F7; }
.cw-panel a span:last-child { display: grid; min-width: 0; }
.cw-panel small { color: #6B7078; font-size: .84rem; }
.cw-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .68rem; font-weight: 700; }
.cw-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cw-ic.tg { background: #2AABEE; } .cw-ic.mx { background: #5B4FE9; } .cw-ic.ph { background: #2F9E5B; }

/* страница примеров */
.cases-head { padding: 56px 0 8px; }
.cases-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; margin: 0 0 14px; }
.cases-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.cases-nav a { padding: 8px 14px; border-radius: 20px; background: #fff; color: #25282D; text-decoration: none; font-weight: 500; font-size: .95rem; }
.cases-nav a:hover { background: #FBC503; }
.case { background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 34px); margin-bottom: 22px; scroll-margin-top: 90px; }
.case-tag { margin: 0 0 6px; color: #6B7078; font-weight: 600; font-size: .9rem; }
.case h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.2; }
.case > p { margin: 0 0 18px; }
.case-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-cols > div { background: #F4F5F7; border-radius: 16px; padding: 16px 18px; }
.case-cols > div:last-child { background: #FFF5CF; }
.case-cols h3 { margin: 0 0 8px; font-size: 1rem; }
.case-cols ul { margin: 0; padding-left: 18px; }
.case-cols li { margin: 0 0 8px; font-size: .95rem; line-height: 1.4; }
.case-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0 !important; }
.case-chips span { padding: 4px 11px; border: 1px solid #E3E5E8; border-radius: 14px; font-size: .84rem; color: #6B7078; }
.case-cta { text-align: center; padding: 36px 20px 20px; }
.case-cta h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); }
@media (max-width: 860px) { .case-cols { grid-template-columns: 1fr; } }

/* телефон и планшет: разделы сайта не прячем, а показываем второй строкой шапки. Строка листается пальцем, если не помещается */
@media (max-width: 1040px) {
  .top .wrap { flex-wrap: wrap; height: auto; min-height: 56px; padding-top: 8px; row-gap: 4px; }
  .top nav { display: flex; order: 5; flex: 1 1 100%; gap: 6px; margin: 0; padding: 2px 0 10px; overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { flex: none; padding: 7px 13px; border-radius: 18px; background: #F4F5F7; font-size: .92rem; white-space: nowrap; }
  .top nav a:hover { text-decoration: none; background: #FBC503; }
  .cases-head { padding-top: 28px; }
}

.rules h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 14px; }
.rules h2 { text-align: left; font-size: 1.3rem; margin: 30px 0 10px; }
.rules li { margin-bottom: 7px; line-height: 1.5; }
