:root {
  --ink: #1f271f;
  --muted: #687063;
  --line: #d9ddcd;
  --paper: #fffdf7;
  --soft: #f3f1e7;
  --gold: #d9981e;
  --green: #366347;
  --green-dark: #203f30;
  --berry: #8a2f3b;
  --white: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid rgba(217, 221, 205, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
  font-size: 22px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 20px;
  color: #41483e;
  font-size: 15px;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--green);
  border-color: var(--gold);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.header-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-right: 8px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--green-dark);
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--green-dark);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 0;
  font-weight: 800;
}

.contact-pill:hover {
  background: rgba(47, 107, 72, 0.08);
}

.contact-pill::before,
.footer-actions a[href*="max.ru"]::before,
.footer-actions a[href^="tg://"]::before,
.footer-actions a[href*="wa.me"]::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.contact-pill.wa::before,
.footer-actions a[href*="wa.me"]::before {
  background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2325D366' d='M12 2a9.8 9.8 0 0 0-8.5 14.7L2.4 21.6l5-1.3A9.8 9.8 0 1 0 12 2Z'/%3E%3Cpath fill='white' d='M16.8 14.4c-.2-.1-1.4-.7-1.6-.8s-.4-.1-.5.1c-.2.2-.6.8-.8.9-.1.2-.3.2-.5.1a8 8 0 0 1-2.3-1.4 8.8 8.8 0 0 1-1.6-2c-.2-.3 0-.4.1-.6l.4-.4c.1-.2.2-.3.3-.5.1-.2 0-.4 0-.5l-.7-1.6c-.2-.4-.4-.4-.6-.4h-.5c-.2 0-.5.1-.7.3-.2.2-.9.9-.9 2.1s.9 2.4 1.1 2.6c.1.2 1.9 3 4.6 4.1.6.3 1.1.4 1.5.5.6.2 1.2.2 1.7.1.5-.1 1.4-.6 1.6-1.1.2-.6.2-1 .2-1.1 0-.2-.2-.3-.4-.4Z'/%3E%3C/svg%3E");
}

.contact-pill.tg::before,
.footer-actions a[href^="tg://"]::before {
  background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' fill='%2328A8EA'/%3E%3Cpath fill='white' d='M17.4 7.2 5.9 11.7c-.8.3-.8.8-.1 1l2.9.9 1.1 3.4c.1.4.2.6.5.6.3 0 .5-.1.7-.3l1.7-1.6 3 2.2c.6.3 1 .2 1.1-.5l2-9.2c.2-.8-.3-1.2-1.4-1Z'/%3E%3Cpath fill='%2328A8EA' d='m9.1 13.4 6.7-4.2c.3-.2.5-.1.3.1l-5.4 4.9-.2 2.2-1.4-3Z' opacity='.65'/%3E%3C/svg%3E");
}

.contact-pill.max::before,
.footer-actions a[href*="max.ru"]::before {
  background-image: url("assets/max-icon.png");
  border-radius: 7px;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.9);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 36px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #243829;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 25, 17, 0.9) 0%, rgba(23, 35, 25, 0.74) 42%, rgba(23, 35, 25, 0.2) 76%),
    linear-gradient(0deg, rgba(21, 28, 20, 0.62) 0%, rgba(21, 28, 20, 0) 42%);
}

