body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background: #fff;
    color: #222;
    line-height: 1.6;
  }
  
  .topbar {
    height: 30px;
    background-color: #d19809;
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 2px solid #e0e0e0;
  }
  
  .logo {
    height: 60px;
  }
  
  .contact {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    font-size: 16px;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .icon {
    width: 18px;
    height: 18px;
    stroke: #000;
    fill: none;
  }
  
  .contact a {
    color: black;
    text-decoration: none;
  }

  
  .hero {
    text-align: center;
  }
  
  .hero-img {
    width: 100%;
    max-width: 100%;
    display: block;
  }
  
  .intro {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
  }
  
  .intro h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 20px;
  }
  
  .services {
    background: #f9f9f9;
    padding: 60px 20px;
  }
  
  .services h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .grid {
    display: grid;
    gap: 40px;
    max-width: 1000px;
    margin: auto;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .grid h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .cta {
    padding: 60px 20px;
    text-align: center;
  }
  
  .portfolio-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
  }
  
  .portfolio-links a {
    text-decoration: none;
    color: #bd9700;
    font-weight: bold;
    max-width: 300px;
  }
  
  .portfolio-links img {
    width: 80px;
    margin-bottom: 10px;
  }
  
  .footer {
    background: #ebebeb;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .footer .social a {
    color: #000;
    font-weight: 500;
    text-decoration: underline;
  }
  
  @media (max-width: 600px) {
    .footer {
      flex-direction: column;
      gap: 20px;
    }
  
    .contact p {
      text-align: left;
      justify-content: flex-start;
    }
  }

  .services {
    background: #f9f9f9;
    padding: 0;
  }
  
  .services-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .services-stripe {
    width: 50px;
    background-color: #d19809;
  }
  
  .services-content {
    flex: 1;
    padding: 60px 40px;
    font-size: 17px;
  }
  
  .services-content h2 {
    font-size: 30px;
    margin-bottom: 40px;
  }
  
  .grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
  }
  
  .grid h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  .grid ul {
    padding-left: 20px;
    margin: 0;
  }
  
  .grid li {
    margin-bottom: 6px;
    line-height: 1.6;
  }
  
  /* Адаптация */
  @media (max-width: 768px) {
    .grid {
      grid-template-columns: 1fr;
    }
  
    .services-wrapper {
      flex-direction: column;
    }
  
    .services-stripe {
      width: 100%;
      height: 10px;
    }
  }

  .intro p {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .portfolio-links.row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 30px;
  }
  
  .portfolio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #bd9700;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
  }
  
  .portfolio-item .icon {
    width: 32px;
    height: 32px;
    stroke: black;
    fill: none;
  }

  .resume-section {
    margin-top: 40px;
    margin-bottom: 60px; /* отступ снизу */
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .resume-block {
    text-align: center;
  }
  
  .resume-block h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #000;
  }
  
  .resume-block a {
    text-decoration: none;
    color: #bd9700;
    font-weight: bold;
    border-bottom: 1px dashed #bd9700;
  }
  
  .resume-block a:hover {
    color: #000;
    border-bottom: 1px dashed #000;
  }

  .connect {
    padding: 60px 20px 40px;
    text-align: center;
    background: #fff;
  }
  
  .connect h2 {
    font-size: 26px;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
  }
  
  .contact-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    align-items: center;
    justify-content: center;
    font-size: 17px;
  }
  
  .contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .contact-link:hover {
    color: #bd9700;
  }
  
  .contact-block .icon {
    width: 22px;
    height: 22px;
    stroke: #000;
    fill: none;
  }
  
  .footer-credits {
    background-color: #f2f2f2;
    padding: 20px;
    font-size: 13px;
    text-align: center;
    color: #777;
    border-top: 1px solid #ddd;
  }

  /* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ===== ХОВЕР ЭФФЕКТЫ ===== */
  
  .contact-link:hover .icon,
  .portfolio-item:hover .icon {
    stroke: #bd9700;
    transform: scale(1.1);
    transition: transform 0.3s, stroke 0.3s;
  }
  
  .resume-block a:hover {
    color: #bd9700;
    border-bottom-color: #bd9700;
  }
  
  /* Плавность для ссылок */
  .contact-link,
  .portfolio-item,
  .resume-block a {
    transition: color 0.3s, border 0.3s;
  }

  /* Базовая скрытая */
.reveal {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  /* Снизу вверх (по умолчанию) */
  .reveal-up {
    transform: translateY(40px);
  }
  .reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Слева направо */
  .reveal-left {
    transform: translateX(-40px);
  }
  .reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Справа налево */
  .reveal-right {
    transform: translateX(40px);
  }
  .reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Увеличение (scale) */
  .reveal-zoom {
    transform: scale(0.95);
  }
  .reveal-zoom.visible {
    opacity: 1;
    transform: scale(1);
  }

  /* === BANNER НА ВИЗУАЛ ПОРТФОЛИО === */
.hero-portfolio {
  position: relative;
}

.hero-portfolio .hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-0, -50%);
  text-align: left;
  color: rgb(51, 51, 51);
  text-shadow: none;
  max-width: 90%;
  font-family: 'Roboto', Arial, sans-serif;
  
}

.hero-text h1 {
  font-size: 72px;
  margin-bottom: 20px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: bold;
}

.hero-text p {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 300;
}







/* === ГАЛЕРЕЯ === */
.gallery {
  padding: 60px 20px;
}

.gallery-grid {
  display: grid;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.services-content h3 {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: color 0.3s;
}

.services-content h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #C24545;
  transition: width 0.3s;
}

.services-content h3:hover {
  color: #C24545;
}

.services-content h3:hover::after {
  width: 100%;
}


.gallery-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumb {
  width: 48px;
  height: 32px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.3s, border 0.3s, transform 0.3s;
  border: 2px solid transparent;
}

.thumb:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.thumb.active {
  opacity: 1;
  border-color: #bd9700;
}
.gallery-thumbnails img {
  width: 48px !important;
  height: 32px !important;
  object-fit: cover !important;
  flex-shrink: 0;
  border-radius: 4px;
}




/* Мобильная адаптация */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.caption {
  margin-top: 12px;
}

.caption-title {
  font-size: 18px;
  font-weight: 500;
  color: rgb(51, 51, 51);
}

.caption-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgb(51, 51, 51);
  margin-top: 4px;
}

.contact-simple {
  text-align: center;
  padding: 60px 20px 40px;
  font-size: 24px;
  color: #333;
  font-family: 'Roboto', sans-serif;
}

.contact-simple a {
  color: #bd9700;
  text-decoration: none;
}

.contact-simple a:hover {
  text-decoration: underline;
}

.contact-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.contact-icons .icon {
  width: 40px;
  height: 40px;
  stroke: #000;
  fill: none;
  transition: stroke 0.3s, transform 0.3s;
}

.contact-icons a:hover .icon {
  stroke: #bd9700;
  transform: scale(1.1);
}

.contact-icons-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.3s;
}

.contact-icon-item .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  stroke: black;
  fill: none;
  transition: stroke 0.3s, transform 0.3s;
}

.contact-icon-item:hover {
  color: #bd9700;
}

.contact-icon-item:hover .icon {
  stroke: #bd9700;
  transform: scale(1.1);
}