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

:root {
  --radius-xl: 18px;
  --radius-xxl: 28px;
  --puzco-dark: #0B1020;
  --puzco-blue: #2F6BFF;
  --puzco-cyan: #5AD5FF;
  --puzco-gray: #8A95A6;
  --puzco-light: #F4F7FB;
  --puzco-grid: rgba(15, 30, 60, 0.08);
}

body {
  background-color: #FFFFFF;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(47, 107, 255, 0.12), transparent 60%);
  background-attachment: fixed;
}

.puzco-badge {
  display: inline-block;
  padding: .35em .7em;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(47, 107, 255, 0.12);
  color: var(--puzco-blue);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.puzco-card {
  border: 1px solid #E1E7F0;
  border-radius: var(--radius-xl);
  padding: 26px;
  background: #FFFFFF;
  box-shadow: 0 16px 60px rgba(10, 20, 40, 0.06);
}

.puzco-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(15, 30, 60, 0.06);
  overflow: visible;
}

.puzco-header-inner {
  width: 100%;
}

.puzco-header-inner > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.puzco-header-top {
  width: 100%;
  padding: 4px 0 2px;
}

.puzco-header-nav {
  width: 100%;
  padding: 0 0 4px;
}

.puzco-header-controls {
  gap: 10px;
}

.puzco-mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 30, 60, 0.14);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--puzco-dark);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.puzco-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(11, 16, 32, 0.4);
  backdrop-filter: blur(6px);
  padding: 14px;
}

.puzco-mobile-menu[hidden] {
  display: none !important;
}

.puzco-mobile-menu__panel {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 54px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.puzco-mobile-menu__panel a {
  text-decoration: none;
  color: var(--puzco-dark);
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 10px;
}

.puzco-mobile-menu__panel a:hover,
.puzco-mobile-menu__panel a:focus {
  background: rgba(47, 107, 255, 0.12);
  color: var(--puzco-blue);
}

.puzco-mobile-menu__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 30, 60, 0.14);
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
}

.puzco-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.puzco-logo {
  display: block;
  height: 58px;
  width: auto;
}

.puzco-header .wp-block-navigation__container {
  gap: 8px;
  font-weight: 600;
  flex-wrap: nowrap;
}

.puzco-header .wp-block-navigation a {
  text-decoration: none;
  color: var(--puzco-dark);
}

.puzco-header .wp-block-navigation-item__content {
  padding: 0.5em 0.9em;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}

.puzco-header .wp-block-navigation-item__content:hover,
.puzco-header .wp-block-navigation-item__content:focus {
  background: rgba(47, 107, 255, 0.12);
  color: var(--puzco-blue);
}

.puzco-header .wp-block-button__link {
  background: #059669;
  color: #FFFFFF;
  padding: 0.55em 1.05em;
  border-radius: 999px;
}

.puzco-header .wp-block-button__link:hover,
.puzco-header .wp-block-button__link:focus {
  background: #047857;
}

.puzco-home {
  position: relative;
  margin-block-start: 0 !important;
}

.wp-site-blocks > .puzco-home {
  margin-block-start: 0 !important;
}

.puzco-hero-slider {
  position: relative;
  min-height: calc(100vh - 96px);
  border-radius: 0;
  overflow: hidden;
  background: url("/wp-content/themes/puzco-ru-v01/img/slider_bg_v1_2048x965.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #0B1020;
  margin-bottom: 80px;
  z-index: 0;
}

.puzco-hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(9, 24, 66, 0.75); */
  z-index: 1;
}

.puzco-hero-track,
.puzco-hero-nav,
.puzco-hero-arrow {
  position: relative;
  z-index: 2;
}

.puzco-home .alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


.puzco-hero-track {
  position: relative;
  height: 100%;
}

.puzco-hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 80px 64px;
  opacity: 0;
  transform: translateX(12%);
  pointer-events: none;
  transition: opacity .55s ease, transform .55s ease;
}

.puzco-hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.puzco-hero-slide.is-enter-from-right {
  transform: translateX(18%);
}

.puzco-hero-slide.is-enter-from-left {
  transform: translateX(-18%);
}

.puzco-hero-slide.is-leave-to-left {
  opacity: 0;
  transform: translateX(-18%);
}

.puzco-hero-slide.is-leave-to-right {
  opacity: 0;
  transform: translateX(18%);
}

