html {
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-y: auto;
  height: 100vh;
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

header {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.logo {
  height: 40px;
}

nav a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
  margin-right: 1rem;
}

nav a:hover {
  color: #000;
}

section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 3rem;
  box-sizing: border-box;
}

section:nth-of-type(odd) {
  background-color: #ffffff;
}

section:nth-of-type(even) {
  background-color: #f0f4f8;
}

.content {
  width: 50%;
  padding-right: 2rem;
}

.gallery-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px; /* 🔽 было 360px — теперь компактнее */
  margin-left: auto;
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.gallery img {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  scroll-snap-align: start;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery--large {
  position: relative;
  width: 480px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  display: flex;
  gap: 1rem;
}

.gallery--large img {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  scroll-snap-align: start;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery--large .gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 6px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.gallery-wrapper--large .gallery-arrow.left {
  left: -25px;
  transform: scale(0.6) translateY(-50%);
}

.gallery-wrapper--large .gallery-arrow.right {
  right: -25px;
  transform: scale(0.6) translateY(-50%);
}

.gallery--large .gallery-arrow.left {
  left: -20px;
}

.gallery--large .gallery-arrow.right {
  right: -20px;
}

.gallery-wrapper--large {
  transform: scale(1.8);
  transform-origin: right center; /* или 'center center' */
}


@media (max-width: 768px) {
  .gallery--large img {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .gallery-wrapper--large .gallery-arrow.left,
  .gallery-wrapper--large .gallery-arrow.right {
    transform: translateY(-50%);
    left: -20px;
    right: -20px;
  }
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 6px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.gallery-arrow:hover {
  background-color: #e0f0e5;
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
}

.gallery-arrow.left {
  left: -20px;
}

.gallery-arrow.right {
  right: -20px;
}  

h1, h2, h3 {
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.service {
  font-size: 1.2rem;
  line-height: 1.8;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: #f1f1f1;
}

.section-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}

.section-arrow:hover {
  background-color: #e0f0e5;
}

.section-arrow svg {
  width: 22px;
  height: 22px;
}

.section-arrow.up {
  top: 20px;
}

.section-arrow.down {
  bottom: 20px;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.intro-logo {
  height: 100px;
  max-width: 100%;
  display: block;
  /* margin: 0 auto 2rem auto; */
  opacity: 0;
  animation: logoFadeIn 1s ease-out forwards;
}





