/*
Theme Name: PREAGRO
Theme URI: https://preagro.com.ua/
Description: Дочірня тема PREAGRO для Kadence.
Author: PREAGRO
Author URI: https://preagro.com.ua/
Template: kadence
Version: 1.0.0
Text Domain: preagro
*/
:root {
  --preagro-bg: #f7faf7;
  --preagro-surface: #ffffff;
  --preagro-surface-soft: #eef5ef;
  --preagro-text: #17231b;
  --preagro-muted: #637067;
  --preagro-line: #dce6de;
  --preagro-primary: #2f6f4e;
  --preagro-primary-dark: #214f38;
  --preagro-accent: #9acb3f;
  --preagro-accent-soft: #eaf6d8;
  --preagro-warning: #d89024;
  --preagro-shadow: 0 18px 50px rgba(25, 63, 43, 0.09);
  --preagro-radius-sm: 12px;
  --preagro-radius: 20px;
  --preagro-radius-lg: 30px;
  --preagro-container: 1180px;
}

.preagro-section,
.preagro-section * {
  box-sizing: border-box;
}

.preagro-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 88px 24px;
  color: var(--preagro-text);
  background: var(--preagro-bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow: hidden;
}

.preagro-section h1,
.preagro-section h2,
.preagro-section h3,
.preagro-section h4,
.preagro-section p {
  margin-top: 0;
}

.preagro-section a {
  color: inherit;
  text-decoration: none;
}

.preagro-container {
  position: relative;
  z-index: 2;
  width: min(100%, var(--preagro-container));
  margin: 0 auto;
}

.preagro-section--white { background: var(--preagro-surface); }
.preagro-section--soft { background: var(--preagro-surface-soft); }
.preagro-section--dark {
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(154, 203, 63, 0.22), transparent 30%),
    linear-gradient(135deg, #173426 0%, #24553c 100%);
}

.preagro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--preagro-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.preagro-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--preagro-accent);
  border-radius: 999px;
}

.preagro-section--dark .preagro-eyebrow { color: #dff3c4; }

.preagro-title {
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--preagro-text);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.preagro-title--section {
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.1;
}

.preagro-section--dark .preagro-title,
.preagro-section--dark .preagro-title--section { color: #fff; }

.preagro-lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--preagro-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.preagro-section--dark .preagro-lead { color: rgba(255, 255, 255, 0.76); }

.preagro-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 42px;
}

.preagro-heading-row .preagro-lead { max-width: 520px; }

.preagro-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.preagro-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.preagro-btn:hover {
  transform: translateY(-2px);
}

.preagro-btn--primary {
  color: #fff !important;
  background: var(--preagro-primary);
  box-shadow: 0 12px 26px rgba(47, 111, 78, 0.23);
}
.preagro-btn--primary{
  text-decoration: none!important;
}

.preagro-btn--primary:hover { background: var(--preagro-primary-dark); }

.preagro-btn--light {
  color: var(--preagro-primary-dark) !important;
  background: #fff;
}

.preagro-btn--outline {
  color: var(--preagro-primary) !important;
  border-color: var(--preagro-line);
  background: rgba(255,255,255,.72);
}

.preagro-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 13px;
  color: var(--preagro-primary-dark);
  background: var(--preagro-accent-soft);
  font-size: 21px;
}


/* HEADER */
.preagro-header,
.preagro-header * { box-sizing: border-box; }
.preagro-header {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(47,111,78,.10);
  background: rgba(255,255,255,.94);
  font-family: Inter, Arial, Helvetica, sans-serif;
  backdrop-filter: blur(16px);
}
.preagro-header__inner {
  display: flex;
  width: min(100%, var(--preagro-container));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.preagro-header__nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.preagro-header__nav a {
  color: #405047;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.preagro-header__nav a:hover { color: var(--preagro-primary); }
.preagro-header .preagro-logo { color: var(--preagro-text) !important; }

/* HERO */
.preagro-hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  background:
    linear-gradient(90deg, rgba(247,250,247,.98) 0%, rgba(247,250,247,.90) 52%, rgba(247,250,247,.25) 100%),
    url('/wp-content/uploads/2026/07/proagro_main2.webp') center/cover no-repeat;
}

.preagro-hero::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(47,111,78,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(47,111,78,.035), 0 0 0 140px rgba(47,111,78,.025);
}

.preagro-hero__content { max-width: 700px; }

.preagro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.preagro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(47,111,78,.14);
  border-radius: 999px;
  color: var(--preagro-primary-dark);
  background: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.preagro-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--preagro-accent);
}

