/* =========================================
   NAILS & CARE — White/Gold Minimalist
   ========================================= */

:root {
  --gold: #303655;
  --gold-light: #E8D5B0;
  --gold-dark: #A07840;
  --white: #FDFCFA;
  --off-white: #F5F2EC;
  --dark: #1A1714;
  --dark-soft: #2D2A26;
  --gray: #8A8480;
  --gray-light: #D4CFC8;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 32px rgba(26,23,20,0.08);
  --shadow-lg: 0 12px 60px rgba(26,23,20,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---- HEADER ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(132, 167, 186, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-light);
  transition: var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dark);
}
.logo-amp { color: var(--gold); }
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 2px;
}

.nav { display: flex; gap: 2.5rem; }
.nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  transition: var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav a:hover { color: var(--dark); }
.nav a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--dark);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gold-light);
  padding: 1rem 2rem 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-link {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--off-white);
  transition: var(--transition);
}
.mobile-link:hover { color: var(--gold); }

/* ---- BUTTONS ---- */
.btn-gold {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: #84A7BA;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-gold:hover { background: #6F90AF; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(132,167,186,0.35); }
.btn-full { width: 100%; text-align: center; }

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--gold); color: var(--white); }

.btn-ghost {
  background: none;
  border: none;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--transition);
}
.btn-ghost:hover { color: var(--dark); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.35;
}

@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
    background-position: center center;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #303655;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-content .btn-gold {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-decoration {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  pointer-events: none;
}
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
}
.deco-1 { width: 500px; height: 500px; right: -120px; top: 50%; transform: translateY(-50%); }
.deco-2 { width: 320px; height: 320px; right: 80px; top: 50%; transform: translateY(-50%); }
.deco-line {
  position: absolute;
  right: 280px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-light) 30%, var(--gold-light) 70%, transparent);
}

/* ---- SECTIONS ---- */
.section { padding: 6rem 2rem; }
.section-dark {
  background: #6F90AF;
  color: var(--white);
}
.section-contact { background: var(--off-white); }

.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-eyebrow.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #303655;
}
.section-title.light {
   color: var(--white);
}

.section-desc {
  margin-top: 1rem;
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--gray-light);
  border: 1.5px solid var(--gray-light);
}
@media(max-width:700px){
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:400px){
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover { background: var(--off-white); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.service-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.service-price {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 500;
}

/* ---- ABOUT ---- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(201,169,110,0.25);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-frame {
  width: 340px; height: 340px;
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 50%;
}
.frame-inner { text-align: center; }
.nail-icon { font-size: 4rem; margin-bottom: 1rem; }
.frame-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ---- BOOKING FORM ---- */
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group { display: flex; flex-direction: column; }
.form-group-full { grid-column: 1 / -1; }

label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 0.8rem 1rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8480' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}
input.error, select.error, textarea.error {
  border-color: #C0392B;
}
.datepicker-wrap.error {
  border: 1px solid #C0392B;
}
.phone-wrap.error {
  border-color: #C0392B;
}
input.error:focus, select.error:focus, textarea.error:focus {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

textarea { resize: vertical; min-height: 90px; }

.field-error {
  font-size: 0.72rem;
  color: #C0392B;
  margin-top: 0.3rem;
  min-height: 1em;
}

/* ---- BOOKING FORM (index.php) ---- */
.booking-wrap {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--gray-light);
  box-shadow: 0 4px 32px rgba(26,23,20,0.08);
  padding: 2.5rem;
  background: var(--white);
}
.booking-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.booking-form .form-group { margin-bottom: 1.5rem; }
@media(max-width:600px){
  .booking-form .form-row-2 { grid-template-columns: 1fr; }
}

/* ---- SUCCESS PANEL ---- */
.success-panel {
  text-align: center;
  padding: 3rem 2rem;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-panel h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
}
.success-panel p {
  color: var(--gray);
  margin-bottom: 2rem;
}
.calendar-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
.contact-item {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--gray-light);
  text-align: center;
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.contact-icon { font-size: 2rem; margin-bottom: 1rem; }
.contact-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.contact-item p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }
.contact-item a { color: var(--gold); transition: var(--transition); }
.contact-item a:hover { color: var(--gold-dark); }
.contact-item em { font-size: 0.8rem; }

/* ---- FOOTER ---- */
 .footer {
  background: #84A7BA;
  padding: 2.5rem 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}
.footer-ad {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  margin-top: 0.3rem;
}
.footer-ad a { color: rgba(201,169,110,0.6); text-decoration: underline; }
.footer-ad a:hover { color: var(--gold); }

/* ---- HEADER ICO ---- */
.header-ico {
  font-size: 0.68rem;
  color: var(--gray);
  letter-spacing: 0.03em;
  white-space: nowrap;
  position: absolute;
  right: 2rem;
  top: 6px;
}
@media(max-width:900px) { .header-ico { display: none; } }

/* ---- GDPR NOTE ---- */
.gdpr-note {
  font-size: 0.75rem;
  color: var(--gray);
  text-align: center;
  margin-top: 0.8rem;
  line-height: 1.5;
}
.gdpr-note a { color: var(--gold); text-decoration: underline; }
.gdpr-note a:hover { color: var(--gold-dark); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }
  .about-stats { gap: 2rem; }
  .hero-decoration { opacity: 0.4; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 1.2rem; }
  .hero { padding: 6rem 1.2rem 3rem; }
  .section { padding: 4rem 1.2rem; }
  .form-card { padding: 2rem 1.2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; gap: 1.5rem; }
  .deco-1, .deco-2, .deco-line { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* =========================================
   НОВІ СТИЛІ v2 — категорії, слоти, повідомлення
   ========================================= */

/* ---- CATEGORY CARDS ---- */
.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}
.category-toggle {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform var(--transition);
}
.category-card.open .category-toggle { transform: rotate(180deg); }

.sub-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 0;
}
.category-card.open .sub-list { max-height: 600px; margin-top: 1.2rem; }

