@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffcc00;

  --gray-900: #1a1a1a;
  --gray-700: #333333;
  --gray-600: #666666;
  --gray-500: #999999;
  --gray-300: #cccccc;
  --gray-200: #e0e0e0;
  --gray-100: #f5f5f5;
  --gray-50: #f8f8f8;

  --container: 1600px;
  --pad-desktop: 160px;
  --pad-tablet: 60px;
  --pad-mobile: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

.section {
  padding: 100px 0;
}

.section.light {
  background: var(--white);
}

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

.section.muted {
  background: var(--gray-50);
}

/* ---------------- HEADER ---------------- */

.header {
  background: var(--black);
  padding: 28px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 22px;
  flex: 1 1 auto;
  min-width: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--black);
}

.nav {
  display: flex;
  gap: 48px;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 2px solid #ffffff40;
  border-radius: 8px;
  background:
    linear-gradient(#ffffff, #ffffff) 9px 12px / 22px 2px no-repeat,
    linear-gradient(#ffffff, #ffffff) 9px 19px / 22px 2px no-repeat,
    linear-gradient(#ffffff, #ffffff) 9px 26px / 22px 2px no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  flex: 0 0 auto;
}

/* ---------------- BUTTONS ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  border-color: #ffffff40;
  color: var(--white);
}

.btn-dark {
  background: var(--black);
  color: var(--yellow);
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

/* ---------------- HERO ---------------- */

.hero {
  background: var(--black);
  padding: 100px 0 120px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 540px;
  align-items: center;
  gap: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  background: #ffcc0020;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 600;
}

.hero-badge .icon {
  color: var(--yellow);
}

.hero h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1.1;
  color: var(--white);
  word-break: break-word;
}

.hero p {
  margin: 0;
  color: var(--gray-300);
  font-size: 22px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat-value {
  color: var(--yellow);
  font-size: 42px;
  font-weight: 800;
}

.hero-stat-label {
  color: var(--gray-500);
  font-size: 15px;
  font-weight: 500;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-50);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-weight: 600;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------- SECTION HEADERS ---------------- */

.section-header h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 800;
  word-break: break-word;
}

.section-header p {
  margin: 0;
  font-size: 20px;
  color: var(--gray-600);
  overflow-wrap: break-word;
}

/* ---------------- GRIDS / CARDS ---------------- */

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

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

.card {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  gap: 24px;
}

.card.light {
  background: var(--white);
  border: 2px solid var(--gray-200);
}

.card.dark {
  background: var(--black);
  color: var(--white);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.card-text {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---------------- ADV / STEPS / ETC ---------------- */

.advantage {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
}

.adv-number {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--black);
}

.adv-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.adv-text {
  color: var(--gray-300);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

.step-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  gap: 20px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
}

.step-text {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
}

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

.testimonial {
  background: var(--gray-900);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  gap: 24px;
}

.testimonial-quote {
  color: var(--white);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.testimonial-name {
  color: var(--yellow);
  font-size: 18px;
  font-weight: 700;
}

.testimonial-role {
  color: var(--gray-500);
  font-size: 14px;
}

.why-text {
  font-size: 18px;
  color: var(--gray-700);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.benefits {
  display: grid;
  gap: 20px;
}

.benefit-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: center;
}

.benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 24px;
}

.faq-item {
  background: var(--gray-900);
  border-radius: 12px;
  padding: 32px;
  display: grid;
  gap: 16px;
}

.faq-question {
  color: var(--yellow);
  font-size: 20px;
  font-weight: 700;
}

.faq-answer {
  color: var(--gray-300);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* Stats */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  text-align: center;
}

.stat-number {
  color: var(--yellow);
  font-size: 56px;
  font-weight: 800;
}

.stat-desc {
  color: var(--gray-600);
  font-size: 18px;
}

/* CTA */

.cta {
  background: var(--yellow);
  padding: 80px 0;
  text-align: center;
}

.cta-title {
  font-size: 42px;
  font-weight: 800;
  margin: 0;
}

.cta-subtitle {
  font-size: 20px;
  color: var(--gray-700);
}

/* Footer */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 80px;
  align-items: start;
}

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

.footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-weight: 800;
}

.footer-desc {
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.6;
  max-width: 400px;
  overflow-wrap: break-word;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.footer-link {
  color: var(--gray-500);
  font-size: 15px;
}

.footer-phone {
  color: var(--yellow);
  font-size: 15px;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid #ffffff20;
  color: var(--gray-600);
  font-size: 14px;
}

/* ---------------- BACK TO TOP ---------------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--black);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top .icon {
  width: 20px;
  height: 20px;
}

/* ---------------- LAYOUT BLOCKS ---------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 80px;
  align-items: center;
}

.detail {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 80px;
  align-items: center;
}

.detail.reverse {
  grid-template-columns: 560px 1fr;
}

.detail-number {
  font-size: 72px;
  font-weight: 800;
  color: var(--yellow);
  opacity: 0.3;
}

.detail-title {
  font-size: 42px;
  font-weight: 800;
}

.detail-text {
  font-size: 19px;
  color: var(--gray-600);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.check-list {
  display: grid;
  gap: 16px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  font-size: 17px;
  font-weight: 500;
}

.check-item .icon,
.price-feature .icon {
  color: var(--yellow);
}

/* Pricing */

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

.price-card {
  border-radius: 20px;
  padding: 48px;
  display: grid;
  gap: 32px;
}

.price-card.light {
  background: var(--white);
  border: 2px solid var(--gray-200);
}

.price-card.dark {
  background: var(--black);
  color: var(--white);
}

.price-title {
  font-size: 28px;
  font-weight: 800;
}

.price-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--yellow);
}