.puzco-hero-lead {
  font-size: clamp(1rem, 1vw + 0.8rem, 1.25rem);
  color: rgba(11, 16, 32, 0.78);
  margin: 18px 0 28px;
}

.puzco-hero-visual {
  height: 420px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 30%, rgba(90, 213, 255, 0.5), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(47, 107, 255, 0.5), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 60px rgba(90, 213, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.puzco-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.puzco-hero-actions .wp-block-button__link {
  background: var(--puzco-dark);
  color: #FFFFFF;
  border-radius: 999px;
}

.puzco-hero-actions .is-outline .wp-block-button__link {
  background: transparent;
  color: var(--puzco-dark);
  border: 1px solid rgba(11, 16, 32, 0.35);
}

.puzco-hero-nav {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 4;
}

.puzco-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 16, 32, 0.5);
  background: transparent;
  cursor: pointer;
}

.puzco-hero-dot.is-active {
  background: #0B1020;
}

.puzco-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(11, 16, 32, 0.35);
  background: rgba(255, 255, 255, 0.7);
  color: #0B1020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  z-index: 50;
  pointer-events: auto;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(11, 16, 32, 0.18);
}

.puzco-hero-slider .puzco-hero-arrow {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.puzco-hero-arrow:hover {
  background: rgba(11, 16, 32, 0.4);
}

.puzco-hero-arrow.is-prev {
  left: 24px;
}

.puzco-hero-arrow.is-next {
  right: 24px;
}

.puzco-services {
  margin-bottom: 80px;
}

.puzco-service-card h3 {
  margin-top: 0;
}

.puzco-service-card .wp-block-button__link {
  margin-top: 12px;
  background: var(--puzco-blue);
}

.puzco-ai-section {
  margin-bottom: 80px;
}

.puzco-ai-section .puzco-card {
  background: var(--puzco-light);
}

.puzco-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--puzco-dark);
}

.puzco-cta {
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.1), rgba(90, 213, 255, 0.2));
  border-radius: var(--radius-xxl);
  padding: 48px 36px;
  text-align: center;
  margin-bottom: 80px;
}

.puzco-cta .wp-block-button__link {
  background: var(--puzco-dark);
  color: #FFFFFF;
}

.puzco-section {
  margin-bottom: 80px;
}

.puzco-note {
  color: var(--puzco-gray);
}

.puzco-aiop-hero-visual,
.puzco-aiop-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 30, 60, 0.12);
  box-shadow: 0 20px 60px rgba(10, 20, 40, 0.12);
}

.puzco-aiop-hero-visual img,
.puzco-aiop-visual img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.puzco-aiop-hero-visual img {
  aspect-ratio: 4 / 3;
}

.puzco-aiop-visual img {
  aspect-ratio: 3 / 2;
}

.puzco-aiop-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 12px;
  margin-left: 30px;
}

.puzco-aiop-feature,
.puzco-aiop-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.puzco-aiop-shot {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 30, 60, 0.1);
  background: #FFFFFF;
  box-shadow: 0 16px 40px rgba(10, 20, 40, 0.08);
}

.puzco-aiop-shot img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.puzco-aiop-shot figcaption {
  margin-top: 10px;
  color: var(--puzco-gray);
  font-size: 0.95rem;
}

.puzco-sitedev-hero-visual,
.puzco-sitedev-process-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 30, 60, 0.12);
  box-shadow: 0 20px 60px rgba(10, 20, 40, 0.12);
}

.puzco-sitedev-hero-visual img,
.puzco-sitedev-process-visual img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.puzco-sitedev-hero-visual img {
  aspect-ratio: 4 / 3;
}

.puzco-sitedev-process-visual {
  margin-bottom: 24px;
}

.puzco-sitedev-process-visual img {
  aspect-ratio: 16 / 6;
}

.puzco-sitedev-icon {
  width: 160px;
  height: 160px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.puzco-sitedev-advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.puzco-appdev-hero-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 30, 60, 0.12);
  box-shadow: 0 20px 60px rgba(10, 20, 40, 0.12);
}

.puzco-appdev-hero-visual img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.puzco-appdev-icon {
  width: 316px;
  height: 211px;
  display: block;
  margin: 0 auto 12px;
  border-radius: 5%;
}

.puzco-appdev-benefits,
.puzco-appdev-types,
.puzco-appdev-steps,
.puzco-appdev-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.puzco-appdev-pricing h3 {
  margin-top: 0;
}