/* STATS */
.preagro-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.preagro-stat {
  padding: 26px;
  border: 1px solid var(--preagro-line);
  border-radius: var(--preagro-radius);
  background: #fff;
}

.preagro-stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--preagro-primary-dark);
  font-size: 28px;
  line-height: 1;
}

.preagro-stat span { color: var(--preagro-muted); font-size: 14px; }

/* CARDS */
.preagro-grid { display: grid; gap: 22px; }
.preagro-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preagro-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.preagro-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.preagro-card {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--preagro-line);
  border-radius: var(--preagro-radius);
  background: var(--preagro-surface);
  box-shadow: 0 10px 30px rgba(29,65,45,.04);
}

.preagro-card h3 {
  margin: 18px 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.preagro-card p { margin-bottom: 0; color: var(--preagro-muted); }

/* PRODUCTS */
.preagro-product {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--preagro-line);
  border-radius: var(--preagro-radius-lg);
  background: #fff;
  box-shadow: var(--preagro-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.preagro-product:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(25,63,43,.14);
}

.preagro-product__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #edf2ee;
}

.preagro-product__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.preagro-product__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--preagro-primary-dark);
  background: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.preagro-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.preagro-product__body h3 { margin-bottom: 9px; font-size: 24px; }
.preagro-product__body p { margin-bottom: 18px; color: var(--preagro-muted); }

.preagro-product__features {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.preagro-product__features li {
  position: relative;
  padding-left: 24px;
  color: #405047;
  font-size: 14px;
}

.preagro-product__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--preagro-primary);
  font-weight: 900;
}

.preagro-product__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--preagro-primary) !important;
  font-weight: 800;
}

/* SPLIT */
.preagro-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
}

.preagro-media {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: var(--preagro-radius-lg);
  background: #e7eee8;
  box-shadow: var(--preagro-shadow);
}

.preagro-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.preagro-checklist {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.preagro-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #405047;
}

.preagro-checklist li::before {
  content: "✓";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--preagro-primary);
  font-size: 13px;
  font-weight: 900;
}

/* PROCESS */
.preagro-process { counter-reset: preagro-step; }
.preagro-step {
  position: relative;
  padding-top: 66px;
}

.preagro-step::before {
  counter-increment: preagro-step;
  content: "0" counter(preagro-step);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--preagro-primary);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

/* CTA */
.preagro-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 48px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--preagro-radius-lg);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
}

.preagro-cta__text { max-width: 720px; }
.preagro-cta h2 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; }
.preagro-cta p { margin-bottom: 0; color: rgba(255,255,255,.74); }

/* FAQ */
.preagro-faq { display: grid; gap: 12px; }
.preagro-faq details {
  border: 1px solid var(--preagro-line);
  border-radius: var(--preagro-radius-sm);
  background: #fff;
}

.preagro-faq summary {
  position: relative;
  padding: 21px 56px 21px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.preagro-faq summary::-webkit-details-marker { display: none; }
.preagro-faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--preagro-primary);
  font-size: 24px;
}
.preagro-faq details[open] summary::after { content: "−"; }
.preagro-faq__answer { padding: 0 22px 22px; color: var(--preagro-muted); }
.preagro-faq__answer p { margin-bottom: 0; }

/* CONTACTS */
.preagro-contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
}

.preagro-contact-card,
.preagro-form-placeholder {
  padding: 38px;
  border: 1px solid var(--preagro-line);
  border-radius: var(--preagro-radius-lg);
  background: #fff;
}

.preagro-contact-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.preagro-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.preagro-contact-item strong { display: block; margin-bottom: 3px; }
.preagro-contact-item a,
.preagro-contact-item span { color: var(--preagro-muted); }

.preagro-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.preagro-field { display: grid; gap: 7px; }
.preagro-field--full { grid-column: 1 / -1; }
.preagro-field label { font-size: 13px; font-weight: 800; }
.preagro-field input,
.preagro-field textarea,
.preagro-field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--preagro-line);
  border-radius: 12px;
  outline: none;
  color: var(--preagro-text);
  background: #fbfdfb;
  font: inherit;
}
.preagro-field textarea { min-height: 120px; resize: vertical; }
.preagro-field input:focus,
.preagro-field textarea:focus,
.preagro-field select:focus { border-color: var(--preagro-primary); }

