* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #1A1F1B 0%, #111 100%);
  color: #DDE8D9;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

header {
  min-height: 100vh;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #222727 0%, #1A1F1B 55%);

}


.container {
  max-width: 1100px;
  margin: 0 auto;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 200px;
  width: auto;
  border-radius: 16px;

}

nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* делаем ссылки похожими на кнопки */
nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  /* больше кнопка */
  border-radius: 999px;
  /* скругление как у pill-кнопки */
  border: 1px solid #5A6B5D;
  /* обводка */
  color: #B8C9B3;
  text-decoration: none;
  opacity: 0.9;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease;
}

nav a:hover {
  opacity: 1;
  border-color: #D4A574;
  /* золотой из логотипа */
  background: rgba(212, 165, 116, 0.16);
  color: #E8F0E5;
  transform: translateY(-1px);
}


.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 10px;
  color: #E8F0E5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #8B9A6B;
  margin-bottom: 25px;
}

.hero-text {
  color: #C8D9C3;
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.tag {
  border: 1px solid #3A4A3C;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #DDE8D9;
  background: rgba(139, 154, 107, 0.15);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.btn-primary {
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #D4A574 0%, #C89F5F 100%);
  color: #1A1F1B;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E0B588 0%, #D4A574 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.5);
}

.btn-ghost {
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid #5A6B5D;
  background: rgba(90, 107, 93, 0.2);
  color: #DDE8D9;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  border-color: #8B9A6B;
  background: rgba(139, 154, 107, 0.25);
  color: #E8F0E5;
}

.hero-note {
  font-size: 12px;
  color: #A8B9AD;
  margin-top: 8px;
  max-width: 260px;
}

.hero-photo {
  border-radius: 18px;
  border: 1px solid #3A4A3C;
  background: #222727;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}


.hero-photo-main img {
  border-radius: 16px;
}

.hero-photo-caption {
  font-size: 13px;
  color: #B8C9B3;
}

section {
  padding: 60px 20px;
  border-top: 1px solid #2A3430;
  background: rgba(26, 31, 27, 0.9);
}

.section-title {
  font-size: 26px;
  margin-bottom: 8px;
  color: #E8F0E5;
}

.section-subtitle {
  color: #A8B9AD;
  margin-bottom: 30px;
}

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

.service-card {
  border-radius: 18px;
  border: 1px solid #3A4A3C;
  padding: 18px 18px 20px;
  background: #222727;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #8B9A6B;
  box-shadow: 0 12px 40px rgba(139, 154, 107, 0.3);
}

.service-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #DDE8D9;
}

.service-text {
  color: #B8C9B3;
  font-size: 14px;
  margin-bottom: 12px;
}

.service-meta {
  font-size: 12px;
  color: #8A9A8D;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.work-card {
  cursor: pointer;
  /* курсор-рука */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border-radius: 18px;
  border: 1px solid #3A4A3C;
  background: #222727;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: #8B9A6B;
  box-shadow: 0 16px 48px rgba(139, 154, 107, 0.35);
}

.work-more {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #D4A574;
}

.work-image-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #2A3430 0%, #222727 50%, #1A1F1B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #A8B9AD;
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #3A4A3C;
}

.work-image-placeholder img {
  border-radius: 10px;
  height: 180px;
}

/* текст в начале страницы работы */
.work-detail {
  padding-top: 80px;
}

.work-detail-image img {
  border-radius: 16px;
  border: 1px solid #3A4A3C;
  padding: 10px;
  margin: 25px;
}

.work-detail-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* расстояние между абзацами и кнопкой */
}

.work-detail-text-only {
  max-width: 680px;
  color: #C8D9C3;
  font-size: 15px;
}

.work-detail-text-only p {
  margin-bottom: 14px;
}


/* ссылки внутри описания работы — выделяем на фоне текста */
.work-detail-text-only a {
  color: #D4A574;
  text-decoration: underline;
  font-weight: 500;
}

.work-detail-text-only a:hover {
  color: #E0B588;
  text-decoration-thickness: 2px;
}


.work-body {
  padding: 14px 16px 16px;
  font-size: 14px;
}

.work-title {
  margin-bottom: 4px;
  color: #DDE8D9;
}

.work-info {
  font-size: 12px;
  color: #A8B9AD;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 2fr);
  gap: 30px;
  align-items: flex-start;
}

.about-text {
  color: #C8D9C3;
  font-size: 15px;
}

.about-list {
  margin-top: 14px;
  list-style: none;
  font-size: 14px;
  color: #B8C9B3;
}

