/* ===================================================
   OCHKI — Beauty Autopilot Template
   Девушка в очках · светло-серый · строгая элегантность
   =================================================== */

:root {
  --bg: #f0efed;
  --bg-alt: #e8e7e4;
  --bg-card: #ffffff;
  --asphalt: #3d3d3d;
  --asphalt-light: #5a5a5a;
  --asphalt-muted: #8a8a8a;

  --wine: #7a3e4a;
  --wine-light: #b2808a;
  --wine-pale: #f0e4e6;

  --text: #1c1c1e;
  --text-secondary: #5a5a5e;
  --text-muted: #9a9a9e;
  --text-dim: #c0c0c0;
  --border: #dddcd9;
  --border-light: #e6e5e2;

  --shadow: rgba(0,0,0,0.04);
  --shadow-strong: rgba(0,0,0,0.08);

  --font-sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;

  --radius: 0;
  --radius-sm: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

::selection { background: var(--wine); color: #fff; }
a { color: var(--asphalt); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }

/* ----- Header — strict horizontal line ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(240, 239, 237, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand-mark {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
}

.nav-links a {
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active {
  color: var(--text);
  text-decoration: line-through;
  text-decoration-color: var(--wine);
  text-decoration-thickness: 2px;
}

/* ----- Hero — minimal with glasses accent ----- */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 5rem 2rem 3rem;
  position: relative;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero { min-height: auto; }
}

.hero-text { max-width: 480px; }

.hero-eyebrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero h1 .highlight {
  color: var(--wine);
  font-style: italic;
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Glasses visual — abstract geometric */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.glasses-icon {
  position: relative;
  width: 140px;
  height: 80px;
}

.glasses-icon .lens {
  width: 60px;
  height: 60px;
  border: 3px solid var(--asphalt);
  border-radius: 50%;
  position: absolute;
  top: 0;
}

.glasses-icon .lens.left {
  left: 0;
}

.glasses-icon .lens.right {
  right: 0;
}

.glasses-icon .bridge {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--asphalt);
}

.glasses-icon .arm-l,
.glasses-icon .arm-r {
  position: absolute;
  top: 22px;
  width: 20px;
  height: 3px;
  background: var(--asphalt);
}

.glasses-icon .arm-l { left: -18px; transform: rotate(-8deg); transform-origin: right; }
.glasses-icon .arm-r { right: -18px; transform: rotate(8deg); transform-origin: left; }

/* ----- Buttons — strict, squared ----- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--asphalt);
  background: transparent;
  color: var(--asphalt);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.2s;
}

.button:hover {
  background: var(--asphalt);
  color: #fff;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.2s;
}

.ghost-button:hover {
  border-color: var(--asphalt);
  color: var(--asphalt);
}

/* ----- Section titles — strict ----- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  margin-bottom: 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.section-header .label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: 3px;
  white-space: nowrap;
}

.section-header .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-top: 0.5rem;
}

/* ========== GALLERY FIRST — masonry-like ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  grid-auto-rows: 280px;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: rgba(240, 239, 237, 0.9);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

/* ========== SERVICES — minimalist list ========== */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}

.service-row:hover {
  background: var(--bg-alt);
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
  .service-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
}

.service-row h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.service-row .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--asphalt);
  font-family: var(--font-sans);
}

.service-row .duration {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.service-row .button-sm {
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 0.2s;
}

.service-row .button-sm:hover {
  border-color: var(--asphalt);
  color: var(--asphalt);
  background: var(--bg-alt);
  opacity: 1;
}

/* ========== TEAM — square, strict ========== */
.team-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.master-card {
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.3s;
}

.master-card picture {
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.master-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.master-card:hover img {
  transform: scale(1.04);
}

.master-card .info {
  padding: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.master-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.master-card .specialty {
  font-size: 0.7rem;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.master-card .bio {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== CONTACTS — strict split ========== */
.contacts-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contacts-split { grid-template-columns: 1fr; }
}

.contact-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-block {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.25rem;
}

.contact-block .tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.contact-block .val {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.contact-block .val a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--wine-pale);
  text-underline-offset: 3px;
}

.contact-block .val a:hover {
  text-decoration-color: var(--wine);
}

.qr-frame {
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  background: var(--bg-card);
}

.qr-frame img {
  margin: 0 auto 1rem;
}

.qr-frame figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  background: var(--bg);
}

.footer-inner p {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.footer-inner .brand {
  color: var(--asphalt);
}

/* ========== SERVICE DETAIL ========== */
.detail-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 2rem 3rem;
}

.detail-wrap h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.detail-wrap picture {
  display: block;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.detail-wrap picture img {
  width: 100%;
}

.detail-wrap .meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-wrap .meta strong {
  color: var(--asphalt);
  font-weight: 700;
}

.detail-wrap .desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .section-header { flex-wrap: wrap; }
  .section-header h2 { font-size: 1.5rem; }
  .glasses-icon { transform: scale(0.7); }
}
