/*
Theme Name: Metod 2023
Theme URI: https://example.kz/
Author: TОО "Метод 2023"
Description: GrainChain product landing page by TОО "Метод 2023" with RU/KZ/EN content editing.
Version: 2.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: metod-2023
*/

:root {
  --color-ink: #111827;
  --color-ink-soft: #5c6878;
  --color-paper: #f5f8f6;
  --color-surface: #ffffff;
  --color-line: #dce5df;
  --color-green: #064d2f;
  --color-green-mid: #0f6a42;
  --color-green-soft: #e4f4ea;
  --color-mint: #9cffb8;
  --color-blue: #3157d5;
  --color-amber: #c9802c;
  --color-panel: #0c241a;
  --shadow-soft: 0 22px 70px rgba(13, 35, 27, 0.14);
  --shadow-card: 0 18px 45px rgba(17, 24, 39, 0.08);
  --header-height: 76px;
  --wrap: min(1180px, calc(100vw - 40px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

body[data-current-lang="ru"] [data-lang-content="kz"],
body[data-current-lang="ru"] [data-lang-content="en"],
body[data-current-lang="kz"] [data-lang-content="ru"],
body[data-current-lang="kz"] [data-lang-content="en"],
body[data-current-lang="en"] [data-lang-content="ru"],
body[data-current-lang="en"] [data-lang-content="kz"] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.page-top-anchor {
  position: absolute;
  top: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--color-ink);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(7, 34, 24, 0.94);
  border-bottom: 1px solid rgba(156, 255, 184, 0.16);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 205px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #f7fbf7;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(12, 36, 26, 0.08);
  overflow: hidden;
}

.brand-logo {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.site-nav a {
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border-radius: 7px;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.lang-switch button,
.footer-links button {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.lang-switch button {
  min-width: 34px;
  padding: 6px 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.lang-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--color-green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 10px;
  content: "";
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.hero-product {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(156, 255, 184, 0.22), transparent 31%),
    linear-gradient(140deg, #09251b 0%, #0f3727 48%, #f5f8f6 48.2%, #f5f8f6 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 46px;
  align-items: center;
}

.hero-copy {
  max-width: 610px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--color-amber);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--color-mint);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 4vw, 52px);
  font-weight: 870;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-lead {
  max-width: 560px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 820;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #51e27d;
  color: #062015;
  box-shadow: 0 16px 36px rgba(81, 226, 125, 0.24);
}

.button-secondary {
  background: #123a2a;
  color: #fff;
  border-color: rgba(156, 255, 184, 0.42);
  box-shadow: 0 14px 30px rgba(7, 28, 21, 0.18);
}

.hero-visual {
  min-width: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  min-height: 390px;
  overflow: hidden;
  background: #f8faf9;
  border: 1px solid rgba(6, 77, 47, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  padding: 20px 14px;
  background: #255437;
  color: #fff;
}

.app-sidebar img {
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 14px;
}

.app-sidebar span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.app-sidebar strong {
  font-size: 17px;
  line-height: 1.1;
}

.app-preview {
  min-width: 0;
  padding: 16px;
  display: grid;
  align-items: center;
  background: linear-gradient(180deg, #f8fbfa, #eef4f0);
}

.app-preview img {
  width: 100%;
  border: 1px solid rgba(15, 35, 27, 0.12);
  border-radius: 6px;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.12);
}

.hero-caption {
  width: min(650px, 100%);
  margin: 15px 0 0 auto;
  color: #40514a;
  font-size: 14px;
}

.section {
  padding: 86px 0;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

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

.section-muted {
  background: #eef4ef;
}

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 24%, rgba(156, 255, 184, 0.18), transparent 27%),
    linear-gradient(135deg, #071c15, #113927 63%, #0a251a);
  color: #fff;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.72fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 34px;
}

.section-intro {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 18px;
}

.section-header-light .section-intro {
  color: rgba(255, 255, 255, 0.74);
}

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

.feature-card,
.role-card,
.maturity-card {
  min-height: 100%;
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.feature-card h3,
.role-card h3,
.maturity-card h3 {
  color: #0d1d16;
}

.feature-card p,
.role-card p,
.maturity-card p {
  margin: 0;
  color: var(--color-ink-soft);
}

.feature-card {
  border-top: 4px solid var(--color-green-mid);
}

.twin-layout {
  position: relative;
}

.twin-logo {
  position: absolute;
  right: -90px;
  top: -44px;
  width: 310px;
  opacity: 0.22;
  pointer-events: none;
}

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

.twin-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.twin-card h3 {
  color: #fff;
}

.twin-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.role-card {
  position: relative;
  overflow: hidden;
}

.role-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  background: var(--color-green-soft);
  color: var(--color-green);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.role-card:nth-child(2n) span {
  background: #eef1ff;
  color: var(--color-blue);
}

.role-card:nth-child(3n) span {
  background: #fff4df;
  color: var(--color-amber);
}

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

.maturity-card {
  padding: 22px;
  box-shadow: none;
}

.maturity-card span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--color-green-mid);
  font-weight: 950;
}

.maturity-card h3 {
  font-size: 18px;
}

.developer-section {
  background: #fff;
}

.developer-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 54px;
  align-items: start;
}

.about-copy {
  margin-top: 26px;
}

.about-copy p {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--color-ink-soft);
  font-size: 18px;
}

.developer-panel {
  padding: 28px;
  background: #f3f8f5;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.developer-panel ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.developer-panel li {
  position: relative;
  padding-left: 28px;
  color: #20342b;
  font-weight: 680;
}

.developer-panel li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  background: var(--color-green-mid);
  border-radius: 50%;
  content: "";
}

.contact-section {
  background:
    linear-gradient(180deg, rgba(6, 77, 47, 0.04), rgba(6, 77, 47, 0)),
    var(--color-paper);
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-item {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
}

.contact-item span {
  color: var(--color-ink-soft);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.contact-item strong,
.contact-item a {
  color: #15251d;
  font-size: 17px;
  font-weight: 720;
  text-decoration: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  background: var(--color-green);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.contact-action-muted {
  background: #d9e1dc;
  color: #77827d;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #26382f;
  font-size: 14px;
  font-weight: 780;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cbd9d2;
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--color-ink);
  outline: none;
}

.field input {
  min-height: 46px;
  padding: 0 14px;
}

.field textarea {
  min-height: 132px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-green-mid);
  box-shadow: 0 0 0 4px rgba(15, 106, 66, 0.12);
}

.form-status {
  display: none;
  padding: 12px 14px;
  background: var(--color-green-soft);
  color: var(--color-green);
  border-radius: 8px;
  font-weight: 750;
}

.form-status.is-visible {
  display: block;
}

.site-footer {
  background: #061812;
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a,
.footer-links button {
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.footer-links button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 1120px) {
  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-inline: 8px;
    font-size: 13px;
  }

  .hero-grid,
  .section-header,
  .developer-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-product {
    background: linear-gradient(180deg, #09251b 0%, #0f3727 56%, #f5f8f6 56.2%, #f5f8f6 100%);
  }

  .hero-visual {
    width: 100%;
  }

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

@media (max-width: 860px) {
  :root {
    --wrap: min(100% - 28px, 1180px);
    --header-height: 68px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    min-width: auto;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: calc(var(--header-height) + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #0b2118;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
    font-size: 15px;
  }

  .hero-product {
    padding: 48px 0 58px;
  }

  .hero-grid {
    gap: 34px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lead,
  .section-intro,
  .about-copy p {
    font-size: 16px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .app-sidebar {
    display: none;
  }

  .app-preview {
    padding: 10px;
  }

  .section {
    padding: 62px 0;
  }

  .section-header {
    gap: 18px;
    margin-bottom: 26px;
  }

  .role-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .lang-switch button {
    min-width: 30px;
    padding-inline: 5px;
  }

  h1 {
    font-size: 43px;
  }

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

  .feature-grid,
  .twin-grid,
  .role-grid,
  .maturity-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .role-card,
  .maturity-card,
  .twin-card,
  .developer-panel,
  .lead-form {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0;
  }
}