.preagro-form-note { margin: 14px 0 0; color: var(--preagro-muted); font-size: 12px; }

/* FOOTER */
.preagro-footer {
  padding: 34px 24px;
  color: rgba(255,255,255,.72);
  background: #10261b;
  font-family: Inter, Arial, Helvetica, sans-serif;
}
.preagro-footer__inner {
  display: flex;
  width: min(100%, var(--preagro-container));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.preagro-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff !important;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.preagro-logo__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--preagro-primary-dark);
  background: var(--preagro-accent);
  font-size: 16px;
}

@media (max-width: 1024px) {
  .preagro-section { padding: 72px 20px; }
  .preagro-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preagro-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preagro-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preagro-split { grid-template-columns: 1fr; gap: 38px; }
  .preagro-media { min-height: 400px; }
  .preagro-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .preagro-header { padding: 12px 16px; }
  .preagro-header__nav { display: none; }
  .preagro-header .preagro-btn { width: auto; min-height: 44px; padding: 10px 15px; font-size: 13px; }
  .preagro-section { padding: 58px 16px; }
  .preagro-hero { min-height: 640px; padding-top: 62px; padding-bottom: 62px; background-position: 62% center; }
  .preagro-heading-row { display: block; margin-bottom: 30px; }
  .preagro-heading-row .preagro-lead { margin-top: 14px; }
  .preagro-grid--2,
  .preagro-grid--3,
  .preagro-grid--4,
  .preagro-stats { grid-template-columns: 1fr; }
  .preagro-btn-row { flex-direction: column; align-items: stretch; }
  .preagro-btn { width: 100%; }
  .preagro-cta { display: block; padding: 30px 24px; }
  .preagro-cta .preagro-btn { margin-top: 24px; }
  .preagro-contact-card,
  .preagro-form-placeholder { padding: 26px 20px; }
  .preagro-form-grid { grid-template-columns: 1fr; }
  .preagro-field--full { grid-column: auto; }
  .preagro-footer__inner { flex-direction: column; align-items: flex-start; }
}
html {
    scroll-behavior: smooth;
}
.preagro-page section[id] {
    scroll-margin-top: 90px;
}
.mobile-toggle-open-container .menu-toggle-open:hover, .mobile-toggle-open-container .menu-toggle-open:focus-visible {
    color: #2f6f4e!important;
}
.menu-toggle-open {
    color: #405047!important;
}
.popup-drawer .drawer-inner {
    background: #ffffff!important;
}
.drawer-toggle .toggle-close-bar{
    background: #405047!important;
}
.preagro-cta h2 {
    color:#ffffff!important;
}
.preagro-cf7-form {
    display: grid;
    gap: 20px;
    font-family: Inter, Arial, sans-serif;
}

.preagro-cf7-field {
    display: grid;
    gap: 8px;
}

.preagro-cf7-field label {
    margin: 0;
    color: #1d2b25;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.preagro-cf7-field label span {
    color: #86c736;
}

.preagro-cf7-form input[type="text"],
.preagro-cf7-form input[type="tel"],
.preagro-cf7-form textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #d8e1dc;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #1d2b25;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.preagro-cf7-form textarea {
    min-height: 130px;
    resize: vertical;
}

.preagro-cf7-form input::placeholder,
.preagro-cf7-form textarea::placeholder {
    color: #8b9791;
}

.preagro-cf7-form input:focus,
.preagro-cf7-form textarea:focus {
    border-color: #86c736;
    box-shadow: 0 0 0 3px rgba(134, 199, 54, 0.14);
}

.preagro-cf7-submit input[type="submit"] {
    width: 100%;
    margin: 0;
    padding: 15px 24px;
    border: 0;
    border-radius: 999px;
    background: #267451;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.preagro-cf7-submit input[type="submit"]:hover {
    background: #1e6043;
    transform: translateY(-1px);
}

.preagro-cf7-submit input[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.7;
}

.preagro-cf7-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #c83c3c;
    font-size: 13px;
}

.wpcf7 form .wpcf7-response-output {
    margin: 18px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
}
button:hover, button:focus, button:active, .button:hover, .button:focus, .button:active, .wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active, .wp-element-button:hover, .wp-element-button:focus, .wp-element-button:active, input[type=button]:hover, input[type=button]:focus, input[type=button]:active, input[type=reset]:hover, input[type=reset]:focus, input[type=reset]:active, input[type=submit]:hover, input[type=submit]:focus, input[type=submit]:active {
    background: #267451;
    
}
