:root{
  --bg: #fdfbf7;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --muted: #706a65;
  --accent: #0b0b0b;
  --border: #ebdcd0;
}

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

html {
  scroll-behavior: smooth;
}

body{
  font-family:'Inter', sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x: hidden;
}

/* ================= ANIMATIONS (SCROLL) ================= */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-subtle {
  0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
  50% { transform: scale(1.03); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
}

/* ================= HEADER ================= */
header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:76px;
  background:rgba(11, 11, 11, 0.95);
  backdrop-filter: blur(10px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 48px;
  z-index:999;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

header .logo{
  color:white;
  font-family:'Cormorant Garamond', serif;
  font-size:26px;
  letter-spacing: 1.5px;
  font-weight: 500;
}

header nav {
  display: flex;
  gap: 32px;
}

header nav a{
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  position:relative;
  transition:.25s;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

header nav a:hover {
  opacity: 1;
}

header nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0%;
  height:1px;
  background:white;
  transition:.3s;
}

header nav a:hover::after{
  width:100%;
}

.hero{
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 80px 100px 80px;
  background-image: url(media/banner.jpeg);
  background-position: center top 20%;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 1;
}

.hero-content{
  position:relative;
  color:white;
  max-width:800px;
  z-index: 2;
}

.hero h1{
  font-family:'Cormorant Garamond', serif;
  font-size:92px;
  font-weight:300;
  line-height:1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
  font-weight: 300;
  line-height: 1.6;
  max-width: 600px;
}

.cta{
  margin-top:40px;
  display:flex;
  gap:20px;
}

.btn{
  padding:16px 36px;
  border-radius:999px;
  background:white;
  color:black;
  text-decoration:none;
  transition: all .3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor:pointer;
  font-size:14px;
  font-weight: 500;
  text-align: center;
  border: 1px solid white;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn.pulse {
  animation: pulse-subtle 3s infinite ease-in-out;
}

.btn:hover{
  transform:translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  background: #f0e6df;
  border-color: #f0e6df;
}

.btn.dark{
  background:transparent;
  color:white;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn.dark:hover {
  background: white;
  color: black;
  border-color: white;
}

/* ================= WRAPPER & CONTAINER ================= */
.wrapper{
  width:100%;
  display:flex;
  flex-direction: column;
  align-items:center;
}

.container{
  width:80%;
  max-width: 1400px;
}

/* ================= SECTIONS GENERAL ================= */
.section{
  padding:120px 0 60px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.title-wrapper {
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
}

.title{
  font-family:'Cormorant Garamond', serif;
  font-size:56px;
  font-weight: 400;
  line-height: 1.2;
}

.subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}

/* ================= SERVICES CARDS (HIGH-QUALITY PHOTOS) ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  width: 100%;
}

.service-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(111, 106, 101, 0.12);
  border-color: #0b0b0b;
}

.service-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.service-info {
  padding: 24px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}

.service-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.service-info .mini-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: auto;
}

/* ================= DETAILED PRICE LIST ================= */
.price-section {
  width: 100%;
  background: #fbf8f3;
  border-radius: 24px;
  padding: 60px;
  border: 1px solid var(--border);
  margin-top: 40px;
}

.price-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 80px;
}

.price-category {
  margin-bottom: 20px;
}

.price-category h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  color: #0b0b0b;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  font-size: 15px;
}

.price-name {
  font-weight: 400;
  padding-right: 10px;
  background: #fbf8f3;
  position: relative;
  z-index: 2;
}

.price-subtext {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.price-dots {
  flex-grow: 1;
  border-bottom: 1px dashed #c4b9b0;
  margin-bottom: 4px;
  position: relative;
  top: -2px;
}

.price-val {
  font-weight: 600;
  padding-left: 10px;
  background: #fbf8f3;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

/* ================= PORTFOLIO (PREVIEW VARIATIONS) ================= */
.gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  width: 100%;
}

.gallery-item {
  position: relative;
  border-radius:16px;
  overflow: hidden;
  height:420px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  cursor: pointer; /* Делает курсор лапкой, показывая кликабельность */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

/* Эффект приподнимания карточки при наведении */
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Чтобы иконка была сверху, а текст снизу */
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: white;
}

/* Иконка просмотра в правом верхнем углу */
.gallery-preview-icon {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-preview-icon {
  transform: scale(1.1);
}

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

.gallery-item:hover img{
  transform:scale(1.04); /* Чуть уменьшил, чтобы не ломало геометрию с translateY */
}

.gallery-overlay h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================= REVIEWS (LONG / WIDE) ================= */
.reviews-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
}

.review-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.review-card:hover {
  transform: translateX(5px);
  border-color: #0b0b0b;
  box-shadow: 0 15px 30px rgba(111, 106, 101, 0.05);
}

.review-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ebdcd0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: #524b44;
  flex-shrink: 0;
}

.review-main {
  flex-grow: 1;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-author {
  font-size: 16px;
  font-weight: 600;
}

.review-stars {
  color: #d4af37;
  font-size: 14px;
}

.review-text {
  font-style: normal;
  line-height: 1.7;
  font-size: 15px;
  color: #333;
}

.review-date {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ================= FOOTER ================= */
footer{
  background:#0b0b0b;
  color:white;
  padding:100px 10% 40px 10%;
  margin-top:120px;
  width: 100%;
}

.footer-grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

footer h3 {
  font-family:'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

footer h4 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #8c8c8c;
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

footer a{
  color:white;
  opacity:.7;
  display:inline-flex;
  align-items: center;
  gap:12px;
  text-decoration:none;
  position: relative;
  transition: .3s;
  font-size: 14px;
}

footer a:hover{
  opacity:1;
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* ================= MODAL WINDOW ================= */
.modal {
  display: none; 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,.75); 
  backdrop-filter: blur(8px);
  align-items: center; 
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white; 
  padding: 48px; 
  border-radius: 24px; 
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  position: relative;
}

.modal h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 24px;
  text-align: center;
}

.modal input, .modal select {
  width: 100%;
  padding: 16px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: .2s;
  background: #fbfbfb;
}

.modal input:focus, .modal select:focus {
  border-color: #0b0b0b;
  background: white;
}

.modal .btn-submit {
  width: 100%;
  margin-top: 28px;
  padding: 16px;
  background: #0b0b0b;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: .2s;
}

.modal .btn-submit:hover {
  background: #262626;
}

.modal .close-x {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.4;
  transition: .2s;
}
.modal .close-x:hover { opacity: 1; }

/* ================= MOBILE RESPONSIVE ================= */
@media(max-width:960px){
  .container { width: 90%; }
  
  .gallery, .price-container, .footer-grid { 
    grid-template-columns: 1fr; 
  }
  
  .hero { 
    padding: 100px 24px 40px 24px; 
    height: auto; 
    min-height: 100vh;
    align-items: center;
  }
  .hero h1 { 
    font-size: 42px;
  }
  .hero p {
    font-size: 16px;
  }
  .cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .btn {
    width: 100%;
  }

  #gallery .btn.dark {
    width: 100%;
  }
  #gallery div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .price-section { 
    padding: 24px 16px; 
  }
  .price-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-bottom: 1px solid rgba(11, 11, 11, 0.05);
    padding-bottom: 12px;
  }
  .price-dots { 
    display: none;
  }
  .price-val {
    padding-left: 0;
    font-size: 16px;
    color: var(--accent);
  }

  /* Відгуки */
  .review-card { 
    flex-direction: column; 
    gap: 16px; 
    padding: 24px; 
  }
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  header {
    padding: 0 24px;
  }
  header nav { 
    display: none; 
  } 
  
  .footer-bottom { 
    flex-direction: column; 
    gap: 16px; 
    text-align: center; 
  }
}
