/*
Theme Name: Gidro Privod Modern
Theme URI: https://gidro-privod.ru/
Author: money_maker
Description: Modern adaptive manufacturer theme for restored gidro-privod.ru archive content.
Version: 1.1.5
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: gidro-privod-modern
*/

:root {
  --gp-ink: #17201d;
  --gp-muted: #5d6863;
  --gp-soft: #f4f7f5;
  --gp-panel: #ffffff;
  --gp-line: #d9e2dd;
  --gp-line-strong: #c2d1cb;
  --gp-green: #1f6b4d;
  --gp-green-2: #2f8c68;
  --gp-blue: #246a85;
  --gp-steel: #32424a;
  --gp-accent: #c7852c;
  --gp-shadow: 0 18px 46px rgba(23, 32, 29, 0.09);
  --gp-radius: 8px;
  --gp-max: 1360px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gp-soft);
  color: var(--gp-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

a {
  color: var(--gp-green);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--gp-blue);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.gp-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gp-wrap {
  width: min(var(--gp-max), calc(100% - 40px));
  margin: 0 auto;
}

.gp-topbar {
  background: #101815;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.gp-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.gp-topbar a {
  color: #fff;
  font-weight: 700;
}

.gp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gp-line);
  backdrop-filter: blur(12px);
}

.gp-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.gp-brand {
  display: inline-grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--gp-ink);
}

.gp-brand:hover {
  text-decoration: none;
}

.gp-brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gp-green), var(--gp-blue));
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 107, 77, 0.24);
}

.gp-brand__name {
  display: block;
  color: var(--gp-ink);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.gp-brand__desc {
  display: block;
  margin-top: 3px;
  color: var(--gp-muted);
  font-size: 13px;
  line-height: 1.25;
}

.gp-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.gp-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--gp-steel);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
}

.gp-nav a:hover,
.gp-nav a:focus,
.gp-nav a[aria-current="page"] {
  background: #e8f1ed;
  color: var(--gp-green);
  text-decoration: none;
}

.gp-main {
  flex: 1;
  padding: 34px 0 56px;
}

.gp-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.gp-layout > :not(.gp-sidebar) {
  grid-column: 2;
  grid-row: 1;
}

.gp-content-card,
.gp-sidebar-card {
  background: var(--gp-panel);
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius);
  box-shadow: var(--gp-shadow);
}

.gp-content-card {
  overflow: hidden;
}

.gp-modern-column {
  display: grid;
  gap: 22px;
}

.gp-article {
  padding: clamp(22px, 3vw, 42px);
  overflow-x: auto;
}

