/* ===================================================
   RASSVET — Beauty Autopilot Template
   Рассвет, тепло, таймлайн, разнообразие блоков
   =================================================== */

/* ----- Variables ----- */
:root {
  --dawn-50: #fef7f2;
  --dawn-100: #fdede0;
  --dawn-200: #fad8c0;
  --dawn-300: #f5bc99;
  --dawn-400: #ee9a72;
  --dawn-500: #e57854;
  --dawn-600: #d45d3a;
  --dawn-700: #b24a2e;

  --rose: #e8a8b8;
  --rose-light: #f5d5df;
  --rose-dark: #c98599;
  --lavender: #c8b8d8;
  --lavender-light: #e6ddf0;
  --gold: #f0c26a;
  --gold-light: #f8dd9e;
  --amber: #e8a040;
  --peach: #fdd5c0;

  --bg: #fffcf9;
  --bg-warm: #fff8f2;
  --card: #ffffff;
  --text: #3a2a28;
  --text-soft: #6a5250;
  --text-muted: #a08880;
  --text-light: #c8b0a5;
  --line: #f0dcd0;
  --line-light: #f5e8e0;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --radius-xl: 20px;
  --radius-round: 50px;
}

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

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

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(248, 221, 158, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 60%, rgba(232, 168, 184, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(200, 184, 216, 0.05) 0%, transparent 40%),
    var(--bg);
}

::selection { background: var(--rose); color: #fff; }

a { color: var(--dawn-600); text-decoration: none; transition: all 0.25s; }
a:hover { color: var(--dawn-700); }

img { max-width: 100%; height: auto; display: block; }

/* ----- Sunrise Gradient Bar (top accent) ----- */
.sunrise-bar {
  height: 4px;
  background: linear-gradient(90deg,
    var(--rose-light) 0%,
    var(--peach) 25%,
    var(--gold) 50%,
    var(--peach) 75%,
    var(--lavender-light) 100%
  );
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 249, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0 2rem;
}

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

.brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--dawn-500), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-city {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.nav-links a {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transition: transform 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dawn-600);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ----- Main ----- */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

/* ----- Hero — split layout ----- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
  align-items: center;
  min-height: 70vh;
}

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

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

.hero-eyebrow {
  font-size: 0.8rem;
  color: var(--rose-dark);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--rose);
}

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

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--dawn-500), var(--amber), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
}

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

/* Hero visual — sunrise illustration */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
}

/* .sunrise-sphere */
.sunrise-sphere {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%,
    #fff8e8 0%,
    var(--gold-light) 20%,
    var(--gold) 40%,
    var(--peach) 60%,
    var(--rose-light) 80%,
    var(--lavender-light) 100%
  );
  box-shadow:
    0 0 60px rgba(240, 194, 106, 0.2),
    0 0 120px rgba(232, 168, 184, 0.1);
  position: relative;
}

.sunrise-sphere::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -40px;
  right: -40px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 252, 249, 0), var(--bg));
  border-radius: 50%;
}

/* ----- Buttons ----- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-round);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--dawn-400), var(--amber));
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(229, 120, 84, 0.2);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 120, 84, 0.3);
  color: #fff;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-round);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s;
}

.ghost-button:hover {
  border-color: var(--rose);
  color: var(--dawn-600);
  background: var(--dawn-50);
}

/* ----- Section Titles ----- */
.section {
  margin: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--rose-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--rose);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-desc {
  max-width: 500px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== TIMELINE SERVICES ========== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Вертикальная линия */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom,
    var(--rose-light),
    var(--gold) 50%,
    var(--lavender-light)
  );
}

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
}

.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 3rem;
  width: 100%;
}

/* Чередование: left → right → left → right */
.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 2rem);
  text-align: right;
}

@media (max-width: 768px) {
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding: 0 0 0 3rem;
    flex-direction: row;
    text-align: left;
  }
}

/* Точка на линии */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold-light), 0 0 12px rgba(240, 194, 106, 0.3);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  background: var(--rose);
  box-shadow: 0 0 0 2px var(--rose-light), 0 0 12px rgba(232, 168, 184, 0.3);
}

@media (max-width: 768px) {
  .timeline-dot {
    left: 20px;
  }
}

/* Карточка услуги */
.timeline-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(60, 42, 40, 0.06);
  transition: all 0.35s;
  width: 100%;
}

.timeline-card:hover {
  box-shadow: 0 8px 32px rgba(60, 42, 40, 0.1);
  transform: translateY(-3px);
  border-color: var(--gold-light);
}

.timeline-card .card-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.timeline-card .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--dawn-500);
  font-weight: 700;
}

.timeline-card .duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.timeline-card .desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0.75rem 0 1.25rem;
}

.timeline-card .button {
  font-size: 0.8rem;
  padding: 0.5rem 1.5rem;
}

/* ----- Gallery — offset grid ----- */
.gallery-offset {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-offset .gallery-item:nth-child(2) {
  margin-top: 3rem;
}

.gallery-offset .gallery-item:nth-child(4) {
  margin-top: -2rem;
}

.gallery-offset .gallery-item:nth-child(5) {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .gallery-offset { grid-template-columns: repeat(2, 1fr); }
  .gallery-offset .gallery-item:nth-child(2) { margin-top: 0; }
  .gallery-offset .gallery-item:nth-child(4) { margin-top: 0; }
  .gallery-offset .gallery-item:nth-child(5) { margin-top: 0; }
}

.gallery-offset .gallery-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--dawn-50);
  transition: all 0.35s;
  box-shadow: 0 2px 12px rgba(60, 42, 40, 0.06);
  border: 1px solid var(--line);
}

.gallery-offset .gallery-item:hover {
  box-shadow: 0 8px 28px rgba(60, 42, 40, 0.1);
  transform: translateY(-3px);
}

.gallery-offset picture {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

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

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

.gallery-offset figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* ----- Team — horizontal scroll feel ----- */
.team-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.master-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: all 0.35s;
  box-shadow: 0 2px 12px rgba(60, 42, 40, 0.04);
}

.master-card:hover {
  box-shadow: 0 8px 32px rgba(60, 42, 40, 0.1);
  transform: translateY(-4px);
  border-color: var(--rose-light);
}

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

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

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

.master-card .card-body {
  padding: 1.25rem;
}

.master-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.master-card .specialty {
  font-size: 0.8rem;
  color: var(--rose-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.master-card .bio {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.master-card .experience {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ----- Contacts — split with visual balance ----- */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dawn-50);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.contact-item .value a {
  color: var(--dawn-600);
  font-weight: 600;
}

.qr-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(60, 42, 40, 0.06);
}

.qr-block img {
  margin: 0 auto 1rem;
  border-radius: var(--radius);
}

.qr-block figcaption {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-inner p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner .brand-name {
  background: linear-gradient(135deg, var(--dawn-500), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 0.75rem 0; gap: 0.5rem; }
  .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; }
  .section-title { font-size: 1.8rem; }
  .sunrise-sphere { width: 180px; height: 180px; }
}
