/*
Theme Name: Just1Page.Ru
Theme URI: https://just1page.ru/
Author: Just1Page Studio
Author URI: https://just1page.ru/
Version: 1.0
Description: Компания «Just1Page» — это команда профессионалов с огромным опытом работы в сфере создания сайтов. У нас Вы можете заказать современный сайт для бизнеса, компании или Вашего магазина, который в будущем станет продающим интернет-магазином среди конкурентов. Индивидуальный подход компании к работе, позволяет нашим клиентам получить широкий диапазон цен на услуги по созданию и разработке интернет-сайтов. У нас можно заказать как недорогой одностраничный сайт или копию одностраничного сайта, так и индивидуальный интернет-проект или интернет-магазин с гибким и уникальным функционалом. Если Вы решили заказать сайт, но не знаете с чего начать, просто оставьте заявку на бесплатную консультацию на нашем сайте. Мы в ближайшее время постараемся найти ответы на интересующие Вас вопросы, относительно создания и разработки Вашего интернет-ресурса!
*/
  @font-face {
      font-family: 'Iosevka Charon Mono';
      font-style: normal;
      font-display: swap;
      font-weight: 400;
      src:
        url('https://cdn.jsdelivr.net/fontsource/fonts/iosevka-charon-mono@latest/latin-400-normal.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/fontsource/fonts/iosevka-charon-mono@latest/latin-400-normal.woff') format('woff');
    }

    @font-face {
      font-family: 'Iosevka Charon Mono';
      font-style: normal;
      font-display: swap;
      font-weight: 700;
      src:
        url('https://cdn.jsdelivr.net/fontsource/fonts/iosevka-charon-mono@latest/latin-700-normal.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/fontsource/fonts/iosevka-charon-mono@latest/latin-700-normal.woff') format('woff');
    }

    :root {
      --bg: #fdfdfd;
      --accent: #c9a19b;
      --text: #1d1c1b;
      --header-height: 92px;
      --radius: 20px;
      --shadow-soft: 0 14px 40px rgba(29, 28, 27, 0.08);
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: 'Montserrat', sans-serif;
      padding-top: var(--header-height);
    }

    body.offcanvas-open {
      overflow: hidden;
    }

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

    a {
      text-decoration: none;
    }

    .site-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1050;
      height: var(--header-height);
      display: flex;
      align-items: center;
      background: rgba(253, 253, 253, 0.88);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(29, 28, 27, 0.08);
      transition: box-shadow 0.3s ease, background 0.3s ease;
    }

    .site-header.is-scrolled {
      box-shadow: 0 10px 35px rgba(29, 28, 27, 0.08);
      background: rgba(253, 253, 253, 0.96);
    }

    .site-logo {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: var(--text);
      font-family: 'Iosevka Charon Mono', monospace;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .site-logo-mark {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: var(--accent);
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
    }

    .desktop-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 34px;
    }

    .desktop-nav a,
    .mobile-nav a {
      color: var(--text);
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.02em;
      transition: color 0.25s ease, opacity 0.25s ease;
    }

    .desktop-nav a:hover,
    .mobile-nav a:hover {
      color: var(--accent);
    }

    .header-right {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 18px;
    }

    .header-phone,
    .mobile-contact-link {
      color: var(--text);
      font-weight: 600;
      white-space: nowrap;
    }

    .header-phone:hover,
    .mobile-contact-link:hover {
      color: var(--accent);
    }

    .btn-accent {
      border: none;
      background: var(--accent);
      color: #fff;
      padding: 14px 24px;
      border-radius: 999px;
      font-weight: 600;
      font-size: 14px;
      letter-spacing: 0.01em;
      transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
      box-shadow: 0 12px 30px rgba(201, 161, 155, 0.35);
    }

    .btn-accent:hover {
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 16px 34px rgba(201, 161, 155, 0.42);
    }

    .btn-menu {
      width: 48px;
      height: 48px;
      border: 1px solid rgba(29, 28, 27, 0.1);
      border-radius: 50%;
      background: #fff;
      color: var(--text);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      box-shadow: var(--shadow-soft);
    }

    .hero {
      min-height: calc(100vh - var(--header-height));
      display: flex;
      align-items: stretch;
      padding: 28px 0;
    }

    .hero-wrap {
      min-height: calc(100vh - var(--header-height) - 56px);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 26px;
      align-items: stretch;
    }

    .hero-content,
    .hero-media {
      border-radius: 28px;
      overflow: hidden;
      min-height: 100%;
    }

    .hero-content {
      background: #fff;
      padding: clamp(28px, 4vw, 64px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      box-shadow: var(--shadow-soft);
    }

    .hero-kicker {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 22px;
      color: var(--accent);
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    .hero-kicker::before {
      content: "";
      width: 36px;
      height: 1px;
      background: currentColor;
      display: inline-block;
    }

    .hero-title {
      margin: 0 0 20px;
      font-family: 'Iosevka Charon Mono', monospace;
      font-size: clamp(34px, 5vw, 68px);
      line-height: 1.02;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .hero-text {
      margin: 0 0 30px;
      font-size: 17px;
      line-height: 1.75;
      color: rgba(29, 28, 27, 0.82);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      align-items: center;
    }

    .btn-outline-dark-soft {
      padding: 14px 24px;
      border-radius: 999px;
      border: 1px solid rgba(29, 28, 27, 0.14);
      color: var(--text);
      font-weight: 600;
      background: transparent;
      transition: all 0.25s ease;
    }

    .btn-outline-dark-soft:hover {
      color: var(--text);
      background: rgba(29, 28, 27, 0.04);
    }

    .hero-media {
      position: relative;
      box-shadow: var(--shadow-soft);
    }

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

    .hero-badge {
      position: absolute;
      left: 22px;
      bottom: 22px;
      background: rgba(255, 255, 255, 0.92);
      color: var(--text);
      border-radius: 18px;
      padding: 16px 18px;
      box-shadow: 0 10px 30px rgba(29, 28, 27, 0.12);
      max-width: 280px;
    }

    .hero-badge-title {
      font-family: 'Iosevka Charon Mono', monospace;
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .hero-badge-text {
      font-size: 14px;
      line-height: 1.5;
      margin: 0;
      color: rgba(29, 28, 27, 0.76);
    }

    .offcanvas-custom {
      background: #fff;
      color: var(--text);
      width: min(360px, 88vw) !important;
      border-right: 1px solid rgba(29, 28, 27, 0.08);
    }

    .offcanvas-header {
      padding: 22px 22px 12px;
    }

    .offcanvas-body {
      padding: 10px 22px 26px;
      display: flex;
      flex-direction: column;
      gap: 26px;
    }

    .mobile-nav {
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding-top: 8px;
    }

    .mobile-nav a {
      font-size: 18px;
      font-weight: 600;
    }

    .mobile-contacts {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding-top: 6px;
      border-top: 1px solid rgba(29, 28, 27, 0.08);
      border-bottom: 1px solid rgba(29, 28, 27, 0.08);
      padding-bottom: 22px;
    }

    .mobile-socials {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .mobile-socials a {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(201, 161, 155, 0.14);
      color: var(--text);
      font-size: 18px;
      transition: all 0.25s ease;
    }

    .mobile-socials a:hover {
      background: var(--accent);
      color: #fff;
    }

    .section-anchor {
      scroll-margin-top: calc(var(--header-height) + 20px);
    }

    @media (max-width: 1199.98px) {
      .desktop-nav {
        gap: 20px;
      }

      .header-right {
        gap: 12px;
      }

      .header-phone {
        font-size: 14px;
      }
    }

    @media (max-width: 991.98px) {
      :root {
        --header-height: 84px;
      }

      .hero {
        min-height: auto;
        padding: 20px 0 24px;
      }

      .hero-wrap {
        min-height: auto;
        grid-template-columns: 1fr;
      }

      .hero-content,
      .hero-media {
        min-height: auto;
      }

      .hero-content {
        order: 1;
      }

      .hero-media {
        order: 2;
        min-height: 360px;
      }

      .hero-title {
        max-width: none;
      }
    }

    @media (max-width: 575.98px) {
      .site-logo {
        font-size: 16px;
      }

      .site-logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
      }

      .hero-content {
        padding: 26px 20px;
        border-radius: 22px;
      }

      .hero-media {
        border-radius: 22px;
        min-height: 300px;
      }

      .hero-title {
        font-size: 34px;
      }

      .hero-text {
        font-size: 15px;
        line-height: 1.65;
      }

      .hero-actions {
        flex-direction: column;
        align-items: stretch;
      }

      .hero-actions .btn-accent,
      .hero-actions .btn-outline-dark-soft {
        width: 100%;
        text-align: center;
      }

      .hero-badge {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
      }
    }

.services-section {
  padding: 110px 0;
  background: #fdfdfd;
}

.services-head {
  max-width: 900px;
  margin: 0 auto 52px;
}

.services-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services-title {
  margin: 0 0 18px;
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--text);
}

.services-text {
  margin: 0 auto;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(29, 28, 27, 0.78);
}

.service-card {
  background: #fff;
  border: 1px solid rgba(29, 28, 27, 0.08);
  border-radius: 28px;
  padding: 36px 28px 30px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(29, 28, 27, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(29, 28, 27, 0.08);
  border-color: rgba(201, 161, 155, 0.35);
}

.service-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: rgba(201, 161, 155, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.service-card-title {
  margin: 0 0 16px;
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

.service-card-text {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(29, 28, 27, 0.74);
  flex-grow: 1;
}

.service-btn {
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  padding: 0;
  position: relative;
  transition: color 0.25s ease;
}

.service-btn::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 6px;
  background: currentColor;
  transition: transform 0.25s ease;
  transform-origin: left;
}

.service-btn:hover {
  color: var(--accent);
}

.service-btn:hover::after {
  transform: scaleX(0.7);
}

/* Modal */
.custom-modal {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(29, 28, 27, 0.16);
}

.custom-modal-header {
  border-bottom: 1px solid rgba(29, 28, 27, 0.08);
  padding: 28px 28px 20px;
  align-items: flex-start;
}

.modal-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-title {
  margin: 0 0 10px;
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: 30px;
  line-height: 1.1;
  color: var(--text);
}

.modal-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(29, 28, 27, 0.72);
}

.modal-body {
  padding: 28px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.custom-input {
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(29, 28, 27, 0.12);
  background: #fff;
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
  box-shadow: none !important;
}

.custom-input:focus {
  border-color: var(--accent);
}

.custom-textarea {
  min-height: 130px;
  resize: vertical;
}

@media (max-width: 991.98px) {
  .services-section {
    padding: 80px 0;
  }

  .services-head {
    margin-bottom: 38px;
  }

  .service-card-title {
    font-size: 24px;
  }
}

@media (max-width: 575.98px) {
  .services-section {
    padding: 64px 0;
  }

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

  .services-text {
    font-size: 15px;
  }

  .service-card {
    padding: 28px 20px 24px;
    border-radius: 22px;
  }

  .service-icon {
    width: 74px;
    height: 74px;
    font-size: 30px;
    margin-bottom: 20px;
  }

  .service-card-title {
    font-size: 22px;
  }

  .custom-modal-header,
  .modal-body {
    padding: 22px 18px;
  }

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

.about-section {
  padding: 0;
  background: #fdfdfd;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 50vw 50vw;
  min-height: 760px;
  align-items: stretch;
}

.about-media {
  position: relative;
  min-height: 760px;
}

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

.about-content-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fdfdfd;
  padding: 80px 0;
}

.about-content {
  max-width: 620px;
  margin-left: 70px;
  position: relative;
  z-index: 2;
}

.about-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-title {
  margin: 0 0 26px;
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  color: var(--text);
}

.about-text {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(29, 28, 27, 0.72);
}

.about-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-decor {
  position: absolute;
  top: 28px;
  right: 40px;
  color: rgba(201, 161, 155, 0.85);
  font-size: 74px;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 1399.98px) {
  .about-content {
    margin-left: 30px;
    max-width: 580px;
  }
}

@media (max-width: 1199.98px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 680px;
  }

  .about-media {
    min-height: 680px;
  }

  .about-title {
    max-width: none;
    font-size: clamp(32px, 4vw, 52px);
  }

  .about-content {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    min-height: 420px;
  }

  .about-content-wrap {
    padding: 60px 0;
  }

  .about-content {
    max-width: 100%;
    margin-left: 0;
  }

  .about-title {
    max-width: none;
    font-size: 36px;
  }

  .about-text {
    font-size: 16px;
    line-height: 1.75;
  }

  .about-decor {
    top: 18px;
    right: 18px;
    font-size: 52px;
  }
}

@media (max-width: 575.98px) {
  .about-media {
    min-height: 300px;
  }

  .about-content-wrap {
    padding: 48px 0;
  }

  .about-title {
    font-size: 30px;
  }

  .about-text {
    font-size: 15px;
    line-height: 1.7;
  }
}

.projects-section {
  padding: 110px 0;
  background: #fdfdfd;
}

.projects-head {
  max-width: 900px;
  margin: 0 auto 54px;
}

.projects-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.projects-title {
  margin: 0 0 18px;
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--text);
}

.projects-text {
  margin: 0 auto;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(29, 28, 27, 0.78);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-image-wrap {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #f3f1ee;
}

.project-image {
  width: 100%;
  aspect-ratio: 0.86 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.04);
}

.project-body {
  padding-top: 22px;
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.project-title {
  margin: 0;
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
  font-weight: 700;
  flex: 1;
}

.project-title a {
  color: var(--text);
  transition: color 0.25s ease;
}

.project-title a:hover {
  color: var(--accent);
}

.project-arrow {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 24px;
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.project-arrow:hover {
  color: var(--accent);
  background: rgba(201, 161, 155, 0.12);
  transform: translate(2px, -2px);
}

.project-price {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.project-meta {
  padding-top: 18px;
  border-top: 1px solid rgba(29, 28, 27, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(29, 28, 27, 0.72);
}

.project-meta span {
  position: relative;
}

.project-meta span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -12px;
  top: 0;
  color: rgba(29, 28, 27, 0.38);
}

@media (max-width: 991.98px) {
  .projects-section {
    padding: 80px 0;
  }

  .projects-head {
    margin-bottom: 40px;
  }

  .project-body {
    padding-top: 18px;
  }

  .project-title {
    font-size: 26px;
  }
}

@media (max-width: 575.98px) {
  .projects-section {
    padding: 64px 0;
  }

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

  .projects-text {
    font-size: 15px;
  }

  .project-image-wrap {
    border-radius: 20px;
  }

  .project-title {
    font-size: 18px;
  }

  .project-arrow {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 20px;
  }

  .project-price {
    font-size: 15px;
  }

  .project-meta {
    font-size: 14px;
    gap: 8px 16px;
  }
}

.before-after-section {
  padding: 110px 0;
  background: #1d1c1b;
  color: #fff;
}

.before-after-head {
  max-width: 920px;
  margin: 0 auto 54px;
}

.before-after-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.before-after-title {
  margin: 0 0 18px;
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.04;
  font-weight: 700;
  color: #fff;
}

.before-after-text {
  margin: 0 auto;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.before-after-wrapper {
  position: relative;
}

.before-after-compare {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  height: min(72vh, 760px);
  min-height: 380px;
  overflow: hidden;
  border-radius: 28px;
  background: #2b2928;
  user-select: none;
  touch-action: none;
}

.before-after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.before-after-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.after-image {
  z-index: 1;
}

.before-image {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
}

.before-after-divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 100%;
  z-index: 5;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(29, 28, 27, 0.12);
}

.divider-handle {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(29, 28, 27, 0.08);
}

.before-after-label {
  position: absolute;
  top: 22px;
  z-index: 4;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.before-label {
  left: 22px;
  background: rgba(29, 28, 27, 0.58);
  color: #fff;
}

.after-label {
  right: 22px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

@media (max-width: 991.98px) {
  .before-after-section {
    padding: 80px 0;
  }

  .before-after-head {
    margin-bottom: 40px;
  }

  .before-after-compare {
    height: 58vh;
    min-height: 340px;
    border-radius: 22px;
  }
}

@media (max-width: 575.98px) {
  .before-after-section {
    padding: 64px 0;
  }

  .before-after-title {
    font-size: 32px;
  }

  .before-after-text {
    font-size: 15px;
  }

  .before-after-compare {
    height: 46vh;
    min-height: 280px;
    border-radius: 18px;
  }

  .divider-handle {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .before-after-label {
    top: 14px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .before-label {
    left: 14px;
  }

  .after-label {
    right: 14px;
  }
}

.faq-section {
  padding: 110px 0;
  background: #fdfdfd;
  overflow: hidden;
}

.faq-row {
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 70px;
  align-items: start;
}

.faq-image-wrap {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  border-radius: 28px;
  overflow: hidden;
  background: #f3f1ee;
}

.faq-image {
  width: 100%;
  height: 760px;
  object-fit: cover;
  display: block;
}

.faq-head {
  margin-bottom: 34px;
  max-width: 760px;
}

.faq-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faq-title {
  margin: 0;
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.04;
  font-weight: 700;
  color: var(--text);
}

.faq-accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: transparent;
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 0;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0;
}

.faq-item {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(29, 28, 27, 0.12) !important;
  border-radius: 0 !important;
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(29, 28, 27, 0.12) !important;
}

.faq-button {
  position: relative;
  background: transparent !important;
  color: var(--text) !important;
  box-shadow: none !important;
  padding: 28px 64px 28px 0 !important;
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.12;
  font-weight: 700;
}

.faq-button.collapsed {
  color: var(--text) !important;
}

.faq-button::after {
  display: none !important;
}

.faq-button::before {
  content: "\F138";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 0;
  top: 30px;
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-button:not(.collapsed)::before {
  transform: rotate(90deg);
  color: var(--accent);
}

.faq-body {
  padding: 0 90px 26px 0 !important;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(29, 28, 27, 0.72);
}

@media (max-width: 1199.98px) {
  .faq-row {
    gap: 40px;
    grid-template-columns: minmax(280px, 420px) 1fr;
  }

  .faq-image {
    height: 680px;
  }
}

@media (max-width: 991.98px) {
  .faq-section {
    padding: 80px 0;
  }

  .faq-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .faq-image-wrap {
    position: relative;
    top: 0;
  }

  .faq-image {
    height: 420px;
  }

  .faq-title {
    max-width: none;
  }

  .faq-button {
    font-size: 26px;
    padding: 24px 54px 24px 0 !important;
  }

  .faq-button::before {
    top: 26px;
    font-size: 22px;
  }

  .faq-body {
    padding: 0 40px 24px 0 !important;
    font-size: 16px;
    line-height: 1.75;
  }
}

@media (max-width: 575.98px) {
  .faq-section {
    padding: 64px 0;
  }

  .faq-image-wrap {
    border-radius: 20px;
  }

  .faq-image {
    height: 320px;
  }

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

  .faq-button {
    font-size: 22px;
    line-height: 1.18;
    padding: 20px 42px 20px 0 !important;
  }

  .faq-button::before {
    top: 22px;
    font-size: 18px;
  }

  .faq-body {
    padding: 0 8px 20px 0 !important;
    font-size: 15px;
    line-height: 1.7;
  }
}

.site-footer {
  background: #1d1c1b;
  color: #fff;
  padding: 90px 0 30px;
}

.footer-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 50px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.footer-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
}

.footer-title {
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: 18px;
  margin-bottom: 18px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: color 0.25s ease;
}

.footer-menu a:hover {
  color: var(--accent);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
}

.footer-contact i {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 161, 155, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--accent);
  color: #fff;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* адаптив */

@media (max-width: 991px) {
  .footer-row {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 575px) {
  .site-footer {
    padding: 60px 0 30px;
  }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    margin-top: 40px;
  }
}


/* =========================
   COMMON
========================= */

.projects-archive,
.projects-taxonomy,
.single-project-page {
    padding: 80px 0;
}

.projects-archive h1,
.projects-taxonomy h1,
.single-project-page h1 {
    margin: 0 0 32px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 700;
    color: #1d1c1b;
}

.projects-archive a,
.projects-taxonomy a,
.single-project-page a {
    text-decoration: none;
}

/* =========================
   GRID / CARD
========================= */




.project-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f3f3f3;
    border-radius: 20px;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.06);
}

.project-card__content {
    padding: 22px 22px 24px;
}

.project-card__terms,
.project-card__meta {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #8a8076;
}

.project-card__terms span,
.project-card__terms a {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f4efe9;
    color: #5f5144;
    font-size: 13px;
    line-height: 1.2;
    transition: background 0.3s ease, color 0.3s ease;
}

.project-card__terms a:hover {
    background: #1d1c1b;
    color: #fff;
}

.project-card h2,
.project-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
    color: #1d1c1b;
    transition: color 0.3s ease;
    font-family: 'Iosevka Charon Mono', monospace;
}

.project-card:hover h2,
.project-card:hover .project-card__title {
    color: #8a6a4a;
}

.project-card__excerpt {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.65;
    color: #5c5651;
}

/* =========================
   TAXONOMY DESCRIPTION
========================= */

.term-description {
    max-width: 860px;
    margin-bottom: 36px;
    font-size: 17px;
    line-height: 1.75;
    color: #5c5651;
}

.term-description p:last-child {
    margin-bottom: 0;
}

/* =========================
   SINGLE PROJECT
========================= */
.single-project-layout {
    padding: 80px 0;
}

.single-project-sidebar {
    position: sticky;
    top: 100px; /* подстрой под высоту хедера */
}

.single-project-title {
    margin: 0 0 20px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 700;
    color: #1d1c1b;
        font-family: 'Iosevka Charon Mono', monospace;
}

.single-project-excerpt {
    margin-bottom: 28px;
    font-size: 17px;
    line-height: 1.75;
    color: #5c5651;
}

.single-project-excerpt p:last-child {
    margin-bottom: 0;
}

.single-project-btn-wrap {
    margin-top: 10px;
}

.single-project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    background: #1d1c1b;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-project-btn:hover {
    background: #8a6a4a;
    color: #fff;
}

.single-project-content {
    font-size: 17px;
    line-height: 1.8;
    color: #2e2b28;
}

.single-project-content > *:last-child {
    margin-bottom: 0;
}

.single-project-content p,
.single-project-content ul,
.single-project-content ol,
.single-project-content blockquote,
.single-project-content .wp-block-image,
.single-project-content .wp-block-gallery {
    margin-bottom: 24px;
}

.single-project-content h2,
.single-project-content h3,
.single-project-content h4 {
    margin: 38px 0 18px;
    color: #1d1c1b;
    line-height: 1.2;
    font-weight: 700;
}

.single-project-content h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.single-project-content h3 {
    font-size: clamp(24px, 2.3vw, 30px);
}

.single-project-content h4 {
    font-size: 22px;
}

.single-project-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.single-project-content ul,
.single-project-content ol {
    padding-left: 22px;
}

.single-project-content a {
    color: #8a6a4a;
    text-decoration: underline;
}

.single-project-content a:hover {
    color: #1d1c1b;
}

@media (max-width: 991.98px) {
    .single-project-layout {
        padding: 60px 0;
    }

    .single-project-sidebar {
        position: static;
    }

    .single-project-title {
        margin-bottom: 18px;
    }

    .single-project-excerpt {
        margin-bottom: 22px;
        font-size: 16px;
        line-height: 1.7;
    }

    .single-project-content {
        font-size: 16px;
        line-height: 1.75;
    }
}

@media (max-width: 767.98px) {
    .single-project-layout {
        padding: 48px 0;
    }

    .single-project-btn {
        width: 100%;
    }

    .single-project-content h2 {
        font-size: 28px;
    }

    .single-project-content h3 {
        font-size: 24px;
    }

    .single-project-content h4 {
        font-size: 20px;
    }
}

/* =========================
   PAGINATION
========================= */

.pagination-wrap,
.navigation.pagination {
    margin-top: 48px;
}

.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    background: #f4efe9;
    color: #1d1c1b;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
    background: #1d1c1b;
    color: #fff;
}

/* =========================
   EMPTY STATE
========================= */

.projects-archive p,
.projects-taxonomy p {
    font-size: 17px;
    line-height: 1.7;
    color: #5c5651;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
    .projects-archive,
    .projects-taxonomy,
    .single-project-page {
        padding: 64px 0;
    }

    .project-card__content {
        padding: 18px 18px 20px;
    }

    .project-card h2,
    .project-card__title {
        font-size: 20px;
    }

    .project-content {
        font-size: 16px;
        line-height: 1.75;
    }
}

@media (max-width: 767.98px) {
    .projects-archive,
    .projects-taxonomy,
    .single-project-page {
        padding: 48px 0;
    }

    .projects-archive h1,
    .projects-taxonomy h1,
    .single-project-page h1 {
        margin-bottom: 24px;
    }

    .term-description {
        margin-bottom: 28px;
        font-size: 16px;
        line-height: 1.7;
    }

    .project-card {
        border-radius: 16px;
    }

    .project-thumb {
        border-radius: 18px;
        margin-bottom: 28px;
    }

    .project-card__content {
        padding: 16px;
    }

    .project-card h2,
    .project-card__title {
        font-size: 18px;
    }

    .project-card__excerpt {
        font-size: 14px;
        line-height: 1.6;
    }

    .project-content h2 {
        font-size: 28px;
    }

    .project-content h3 {
        font-size: 24px;
    }

    .project-content h4 {
        font-size: 20px;
    }

    .navigation.pagination .page-numbers {
        min-width: 42px;
        height: 42px;
        padding: 0 12px;
        font-size: 14px;
    }
}

/* Галерея WordPress */
.project-content .gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.project-content .gallery .gallery-item {
  width: 100%;
  margin: 0 !important;
}

.project-content .gallery .gallery-icon {
  width: 100%;
}

.project-content .gallery .gallery-icon a {
  display: block;
  width: 100%;
  height: 100%;
}

.project-content .gallery .gallery-icon img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-content .gallery .gallery-item.landscape {
  grid-column: span 2;
}

.project-content .gallery .gallery-item.portrait img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.project-content .gallery .gallery-item.landscape img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-content .gallery .gallery-icon a:hover img {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .project-content .gallery {
    grid-template-columns: 1fr;
  }

  .project-content .gallery .gallery-item.landscape {
    grid-column: span 1;
  }
}

.before-after-prev,
.before-after-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 50px;
  height: 50px;
  border-radius: 50%;

  background: #c9a19b;
  color: #fff;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: 0.25s ease;
}

.before-after-prev {
  left: 20px;
}

.before-after-next {
  right: 20px;
}

.before-after-prev:hover,
.before-after-next:hover {
  transform: translateY(-50%) scale(1.08);
}
.before-after-pagination {
    text-align: center;
}
.swiper-pagination-bullet-active {
    background: #c9a19b;
    width: 10px;
    height: 10px;
}
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
}

.floating-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;

  padding: 14px 22px;
  background: #c9a19b;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;

  box-shadow: 0 10px 25px rgba(0,0,0,0.2);

  animation: pulse 2s infinite;
}

/* hover (чтоб не бесило) */
.floating-btn:hover {
  animation: none;
  transform: scale(1.05);
}

/* Пульсация */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201,161,155, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(201,161,155, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201,161,155, 0);
  }
}

@media (max-width: 768px) {
  .floating-btn {
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    width: max-content;
  }


@keyframes pulse {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(201,161,155, 0.7);
  }
  70% {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 0 15px rgba(201,161,155, 0);
  }
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(201,161,155, 0);
  }
}

}