.about-list li {
  margin-bottom: 6px;
}

.about-aside {
  border-radius: 18px;
  border: 1px solid #3A4A3C;
  padding: 18px 20px;
  background: #2A3430;
  font-size: 14px;
  color: #C8D9C3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.about-aside-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: #DDE8D9;
}

.about-aside-item {
  margin-bottom: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 2fr);
  gap: 30px;
}

.contact-info {
  font-size: 14px;
  color: #C8D9C3;
}

.contact-list {
  list-style: none;
  margin-top: 12px;
  font-size: 14px;
}

.contact-list li {
  margin-bottom: 8px;
}

.contact-label {
  color: #8B9A6B;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.contact-form {
  border-radius: 18px;
  border: 1px solid #3A4A3C;
  padding: 18px 20px 20px;
  background: #222727;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #A8B9AD;
}

input, textarea {
  border-radius: 10px;
  border: 1px solid #4A5A4D;
  background: #1A1F1B;
  padding: 8px 10px;
  color: #DDE8D9;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #8B9A6B;
  box-shadow: 0 0 0 3px rgba(139, 154, 107, 0.3);
  background: #222727;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

footer {
  padding: 24px 20px 30px;
  border-top: 1px solid #2A3430;
  font-size: 12px;
  color: #8A9A8D;
  background: rgba(26, 31, 27, 0.95);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* галерея ниже — только фото */
.work-gallery {
  padding: 40px 20px 60px;
  border-top: 1px solid #2A3430;
}

.work-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  border-radius: 18px;
}

.work-gallery-grid img {
  width: 100%;
  height: 400px;
  border-radius: 18px;
  border: 2px solid #3A4A3C;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  object-fit: contain;
  background: #1A1F1B;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.work-gallery-grid img:hover {
  transform: translateY(-4px);
  border-color: #8B9A6B;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7);
  background: #222727;
}

.work-gallery-item {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}



/* оформление */
.work-gallery-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #3A4A3C;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  max-height: 600px;
}

.work-gallery-text h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.work-gallery-text p {
  color: #C8D9C3;
  font-size: 14px;
  max-width: 480px;
}

.work-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px 16px;
  background: rgba(26, 31, 27, 0.95);
  border-top: 1px solid #2A3430;
}

.work-back-btn, .work-next-btn {
  min-width: 160px;
  text-align: center;
}

.work-back-wrapper {
  background: rgba(26, 31, 27, 0.95);
  padding: 0 20px 40px;
  display: flex;
  justify-content: center;
  border-top: 1px solid #2A3430;
}

/* На телефоне делаем кнопки в колонку */
@media (max-width: 900px) {
  .work-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .work-back-btn, .work-next-btn {
    width: 100%;
  }
}




@media (max-width: 900px) {
  header {
    padding-top: 24px;
  }

  .work-more {
    text-align: center;
  }

  .work-gallery-text {
    align-items: center;
  }

  .work-gallery-text p {
    margin-left: auto;
    margin-right: auto;
  }



  .top-bar {
    flex-direction: column;
    align-items: center;
    /* центр по горизонтали */
    text-align: center;
    gap: 16px;
  }

  .logo {
    justify-content: center;
    /* логотип по центру */
  }

  .logo img {
    height: 120px;
    /* уменьшенный логотип на телефоне */
    width: auto;
  }


  nav ul {
    justify-content: center;
    /* ссылки меню по центру */
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    /* текст по центру */
  }

  .hero-photo {
    order: -1;
    margin-bottom: 20px;
  }

  .hero-text, .hero-note {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .services,
  .works-grid,
  .about-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* карточки работ на мобильной версии — одинаковая ширина */
  .works-grid {
    justify-items: stretch;
  }

  .work-card {
    width: 100%;
  }

  .service-card,
  .work-card,
  .about-aside,
  .contact-form {
    margin-left: auto;
    margin-right: auto;
  }

  .section-title,
  .section-subtitle {
    text-align: center;
  }

  .contact-info,
  .about-text,
  .about-list {
    text-align: center;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

/* Лайтбокс для увеличенного просмотра фото в галерее работ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  border-radius: 16px;
  border: 2px solid #3A4A3C;
  background: #1A1F1B;
  padding: 10px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 32px;
  background: transparent;
  border: none;
  color: #DDE8D9;
  cursor: pointer;
  line-height: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #5A6B5D;
  background: rgba(26, 31, 27, 0.8);
  color: #DDE8D9;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

@media (max-width: 600px) {
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