.gp-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--gp-green);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.gp-page-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.gp-title {
  margin: 0 0 22px;
  color: var(--gp-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 900;
}

.gp-entry {
  color: var(--gp-ink);
}

.gp-entry > *:first-child {
  margin-top: 0;
}

.gp-entry h2,
.gp-entry h3,
.gp-entry h4 {
  color: var(--gp-ink);
  line-height: 1.18;
}

.gp-entry h2 {
  margin: 34px 0 14px;
  font-size: 28px;
}

.gp-entry h3 {
  margin: 26px 0 12px;
  font-size: 22px;
}

.gp-entry p {
  margin: 0 0 16px;
  text-align: left !important;
}

.gp-entry li,
.gp-entry td,
.gp-entry th {
  text-align: left;
}

.gp-lede {
  max-width: 860px;
  margin: 0;
  color: var(--gp-muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.58;
}

.gp-entry table {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.gp-entry th,
.gp-entry td {
  padding: 10px 11px;
  border: 1px solid var(--gp-line);
  vertical-align: top;
}

.gp-entry th {
  background: #eaf2ee;
  color: var(--gp-ink);
  font-weight: 900;
}

.gp-entry tr:nth-child(even) td {
  background: #f8faf9;
}

.gp-entry img {
  border-radius: 6px;
}

.gp-entry .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.gp-sidebar {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 104px;
}

.gp-sidebar-card {
  overflow: hidden;
}

.gp-sidebar__head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--gp-line);
  background:
    linear-gradient(135deg, rgba(31, 107, 77, 0.09), rgba(36, 106, 133, 0.08)),
    #fff;
}

.gp-sidebar__title {
  margin: 0;
  color: var(--gp-ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.gp-sidebar__sub {
  margin: 7px 0 0;
  color: var(--gp-muted);
  font-size: 13px;
  line-height: 1.35;
}

.gp-catalog {
  max-height: calc(100vh - 188px);
  overflow: auto;
  padding: 10px;
}

.gp-sidebar-group {
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--gp-line);
}

.gp-sidebar-group:last-child {
  border-bottom: 0;
}

.gp-sidebar-group__title {
  margin: 0;
  padding: 8px 8px 0;
  color: var(--gp-green);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.gp-sidebar-group__note {
  margin: 4px 8px 8px;
  color: var(--gp-muted);
  font-size: 12px;
  line-height: 1.35;
}

.gp-catalog details {
  border-radius: 7px;
}

.gp-catalog details[open] {
  background: #f6faf8;
}

.gp-catalog summary {
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 9px 8px;
  border-radius: 7px;
  color: var(--gp-ink);
  cursor: pointer;
  list-style: none;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
}

.gp-catalog summary::-webkit-details-marker {
  display: none;
}

.gp-catalog summary:hover {
  background: #edf5f1;
}

.gp-catalog__icon {
  width: 24px;
  height: 24px;
  color: var(--gp-green);
}

.gp-catalog__chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gp-muted);
  border-bottom: 2px solid var(--gp-muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.gp-catalog details[open] .gp-catalog__chev {
  transform: rotate(225deg);
}

.gp-catalog__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 2px 8px 12px 40px;
  list-style: none;
}

.gp-catalog details[open] .gp-catalog__list {
  max-height: 380px;
  overflow: auto;
}

.gp-catalog__list a {
  display: block;
  padding: 6px 0;
  color: var(--gp-muted);
  font-size: 13px;
  line-height: 1.24;
  font-weight: 700;
}

.gp-catalog__list a:hover,
.gp-catalog__list a:focus,
.gp-catalog__list a[aria-current="page"] {
  color: var(--gp-green);
}

.gp-catalog__root a {
  color: var(--gp-green);
  font-weight: 900;
}

.gp-side-cta {
  margin: 10px;
  padding: 14px;
  border-radius: 7px;
  background: var(--gp-ink);
  color: rgba(255, 255, 255, 0.78);
}

.gp-side-cta strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.gp-side-cta span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.35;
}

.gp-side-cta a {
  display: inline-flex;
  margin-top: 12px;
  color: #fff;
  font-weight: 900;
}

.gp-footer {
  background: #101815;
  color: rgba(255, 255, 255, 0.72);
  padding: 32px 0;
}

.gp-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.gp-footer a {
  color: #fff;
}

.gp-home-hero,
.gp-about-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--gp-radius);
  background:
    linear-gradient(135deg, rgba(16, 24, 21, 0.92), rgba(31, 107, 77, 0.84)),
    #12201b;
  color: #fff;
}

.gp-home-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
}

.gp-home-hero::after,
.gp-about-hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -120px auto;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(18deg);
}

.gp-hero-kicker {
  margin: 0 0 14px;
  color: #a9dfc5;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.gp-hero-title {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.03;
  font-weight: 900;
}

.gp-hero-text {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}

.gp-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.gp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 7px;
  background: var(--gp-accent);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
}

.gp-button--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.gp-industrial-band .gp-button--ghost {
  color: var(--gp-green) !important;
  box-shadow: inset 0 0 0 1px var(--gp-green);
}

.gp-hero-machine {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.gp-hero-machine__card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--gp-radius);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.gp-hero-machine img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.gp-hero-machine__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gp-mini-stat {
  min-height: 74px;
  padding: 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.11);
}

.gp-mini-stat strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.gp-mini-stat span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.2;
}

.gp-section {
  margin-top: 34px;
}

.gp-section:first-child {
  margin-top: 0;
}

.gp-section-overview .gp-lede {
  margin-bottom: 24px;
}

.gp-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.gp-section-title {
  margin: 0;
  color: var(--gp-ink);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  font-weight: 900;
}

.gp-section-copy {
  margin: 0;
  color: var(--gp-muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.gp-feature-card,
.gp-product-card,
.gp-about-card {
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius);
  background: #fff;
  overflow: hidden;
}

.gp-feature-card {
  padding: 18px;
}

.gp-feature-card h3,
.gp-product-card h3,
.gp-about-card h3 {
  margin: 0;
  color: var(--gp-ink);
  font-size: 18px;
  line-height: 1.24;
  font-weight: 900;
}

.gp-feature-card p,
.gp-product-card p,
.gp-about-card p {
  margin: 10px 0 0;
  color: var(--gp-muted);
  font-size: 14px;
  line-height: 1.5;
}

.gp-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: var(--gp-green);
}

