body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #f9f6ef;
  position: relative;
}

html {
    overflow-y: scroll;
}    

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/background1.png');
  background-size: cover;
  background-repeat: repeat;
  opacity: 0.3;
  z-index: -1;
}

.language-buttons {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.language-buttons button {
  padding: 0.3rem 0.7rem;
  background: none;
  border: 1px solid #2f4f2f;
  color: #2f4f2f;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.language-buttons button:hover {
  background-color: #2f4f2f;
  color: #fff;
}

.header-top { 
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 2rem 1rem 2rem;
  position: relative;
}

.logo img {
  height: 150px;
  margin-bottom: 0.2rem;
}

.site-title {
  text-align: center;
  margin-top: -10px;
}

.site-title h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  margin: 0;
  color: #2f4f2f;
}

.site-title .subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #2f4f2f;
  margin-top: 0.2rem;
}

.nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  color: #2f4f2f;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav a:hover {
  color: #6d8a72;
  transform: scale(1.1);
}

main {
  padding: 1rem 2rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.welcome p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.random-photos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem auto;
  flex-wrap: wrap;
  max-width: 800px;
  padding: 0 1rem;
}

.random-photos img {
  max-width: 400px;
  width: 45%;
  height: auto;
  border: 3px solid #2f4f2f;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.random-photos img:hover {
  transform: scale(1.03);
}

@media (max-width: 600px) {
    .random-photos img {
        width: 90%;
        }
        }

.footer {
  background-color: #45694b;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.social-icons a {
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icons a img {
  height: 24px;
}

.gallery {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
margin-top: 2rem;
}

.gallery img {
width: 40%;
max-width: 400px;
height: auto;
border: 3px solid #2f4f2f;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
margin: 1%;
    }


.about-image {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

.about-image img {
  width: 50%;
  border: 2px solid #2f4f2f;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.scroll-gallery-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  position: relative;
  max-width: 90%;
  overflow: hidden;
}

.scroll-gallery {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1rem 0;
  scrollbar-width: none;
}

.scroll-gallery::-webkit-scrollbar {
  display: none;
}

.scroll-gallery img {
  height: 300px;
  border: 3px solid #2f4f2f;
  border-radius: 10px;
  flex-shrink: 0;
}

.scroll-btn {
  display: none;
  background-color: #2f4f2f;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
}

.scroll-btn.left {
  position: absolute;
  left: 0;
}

.scroll-btn.right {
  position: absolute;
  right: 0;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
}    

.contact-method p {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  font-size: 1.1em;
  margin: 10px 0;
  padding: 5px 20px;
}

.contact-method .icon {
  height: 24px;
  width: 24px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.portfolio-card {
  text-decoration: none;
  color: #2f4f2f;
  transition: transform 0.3s;
}

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

.portfolio-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #2f4f2f;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.portfolio-card p {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  margin: 0 auto;
}

.gallery-grid a {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 3px solid #2f4f2f;
    border-radius: 10px;
    position: relative;
 }   

.gallery-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
transform: scale(1.05);
}

.page-title {
  text-align: center;
  margin-top: 40px;
}

.page-title h2 {
  font-size: 2em;
  margin-bottom: 5px;
}

.section-subtitle {
  font-style: italic;
  color: #555;
  font-size: 0.8rem;
  margin-top: -10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.price {
    font-weight: bold;
    font-style: italic;
    margin-top: auto;
    color: #222;
 }   

.service-card:hover {
  transform: translateY(-4px);
}

.service-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #2d2d2d;
}

.service-card .price {
    margin-top: 0.5rem;
 }   


.cta-contact {
  text-align: center;
  margin: 50px 20px 60px;
}

.cta-contact p {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.cta-button {
  display: inline-block;
  background-color: #567c5f;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #426b4d;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  background-color: #2f4f2f;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #3e6e3e;
}

.pdf-link {
  margin-top: 2rem;
  text-align: center;
}

.pdf-link a {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2f4f2f;
  background-color: #e9f5e9;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s;
}

.pdf-link a:hover {
  background-color: #d8ebd8;
}

.full-width-gallery {
    width: 100%; !important;
    max-width: 100%; !important;
    padding: 0; !important;
    margin: 0; !important;
}

.full-width-gallery img {
  width: 100%; !important;
  max-width: 100%; !important;
  height: auto; !important;
  max-height: 95vh;
  object-fit: contain;
  display: block; !important;
  margin-bottom: 20px; /* отступ между фото */
}

.day-navigation {
  text-align: center;
  margin: 60px 0;
}

.day-navigation a {
  font-family: 'Lato', serif;
  font-size: 20px;
  text-decoration: none;
  color: #3c3c3c;
  background-color: #eaeaea;
  padding: 15px 25px;
  border-radius: 10px;
  display: inline-block;
  transition: all 0.3s ease;
}

.day-navigation a:hover {
  background-color: #d0d0d0;
  transform: scale(1.03);
}

.img-left {
  float: left;
  max-width: 70%; /* ограничиваем ширину */
  margin: 0 15px 15px 0; /* справа и снизу отступы */
}

.img-right {
  float: right;
  max-width: 70%;
  margin: 0 0 15px 15px;
}

.clear {
  clear: both;
}