.price-desc {
  font-size: 17px;
  color: var(--gray-500);
  overflow-wrap: break-word;
}

.price-features {
  display: grid;
  gap: 12px;
}

.price-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  font-size: 16px;
}

.price-feature.dark {
  color: var(--gray-300);
}

.price-badge {
  background: var(--yellow);
  color: var(--black);
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  justify-self: flex-start;
}

.price-btn {
  width: 100%;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Cases */

.case-card {
  border-radius: 24px;
  padding: 60px;
  display: grid;
  gap: 80px;
}

.case-card.light {
  background: var(--gray-50);
  color: var(--black);
}

.case-card.dark {
  background: var(--black);
  color: var(--white);
}

.case-badge {
  display: inline-flex;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.case-badge.light {
  background: var(--yellow);
  color: var(--black);
}

.case-badge.outline {
  color: var(--yellow);
  border: 1px solid var(--yellow);
  background: #ffcc0020;
}

.case-title {
  font-size: 38px;
  font-weight: 800;
}

.case-desc {
  font-size: 19px;
  color: var(--gray-600);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.case-desc.dark {
  color: var(--gray-300);
}

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

.case-stat-value {
  font-size: 48px;
  font-weight: 800;
  color: var(--yellow);
}

.case-stat-label {
  font-size: 16px;
  color: var(--gray-500);
}

.case-visual {
  height: 400px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-200);
}

.case-visual.dark {
  background: #333333;
}

/* Team */

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

.team-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  gap: 24px;
}

.team-photo {
  height: 320px;
  border-radius: 16px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

.team-role {
  color: var(--yellow);
  font-size: 17px;
  font-weight: 500;
}

/* Form */

.form-card {
  background: var(--gray-50);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  gap: 32px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label {
  font-size: 15px;
  font-weight: 600;
}

.form-input {
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  padding: 0 20px;
  font-size: 16px;
}

textarea.form-input {
  height: 140px;
  padding: 14px 20px;
  resize: vertical;
}

.form-button {
  width: 100%;
  border-radius: 12px;
  padding: 20px 40px;
  background: var(--yellow);
  border: none;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-privacy {
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  overflow-wrap: break-word;
}

/* Blog */

.post-grid {
  display: grid;
  gap: 32px;
}

.post-card {
  display: grid;
  gap: 20px;
}

.post-card-image {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--gray-200);
}

.post-card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-weight: 600;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray-500);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.post-card-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.post-card-title a:hover {
  color: var(--yellow);
}

.post-card-excerpt {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--black);
}

.post-title {
  font-size: 48px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.post-content {
  font-size: 18px;
  color: var(--gray-700);
  line-height: 1.8;
  display: grid;
  gap: 20px;
}

.post-content h2,
.post-content h3 {
  color: var(--black);
  margin: 0;
}

.post-cover {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--gray-200);
}

.posts-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.posts-pagination a,
.posts-pagination span {
  border: 1px solid var(--gray-200);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-600);
}

.posts-pagination .current {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  font-weight: 700;
}

/* ---------------- CF7 (Contact Form 7) ---------------- */

.wpcf7 form {
  margin: 0;
}

.wpcf7 form p {
  margin: 0;
}

.wpcf7-not-valid-tip {
  font-size: 13px;
  margin-top: 6px;
  color: #c62828;
}

.wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: 14px;
}

.wpcf7-spinner {
  margin: 10px auto 0;
  display: block;
}

