/*
Theme Name: Prime Detail V2
Author: Prime Detail
Description: Блоковая тема для лендинга студии автодетейлинга.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: prime-detail
*/

:root { color-scheme: dark; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

.pd-header { position: absolute; z-index: 10; top: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(4,5,6,.88), transparent); }
.pd-header__inner { min-height: 88px; }
.pd-brand { gap: .2rem !important; align-items: flex-start !important; }
.pd-brand .pd-logo { margin: 0; line-height: 1; }
.pd-logo { letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pd-logo strong { color: var(--wp--preset--color--accent); }
.pd-nav a { text-decoration: none; color: #e7e5e0; font-size: .88rem; }
.pd-phone { white-space: nowrap; }

.pd-hero { min-height: 790px; display: flex; align-items: center; position: relative; background-image: linear-gradient(90deg, rgba(7,9,10,.98) 0%, rgba(7,9,10,.84) 38%, rgba(7,9,10,.15) 72%), url('assets/images/hero-detailing.webp'); background-size: cover; background-position: center; }
.pd-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, #0b0d0f); pointer-events: none; }
.pd-hero > * { position: relative; z-index: 1; }
.pd-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .74rem; color: var(--wp--preset--color--accent); }
.pd-hero h1 { max-width: 780px; font-size: clamp(3rem, 6.6vw, 6.3rem); margin: .55rem 0 1.4rem; }
.pd-hero__lead { color: #c3c5c6; max-width: 600px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.pd-partner { display: inline-flex; gap: .75rem; align-items: center; border: 1px solid rgba(255,255,255,.18); background: rgba(14,16,18,.72); backdrop-filter: blur(12px); padding: .7rem 1rem; border-radius: 999px; font-size: .76rem; color: #d0d1d1; }
.pd-partner::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--accent); box-shadow: 0 0 15px rgba(237,116,29,.75); }
.pd-partner--header { padding: 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; font-size: .62rem; letter-spacing: .035em; color: #aeb0b1; white-space: nowrap; }
.pd-partner--header::before { display: none; }
.pd-outline .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.32); }

