/* Palette and fonts follow the Elementor kit of the old site. */
:root {
  --accent: #ff7000;
  --accent-dark: #e05f00;
  --olive: #536447;
  --beige: #ede8d9;
  --text: #1d1c1c;
  --muted: #5b5f55;
  --white: #fff;
  --radius: 50px;
  --font-head: "Rubik", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); }
h1, h2 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); text-transform: uppercase; letter-spacing: .02em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font: 700 16px/1.2 var(--font-body);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.btn:hover { background: var(--accent-dark); transform: scale(1.04); }
.btn:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }

/* Hero */
.hero {
  position: relative;
  padding: 110px 0 100px;
  text-align: center;
  color: var(--white);
  background: #020101 url(img/hero-cow-conference.jpg) center center / cover no-repeat;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.hero > .wrap { position: relative; }
.hero h1 { font-family: var(--font-body); font-size: clamp(26px, 4.4vw, 46px); max-width: 900px; margin: 0 auto .5em; }
.hero .lead { color: var(--accent); font-weight: 600; font-size: clamp(19px, 2.4vw, 26px); max-width: 760px; margin: 0 auto 1.6em; }
.hero-short { padding: 80px 0 70px; }

.meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 56px;
  list-style: none; padding: 0; margin: 0 0 40px;
  font-size: 22px;
}
.meta li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.meta svg { width: 32px; height: 32px; fill: var(--accent); }

.countdown { font: 600 22px/1.3 var(--font-head); color: var(--accent); min-height: 1.3em; }
.countdown-lg { font-size: clamp(30px, 6vw, 56px); margin: 0 0 30px; font-variant-numeric: tabular-nums; }

/* About */
.about { padding: 90px 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: center; }
.about-grid img { border-radius: 24px; max-height: 720px; width: 100%; object-fit: cover; }

/* Counters */
.counters { padding: 30px 0 90px; }
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.counters .num {
  display: block;
  font: 500 clamp(48px, 7vw, 85px)/1 var(--font-body);
  color: #04450f;
  -webkit-text-stroke: 0;
  font-variant-numeric: tabular-nums;
}
.counters .cap { display: block; margin-top: 10px; font-weight: 800; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }

/* Registration */
.register { background: var(--beige); padding: 60px 0 70px; border-radius: var(--radius) var(--radius) 0 0; text-align: center; }
.register h2 { color: var(--accent); }
.register h2 .date { display: block; margin-top: .4em; color: var(--text); font-size: .8em; text-transform: none; }

