/*
Theme Name: Product Landing Theme
Theme URI: https://example.com/
Author: Custom Theme
Description: Одностраничная WordPress-тема для продуктового лендинга. Лендинг выводится только на странице, выбранной как главная. Отдельный шаблон документов выводит Privacy Policy, Terms & Conditions, Disclaimer и Cookie Policy на одной странице.
Version: 3.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: product-landing
*/

:root {
      --primary: #174c43;
      --primary-light: #e8f3f0;
      --accent: #d9a441;
      --text: #1f2933;
      --muted: #6b7280;
      --bg: #ffffff;
      --soft-bg: #f7f9f8;
      --border: #e5e7eb;
      --radius: 18px;
      --shadow: 0 16px 40px rgba(0,0,0,0.06);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 96px;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.6;
    }

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

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

    .container {
      width: min(1180px, 92%);
      margin: 0 auto;
    }

    .topbar {
      background: var(--primary);
      color: #fff;
      font-size: 14px;
      padding: 8px 0;
    }

    .topbar-inner {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

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

    .nav {
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 700;
      font-size: 22px;
      color: var(--primary);
    }

    .logo-mark {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--primary), #3b7f72);
    }

    .menu {
      display: flex;
      align-items: center;
      gap: 22px;
      font-size: 15px;
      color: #374151;
    }

    .menu-dropdown {
      position: relative;
    }

    .menu-dropdown > button {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0;
      border: none;
      background: transparent;
      color: inherit;
      font: inherit;
      cursor: pointer;
    }

    .menu-dropdown > button::after {
      content: "";
      width: 7px;
      height: 7px;
      border-right: 2px solid var(--muted);
      border-bottom: 2px solid var(--muted);
      transform: rotate(45deg) translateY(-2px);
      transition: 0.2s ease;
    }

    .menu-dropdown:hover > button::after,
    .menu-dropdown.is-open > button::after {
      transform: rotate(225deg) translateY(-2px);
    }

    .submenu {
      position: absolute;
      right: 0;
      top: 100%;
      margin-top: 6px;
      min-width: 260px;
      display: none;
      grid-template-columns: 1fr;
      gap: 2px;
      padding: 10px;
      border-radius: 18px;
      border: 1px solid var(--border);
      background: #fff;
      box-shadow: var(--shadow);
    }

    .submenu a {
      padding: 11px 12px;
      border-radius: 12px;
      color: #374151;
    }

    .submenu a:hover {
      background: var(--primary-light);
      color: var(--primary);
    }

    .menu-dropdown:hover .submenu,
    .menu-dropdown.is-open .submenu {
      display: grid;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 13px 22px;
      border-radius: 999px;
      background: var(--primary);
      color: #fff;
      font-weight: 700;
      border: 1px solid var(--primary);
      transition: 0.2s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow);
    }

    .btn-outline {
      background: transparent;
      color: var(--primary);
    }

    .hero {
      padding: 86px 0 70px;
      background: linear-gradient(180deg, #f3faf7 0%, #ffffff 100%);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 56px;
      align-items: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      padding: 7px 13px;
      border-radius: 999px;
      background: var(--primary-light);
      color: var(--primary);
      font-weight: 700;
      font-size: 14px;
      margin-bottom: 20px;
    }

    h1, h2, h3 {
      line-height: 1.15;
      margin: 0 0 18px;
    }

    h1 {
      font-size: clamp(38px, 5vw, 64px);
      letter-spacing: -1.8px;
    }

    h2 {
      font-size: clamp(30px, 4vw, 44px);
      letter-spacing: -1px;
    }

    h3 {
      font-size: 22px;
    }

    .lead {
      font-size: 19px;
      color: var(--muted);
      max-width: 680px;
      margin-bottom: 28px;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 32px;
    }

    .trust-row {
      display: flex;
      gap: 22px;
      flex-wrap: wrap;
      color: #4b5563;
      font-size: 15px;
    }

    .trust-item::before {
      content: "✓";
      color: var(--primary);
      font-weight: 700;
      margin-right: 8px;
    }

    .product-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 30px;
      padding: 36px;
      box-shadow: var(--shadow);
    }

    .product-box {
      height: 380px;
      border-radius: 24px;
      background: linear-gradient(145deg, #eef7f4, #ffffff);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      font-weight: 700;
      text-align: center;
      padding: 30px;
    }

    section {
      padding: 82px 0;
    }

    .section-head {
      max-width: 760px;
      margin-bottom: 42px;
    }

    .muted {
      color: var(--muted);
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .grid-2 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 28px;
    }

    .card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 28px;
      box-shadow: 0 8px 26px rgba(0,0,0,0.03);
    }

    .icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      background: var(--primary-light);
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      margin-bottom: 18px;
    }

    .soft {
      background: var(--soft-bg);
    }

    .table-wrap {
      overflow-x: auto;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: #fff;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 720px;
    }

    th, td {
      padding: 18px;
      border-bottom: 1px solid var(--border);
      text-align: left;
      vertical-align: top;
    }

    th {
      background: var(--primary-light);
      color: var(--primary);
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    tr:last-child td {
      border-bottom: none;
    }

    .steps {
      counter-reset: step;
    }

    .step {
      position: relative;
      padding-left: 72px;
      margin-bottom: 30px;
    }

    .step::before {
      counter-increment: step;
      content: counter(step);
      position: absolute;
      left: 0;
      top: 0;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
    }

    .notice {
      border-left: 4px solid var(--accent);
      background: #fff8e7;
      padding: 20px 24px;
      border-radius: 14px;
      color: #604414;
    }

    .faq-item {
      border-bottom: 1px solid var(--border);
      padding: 22px 0;
    }

    .faq-item strong {
      display: block;
      font-size: 18px;
      margin-bottom: 8px;
    }

    .company-box {
      background: var(--primary);
      color: #fff;
      border-radius: 28px;
      padding: 44px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 34px;
      align-items: center;
    }

    .company-box .muted {
      color: rgba(255,255,255,0.78);
    }

    .badges {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 22px;
    }

    .badge {
      padding: 9px 13px;
      border-radius: 999px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.2);
      font-size: 14px;
    }

    footer {
      background: #0f2e29;
      color: #fff;
      padding: 54px 0 28px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr 1fr 1fr;
      gap: 30px;
      margin-bottom: 34px;
    }

    footer a, footer p {
      color: rgba(255,255,255,0.72);
      display: block;
      margin: 8px 0;
    }

    .legal {
      border-top: 1px solid rgba(255,255,255,0.14);
      padding-top: 20px;
      color: rgba(255,255,255,0.55);
      font-size: 13px;
    }

    .cookie-banner {
      position: fixed;
      left: 24px;
      right: 24px;
      bottom: 24px;
      z-index: 100;
      max-width: 980px;
      margin: 0 auto;
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 22px;
      padding: 22px 24px;
      border-radius: 22px;
      background: #ffffff;
      border: 1px solid var(--border);
      box-shadow: 0 18px 60px rgba(0,0,0,0.16);
    }

    .cookie-banner.is-visible {
      display: flex;
    }

    .cookie-banner p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .cookie-banner strong {
      display: block;
      color: var(--text);
      font-size: 17px;
      margin-bottom: 5px;
    }

    .cookie-actions {
      display: flex;
      gap: 10px;
      flex-shrink: 0;
      flex-wrap: wrap;
    }

    .mobile-toggle {
      display: none;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--primary);
      font-size: 24px;
      line-height: 1;
      cursor: pointer;
    }

    @media (max-width: 900px) {
      html {
        scroll-padding-top: 84px;
      }

      .container {
        width: min(100% - 32px, 1180px);
      }

      .topbar {
        font-size: 12px;
      }

      .topbar-inner {
        gap: 4px;
      }

      .nav {
        min-height: 68px;
        gap: 12px;
      }

      .logo {
        font-size: 19px;
      }

      .logo-mark {
        width: 34px;
        height: 34px;
      }

      .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
      }

      .nav > .btn {
        display: none;
      }

      .menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow);
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
      }

      .menu.is-open {
        display: flex;
      }

      .menu a,
      .menu-dropdown > button {
        padding: 13px 14px;
        border-radius: 12px;
        text-align: left;
        width: 100%;
      }

      .menu a:hover,
      .menu-dropdown > button:hover {
        background: var(--primary-light);
        color: var(--primary);
      }

      .menu-dropdown {
        width: 100%;
      }

      .submenu {
        position: static;
        display: grid;
        min-width: 0;
        padding: 6px 0 0 14px;
        border: none;
        box-shadow: none;
        background: transparent;
      }

      .submenu a {
        padding: 11px 14px;
      }

      .menu-dropdown > button::after {
        display: none;
      }

      .hero {
        padding: 46px 0 50px;
      }

      .hero-grid,
      .grid-2,
      .grid-3,
      .company-box,
      .footer-grid {
        grid-template-columns: 1fr;
      }

      .hero-grid {
        gap: 30px;
      }

      h1 {
        font-size: 36px;
        letter-spacing: -1px;
      }

      h2 {
        font-size: 30px;
        letter-spacing: -0.6px;
      }

      h3 {
        font-size: 20px;
      }

      .lead {
        font-size: 17px;
      }

      .hero-actions {
        flex-direction: column;
      }

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

      .trust-row {
        gap: 10px;
        flex-direction: column;
      }

      .product-card {
        padding: 20px;
        border-radius: 22px;
      }

      .product-box {
        height: 260px;
        border-radius: 18px;
      }

      section {
        padding: 54px 0;
      }

      .section-head {
        margin-bottom: 28px;
      }

      .card {
        padding: 22px;
      }

      .company-box {
        padding: 28px;
        border-radius: 22px;
      }

      .step {
        padding-left: 58px;
      }

      .step::before {
        width: 42px;
        height: 42px;
      }

      .table-wrap {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
      }

      table {
        min-width: 680px;
      }

      th, td {
        padding: 14px;
        font-size: 14px;
      }

      #order .card {
        display: grid !important;
        grid-template-columns: 1fr !important;
      }

      #order .card > div:first-child {
      flex-direction: column;
      text-align: center;
    }

      

      #order .card > div:first-child > div:first-child {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto;
      }

      #consultation form .btn {
        width: 100%;
      }

      .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 18px;
      }

      .cookie-actions {
        flex-direction: column;
      }
    }

    @media (max-width: 520px) {
      .hero [style*="justify-content:space-between"] {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
      }

      .hero [style*="justify-content:space-between"] > div {
        text-align: center !important;
      }

      #price .card,
      #order .card > div:first-child {
        text-align: center;
        align-items: center !important;
        justify-content: center !important;
      }

      #price .card div,
      #order .card > div:first-child div {
        text-align: center !important;
      }

      h1 {
        font-size: 32px;
      }

      h2 {
        font-size: 27px;
      }

      .eyebrow {
        font-size: 12px;
        margin-bottom: 14px;
      }

      .hero [style*="justify-content:space-between"] {
        flex-direction: column;
        align-items: flex-start !important;
      }

      .hero [style*="font-size:34px"] {
        font-size: 30px !important;
      }

      .footer-grid {
        gap: 22px;
      }
    }