.gp-product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 18px;
  background: #f7faf8;
}

.gp-product-card__body {
  padding: 16px;
}

.gp-card-link {
  display: inline-flex;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 900;
}

.gp-overview-heading {
  margin: 26px 0 14px;
  color: var(--gp-ink);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

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

.gp-overview-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius);
  background: #fff;
  overflow: hidden;
}

.gp-overview-thumb {
  display: grid;
  place-items: center;
  min-height: 150px;
  background: #f7faf8;
}

.gp-overview-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 14px;
  border-radius: 0;
}

.gp-overview-fallback {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(31, 107, 77, 0.18);
  border-radius: 22px;
  background: rgba(31, 107, 77, 0.07);
  color: var(--gp-green);
}

.gp-overview-fallback svg {
  width: 62px;
  height: 62px;
}

.gp-overview-body {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.gp-overview-body h2 {
  margin: 0;
  color: var(--gp-ink);
  font-size: 15px;
  line-height: 1.24;
  font-weight: 900;
}

.gp-overview-body h2 a {
  display: -webkit-box;
  color: inherit;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.gp-overview-body p {
  margin: 9px 0 0;
  color: var(--gp-muted);
  font-size: 13px;
  line-height: 1.45;
}

.gp-overview-body .gp-card-link {
  margin-top: auto;
  padding-top: 12px;
}

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

.gp-about-hero {
  padding: clamp(28px, 4vw, 54px);
}

.gp-about-hero .gp-hero-title {
  max-width: 980px;
}

.gp-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.48fr);
  gap: 18px;
  align-items: stretch;
}

.gp-about-panel {
  position: relative;
  z-index: 1;
}

.gp-about-visual {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gp-about-visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.gp-about-visual img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.gp-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.gp-about-card {
  padding: 18px;
}

.gp-industrial-band {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius);
  background:
    linear-gradient(135deg, rgba(31, 107, 77, 0.07), rgba(36, 106, 133, 0.06)),
    #fff;
}

.gp-two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.56fr);
  gap: 18px;
  align-items: start;
}

.gp-checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.gp-checklist li {
  position: relative;
  min-height: 32px;
  padding: 5px 0 0 34px;
  color: var(--gp-muted);
  font-size: 15px;
  line-height: 1.45;
}

.gp-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e6f2ec;
  box-shadow: inset 0 0 0 1px #bdd8cb;
}

.gp-checklist li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--gp-green);
  border-bottom: 2px solid var(--gp-green);
  transform: rotate(-45deg);
}

.gp-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.gp-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.gp-contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--gp-radius);
  background: var(--gp-ink);
  color: rgba(255, 255, 255, 0.76);
}

.gp-contact-strip h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.gp-contact-strip p {
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.gp-about-note {
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid var(--gp-accent);
  border-radius: 0 8px 8px 0;
  background: #fff7eb;
  color: #5f4b2e;
}

.gp-missing-note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #fff8e8;
  color: #705223;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .gp-layout,
  .gp-home-hero,
  .gp-about-layout,
  .gp-section-head,
  .gp-two-col,
  .gp-contact-strip {
    grid-template-columns: 1fr;
  }

  .gp-sidebar {
    grid-column: auto;
    grid-row: auto;
    position: static;
  }

  .gp-layout > :not(.gp-sidebar) {
    grid-column: auto;
    grid-row: auto;
  }

  .gp-catalog {
    max-height: none;
  }

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

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

@media (max-width: 760px) {
  .gp-wrap {
    width: min(100% - 24px, var(--gp-max));
  }

  .gp-topbar__inner,
  .gp-footer__inner {
    display: grid;
    justify-content: stretch;
  }

  .gp-header {
    position: static;
  }

  .gp-header__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .gp-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .gp-nav a {
    white-space: nowrap;
  }

  .gp-main {
    padding: 18px 0 34px;
  }

  .gp-article {
    padding: 20px 14px;
  }

  .gp-title {
    font-size: 26px;
    line-height: 1.12;
  }

  .gp-home-hero,
  .gp-about-hero {
    padding: 24px 16px;
  }

  .gp-hero-title {
    font-size: 34px;
    line-height: 1.06;
  }

  .gp-hero-machine__meta,
  .gp-card-grid,
  .gp-overview-grid,
  .gp-process-grid,
  .gp-about-grid,
  .gp-about-visual {
    grid-template-columns: 1fr;
  }

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

  .gp-entry table {
    min-width: 620px;
  }
}