.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.wpcf7-acceptance input {
  margin-top: 3px;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1400px) {
  :root {
    --pad-desktop: 60px;
  }

  .container {
    padding: 0 var(--pad-tablet);
  }

  .hero-inner,
  .detail,
  .detail.reverse,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-image,
  .case-visual {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .grid-3,
  .testimonials,
  .pricing-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

@media (max-width: 900px) {
  .header {
    padding: 20px 0;
  }

  .section {
    padding: 80px 0 !important;
  }

  .hero {
    padding: 80px 0 100px !important;
  }

  .hero-inner {
    gap: 48px;
  }

  .detail,
  .detail.reverse,
  .two-col {
    gap: 40px;
  }

  .hero-image {
    height: 320px !important;
  }

  .card,
  .testimonial,
  .team-card,
  .price-card,
  .faq-item {
    padding: 28px;
  }

  .case-card {
    padding: 32px;
    gap: 48px;
  }

  .case-visual {
    height: 320px;
  }

  .detail-number {
    font-size: 56px;
  }

  .detail-title {
    font-size: 34px !important;
  }

  .case-title {
    font-size: 32px !important;
  }

  .cta-title {
    font-size: 36px !important;
  }

  .section-header h2 {
    font-size: 36px !important;
  }

  .post-title {
    font-size: 36px;
  }

  /* хедер — в одну строку */
  .header-inner {
    flex-wrap: nowrap;
    gap: 24px;
  }

  /* мобильное меню */
  .nav {
    display: none;
    flex-direction: column;
    gap: 14px;
    background: var(--black);
    border: 1px solid #ffffff20;
    padding: 16px;
    border-radius: 12px;

    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 12px);
    z-index: 10;
  }

  .nav.open {
    display: flex;
  }

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

  .btn-primary {
    padding: 12px 20px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 48px !important;
  }

  .hero p {
    font-size: 18px !important;
  }
}

@media (max-width: 700px) {
  :root {
    --pad-desktop: 20px;
  }

  .container {
    padding: 0 var(--pad-mobile);
  }

  .header-inner {
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    flex: 1 1 auto;
  }

  /* кнопку в хедере НЕ растягиваем на всю ширину */
  .btn-primary {
    width: auto;
    margin: 0;
    padding: 12px 14px;
    font-size: 14px;
  }

  .section {
    padding: 64px 0 !important;
  }

  .hero {
    padding: 72px 0 80px !important;
  }

  .hero h1 {
    font-size: 38px !important;
  }

  .hero p {
    font-size: 16px !important;
  }

  .hero-stat-value {
    font-size: 32px;
  }

  .hero-stats {
    gap: 24px;
  }

  .grid-3,
  .testimonials,
  .pricing-grid,
  .team-grid,
  .case-stats {
    grid-template-columns: 1fr !important;
  }

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

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

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

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

  .adv-number {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .adv-title {
    font-size: 24px;
  }

  .adv-text {
    font-size: 16px;
  }

  .cta-title {
    font-size: 30px !important;
  }

  .cta-subtitle {
    font-size: 18px !important;
  }

  .section-header h2 {
    font-size: 30px !important;
  }

  .section h2 {
    font-size: 30px !important;
  }

  .detail-title {
    font-size: 28px !important;
  }

  .case-title {
    font-size: 28px !important;
  }

  .price-title {
    font-size: 22px;
  }

  .price-value {
    font-size: 32px;
  }

  .post-card-image {
    height: 200px;
  }

  .post-title {
    font-size: 32px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .card,
  .testimonial,
  .team-card,
  .price-card,
  .faq-item,
  .case-card,
  .form-card {
    padding: 22px;
  }

  .hero-image,
  .case-visual,
  .team-photo,
  .post-cover {
    height: 260px !important;
  }

  .post-card-image {
    height: 180px !important;
  }

  .post-title {
    font-size: 28px;
  }
}
@media (max-width: 900px) {
  /* контейнер шапки */
  .header { padding: 14px 0; }

  /* ВАЖНО: убираем space-between, чтобы бургер не “уезжал” в центр */
  .header-inner {
    justify-content: flex-start;
    gap: 12px;
  }

  /* Лого слева */
  .logo { flex: 0 1 auto; }

  /* Кнопку толкаем вправо */
  .btn-primary {
    margin-left: auto;     /* <-- ключ */
    padding: 12px 14px;
    font-size: 14px;
  }

  /* Бургер — САМЫЙ ПРАВЫЙ */
  .menu-toggle {
    display: inline-flex;
    margin-left: 12px;     /* небольшой отступ от кнопки */
    order: 999;            /* гарантируем, что он последний */
  }

  /* Скрываем обычное меню и показываем выпадашку */
  .nav {
    display: none;
    flex-direction: column;
    gap: 14px;
    position: absolute;
    right: 0;
    left: 0;
    top: calc(100% + 12px);
    background: var(--black);
    border: 1px solid #ffffff20;
    border-radius: 12px;
    padding: 16px;
    z-index: 10;
  }

  .nav.open { display: flex; }
}
/* FIX: Mobile layout + CF7 width overflow */

/* 1) "Как мы работаем" (steps) — принудительно в 1 колонку на мобильных */
@media (max-width: 700px) {
  .steps {
    grid-template-columns: 1fr !important;
  }
}

/* 2) Contact Form 7 — поля не вылазят за контейнер */
.wpcf7,
.wpcf7 * {
  box-sizing: border-box;
}

.wpcf7 form {
  max-width: 100%;
}

.wpcf7 form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 input[type="search"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
}

.wpcf7 textarea {
  resize: vertical;
}

/* Если у формы есть сетки/колонки — ломаем их в 1 колонку на мобиле */
@media (max-width: 700px) {
  .wpcf7 .grid,
  .wpcf7 .row,
  .wpcf7 .columns,
  .wpcf7 .form-row {
    display: block !important;
  }
}

