﻿/* ============ IRTANail — Стили ============ */
:root {
  --bg: #fffdfb;
  --bg-soft: #faf6f2;
  --ink: #2d2531;
  --muted: #6f6476;
  --line: #eee4ee;
  --brand: #b074a0;
  --brand-deep: #8e547f;
  --brand-soft: #f3e8f7;
  --rose: #e8b4c4;
  --gold: #c9a25f;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(176, 116, 160, .12);
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.section { padding: 96px 0; }

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section__sub { color: var(--muted); max-width: 520px; }
.section__head { margin-bottom: 48px; }
.section__head .section__sub { margin: 0 auto; }
.section .section__head { text-align: center; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(255, 253, 251, .9);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(45, 37, 49, .06);
  padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.nav__logo b { color: var(--brand); }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  transition: color .2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width .25s;
}
.nav__link:hover::after { width: 100%; }
.nav__link:hover { color: var(--brand-deep); }
.nav__cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: var(--brand-deep); transform: translateY(-1px); }

.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: 0;
}
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: 0 10px 30px rgba(176, 116, 160, .35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(176, 116, 160, .45); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn--block { width: 100%; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(253, 246, 242, .94), rgba(255, 253, 251, .98) 60%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.75)),
    url('../img/bg/bg-soft-pastel-v2.jpg') center/cover no-repeat;
  opacity: .55;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero__content {
  position: relative;
  z-index: 1;
  padding: 36px 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.6));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 18px 50px rgba(176,116,160,.12);
  max-width: 620px;
}
.hero__blob { position: absolute; opacity: 0; animation: none; }
.hero__blob--1 { width: 420px; top: -60px; right: -40px; }
.hero__blob--2 { width: 340px; bottom: -80px; left: -90px; animation-delay: -5s; }
.hero__blob--3 { width: 260px; top: 45%; left: 42%; opacity: .25; animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.04); }
}
.hero__sparkles { position: absolute; inset: 0; }
.hero__sparkle {
  position: absolute;
  width: 6px; height: 6px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite;
  opacity: 0;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.6); }
  50% { opacity: .9; transform: scale(1.2); }
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 22px;
}
.hero__eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--brand); }
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero__title span {
  font-style: italic;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.hero__title span::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 10px;
  background: linear-gradient(90deg, rgba(176,116,160,.28), rgba(201,162,95,.28));
  border-radius: 4px;
  z-index: -1;
}
.hero__text { color: var(--muted); font-size: 1.06rem; max-width: 460px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stat b {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.1;
}
.hero__stat span { font-size: .84rem; color: var(--muted); }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__hand {
  position: relative;
  width: min(340px, 90%);
  filter: drop-shadow(0 24px 48px rgba(176,116,160,.28));
  animation: handFloat 7s ease-in-out infinite;
}
@keyframes handFloat {
  0%, 100% { transform: translateY(0) rotate(1.5deg); }
  50% { transform: translateY(-16px) rotate(-1.5deg); }
}
.hero__hand::before {
  content: '';
  position: absolute;
  bottom: -14px; left: 10%; right: 10%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(45,37,49,.18), transparent 70%);
  filter: blur(6px);
  border-radius: 50%;
}
/* ---------- CARDS ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(176,116,160,.35); }

/* ---------- SERVICES ---------- */
.services { background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service { text-align: left; }
.service__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service__icon svg { width: 30px; height: 30px; }
.service__icon--manicure { background: linear-gradient(135deg, #d9a8d2, #b074a0); }
.service__icon--pedicure { background: linear-gradient(135deg, #e8b4c4, #cf8aa0); }
.service__icon--podology { background: linear-gradient(135deg, #c9a25f, #a87f3d); }
.service__icon--care { background: linear-gradient(135deg, #a8c9a2, #7fa878); }
.service__title { font-family: var(--font-title); font-size: 1.5rem; margin-bottom: 10px; }
.service__text { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.service__tag {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
  font-size: .86rem;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- MASTER ---------- */

/* ---------- MASTER PHOTO IMG ---------- */
.master__frame { overflow: hidden; }
.master__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.master__frame:hover .master__photo-img { transform: scale(1.04); }
.master__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.master__photo { display: flex; justify-content: center; }
.master__frame {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 24px 24px 24px 90px;
  background:
    radial-gradient(circle at 30% 25%, #f9e8f3, transparent 55%),
    linear-gradient(160deg, #f6e3ef, #ead0e8);
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.master__monogram {
  font-family: var(--font-title);
  font-size: clamp(6rem, 12vw, 9rem);
  font-weight: 700;
  color: rgba(176, 116, 160, .5);
  letter-spacing: .02em;
  user-select: none;
}
.master__accent {
  position: absolute;
  right: -16px; bottom: -16px;
  width: 70%; height: 70%;
  border: 2px solid var(--brand);
  border-radius: 24px 24px 24px 90px;
  z-index: -1;
  opacity: .5;
  transform: translate(14px, 14px);
}
.master__role {
  color: var(--brand-deep);
  font-weight: 600;
  margin-bottom: 18px;
}
.master__text { color: var(--muted); margin-bottom: 24px; }
.master__list { display: grid; gap: 14px; margin-bottom: 30px; }
.master__list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-size: .96rem;
}
.master__list li::before {
  content: '✦';
  position: absolute; left: 0; top: 0;
  color: var(--brand);
  font-size: 1rem;
}

/* ---------- ABOUT ---------- */
.about__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about__item {}
.about__item b {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--brand-soft);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.about__item b { color: var(--brand); opacity: .45; }
.about__item:hover b { opacity: 1; }
.about__item h3 { font-family: var(--font-title); font-size: 1.35rem; margin-bottom: 8px; }
.about__item p { color: var(--muted); font-size: .94rem; }

/* ---------- PRICES ---------- */
.prices { background: var(--bg-soft); }
.prices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price h3 { font-family: var(--font-title); font-size: 1.6rem; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.price li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.price li:last-child { border-bottom: 0; }
.price li span { color: var(--muted); }
.price li b { color: var(--ink); white-space: nowrap; font-weight: 600; }
.prices__note { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 28px; }

/* ---------- GALLERY STRIP ---------- */
.gallery { padding: 40px 0; }
.gallery__strip { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.gallery__chip {
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: .92rem;
  transition: all .25s;
}
.gallery__chip:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); transform: translateY(-2px); }

/* ---------- CONTACTS ---------- */
.contacts__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: start; }
.contacts__text { color: var(--muted); margin-bottom: 30px; }
.contacts__row { display: grid; gap: 14px; margin-bottom: 26px; }
.contacts__link {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: all .25s;
  font-weight: 500;
}
.contacts__link svg { width: 22px; height: 22px; fill: var(--brand); flex-shrink: 0; }
.contacts__icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; border-radius: 0; display: inline-block; }
.contacts__icon--max { background: transparent; }
.contacts__link:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateX(4px); }
.contacts__hours { background: var(--brand-soft); border-radius: 14px; padding: 18px 22px; color: var(--brand-deep); font-size: .95rem; }
.contacts__hours b { display: block; margin-bottom: 4px; }

.contacts__form { display: grid; gap: 18px; }
.contacts__form h3 { font-family: var(--font-title); font-size: 1.7rem; }
.contacts__form label { display: grid; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.contacts__form input,
.contacts__form select,
.contacts__form textarea {
  font-family: inherit;
  font-size: .98rem;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.contacts__form input:focus,
.contacts__form select:focus,
.contacts__form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(176,116,160,.12);
}
.form__status { font-size: .9rem; text-align: center; min-height: 1.2em; }
.form__status.ok { color: #3f9d5f; }
.form__status.err { color: #c0564a; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #fff; padding: 40px 0; margin-top: 96px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__inner .nav__logo { color: #fff; }
.footer__text, .footer__copy { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer__tel { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.footer__tel:hover { color: var(--rose); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: .95rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  opacity: 0;
  transition: all .35s;
  z-index: 200;
  pointer-events: none;
  max-width: 92vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: repeat(2, 1fr); }
  .prices__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .master__inner, .contacts__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .section__head { text-align: center !important; }
  .section__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__eyebrow { justify-content: center; }
  .master__list { max-width: 520px; margin-left: auto; margin-right: auto; }
  .master__info { text-align: center; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav__menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    box-shadow: -20px 0 50px rgba(45,37,49,.12);
    transition: right .35s;
    z-index: 99;
  }
  .nav__menu.open { right: 0; }
  .nav__burger { display: flex; position: relative; z-index: 101; }
  .services__grid, .about__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__stats { gap: 24px; }
}

/* ---------- HERO: ФОН-ИЗОБРАЖЕНИЕ ---------- */
/* ---------- HERO: ФОТО МАНИКЮРА ---------- */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__photo {
  width: min(420px, 92%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px 24px 24px 90px;
  box-shadow: 0 30px 60px rgba(176, 116, 160, .35);
  animation: handFloat 7s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
.hero__photo::after {
  content: '';
  position: absolute;
  right: -18px; bottom: -18px;
  width: 100%; height: 100%;
  border: 2px solid var(--brand);
  border-radius: 24px 24px 24px 90px;
  z-index: -1;
}

/* ---------- PORTFOLIO ---------- */
.portfolio { background: var(--bg-soft); }
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.portfolio__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(45,37,49,.08);
  transition: transform .35s, box-shadow .35s;
  aspect-ratio: 4 / 5;
}
.portfolio__item:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 50px rgba(176,116,160,.28); }
.portfolio__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.portfolio__item:hover img { transform: scale(1.08); }
.portfolio__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 18px 16px;
  background: linear-gradient(transparent, rgba(45,37,49,.75));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  letter-spacing: .02em;
}
.portfolio__note { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 30px; }

@media (max-width: 1024px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .portfolio__grid { grid-template-columns: 1fr; }
}

/* ---------- СЕКЦИИ: ФОНОВЫЕ ПОДЛОЖКИ С ПЛАВНЫМИ ПЕРЕХОДАМИ ---------- */
.section { position: relative; }

/* Общий декор-слой: мягкий пастельный градиент на весь сайт */
body {
  background:
    radial-gradient(ellipse at 8% 20%, rgba(243, 232, 247, .28), transparent 40%),
    radial-gradient(ellipse at 92% 70%, rgba(253, 243, 231, .3), transparent 40%),
    #fffdfb;
}

/* SERVICES — лавандовая подложка */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bg/bg-services-lavender.jpg') center/cover no-repeat;
  opacity: .35;
  pointer-events: none;
}

/* MASTER — персиковая подложка */
.master::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bg/bg-master-peach.jpg') center/cover no-repeat;
  opacity: .3;
  pointer-events: none;
}

/* PRICES — розово-золотая подложка */
.prices::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bg/bg-contacts-rosegold.jpg') center/cover no-repeat;
  opacity: .35;
  pointer-events: none;
}

/* PORTFOLIO — персиковая (перекликается с мастером) */
.portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bg/bg-master-peach.jpg') center/cover no-repeat;
  opacity: .3;
  pointer-events: none;
}

/* CONTACTS — розово-золотая (продолжение) */
.contacts::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bg/bg-contacts-rosegold.jpg') center/cover no-repeat;
  opacity: .35;
  pointer-events: none;
}

/* Содержимое секций поверх декора */
.services > .container,
.master > .container,
.prices > .container,
.portfolio > .container,
.contacts > .container {
  position: relative;
  z-index: 1;
}

/* Плавные переходы между секциями: градиентные «мостики» на стыках */
.services::after,
.master::after,
.about::after,
.prices::after,
.gallery::after,
.portfolio::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(255, 253, 251, .9) 90%);
  pointer-events: none;
  z-index: 0;
}
.services::before,
.master::before,
.about::before,
.prices::before,
.gallery::before,
.portfolio::before,
.contacts::before {
  z-index: 0;
}

/* Гарантируем, что у about/gallery контент тоже поверх */
.about > .container,
.gallery > .container {
  position: relative;
  z-index: 1;
}

/* ---------- ДОСТУПНОСТЬ: сниженное движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__photo { animation: none; }
}