/*
Theme Name: medshtora.ru
Theme URI: https://medshtora.ru/
Author: ИП Слепнева Наталья Николаевна
Description: WordPress-тема для оптовой продажи антибактериальных медицинских штор и сопутствующих дезинфицирующих средств.
Version: 2.0.7
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: medshtora
*/

:root {
  --ink: #18343d;
  --text: #2d4b54;
  --muted: #667b82;
  --teal: #117c82;
  --teal-dark: #0d5960;
  --sky: #e6f4f7;
  --mint: #e4f5ed;
  --leaf: #6f9d7c;
  --clay: #d96e5d;
  --amber: #f0bf55;
  --plum: #7760a7;
  --line: #d8e7ea;
  --soft: #f6faf9;
  --paper: #fff9ee;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(24, 52, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 80;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

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

.header-inner {
  width: min(1260px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 232px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
}

.logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand strong {
  display: block;
  font-size: 19px;
  line-height: 1.1;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: #2d5057;
  font-size: 14px;
  font-weight: 800;
}

.primary-nav a {
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--teal);
}

.header-phone {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 78px 0 118px;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b9f0ec;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--white);
  font-size: 56px;
  line-height: 1.06;
  font-weight: 900;
}

.hero-lead {
  max-width: 730px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--clay);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus {
  background: #c95e4f;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus {
  background: rgba(255, 255, 255, 0.24);
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.button-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.phone-icon::after {
  left: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  border: 0;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(35deg);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-facts span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.section {
  padding: 86px 0;
}

.intro-section {
  padding-top: 68px;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading h2,
.spec-copy h2,
.request-copy h2,
.prose h1 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.16;
}

.section-heading p:not(.eyebrow),
.spec-copy p,
.request-copy p,
.prose p {
  color: var(--muted);
  font-size: 18px;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: 34px;
  align-items: end;
}

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

.benefit {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  display: inline-block;
  position: relative;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.benefit-icon::before,
.benefit-icon::after {
  content: "";
  position: absolute;
}

.benefit-icon-shield::before {
  left: 12px;
  top: 8px;
  width: 18px;
  height: 22px;
  background: var(--teal);
  clip-path: polygon(50% 0, 100% 16%, 86% 78%, 50% 100%, 14% 78%, 0 16%);
}

.benefit-icon-shield::after {
  left: 20px;
  top: 14px;
  width: 3px;
  height: 12px;
  background: var(--white);
  box-shadow: -4px 4px 0 var(--white), 4px 4px 0 var(--white);
}

.benefit-icon-flame::before {
  left: 13px;
  top: 8px;
  width: 16px;
  height: 24px;
  background: var(--clay);
  border-radius: 12px 12px 12px 2px;
  transform: rotate(28deg);
}

.benefit-icon-wash::before {
  left: 9px;
  top: 13px;
  width: 24px;
  height: 17px;
  border: 3px solid var(--teal);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.benefit-icon-wash::after {
  left: 11px;
  top: 11px;
  width: 20px;
  height: 8px;
  border-top: 3px solid var(--sky);
  border-radius: 50%;
}

.benefit-icon-ruler::before {
  left: 8px;
  top: 12px;
  width: 26px;
  height: 8px;
  background: var(--amber);
  transform: rotate(-24deg);
}

.benefit h3 {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 19px;
  line-height: 1.22;
}

.benefit p {
  margin: 0;
  color: var(--muted);
}

.products-section {
  background: linear-gradient(180deg, var(--sky), #ffffff 78%);
}

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

.product-card,
.addon-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--sky);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 24px;
}

.product-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3,
.addon-card h3,
.process-grid h3 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.2;
}

.product-lead {
  color: var(--ink);
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.spec-points span {
  position: relative;
  padding-left: 18px;
  color: #385b62;
}

.feature-list li::before,
.spec-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

.product-card p,
.addon-card p,
.process-grid p {
  color: var(--muted);
}

.spec-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 52px;
  align-items: center;
}

.spec-points {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.spec-gallery {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.spec-gallery figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.spec-gallery img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.spec-gallery figcaption {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

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

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

.process-grid article {
  padding: 24px;
  border-left: 5px solid var(--leaf);
  background: rgba(255, 255, 255, 0.78);
}

.process-grid span {
  color: var(--clay);
  font-size: 14px;
  font-weight: 900;
}

.faq-section {
  background: var(--soft);
}

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

.faq-item {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-item h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.22;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.addons-section {
  background: var(--soft);
}

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

.addon-card {
  padding: 18px;
  box-shadow: none;
}

.addon-media {
  width: 100%;
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.addon-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.request-section {
  background: linear-gradient(135deg, #0d5960, #15898a);
  color: var(--white);
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 46px;
  align-items: start;
}

.request-copy .eyebrow,
.request-copy h2,
.request-copy p {
  color: var(--white);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}

.contact-action {
  width: min(100%, 380px);
  min-height: 58px;
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.contact-action:hover,
.contact-action:focus {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.contact-action span {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  opacity: 0.76;
  text-transform: uppercase;
}

.contact-action strong {
  color: inherit;
  font-size: 18px;
  line-height: 1.22;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.2);
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.lead-form label span {
  font-size: 14px;
}

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

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 3px solid rgba(17, 124, 130, 0.17);
  border-color: var(--teal);
}

.lead-form .full {
  grid-column: 1 / -1;
}

.hp-field {
  display: none !important;
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 400;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.consent a {
  color: var(--teal-dark);
  font-weight: 900;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 900;
}

.form-note.success {
  background: #e2f5e6;
  color: #1b6531;
}

.form-note.error {
  background: #ffede8;
  color: #9a3927;
}

.page-section {
  min-height: 55vh;
}

.prose {
  max-width: 860px;
}

.prose h1 {
  margin-bottom: 22px;
}

.prose h2 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.22;
}

.prose p {
  margin: 0 0 14px;
}

.site-footer {
  background: #102f35;
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: 44px;
  padding: 48px 0 34px;
}

.brand-footer {
  margin-bottom: 18px;
  color: var(--white);
}

.brand-footer small {
  color: rgba(255, 255, 255, 0.68);
}

.footer-contacts {
  overflow-wrap: anywhere;
}

.footer-contact-actions {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}

.footer-contacts p,
.site-footer p {
  margin: 0 0 10px;
}

.footer-contacts a {
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.footer-contacts .contact-action {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-contacts .contact-action:hover,
.footer-contacts .contact-action:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
}

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-bottom a,
.footer-legal a {
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  width: min(760px, calc(100% - 28px));
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

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

.cookie-banner p {
  margin: 6px 0 0;
  color: #4b6369;
  font-size: 14px;
}

.cookie-banner strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.cookie-banner a {
  color: var(--teal-dark);
  font-weight: 900;
}

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

.cookie-accept,
.cookie-decline {
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.cookie-accept {
  background: var(--teal);
  color: var(--white);
}

.cookie-decline {
  background: #edf4f5;
  color: var(--teal-dark);
}

.cookie-accept:hover,
.cookie-accept:focus {
  background: var(--teal-dark);
}

.cookie-decline:hover,
.cookie-decline:focus {
  background: #dbe9eb;
}

@media (max-width: 1040px) {
  .header-inner {
    gap: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px;
  }

  .header-phone {
    display: none;
  }

  .hero h1 {
    font-size: 44px;
  }

  .benefit-grid,
  .product-grid,
  .process-grid,
  .faq-grid,
  .addon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-heading,
  .spec-layout,
  .request-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .container,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 74vh;
    background-position: 58% center;
  }

  .hero-content {
    padding: 64px 0 88px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  .hero-lead {
    font-size: 17px;
  }

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

  .section {
    padding: 62px 0;
  }

  .section-heading h2,
  .spec-copy h2,
  .request-copy h2,
  .prose h1 {
    font-size: 30px;
  }

  .benefit-grid,
  .product-grid,
  .process-grid,
  .faq-grid,
  .addon-grid,
  .spec-gallery,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .benefit {
    min-height: auto;
  }

  .product-body {
    padding: 20px;
  }

  .spec-gallery img {
    height: 360px;
  }

  .lead-form {
    padding: 18px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-legal {
    justify-content: flex-start;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-accept,
  .cookie-decline {
    width: 100%;
  }
}