.puzco-sitedev-audience {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(10, 20, 40, 0.08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  border: 1px solid rgba(15, 30, 60, 0.08);
  background: #FFFFFF;
}

.puzco-sitedev-audience:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(10, 20, 40, 0.14);
  border-color: rgba(47, 107, 255, 0.35);
}

.puzco-sitedev-step {
  text-align: center;
}

.puzco-sitedev-price h3 {
  margin-top: 0;
}

.puzco-sitedev-review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.puzco-sitedev-review-card {
  scroll-snap-align: start;
  display: grid;
  gap: 8px;
}

.puzco-sitedev-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.puzco-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2147482000;
  padding: 24px;
}

.puzco-modal:target {
  display: flex;
}

.puzco-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 32, 0.55);
  backdrop-filter: blur(6px);
}

.puzco-modal__dialog {
  position: relative;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px;
  width: min(560px, 100%);
  box-shadow: 0 20px 60px rgba(10, 20, 40, 0.2);
  z-index: 1;
}

.puzco-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(15, 30, 60, 0.12);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--puzco-dark);
  background: #FFFFFF;
}

.puzco-modal__form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.puzco-modal__form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.puzco-modal__form input,
.puzco-modal__form textarea {
  border: 1px solid rgba(15, 30, 60, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.puzco-modal__form button {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--puzco-blue);
  color: #FFFFFF;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1024px){
  .puzco-sitedev-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .puzco-sitedev-advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .puzco-appdev-benefits,
  .puzco-appdev-types,
  .puzco-appdev-steps,
  .puzco-appdev-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px){
  .puzco-section {
    margin-bottom: 56px;
  }

  .puzco-aiop-icon {
    width: 160px;
    height: 160px;
  }

  .puzco-sitedev-icon {
    width: 200px;
    height: 200px;
  }

  .puzco-sitedev-audience-grid {
    grid-template-columns: 1fr;
  }

  .puzco-sitedev-advantages-grid {
    grid-template-columns: 1fr;
  }

  .puzco-appdev-benefits,
  .puzco-appdev-types,
  .puzco-appdev-steps,
  .puzco-appdev-pricing {
    grid-template-columns: 1fr;
  }

  .puzco-appdev-icon {
    width: 140px;
    height: 140px;
  }
}

/* Tablet/mobile: hide row menu, use hamburger only */
@media (max-width: 1024px){
  .puzco-header-nav,
  .puzco-header-nav .wp-block-navigation,
  .puzco-header-nav .wp-block-navigation__container {
    display: none !important;
  }

  .puzco-mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .puzco-header .wp-block-navigation__responsive-container-open {
    display: none !important;
  }
}


/* ===== Mobile refinements ===== */
@media (max-width: 768px){
  /* Global horizontal padding so текст не прилипает к краям */
  .wp-site-blocks,
  .is-layout-constrained,
  body .wp-block-group:not(.alignwide):not(.alignfull){
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Герой меньше по вертикали на мобильных */
  .puzco-hero-slider {
    min-height: calc(100vh - 64px);
    margin-bottom: 48px;
  }

  .puzco-logo {
    height: 49px;
  }

  .puzco-header-top {
    padding: 3px 0 2px;
  }

  /* Карточки и сетки — адекватные отступы */
  .puzco-card { padding: 18px; }
  .wp-block-columns { gap: 16px; }

  /* Кнопки — на всю ширину по умолчанию */
  .wp-block-buttons > .wp-block-button .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .puzco-header .wp-block-buttons > .wp-block-button .wp-block-button__link {
    width: auto;
  }

  .puzco-hero-slide {
    grid-template-columns: 1fr;
    padding: 40px 18px 76px;
  }

  .puzco-hero-visual {
    height: clamp(160px, 30vh, 260px);
  }

  .puzco-hero-nav {
    bottom: 20px;
  }

  .puzco-hero-arrow {
    width: 38px;
    height: 38px;
  }

  .puzco-hero-arrow.is-prev {
    left: 16px;
  }

  .puzco-hero-arrow.is-next {
    right: 16px;
  }

  /* Заголовки немного меньше на мобильных */
  h1 { font-size: clamp(24px, 6.2vw, 34px); line-height: 1.15; }
  h2 { font-size: clamp(20px, 5.4vw, 28px); line-height: 1.2; }
  h3 { font-size: clamp(18px, 4.8vw, 24px); }
  h4 { font-size: clamp(16px, 4.4vw, 20px); }
}