/* Smooth anchor navigation and mobile menu scrolling */
section, [id] {
  scroll-margin-top: 96px;
}

@media (max-width: 900px) {
  section, [id] {
    scroll-margin-top: 84px;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Legal page additions */
:root {
      --primary: #174c43;
      --primary-light: #e8f3f0;
      --accent: #d9a441;
      --text: #1f2933;
      --muted: #6b7280;
      --bg: #ffffff;
      --soft-bg: #f7f9f8;
      --border: #e5e7eb;
      --radius: 18px;
      --shadow: 0 16px 40px rgba(0,0,0,0.06);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 96px;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.7;
    }

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

    .container {
      width: min(1180px, 92%);
      margin: 0 auto;
    }

    .topbar {
      background: var(--primary);
      color: #fff;
      font-size: 14px;
      padding: 8px 0;
    }

    .topbar-inner {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

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

    .nav {
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 700;
      font-size: 22px;
      color: var(--primary);
    }

    .logo-mark {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--primary), #3b7f72);
    }

    .menu {
      display: flex;
      align-items: center;
      gap: 22px;
      font-size: 15px;
      color: #374151;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 13px 22px;
      border-radius: 999px;
      background: var(--primary);
      color: #fff;
      font-weight: 700;
      border: 1px solid var(--primary);
      transition: 0.2s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow);
    }

    .legal-hero {
      padding: 74px 0 54px;
      background: linear-gradient(180deg, #f3faf7 0%, #ffffff 100%);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      padding: 7px 13px;
      border-radius: 999px;
      background: var(--primary-light);
      color: var(--primary);
      font-weight: 700;
      font-size: 14px;
      margin-bottom: 20px;
    }

    h1, h2, h3 {
      line-height: 1.15;
      margin: 0 0 18px;
    }

    h1 {
      font-size: clamp(38px, 5vw, 58px);
      letter-spacing: -1.4px;
    }

    h2 {
      font-size: clamp(28px, 4vw, 42px);
      letter-spacing: -0.8px;
    }

    h3 {
      font-size: 22px;
      margin-top: 32px;
    }

    .lead {
      font-size: 19px;
      color: var(--muted);
      max-width: 760px;
      margin-bottom: 0;
    }

    .legal-layout {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 34px;
      align-items: start;
      padding: 64px 0 82px;
    }

    .legal-sidebar {
      position: sticky;
      top: 104px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 18px;
      box-shadow: 0 8px 26px rgba(0,0,0,0.03);
    }

    .legal-sidebar strong {
      display: block;
      margin-bottom: 12px;
      color: var(--primary);
    }

    .legal-sidebar a {
      display: block;
      padding: 11px 12px;
      border-radius: 12px;
      color: #374151;
      font-size: 15px;
    }

    .legal-sidebar a:hover {
      background: var(--primary-light);
      color: var(--primary);
    }

    .legal-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 42px;
      box-shadow: var(--shadow);
      margin-bottom: 34px;
    }

    .legal-card p,
    .legal-card li {
      color: var(--muted);
    }

    .legal-card ul {
      padding-left: 22px;
    }

    .legal-note {
      border-left: 4px solid var(--accent);
      background: #fff8e7;
      padding: 20px 24px;
      border-radius: 14px;
      color: #604414;
      margin: 24px 0;
    }

    .meta-row {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 14px;
      margin-bottom: 28px;
    }

    .meta-row span {
      padding: 7px 11px;
      border-radius: 999px;
      background: var(--soft-bg);
      border: 1px solid var(--border);
    }

    footer {
      background: #0f2e29;
      color: #fff;
      padding: 54px 0 28px;
    }

    .legal-page .footer-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr 1fr;
      gap: 30px;
      margin-bottom: 34px;
    }

    .logo-footer {
      color: #fff;
      margin-bottom: 14px;
    }

    footer a,
    footer p {
      color: rgba(255,255,255,0.72);
      display: block;
      margin: 8px 0;
    }

    .legal-copy {
      border-top: 1px solid rgba(255,255,255,0.14);
      padding-top: 20px;
      color: rgba(255,255,255,0.55);
      font-size: 13px;
    }

    @media (max-width: 900px) {
      html {
        scroll-padding-top: 84px;
      }

      .container {
        width: min(100% - 32px, 1180px);
      }

      .nav {
        min-height: 68px;
      }

      .menu {
        display: none;
      }

      .nav .btn {
        padding: 11px 16px;
        font-size: 14px;
      }

      .legal-hero {
        padding: 48px 0 38px;
      }

      h1 {
        font-size: 34px;
      }

      h2 {
        font-size: 28px;
      }

      .lead {
        font-size: 17px;
      }

      .legal-layout {
        grid-template-columns: 1fr;
        padding: 42px 0 62px;
      }

      .legal-sidebar {
        position: static;
      }

      .legal-card {
        padding: 26px;
        border-radius: 20px;
      }

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

.product-img{width:100%;height:auto;border-radius:24px;display:block}.order-image{width:140px;height:140px;border-radius:18px;background:linear-gradient(145deg,#eef7f4,#ffffff);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden}.order-image img{width:100%;height:100%;object-fit:contain}.default-page{padding:80px 0}.default-page .entry-content{max-width:820px}.admin-notice-front{padding:80px 0}.admin-notice-front .card{max-width:860px;margin:0 auto}.legal-card{scroll-margin-top:110px}

/* Exact landing form layout fixes based on the original HTML template */
#order .order-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

#order .order-product-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

#order .order-image {
  width: 140px;
  height: 140px;
  min-width: 140px;
  border-radius: 18px;
  background: linear-gradient(145deg, #eef7f4, #ffffff);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
}

#order .order-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.landing-form,
#consultation form.landing-form {
  margin: 0;
}

.landing-form h3,
#consultation form.landing-form h3 {
  margin-top: 0;
}

.landing-form .form-input,
.landing-form input[type="text"],
.landing-form input[type="tel"] {
  width: 100%;
  display: block;
  padding: 14px;
  margin: 0 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  box-shadow: none;
  outline: none;
  appearance: none;
}

.landing-form .form-input:focus,
.landing-form input[type="text"]:focus,
.landing-form input[type="tel"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 76, 67, 0.12);
}

