/* Padel landing — в стиле школы тенниса Mr.Pushkin */
.padel {
  --padel-lime: #cfef00;
  --padel-green: #99c93c;
  --padel-dark: #282828;
  --padel-ink: #000;
  --padel-muted: #555;
  --padel-cream: #f7f5eb;
  --padel-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--padel-ink);
  font-family: GothamPro, Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.55;
  background: #fff;
  overflow: clip;
  width: 100%;
  max-width: none;
}

.padel *,
.padel *::before,
.padel *::after {
  box-sizing: border-box;
}

.padel-wrap {
  width: min(1300px, calc(100% - 60px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Badge — как в школе */
.padel-badge {
  border: 1px solid #888;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin-bottom: 1.6rem;
}

.padel-badge span {
  font-family: GothamPro, Helvetica, sans-serif;
  font-size: 1.4rem;
  color: #888;
  padding: 0.8rem 2rem;
  font-weight: normal;
}

.padel-badge--light {
  border-color: rgba(255, 255, 255, 0.45);
}

.padel-badge--light span {
  color: rgba(255, 255, 255, 0.75);
}

.padel-badge--on-green {
  border-color: rgba(0, 0, 0, 0.25);
}

.padel-badge--on-green span {
  color: rgba(0, 0, 0, 0.55);
}

/* Titles — шрифт it (intro-black), как у школы */
.padel-title {
  margin: 0 0 2rem;
  font-family: it, GothamB, sans-serif;
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  font-weight: bolder;
  line-height: 1.05;
}

.padel-title--light {
  color: #fff;
}

.padel-text {
  margin: 0 0 1.4rem;
  max-width: 36em;
  font-family: GothamPro, Helvetica, sans-serif;
  font-size: 1.6rem;
  color: var(--padel-muted);
}

.padel-text--wide {
  max-width: 42em;
}

.padel-text--light {
  color: rgba(255, 255, 255, 0.78);
}

/* Кнопка — как .school-btn */
.padel-btn {
  max-width: 30rem;
}

.padel-btn a {
  cursor: pointer;
  font-weight: 700;
  font-family: Helvetica, sans-serif;
  transition: all 0.2s;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--padel-lime);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  color: #282828;
  text-decoration: none !important;
}

.padel-btn a:hover {
  background: #c4e201;
  color: #282828;
  text-decoration: none !important;
}

.padel-btn a > svg {
  width: 34px;
  height: 34px;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out;
  flex-shrink: 0;
}

.padel-btn a:hover svg {
  transform: translateX(5px);
}

.padel-btn a:active {
  transform: scale(0.95);
}

/* Телефон — как .school-phone */
.padel-phone a {
  color: #000;
  font-weight: bold;
  font-size: 2rem;
  font-family: GothamB, GothamPro, sans-serif;
  transition: color 0.4s linear;
  text-decoration: none !important;
}

.padel-phone a:hover {
  color: #444;
}

.padel-phone--light a {
  color: #fff;
}

.padel-phone--light a:hover {
  color: var(--padel-lime);
}

/* Reveal */
.padel-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--padel-ease), transform 0.8s var(--padel-ease);
}

.padel-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Wave shapes — упрощённый shape-round школы */
.padel-shape {
  position: absolute;
  left: 0;
  width: 100%;
  height: 48px;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.padel-shape::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 140%;
  height: 400px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.padel-shape--top {
  top: 0;
}

.padel-shape--top::after {
  top: 0;
  transform: translate(-50%, -88%);
}

.padel-shape--bottom {
  bottom: 0;
}

.padel-shape--bottom::after {
  bottom: 0;
  transform: translate(-50%, 88%);
}

.padel-shape--white::after {
  background: #fff;
}

.padel-shape--dark::after {
  background: var(--padel-dark);
}

.padel-shape--green::after {
  background: var(--padel-green);
}

/* Hero */
.padel-hero {
  position: relative;
  width: 100%;
  min-height: 0;
  height: clamp(420px, 58vh, 580px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: var(--padel-dark);
}

.padel-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--padel-dark);
  background-image: var(--padel-hero-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: padel-hero-ken 18s var(--padel-ease) both;
}

.padel-hero__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  pointer-events: none;
}