.sub-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--off-white);
  gap: 0.5rem;
}
.sub-item:last-child { border-bottom: none; }
.sub-name { flex: 1; font-size: 0.9rem; }
.sub-meta { font-size: 0.8rem; color: var(--gray); white-space: nowrap; }
.sub-price { color: var(--gold); font-weight: 500; }

/* ---- BLOCKED SLOTS ---- */
select option:disabled {
  color: #ccc;
  background: #f9f9f9;
}

/* ---- NEW CLIENT MESSAGE ---- */
.new-client-msg {
  background: #FFF8F0;
  border: 1px solid var(--gold-light);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--dark-soft);
  line-height: 1.6;
}

/* ---- NEW CLIENT BANNER ---- */
.new-client-banner {
  background: #FFF8F0;
  border: 1px solid var(--gold-light);
  border-left: 4px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.6;
  text-align: center;
}

/* ---- FORM BLOCKED ---- */
.form-blocked {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--gray);
}
.blocked-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.form-blocked p {
  font-size: 1rem;
  color: var(--dark);
}

/* =========================================
   DATEPICKER — кастомный календарь в форме
   ========================================= */
.datepicker-wrap {
  border: 1px solid var(--gray-light);
  background: var(--white);
  padding: 1rem;
  user-select: none;
}

.dp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.dp-nav-btn {
  background: none;
  border: 1px solid var(--gray-light);
  width: 32px; height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--dark);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.dp-nav-btn:hover { border-color: var(--gold); color: var(--gold); }
.dp-month-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
}

.dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 3px;
}
.dp-weekdays div {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 0.3rem 0;
}
.dp-weekdays .dp-weekend { color: #C0392B; }

.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.dp-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 2px;
  position: relative;
}

/* Пустые ячейки */
.dp-day.dp-empty { cursor: default; }

/* Прошедшие дни */
.dp-day.dp-past {
  color: var(--gray-light);
  cursor: not-allowed;
}

/* Сегодня */
.dp-day.dp-today {
  border-color: var(--gold);
  font-weight: 600;
}

/* Рабочий день */
.dp-day.dp-work:not(.dp-past):hover {
  background: var(--off-white);
  border-color: var(--gold);
}

/* Выбранный день */
.dp-day.dp-selected {
  background: var(--gold) !important;
  color: var(--white) !important;
  border-color: var(--gold-dark) !important;
}

/* Выходной / праздник */
.dp-day.dp-off {
  background: #FDECEA;
  color: #C0392B;
  cursor: not-allowed;
}
.dp-day.dp-off:hover {
  background: #F5B7B1;
  border-color: #E74C3C;
}

/* Сообщение о выходном */
.dp-offday-msg {
  margin-top: 0.8rem;
  padding: 0.6rem 1rem;
  background: #FDECEA;
  border-left: 3px solid #E74C3C;
  color: #C0392B;
  font-size: 0.85rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity:0; transform: translateY(-4px); } to { opacity:1; transform: translateY(0); } }

@media (max-width: 640px) {
  .datepicker-wrap { padding: 0.7rem; }
  .dp-day { font-size: 0.75rem; }
}

/* ---- ЗАНЯТЫЙ ДЕНЬ (серый) ---- */
.dp-day.dp-busy {
  background: #F0F0F0;
  color: #AAAAAA;
  cursor: not-allowed;
}
.dp-day.dp-busy:hover {
  background: #E0E0E0;
  border-color: #AAAAAA;
}