.landing-form button.btn,
#consultation form.landing-form button.btn {
  width: 100%;
  min-height: 48px;
  cursor: pointer;
}

#consultation .grid-2 {
  align-items: start;
}

#consultation form.card.landing-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.03);
}

@media (max-width: 900px) {
  #order .order-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #order .order-product-info {
    flex-direction: column;
    text-align: center;
  }

  #order .order-image {
    width: 180px;
    height: 180px;
    min-width: 180px;
    margin: 0 auto;
  }

  #consultation form.landing-form .btn,
  #consultation form.landing-form button.btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  #order .order-card,
  #order .order-product-info,
  #price .card {
    text-align: center;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* Emergency inline-equivalent form layout reinforcement */
#order .card.order-card{display:grid!important;grid-template-columns:1fr 1fr!important;gap:28px!important;align-items:center!important;}
#order .order-product-info{display:flex!important;gap:20px!important;align-items:center!important;}
#order .order-image{width:140px!important;height:140px!important;min-width:140px!important;max-width:140px!important;overflow:hidden!important;}
#order .order-image .product-box,#order .order-image .product-box-small{width:140px!important;height:140px!important;min-height:0!important;padding:12px!important;font-size:12px!important;line-height:1.45!important;}
#order .order-form input[type=text],#order .order-form input[type=tel],#consultation .consult-form input[type=text],#consultation .consult-form input[type=tel]{width:100%!important;display:block!important;box-sizing:border-box!important;padding:14px!important;margin:0 0 12px!important;border:1px solid var(--border)!important;border-radius:12px!important;background:#fff!important;}
#order .order-form .btn,#consultation .consult-form .btn{width:100%!important;display:flex!important;}
@media(max-width:900px){#order .card.order-card{grid-template-columns:1fr!important;}#order .order-product-info{flex-direction:column!important;text-align:center!important;align-items:center!important;}#order .order-image,#order .order-image .product-box,#order .order-image .product-box-small{width:180px!important;height:180px!important;max-width:180px!important;}}


/* Footer layout fix: landing footer has 4 columns; legal page footer has 3 columns */
.product-landing-page .footer-grid{
  display:grid !important;
  grid-template-columns:1.2fr 1fr 1fr 1fr !important;
  gap:30px !important;
  align-items:start;
}
.legal-page .footer-grid{
  display:grid !important;
  grid-template-columns:1.2fr 1fr 1fr !important;
  gap:30px !important;
  align-items:start;
}
@media (max-width:900px){
  .product-landing-page .footer-grid,
  .legal-page .footer-grid{
    grid-template-columns:1fr !important;
  }
}


/* Final footer grid isolation */
.landing-footer .footer-grid{
  display:grid !important;
  grid-template-columns:minmax(320px,1.4fr) minmax(150px,0.8fr) minmax(170px,0.8fr) minmax(190px,0.8fr) !important;
  gap:30px !important;
  align-items:start !important;
}
.legal-footer .footer-grid{
  display:grid !important;
  grid-template-columns:1.2fr 1fr 1fr !important;
  gap:30px !important;
  align-items:start !important;
}
@media (max-width:900px){
  .landing-footer .footer-grid,
  .legal-footer .footer-grid{
    grid-template-columns:1fr !important;
  }
}

/* Final hero restore from the original HTML layout */
.product-landing-page .hero-grid.hero-grid-image-left {
  display: grid !important;
  grid-template-columns: 0.9fr 1.1fr !important;
  gap: 56px !important;
  align-items: center !important;
}
.product-landing-page .hero-product-card {
  width: 100% !important;
  max-width: 470px !important;
  justify-self: start !important;
  padding: 26px !important;
  border-radius: 30px !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
}
.product-landing-page .hero-product-card .product-box {
  height: 320px !important;
  min-height: 0 !important;
  border-radius: 24px !important;
  padding: 24px !important;
}
.product-landing-page .hero-product-card .product-img {
  width: 100% !important;
  max-height: 320px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}
.product-landing-page .hero-content {
  min-width: 0 !important;
}
.product-landing-page .hero-content .lead {
  margin-bottom: 28px !important;
}
.product-landing-page .hero-price-strip,
.product-landing-page .price-strip.hero-price-strip {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 18px 22px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05) !important;
  margin: 0 0 26px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.product-landing-page .price-strip-main {
  min-width: 0 !important;
}
.product-landing-page .price-label {
  font-size: 13px !important;
  color: var(--muted) !important;
  margin-bottom: 4px !important;
  line-height: 1.4 !important;
}
.product-landing-page .price-line {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  line-height: 1.15 !important;
}
.product-landing-page .price-main {
  font-size: 34px !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}
.product-landing-page .price-suffix {
  font-size: 14px !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
}
.product-landing-page .old-price-line {
  font-size: 13px !important;
  color: var(--muted) !important;
  margin-top: 3px !important;
  line-height: 1.4 !important;
}
.product-landing-page .stock-text {
  font-size: 12px !important;
  color: var(--muted) !important;
  text-align: right !important;
  line-height: 1.45 !important;
  flex: 0 0 auto !important;
}
.product-landing-page .hero-actions {
  display: flex !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-bottom: 32px !important;
}
.product-landing-page .hero-actions .btn {
  width: auto !important;
}
.product-landing-page .trust-row {
  display: flex !important;
  gap: 22px !important;
  flex-wrap: wrap !important;
  color: #4b5563 !important;
  font-size: 15px !important;
}
@media (max-width: 900px) {
  .product-landing-page .hero-grid.hero-grid-image-left {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .product-landing-page .hero-product-card {
    max-width: 100% !important;
    padding: 20px !important;
  }
  .product-landing-page .hero-product-card .product-box {
    height: 240px !important;
  }
  .product-landing-page .hero-product-card .product-img {
    max-height: 240px !important;
  }
  .product-landing-page .hero-actions {
    flex-direction: column !important;
  }
  .product-landing-page .hero-actions .btn {
    width: 100% !important;
  }
  .product-landing-page .trust-row {
    gap: 10px !important;
    flex-direction: column !important;
  }
}
@media (max-width: 520px) {
  .product-landing-page .hero-price-strip,
  .product-landing-page .price-strip.hero-price-strip {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .product-landing-page .stock-text {
    text-align: center !important;
  }
  .product-landing-page .price-strip-main {
    width: 100% !important;
    text-align: center !important;
  }
  .product-landing-page .price-line {
    justify-content: center !important;
  }
  .product-landing-page .price-main {
    font-size: 30px !important;
  }
}

/* v6: controlled smooth anchor scrolling + scrollable mobile menu */
html { scroll-behavior: smooth; }
@media (max-width: 900px) {
  .menu.is-open {
    max-height: calc(100vh - 92px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body.menu-open {
    overflow: hidden !important;
  }
  .product-landing-page .hero-price-strip,
  .product-landing-page .hero-price-strip > div,
  .product-landing-page .hero-price-strip .stock-text {
    text-align: center !important;
    align-items: center !important;
  }
}

/* service pages: /good and /bad */
.service-page .service-section {
  padding: 90px 0;
  min-height: 62vh;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.service-page .service-card {
  max-width: 820px;
  margin: 0 auto;
}
.service-page .service-card h1 {
  margin-top: 12px;
}
.service-page .service-content {
  font-size: 18px;
  line-height: 1.75;
  margin: 18px 0 24px;
}
.service-page .service-steps {
  margin: 20px 0 26px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
}
.service-page .service-steps ol,
.service-page .service-steps ul {
  margin: 0 0 0 20px;
  padding: 0;
}
.service-page .service-steps li {
  margin: 8px 0;
}