@keyframes padel-hero-ken {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.padel-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(40, 40, 40, 0.1) 0%, rgba(40, 40, 40, 0.35) 45%, rgba(40, 40, 40, 0.88) 100%),
    linear-gradient(90deg, rgba(40, 40, 40, 0.5) 0%, rgba(40, 40, 40, 0.08) 55%, transparent 100%);
  pointer-events: none;
}

.padel-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1300px, calc(100% - 60px));
  margin: 0 auto;
  padding: 40px 0 36px;
}

.padel-hero .padel-badge {
  border-color: rgba(255, 255, 255, 0.45);
}

.padel-hero .padel-badge span {
  color: rgba(255, 255, 255, 0.85);
}

.padel-hero__title {
  margin: 0 0 1.4rem;
  font-family: it, GothamB, sans-serif;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  font-weight: bolder;
  line-height: 0.95;
}

.padel-hero__lead {
  margin: 0 0 2rem;
  max-width: 28em;
  font-family: GothamPro, Helvetica, sans-serif;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.88);
}

.padel-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

/* Price — зелёная секция + белая панель, как программы школы */
.padel-price {
  position: relative;
  padding: 6rem 0;
  background: var(--padel-green);
}

.padel-price__panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  background: #fff;
  border-radius: 2.6rem;
  padding: 3.5rem 4rem;
}

.padel-price__offer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.padel-price__circle {
  width: clamp(18rem, 22vw, 24rem);
  height: clamp(18rem, 22vw, 24rem);
  border-radius: 50%;
  background: var(--padel-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  box-shadow: 0 1.2rem 0 var(--padel-lime);
}

.padel-price__amount {
  font-family: it, GothamB, sans-serif;
  font-size: clamp(4rem, 6vw, 5.6rem);
  font-weight: bolder;
  letter-spacing: -0.02em;
}

.padel-price__rub {
  font-family: it, GothamB, sans-serif;
  font-size: 2.2rem;
  font-weight: bolder;
  color: var(--padel-lime);
  margin-top: 0.2rem;
}

.padel-price__per {
  margin-top: 0.8rem;
  font-family: GothamPro, Helvetica, sans-serif;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.padel-price__info {
  min-width: 0;
}

.padel-price__title {
  margin: 0 0 2rem;
  font-family: it, GothamB, sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  font-weight: bolder;
  line-height: 1.05;
  color: var(--padel-dark);
}

.padel-price__points {
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.padel-price__points li {
  position: relative;
  padding-left: 2.4rem;
  font-family: GothamPro, Helvetica, sans-serif;
  font-size: 1.6rem;
  color: #444;
  line-height: 1.4;
}

.padel-price__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--padel-lime);
}

.padel-price__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

/* About */
.padel-about {
  padding: 8rem 0;
  background: #fff;
}

.padel-about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5rem;
  align-items: center;
}

.padel-about__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--padel-dark);
  border-radius: 2.6rem;
}

.padel-about__visual img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transition: transform 1.2s var(--padel-ease);
}

.padel-about__visual:hover img {
  transform: scale(1.04);
}

/* Rent — тёмная секция как .dark школы */
.padel-rent {
  position: relative;
  padding: 9rem 0 8rem;
  background: var(--padel-dark);
  color: #fff;
}

.padel-rent__list {
  list-style: none;
  margin: 2.4rem 0 3.2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
}

.padel-rent__list li {
  position: relative;
  padding-left: 2.2rem;
  font-family: GothamB, GothamPro, sans-serif;
  font-size: 1.6rem;
  color: #fff;
}

.padel-rent__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--padel-lime);
}

.padel-rent__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.padel-rent__strip img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 2rem;
}

