/* ===== BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, "Times New Roman", serif;
  background: #f1efe6;
  color: #2b2b2b;
  line-height: 1.65;
}

/* ===== HEADER ===== */
.site-header {
  background-color: #7a1e23;
  color: #fff;
  position: relative; /* ← ВАЖНО */
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-name {
  font-size: 23px;
	color: #f7f5ee;
}

.subtitle {
  font-size: 14px;
  opacity: 0.8;
	color: #f1efe6;
}

/* ===== NAV ===== */
.nav-toggle {
  display: none;   /* ВАЖНО */
}

.nav-list {
  display: flex;
  flex-direction: row;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 16px;
  color: #ffffff;      /* ← ВОЗВРАЩАЕМ БЕЛЫЙ */
  text-decoration: none;
}

/* ===== HERO ===== */


.hero-slider{

position:relative;

margin:
0 auto 50px;

min-height:430px;

overflow:hidden;
	
border: 1px solid rgba(122,30,35,0.15);

box-shadow:
0 10px 28px rgba(0,0,0,.05);

padding: 30px;

background: #f7f5ee;

}

.slide{

position:absolute;

inset:0;

display:grid;

grid-template-columns:

1fr
1fr;

gap:80px;

align-items:center;

padding:20px;

opacity:0;

visibility:hidden;

transition:

opacity 2.3s ease;

}

.slide.active{

opacity:1;

visibility:visible;

z-index:2;

}


.slide-image{

text-align:left;

}

.slide-image img{

max-height:460px;

width:auto;

max-width:100%;

box-shadow:

0 12px 28px rgba(0,0,0,.12);

}

.slide-caption{

text-align:left;

max-width:420px;

}

.slide-caption h3{

font-size:25px;

line-height:1.15;

font-weight:normal;

margin-bottom:12px;

color:#7a1e23;

}

.slide-caption p{

font-size:18px;

line-height:1.8;

margin-bottom:25px;

}

.slide-caption a{

color:#7a1e23;

text-decoration:none;

border-bottom:

1px solid;

}


/* ===== PAGE ===== */
.page {
  max-width: 920px;
  margin: 60px auto;
  background: #f7f5ee;
  padding: 60px 50px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0,0,0,0.14);
}

/* заголовки */
.hero h2,
.master h2 {
  text-align: center;
  font-size: 21px;
  color: #7a1e23;
  margin-bottom: 18px;
}
.page-title {
  font-size: 18px;
  color: #7a1e23;
  text-align: center;
  margin: 25px 0 20px 0;
  letter-spacing: 0.3px;
}

/* все абзацы страницы */
.page p {
  text-align: left;
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 16px;
}
.master h2 {
  font-size: 21px;
  color: #7a1e23;
  margin-bottom: 16px;
}

.divider {
  width: 160px;
  height: 1px;
  background: #b7a89a;
  margin: 30px auto;
  position: relative;
}

.divider::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #b7a89a;
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translateX(-50%) rotate(45deg);
}


.gallery {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: 50px 0;
}

.gallery img {
  border: 6px solid #f7f5ee;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

/* ===== ВЫШИВКА ===== */

.embroidery-gallery {
  text-align: center;
  margin-top: 30px;
}

.embroidery-gallery img {
  margin: 0 8px;

 border: 7px solid rgba(255,255,255,0.5);/* тонкая рамка */
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.gallery-menu {
  margin: 35px 0 25px 0;
  text-align: center;
}

.gallery-menu a {
  color: #000000;
  text-decoration: none;
  margin: 0 18px;
  font-size: 16px;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: all 0.25s ease;
}

.gallery-menu a:hover {
  border-bottom: 1px solid #7a1e23;
}

/* активная страница */
.gallery-menu a.active {
  border-bottom: 1px solid #7a1e23;
  font-weight: 500;
}

.signature {
  margin-top: 30px;
  font-style: italic;
  text-align: center; /* подпись лучше по центру */
}
.old-gallery {
    text-align: center;
	  margin-top: 40px;
}




/* ===== MATRESHKA GALLERY ===== */

.matreshka-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 15px;
  margin: 30px 0;
}

.matreshka-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.matreshka-item img {
  width: 85%;
  max-width: 420px;
  height: auto;
  border: 6px solid #f7f5ee;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.matreshka-item img.zoomed {
  transform: scale(1.8);
  z-index: 10;
  position: relative;
}

.caption {
  margin: 10px auto 0 auto;
  font-size: 13px;        /* меньше текст */
  color: #5a5a5a;
  text-align: center;
  max-width: 100%;        /* не шире родителя */
}
/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  font-size: 13px;
  margin: 40px 0;
  color: #666;
}
/* базовое скрытие подменю */
.nav-list > li {
  display: inline-block;
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #7a1e23;
  min-width: 220px;

  padding: 10px 0;
  margin: 0;
  list-style: none;
}
.submenu li {
  padding: 6px 20px;
}
.submenu li a {
  display: block;
  padding: 6px 20px;
  color: #ffffff;
  text-decoration: none;
}
.submenu li a:hover {
  background: rgba(255,255,255,0.2);
}
.has-submenu {
  position: relative;
}

.has-submenu:hover > .submenu {
  display: block;
}

.page .section-link {
  margin-top: 28px;
  text-align: center;
}

.page .section-link a {
  color: #7a1e23;
  text-decoration: none;
  border-bottom: 1px solid #7a1e23;
  font-size: 16px;
}

.page .section-link a::after {
  content: " →";
}

.page .section-link a:hover::after {
  margin-left: 6px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
 .submenu {
    position: static;
    width: 100%;
  }

  .submenu li {
    padding-left: 20px;
  }
  .header-inner {
    justify-content: space-between;
    align-items: center;
  }

	.page {
    padding: 40px 25px;
  }
	
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 30px;
    border: 2px solid rgba(255,255,255,0.7);
    background: none;
    color: #fff;
    cursor: pointer;
  }

  .nav-list {
  position: absolute;
  top: 100%;
  left: 0;                 /* ← ЯВНО ПРИЖИМАЕМ К ЛЕВОМУ КРАЮ */
  right: 0;
  background: #7a1e23;
  display: none;
  flex-direction: column;
  align-items:center; /* ← выравнивание влево */
  gap: 22px;
  padding: 36px 0px;      /* ← красивый левый отступ */
  z-index: 1000;
}


  .nav-list.open {
    display: flex;
  }

.nav-list a {
  font-size: 18px;
  position:relative;
  padding-left: 20px;
  text-align: center;
}

.nav-list a::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.45);
  font-size: 18px;
  line-height: 1;
}
  .gallery-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .gallery-menu a {
    margin: 0;
  }

  .matreshka-gallery {
    grid-template-columns: 1fr;
  }


/* ===== СЛАЙДЕР МОБИЛА ===== */

.hero-slider{

padding:20px 10px;

min-height:auto;

overflow:visible;

}

.slide{

display:none;

position:static;

}

.slide.active{

display:block;

}

.slide-image{

text-align:center;

}

.slide-image img{

width:85%;

max-width:320px;

height:auto;

}

.slide-caption{

display:none;

}

