/* ===== GLOBAL STYLES ===== */

body {
  margin: 0;
  font-family: 'Georgia', serif;
  font-size: 32px;
   text-align: center;

  background: #FAF7F2;
  color: #4F5F5A ;
}

section {
  padding: 80px 10%;
}

h1, h2 {
  text-align: center;
  margin-bottom: 40px;
}

button {
  background: #6F857D  ;
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  cursor: pointer;
}

body {
  margin: 0;
  font-family: 'Georgia', serif;
  background: #f5f3ec;
  color: #4F5F5A   ;
}

.top-header {
  background: transparent;
  padding: 80px 50px;
}

.nav {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 90px;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  font-size: 40px;
  font-weight: 500;  
  font-family: 'Georgia', serif;
  color: #6F857D  ;
   letter-spacing: 0.04em;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

.top-header {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.logo {
  width: 160px;      /* меняй размер здесь */
  height: auto;
  margin-top: 40px;
}



/* HERO */
.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 32px;
  margin-bottom: 20px;
}


.hero button {
  background: #6F857D  ;
  color: white;
  border: none;
  padding: 25px 60px;
  border-radius: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* SERVICES */
.services {
  background: #FFC0CB;
  padding: 60px 20px;
  font-size:28px;
  font-family: 'Georgia', serif;
  text-align: center;
}

.cards {
  display: flex;
  background: #FFC0CB;
  justify-content: center;
  font-size: 26px;
  font-family: 'Georgia', serif;
  
  gap: 50px;
  margin-top: 40px;
  
}

.card {
  background: #FAF7F2 ;
  width: 220px;
  height: 190px;
  
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Georgia', serif;
  font-size: 28px;
}

/* GALLERY */
.gallery {
  padding: 60px 20px;
  text-align: center;
  font-size: 28px;
  font-family: 'Georgia', serif;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  
  gap: 60px;
  margin-top: 30px;
}

.grid img {
  width: 100%;
  border-radius: 20px;
}
.flip-card {
 width: 260px;
  height: 200px;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
   transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-front {
  background: #f5f3ec ;
  font-size: 26px;
}

.flip-back {
  background: #f5f3ec;
  transform: rotateY(180deg);
  font-size: 24px;
}

.flip-back ul {
    list-style: none;
  padding-left: 15px;
  background: #f5f3ec 
  text-align: left;
}

.service-card {
  width: 300px;               /* узкая колонка */
  background-color: #FFC0CB;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  position: relative;         /* для наложения изображения, если нужно */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.service-card img {
  width: 100%;       /* уменьшает ширину до 80% от родителя (колонки) */
  max-width: 220px; /* задаёт максимальную ширину, чтобы не было слишком большого изображения */
  height: auto;     /* сохраняем пропорции */
  display: block;
  margin: 0 auto;   /* центрируем изображение */
}

.services-column {
  overflow: hidden;
}

.footer {
  background: #FFC0CB ; 
  padding: 60px 20px;
   font-family: 'Georgia', serif;
    text-align: left;
    font-size: 24px;
  color:  #4F5F5A   ;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Контакты */
.footer-contacts {
  flex: 1;
}

.footer-contacts h3 {
  margin-bottom: 20px;
}

.footer-contacts p {
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Карта */
.footer-map {
  flex: 1;
}

.footer-map iframe {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: 20px;
}

nav a {
  position: relative;
  padding-bottom: 5px;
}

nav a.active {
  color: #6F857D  ;
  font-weight: 600;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #4f5d57;
  border-radius: 2px;
}

.services-image {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.services-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px
  border-radius: 24px;
}

/* Прайс-лист */
.price-list {
  background-color: #f5f3ec;
  padding: 30px;
  border-radius: 15px;
  max-width: 1200px;
  margin: 40px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.price-list h2 {
  text-align: center;
  margin-bottom: 50px;
}

.price-list td:first-child {
  font-weight: 500;
}

.price-list table {
  width: 100%;
  border-collapse: collapse;
   font-family: 'Georgia', serif;
   font-size: 26px;
   font-weight: 600;
  text-align: left;
}

.price-list th, .price-list td {
  padding: 10px 15px;
  border-bottom: 1px solid #FFC0CB;
}

.price-list th {
  background-color: #FFC0CB;
}

.price-list td {
  font-weight: 400; /* обычный текст */
}
.second-title {
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: center;
}

.price-list td:last-child,
.price-list th:last-child {
  text-align: right;
}


.second-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 20px;
  
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
  margin-bottom: 36px;
}

.social-icons a img {
  width: 36px;
  height: 36px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

.service-details {
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
  font-size: 18px;
}

.service-details th {
  background-color: #FFC0CB;
  padding: 14px;
  text-align: left;
  font-weight: 600;
}

.service-details td {
  padding: 14px;
  border-bottom: 1px solid #FFC0CB;
  vertical-align: top;
}

.service-details td:last-child {
  font-weight: 400;
  white-space: nowrap;
}