/* Gallery */
.padel-gallery {
  padding: 8rem 0 4rem;
  background: #fff;
}

.padel-gallery .padel-wrap {
  margin-bottom: 3rem;
}

.padel-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 5rem;
}

.padel-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--padel-dark);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 1.6rem;
}

.padel-gallery__item img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--padel-ease), opacity 0.35s ease;
}

.padel-gallery__item:hover img,
.padel-gallery__item:focus-visible img {
  transform: scale(1.05);
  opacity: 0.92;
}

/* CTA — зелёная секция как .green школы */
.padel-cta {
  position: relative;
  padding: 9rem 0 8rem;
  background: var(--padel-green);
  text-align: center;
}

.padel-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.padel-cta .padel-text {
  margin-left: auto;
  margin-right: auto;
  color: rgba(0, 0, 0, 0.7);
}

.padel-cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.padel-map {
  margin-top: 0;
}

/* Lightbox */
.padel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 14, 0.92);
  padding: 48px 64px;
}

.padel-lightbox[hidden] {
  display: none;
}

.padel-lightbox__img {
  max-width: min(90vw, 720px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.padel-lightbox__close,
.padel-lightbox__nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.padel-lightbox__close {
  top: 16px;
  right: 20px;
  font-size: 42px;
  opacity: 0.8;
}

.padel-lightbox__close:hover {
  opacity: 1;
}

.padel-lightbox__nav {
  top: 50%;
  font-size: 56px;
  transform: translateY(-50%);
  opacity: 0.75;
  padding: 12px;
}

.padel-lightbox__nav:hover {
  opacity: 1;
}

.padel-lightbox__nav--prev {
  left: 12px;
}

.padel-lightbox__nav--next {
  right: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  .padel-price__panel {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding: 2.4rem;
    text-align: center;
  }

  .padel-price__points {
    text-align: left;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .padel-price__actions {
    justify-content: center;
  }

  .padel-about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .padel-about__visual {
    max-width: 420px;
    margin: 0 auto;
  }

  .padel-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .padel {
    font-size: 1.2rem;
  }

  .padel-wrap,
  .padel-hero__inner {
    width: calc(100% - 3rem);
  }

  .padel-hero {
    height: clamp(440px, 68vh, 520px);
  }

  .padel-hero__title {
    font-size: 3.6rem;
  }

  .padel-hero__lead,
  .padel-text,
  .padel-price__note {
    font-size: 1.2rem;
  }

  .padel-title {
    font-size: 3rem;
  }

  .padel-badge span {
    font-size: 1.2rem;
    padding: 0.5rem 1.2rem;
  }

  .padel-phone a {
    font-size: 1.6rem;
  }

  .padel-hero__actions,
  .padel-cta__row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.4rem;
  }

  .padel-btn {
    max-width: none;
  }

  .padel-btn a {
    width: 100%;
    justify-content: center;
  }

  .padel-price,
  .padel-about,
  .padel-rent,
  .padel-gallery,
  .padel-cta {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .padel-price__title {
    font-size: 2.8rem;
  }

  .padel-price__points li {
    font-size: 1.2rem;
  }

  .padel-price__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .padel-rent__strip {
    grid-template-columns: 1fr 1fr;
  }

  .padel-rent__strip img:last-child {
    display: none;
  }

  .padel-gallery__grid {
    gap: 0.6rem;
    width: calc(100% - 2rem);
  }

  .padel-lightbox {
    padding: 56px 16px;
  }

  .padel-lightbox__nav {
    font-size: 40px;
  }
}

/* Overrides глобальных img темы */
body.page-template-templates-padel-php .padel {
  width: 100%;
  max-width: none;
}

body.page-template-templates-padel-php .padel img {
  max-width: none !important;
}

body.page-template-templates-padel-php .padel-hero__img,
body.page-template-templates-padel-php .padel-about__visual img,
body.page-template-templates-padel-php .padel-rent__strip img,
body.page-template-templates-padel-php .padel-gallery__item img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}