.pd-section { padding: clamp(5rem, 9vw, 8rem) 1.25rem; }
.pd-section--surface { background: #111417; }
.pd-section-heading { max-width: 760px; margin-bottom: 3.2rem; }
.pd-section-heading h2 { font-size: clamp(2.35rem, 4.2vw, 4.5rem); margin: .65rem 0 1rem; }
.pd-muted { color: var(--wp--preset--color--muted); }

.pd-feature { overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: linear-gradient(145deg, #1b1f23, #101214); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.pd-feature__media { min-height: 520px; background: linear-gradient(0deg, rgba(10,12,13,.25), transparent), url('assets/images/metal-composite.webp') center/cover; }
.pd-feature__content { padding: clamp(2rem, 5vw, 4.5rem); }
.pd-number { color: var(--wp--preset--color--accent); font-size: .78rem; letter-spacing: .12em; font-weight: 800; }
.pd-badge { display: inline-block; padding: .35rem .65rem; border-radius: 999px; color: #ffb37b; background: rgba(237,116,29,.12); border: 1px solid rgba(237,116,29,.3); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.pd-benefits { list-style: none; padding: 0; }
.pd-benefits li { padding: .7rem 0 .7rem 1.6rem; position: relative; border-bottom: 1px solid rgba(255,255,255,.08); }
.pd-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--wp--preset--color--accent); }

.pd-services { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pd-card { min-height: 280px; padding: 2rem; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: #171a1d; transition: transform .25s ease, border-color .25s ease; }
.pd-card:hover { transform: translateY(-5px); border-color: rgba(237,116,29,.55); }
.pd-card h3 { margin-top: 3.5rem; }

.pd-gallery { display: grid !important; grid-template-columns: 1.35fr .65fr .65fr; grid-template-rows: 250px 250px; gap: .75rem; }
.pd-gallery > .wp-block-group { border-radius: 10px; overflow: hidden; min-height: 250px; background-image: linear-gradient(145deg, rgba(237,116,29,.1), rgba(255,255,255,.02)), url('assets/images/hero-detailing.webp'); background-size: cover; }
.pd-gallery > .wp-block-group:nth-child(1) { grid-row: 1 / 3; background-position: 68% center; }
.pd-gallery > .wp-block-group:nth-child(2) { background-image: url('assets/images/metal-composite.webp'); background-position: center; }
.pd-gallery > .wp-block-group:nth-child(3) { background-position: 35% center; filter: saturate(.7); }
.pd-gallery > .wp-block-group:nth-child(4) { grid-column: 2 / 4; background-image: linear-gradient(90deg, rgba(10,12,13,.15), rgba(237,116,29,.12)), url('assets/images/metal-composite.webp'); background-position: center 62%; }

.pd-location { margin-bottom: 1.25rem; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #15181b; }
.pd-location__info { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 4vw, 3.5rem); }
.pd-location__info h2 { margin-top: .4rem; }
.pd-location__info a { color: var(--wp--preset--color--accent); font-weight: 700; text-decoration: none; }
.pd-location__map { min-height: 430px; }
.pd-location__map .wp-block-html { height: 100%; margin: 0; }
.pd-location__map iframe { display: block; width: 100%; height: 100%; min-height: 430px; border: 0; filter: grayscale(.75) saturate(.75) contrast(1.05); }

.pd-cta { position: relative; overflow: hidden; border-radius: 18px; padding: clamp(2.3rem, 6vw, 5rem); background: linear-gradient(125deg, #f07b25, #bd4b0a); color: #0c0e10; }
.pd-cta::after { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -170px; border: 1px solid rgba(0,0,0,.2); border-radius: 50%; box-shadow: 0 0 0 60px rgba(0,0,0,.04), 0 0 0 120px rgba(0,0,0,.03); }
.pd-cta .wp-block-button__link { background: #0b0d0f; color: #fff; }
.pd-footer { border-top: 1px solid rgba(255,255,255,.09); }

@media (max-width: 900px) {
  .pd-header .pd-nav { display: none; }
  .pd-hero { min-height: 720px; background-position: 62% center; }
  .pd-services { grid-template-columns: 1fr; }
  .pd-feature > .wp-block-columns { display: block; }
  .pd-feature__media { min-height: 360px; }
  .pd-location > .wp-block-columns { display: block; }
  .pd-location__map, .pd-location__map iframe { min-height: 350px; }
  .pd-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 330px 220px 220px; }
  .pd-gallery > .wp-block-group:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .pd-gallery > .wp-block-group:nth-child(4) { grid-column: 1 / 3; }
}

@media (max-width: 600px) {
  .pd-header__inner { min-height: 70px; }
  .pd-header .pd-phone { font-size: .75rem !important; }
  .pd-partner--header { font-size: .53rem; letter-spacing: 0; }
  .pd-hero { min-height: 750px; align-items: flex-end; padding-bottom: 5rem !important; background-image: linear-gradient(0deg, rgba(7,9,10,.98) 12%, rgba(7,9,10,.68) 70%, rgba(7,9,10,.28)), url('assets/images/hero-detailing.webp'); background-position: 67% center; }
  .pd-hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .pd-hero .wp-block-buttons { gap: .65rem; }
  .pd-hero .wp-block-button { width: 100%; }
  .pd-hero .wp-block-button__link { width: 100%; }
  .pd-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .pd-feature__media { min-height: 270px; }
  .pd-gallery { display: block !important; }
  .pd-gallery > .wp-block-group { margin-bottom: .75rem; min-height: 260px; }
  .pd-location { border-radius: 10px; }
  .pd-location__map, .pd-location__map iframe { min-height: 300px; }
  .pd-cta { border-radius: 10px; }
}
