/* ===== UltraNails — CSS ===== */
/* Тёплая мягкая палитра: пудровые, персиковые, розово-бежевые оттенки */

:root {
  --primary:      #D4818F;
  --primary-dark: #B86772;
  --primary-light:#F0D2D8;
  --accent:       #C29B7D;
  --accent-light: #E8D5C4;
  --bg:           #FDF7F4;
  --bg-card:      #FFFFFF;
  --bg-sidebar:   #F9F0EC;
  --text:         #2D2124;
  --text-muted:   #8B7378;
  --text-light:   #B8A2A6;
  --border:       #EBDCD6;
  --shadow-sm:    0 2px 8px rgba(139, 115, 120, 0.07);
  --shadow-md:    0 8px 30px rgba(139, 115, 120, 0.10);
  --shadow-lg:    0 16px 48px rgba(139, 115, 120, 0.12);
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;
  --sidebar-w:    264px;
  --font:         'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Shell ===== */
.shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 0 0 var(--sidebar-w);
  padding: 28px 22px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 4px 0;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, #C27B8A 100%);
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.sidenav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidenav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidenav a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.sidenav a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.sidenav a .nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidenav a:hover .nav-icon,
.sidenav a.active .nav-icon {
  opacity: 1;
}

/* Sidebar contact card */
.sidebar-contact {
  margin-top: auto;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sidebar-contact .contact-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sidebar-contact .contact-row:last-child {
  margin-bottom: 0;
}

.sidebar-contact .contact-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

/* ===== Content Column ===== */
.content-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

/* ===== Content Header ===== */
.content-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.header-phone:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #C27B8A 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(212, 129, 143, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 129, 143, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* ===== Main Content ===== */
main {
  display: block;
  max-width: 1000px;
  padding: 0 32px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px 0;
}

.section:first-child {
  padding-top: 40px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  position: relative;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: -16px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #E8D0D5 0%, #F0DFD3 35%, #F5E8E0 70%, #E8D8D4 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45,33,36,0.45) 0%, rgba(45,33,36,0.15) 60%, rgba(45,33,36,0.02) 100%);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 40px;
  max-width: 520px;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 750;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(45,33,36,0.2);
}

.hero-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
  margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(45,33,36,0.15);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  background: #fff;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(45,33,36,0.15);
  transition: all 0.25s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,33,36,0.2);
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-card .svc-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.service-card .svc-name {
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
}

.service-card .svc-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.service-card .svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.service-card .svc-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}

.service-card .svc-time {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-card .svc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--primary-light);
  transition: all 0.2s;
}

.service-card .svc-link:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #F0DFD3 0%, #EBD6CA 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,33,36,0.25) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
}

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

/* ===== About ===== */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.about-text p {
  margin-bottom: 14px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-feature .feat-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
  color: var(--primary-dark);
}

.about-feature .feat-text {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
}

.about-feature .feat-text strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 2px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #C27B8A 50%, #B0707A 100%);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.cta-banner h3 {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-banner p {
  position: relative;
  z-index: 1;
  font-size: 15px;
  opacity: 0.92;
  margin-bottom: 22px;
}

.cta-banner .btn-cta-white {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 650;
  color: var(--primary-dark);
  background: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s;
}

.cta-banner .btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ===== Footer ===== */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}

.site-footer .footer-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.site-footer .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--primary-dark);
}

.site-footer .footer-copy {
  margin-left: auto;
}

/* ===== Mobile nav toggle ===== */
.mobile-nav-toggle {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .shell {
    flex-direction: column;
  }

  .sidebar {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    height: auto;
    z-index: 100;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-logo {
    gap: 8px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .logo-text {
    font-size: 17px;
  }

  .logo-sub {
    display: none;
  }

  .sidenav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }

  .sidenav.open {
    display: flex;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text);
  }

  .sidebar-contact {
    display: none;
  }

  .content-header {
    padding: 10px 16px;
    gap: 8px;
  }

  .header-phone {
    font-size: 12px;
    padding: 6px 10px;
  }

  .btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  main {
    padding: 0 16px;
  }

  .section {
    padding: 32px 0;
    gap: 20px;
  }

  .section-title {
    font-size: 22px;
  }

  .hero {
    min-height: 280px;
    border-radius: var(--radius);
  }

  .hero-content {
    padding: 28px 20px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .about-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta-banner {
    padding: 28px 20px;
  }

  .cta-banner h3 {
    font-size: 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 16px;
  }

  .site-footer .footer-copy {
    margin-left: 0;
  }
}

/* Overlay backdrop for mobile menu */
@media (max-width: 820px) {
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(45,33,36,0.3);
    z-index: 98;
  }

  .sidebar-overlay.open {
    display: block;
  }
}