.lead-form { margin-top: 28px; text-align: left; }
.field { margin-bottom: 14px; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"], .lead-form textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #cfc8b3;
  border-radius: 14px;
  background: var(--white);
  font: inherit;
  color: inherit;
}
.lead-form textarea { resize: vertical; min-height: 56px; }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.lead-form :is(input, textarea).invalid { border-color: #c62828; background: #fff6f6; }
.lead-form button { width: 100%; margin-top: 6px; }
.choice { border: 0; padding: 0; margin: 4px 0 16px; }
.choice legend { font-weight: 600; margin-bottom: 8px; }
.choice label { display: flex; gap: 10px; align-items: center; padding: 8px 0; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); }
.choice.invalid legend { color: #c62828; }
.form-status { min-height: 1.4em; margin: 12px 0 0; text-align: center; font-weight: 600; }
.form-status.error { color: #c62828; }
.consent { font-size: 13px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Team */
.team { padding: 70px 0; text-align: center; }
.team-intro { max-width: 720px; margin: 0 auto 40px; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; padding: 0; margin: 0; }
.team-grid img { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; }
.team-grid b { display: block; font-size: 18px; }
.team-grid span { display: block; color: var(--muted); font-size: 15px; }

/* Contacts */
.contacts { padding: 30px 0 50px; text-align: center; }
.contacts h2 { font-size: 22px; text-transform: none; }
.contacts-links { display: flex; flex-direction: column; gap: 6px; font-size: 20px; margin: 0 0 24px; }
.contacts-links a { color: var(--text); text-decoration: none; }
.contacts-links a:hover { color: var(--accent); }
.social { display: flex; justify-content: center; gap: 14px; margin: 30px 0 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--olive); transition: transform .2s; }
.social a:hover { transform: scale(1.1); }
.social svg { width: 22px; height: 22px; fill: var(--white); }
.legal { font-size: 13px; }

/* Thank-you / link pages */
.page-center { min-height: 100vh; display: grid; place-items: center; background: var(--beige); }
.center-card { max-width: 620px; margin: 40px 20px; padding: 48px 36px; background: var(--white); border-radius: 32px; text-align: center; box-shadow: 0 20px 50px rgba(83, 100, 71, .15); }
.center-card h1 { font-size: clamp(26px, 4vw, 36px); }
.center-card .btn { margin: 6px 0 18px; }
.center-card .when { font-weight: 600; color: var(--olive); }
.btn-tg { background: #2aabee; color: var(--white); }
.btn-tg:hover { background: #1c93d1; }
.link-raw { word-break: break-all; font-size: 14px; }
.apps { list-style: none; padding: 0; display: flex; justify-content: center; gap: 20px; }

.prose { padding: 50px 20px 70px; }
.prose h1 { font-size: 30px; }
.prose h4 { font-size: 18px; margin: 1.6em 0 .6em; }

/* Admin */
.admin { background: #f6f4ee; padding: 30px 0 60px; }
.admin .wide { max-width: 1400px; }
.admin-nav { display: flex; gap: 22px; align-items: center; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid #e3dfd2; }
.admin-nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.admin-nav a[aria-current] { color: var(--accent); }
.admin-nav form { margin-left: auto; }
.stat-link { display: block; margin-bottom: 20px; padding: 14px 18px; background: var(--white); border-radius: 12px; color: var(--text); text-decoration: none; }
.stat-link:hover { box-shadow: 0 0 0 2px var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; background: var(--white); padding: 18px; border-radius: 16px; margin-bottom: 18px; }
.filters label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.filters .grow { flex: 1 1 220px; }
.filters .check { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 14px; }
.filters input, .filters select { font: inherit; font-size: 15px; font-weight: 400; padding: 8px 10px; border: 1px solid #ccc; border-radius: 8px; background: var(--white); }
.filter-actions { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.filter-actions .btn { padding: 10px 20px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stats div { background: var(--white); border-radius: 12px; padding: 14px 16px; }
.stats b { display: block; font: 600 30px/1.1 var(--font-head); }
.stats span { color: var(--muted); font-size: 14px; }
.sources { margin-bottom: 18px; background: var(--white); border-radius: 12px; padding: 12px 16px; }
.sources summary { cursor: pointer; font-weight: 600; }
.sources ul { columns: 3 220px; list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.sources li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 12px 3px 0; break-inside: avoid; }
.leads .wrap-cell { white-space: normal; min-width: 180px; max-width: 320px; }
.crm-map td { vertical-align: top; white-space: normal; min-width: 140px; }
.crm-map tr.ours { background: #fff7ef; }
.crm-map code, .funnels code { font-size: 12px; background: #f1eee4; padding: 1px 4px; border-radius: 4px; }
.funnels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.funnels section { background: var(--white); border-radius: 12px; padding: 14px 18px; }
.funnels h3 { margin: 0 0 8px; font-size: 17px; }
.funnels ol { margin: 0; padding-left: 20px; font-size: 14px; }
.admin-form h2 { font-size: 20px; margin: 0; text-transform: none; }
.admin-form form { display: grid; gap: 12px; }
.admin-form p { margin: 0; }
.copy-line code { font-size: 15px; user-select: all; background: #f1eee4; padding: 4px 8px; border-radius: 6px; word-break: break-all; }
.pager { display: flex; gap: 20px; justify-content: center; margin-top: 18px; font-size: 14px; }
.admin-form { display: grid; gap: 16px; background: var(--white); padding: 24px; border-radius: 16px; margin-bottom: 40px; }
.admin-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.admin-form input, .admin-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; width: 100%; }
.admin .btn { justify-self: start; }
.link { background: none; border: 0; color: var(--olive); text-decoration: underline; cursor: pointer; font: inherit; }
.alert { padding: 12px 16px; border-radius: 10px; }
.alert-ok { background: #e6f2dc; }
.alert-error { background: #fde3e3; }
.table-scroll { overflow-x: auto; background: var(--white); border-radius: 16px; }
.leads { width: 100%; border-collapse: collapse; font-size: 14px; }
.leads th, .leads td { padding: 8px 12px; border-bottom: 1px solid #eee; text-align: left; white-space: nowrap; }
.leads .bad { color: #c62828; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid img { max-height: 420px; }
  .counters-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 90px 0 80px; }
  .meta { gap: 18px 30px; font-size: 19px; }
  .about { padding: 60px 0; }
  .team-grid img { width: 130px; height: 130px; }
  .center-card { padding: 36px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .social a { transition: none; }
}

/* Webinar agenda */
.webinar-topics { padding: 64px 0 72px; margin-bottom: 64px; background: #f3f6f0; border-radius: var(--radius); }
.topics-heading { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.topics-eyebrow { display: inline-block; margin-bottom: 14px; padding: 6px 16px; border-radius: 999px; background: #e3ebde; color: #04450f; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.topics-heading h2 { color: #04450f; margin-bottom: 0; }
.topics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.topic-card { display: flex; gap: 20px; padding: 28px; border: 1px solid #dfe7d9; border-radius: 24px; background: #fff; box-shadow: 0 6px 20px rgba(4, 69, 15, .035); }
.topic-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 54px; width: 54px; height: 54px; background: #f3f6f0; border-radius: 16px; font-size: 28px; line-height: 1; }
.topic-card h3 { margin: 0 0 10px; color: #04450f; font: 600 21px/1.3 var(--font-head); }
.topic-card p { margin: 0; }
.topic-card-wide { grid-column: 1 / -1; border-left: 4px solid var(--accent); }
@media (max-width: 700px) {
  .webinar-topics { padding: 44px 0; margin-bottom: 44px; border-radius: 30px; }
  .topics-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .topic-card { padding: 22px 18px; gap: 14px; }
  .topic-icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 24px; border-radius: 13px; }
  .topic-card h3 { font-size: 19px; }
}