.hero-content {
  position: relative;
  width: min(790px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 86px);
  padding: 70px 0 118px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text,
.page-hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.3vw, 23px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(880px, calc(100vw - 36px));
  margin: 42px 0 0;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-facts div {
  min-height: 102px;
  padding: 20px;
  background: rgba(28, 45, 33, 0.72);
}

.hero-facts dt {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

.page-hero {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(32, 63, 48, 0.96), rgba(54, 99, 71, 0.84)),
    url("assets/hero-oil.png") center / cover;
}

.section {
  padding: clamp(62px, 8vw, 108px) clamp(18px, 4vw, 56px);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section-title h2,
.split-section h2,
.request h2,
.cta-panel h2 {
  margin: 0;
  font-size: clamp(32px, 4.7vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro-section {
  background: var(--paper);
}

.feature-grid,
.product-grid,
.pack-grid,
.steps,
.data-table {
  max-width: 1180px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  min-height: 270px;
  padding: 32px;
  background: var(--white);
}

.feature-card span {
  color: var(--berry);
  font-weight: 800;
}

.feature-card h3,
.product-card h3 {
  margin: 34px 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.feature-card p,
.feature-card a,
.product-card p,
.split-section p,
.request-copy p,
.steps p {
  color: var(--muted);
  line-height: 1.62;
}

.feature-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--green);
  font-weight: 800;
}

.catalog-band {
  background: var(--soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 250px;
  padding: 26px;
  background: var(--white);
  border: 1px solid rgba(217, 221, 205, 0.9);
  border-radius: 8px;
}

.product-card.tall {
  min-height: 380px;
}

.product-card h3 {
  margin-top: 0;
}

.product-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.product-card li {
  position: relative;
  padding-left: 20px;
  color: #3b4339;
}

.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pack-grid article {
  min-height: 190px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pack-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}

.pack-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.split-section,
.request {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.split-section {
  background: var(--green-dark);
  color: var(--white);
}

.split-section > div:first-child {
  max-width: 650px;
  margin-left: auto;
}

.split-section p {
  color: rgba(255, 255, 255, 0.76);
}

.terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 680px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.terms div {
  min-height: 150px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.terms strong,
.terms span {
  display: block;
}

.terms strong {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 20px;
}

.terms span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.table-section {
  background: var(--paper);
}

.data-table {
  display: grid;
  border: 1px solid var(--line);
  background: var(--white);
}

.data-table div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.data-table div:last-child {
  border-bottom: 0;
}

.data-table strong {
  color: var(--green);
  font-size: 20px;
}

.data-table span {
  color: var(--muted);
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 16px;
  border-top: 4px solid var(--green);
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--white);
  background: var(--berry);
  border-radius: 50%;
  font-weight: 800;
}

.steps strong {
  display: block;
  font-size: 22px;
}

.request {
  background: #f7f7f1;
}

.request-copy {
  max-width: 560px;
  margin-left: auto;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
  color: var(--green);
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 16px;
  width: min(100%, 560px);
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #3e463c;
  font-size: 14px;
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfbf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 3px solid rgba(217, 152, 30, 0.28);
  border-color: var(--gold);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.cta-panel {
  text-align: center;
  background: var(--soft);
}

.cta-panel p {
  max-width: 620px;
  margin: 18px auto 28px;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.82);
  background: #1a241b;
}

.site-footer strong {
  color: var(--white);
}

.footer-phone {
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.footer-phone:hover {
  color: #ffd84c;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-actions a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.footer-actions a[href*="max.ru"],
.footer-actions a[href^="tg://"],
.footer-actions a[href*="wa.me"] {
  width: 24px;
  height: 24px;
  padding: 0;
  gap: 0;
  justify-content: center;
  font-size: 0;
  border: 0;
  border-radius: 50%;
}

.footer-actions a[href*="max.ru"]:hover,
.footer-actions a[href^="tg://"]:hover,
.footer-actions a[href*="wa.me"]:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer-actions a[href*="max.ru"]::before,
.footer-actions a[href^="tg://"]::before,
.footer-actions a[href*="wa.me"]::before {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.articles-section {
  background: var(--paper);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-grid.small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  min-height: 260px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-card.compact {
  min-height: 150px;
}

.article-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.article-card p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.article-card a,
.article-links a,
.article-aside a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 18px;
  color: var(--green);
  font-weight: 800;
}

.article-card a:hover,
.article-links a:hover,
.article-aside a:hover {
  color: var(--green-dark);
}

.inline-more {
  width: fit-content;
  margin-top: 18px;
}

.article-page {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 820px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-aside a {
  min-height: auto;
  margin-top: 0;
}

.article-body {
  padding: clamp(26px, 4vw, 46px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-body h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
}

.article-body .lead {
  margin: 22px 0 34px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.article-body section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.article-body h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.18;
}

.article-body section p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-links a {
  margin-top: 0;
  padding: 9px 12px;
  background: var(--soft);
  border-radius: 8px;
}

@media (max-width: 1080px) {
  .product-grid,
  .steps,
  .article-grid,
  .article-grid.small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .section-title,
  .split-section,
  .request,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split-section > div:first-child,
  .request-copy {
    margin-left: 0;
  }

  .pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-cta {
    width: 100%;
  }

  .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    width: 100%;
  }

  .header-phone {
    width: 100%;
    margin-right: 0;
  }

  .header-actions .header-cta {
    margin-left: 4px;
  }

  .contact-pill {
    width: 30px;
    flex-basis: 30px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 78px 0 92px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .hero-facts,
  .feature-grid.two,
  .product-grid,
  .pack-grid,
  .article-grid,
  .article-grid.small,
  .steps,
  .terms,
  .data-table div {
    grid-template-columns: 1fr;
  }

  .article-aside {
    grid-template-columns: 1fr;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .lead-form {
    padding: 20px;
  }
}
