* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: Arial, sans-serif;
  background-color: #111;
  color: white;
}

.container {
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 0 80px;
  text-align: center;
}

button {
  padding: 15px 25px;

  border: 1px solid #e0a84a;
  border-radius: 8px;

  background-color: transparent;
  color: white;

  font-size: 16px;
  cursor: pointer;
}

button.selected {
  background-color: #22c55e;
  color: #111;
}

#result {
  margin-top: 20px;
  color: #aaa;
}

h2 {
  margin-top: 35px;
  font-size: 20px;
}

.barber-list,
.service-list {
  display: grid;
  gap: 10px;
}

.barber-button,
.service-button {
  width: 100%;
}

#continue-button {
  margin-top: 20px;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

#date-input {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;

  border: 1px solid #555;
  border-radius: 8px;

  background-color: #222;
  color: white;
}

.time-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.time-button {
  width: 100%;
}

#contact-step label {
  display: block;
  margin: 15px 0 5px;
  text-align: left;
}

#name-input,
#phone-input {
  width: 100%;
  padding: 15px;

  border: 1px solid #555;
  border-radius: 8px;

  background-color: #222;
  color: white;
}

#contact-result {
  color: #aaa;
}

html {
  scroll-behavior: smooth;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background-color: rgba(17, 17, 17, 0.92);
  border-bottom: 1px solid #2b2b2b;
  backdrop-filter: blur(12px);
}

.header-container {
  width: 90%;
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  color: #e0a84a;
  text-decoration: none;

  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
}

.header-button,
.hero-button {
  display: inline-block;
  padding: 13px 22px;

  border: 1px solid #e0a84a;
  border-radius: 8px;

  color: white;
  text-decoration: none;
  font-weight: bold;

  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.header-button:hover,
.hero-button:hover {
  background-color: #e0a84a;
  color: #111;
  transform: translateY(-2px);
}

.hero {
  width: 90%;
  max-width: 1180px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 60px 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  text-align: left;
}

.hero-label {
  margin: 0 0 18px;

  color: #e0a84a;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 3px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;

  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.hero-text {
  max-width: 560px;
  margin: 25px 0 32px;

  color: #b8b8b8;
  font-size: 18px;
  line-height: 1.7;
}

.hero-image-container {
  position: relative;
}

.hero-image-container::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  bottom: 14px;
  left: 14px;

  border: 1px solid #e0a84a;
  border-radius: 18px;
}

.hero-image {
  position: relative;
  z-index: 1;

  display: block;
  width: 100%;
  height: 600px;

  border-radius: 18px;
  object-fit: cover;
}

#booking {
  scroll-margin-top: 90px;
}

@media (max-width: 800px) {
  .header-container {
    min-height: 64px;
  }

  .logo {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .header-button {
    padding: 10px 14px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 50px 0 70px;

    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-image {
    height: 480px;
  }
}

.services-section {
  padding: 100px 0;

  background-color: #171717;
  border-top: 1px solid #292929;
  border-bottom: 1px solid #292929;
}

.section-container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

.section-label {
  margin: 0 0 12px;

  color: #e0a84a;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 3px;
}

.section-title {
  margin: 0 0 45px;

  text-align: center;
  font-size: clamp(32px, 5vw, 48px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  padding: 28px;

  background-color: #111;
  border: 1px solid #303030;
  border-radius: 14px;

  transition:
    transform 0.2s,
    border-color 0.2s;
}

.service-card:hover {
  border-color: #e0a84a;
  transform: translateY(-6px);
}

.service-number {
  margin-bottom: 28px;

  color: #e0a84a;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.service-card p {
  min-height: 78px;
  margin: 0;

  color: #a9a9a9;
  line-height: 1.6;
}

.service-details {
  margin-top: 24px;
  padding-top: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-top: 1px solid #303030;
  color: #888;
}

.service-details strong {
  color: #e0a84a;
  font-size: 20px;
}

@media (max-width: 950px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-section {
    padding: 75px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card p {
    min-height: auto;
  }
}

#booking {
  max-width: 620px;
  margin: 100px auto;
  padding: 44px;

  background:
    linear-gradient(
      145deg,
      #1b1b1b,
      #141414
    );

  border: 1px solid #303030;
  border-radius: 18px;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35);
}

.booking-label {
  margin: 0 0 10px;

  color: #e0a84a;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 3px;
}

.booking-title {
  margin: 0 0 35px;

  font-size: clamp(30px, 6vw, 42px);
}

#booking #result,
#date-result,
#time-result,
#contact-result {
  padding: 14px;
  margin-top: 20px;

  background-color: #111;
  border: 1px solid #292929;
  border-radius: 8px;

  color: #aaa;
}

@media (max-width: 600px) {
  #booking {
    width: calc(100% - 32px);
    margin: 70px auto;
    padding: 30px 20px;
  }
}

.hero-image-container {
  min-width: 0;
}

.hero-image-container::before {
  display: none;
}

.hero-image {
  max-width: 100%;
  border: 1px solid #e0a84a;
}

.hero-image-container {
  padding: 4px;

  background:
    linear-gradient(
      135deg,
      #e0b76d,
      #8b642e
    );

  border-radius: 20px;
  overflow: hidden;
}

.hero-image {
  display: block;
  border: none;
  border-radius: 16px;
} 

.gallery-section {
  padding: 100px 0;
  background-color: #111;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;

  aspect-ratio: 4 / 5;
  margin: 0;

  background-color: #1b1b1b;
  border: 1px solid #303030;
  border-radius: 16px;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8),
      transparent 45%
    );

  pointer-events: none;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.4s;
}

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

.gallery-item figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;

  color: white;
  font-size: 17px;
  font-weight: bold;
}

@media (max-width: 750px) {
  .gallery-section {
    padding: 75px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item {
    border-radius: 10px;
  }

  .gallery-item figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;

    font-size: 13px;
  }
}

.contact-section {
  padding: 100px 0;

  background-color: #171717;
  border-top: 1px solid #292929;
}

.contact-container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

.contact-info,
.location-card {
  padding: 42px;

  background-color: #111;
  border: 1px solid #303030;
  border-radius: 18px;
}

.contact-label {
  text-align: left;
}

.contact-title {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 48px);
}

.contact-description {
  max-width: 550px;
  margin: 0 0 35px;

  color: #aaa;
  font-size: 17px;
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  padding: 18px 0;

  display: flex;
  flex-direction: column;
  gap: 6px;

  border-bottom: 1px solid #292929;
}

.contact-item span {
  color: #e0a84a;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-item strong {
  font-size: 18px;
}

.contact-item small {
  color: #888;
  font-size: 14px;
}

.map-button {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 24px;

  background-color: #e0a84a;
  border-radius: 8px;

  color: #111;
  text-decoration: none;
  font-weight: bold;

  transition:
    transform 0.2s,
    background-color 0.2s;
}

.map-button:hover {
  background-color: #e0b76d;
  transform: translateY(-2px);
}

.location-card {
  min-height: 420px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  background:
    radial-gradient(
      circle at center,
      #292116,
      #111 65%
    );
}

.location-pin {
  width: 75px;
  height: 75px;
  margin-bottom: 25px;

  display: grid;
  place-items: center;

  background-color: #e0a84a;
  border-radius: 50%;

  color: #111;
  font-size: 40px;
}

.location-card p {
  margin: 0 0 10px;

  color: #e0a84a;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.location-card h3 {
  margin: 0 0 14px;
  font-size: 30px;
}

.location-card span {
  max-width: 300px;

  color: #888;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .contact-section {
    padding: 75px 0;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .location-card {
    padding: 30px 24px;
  }

  .location-card {
    min-height: 300px;
  }
}

.location-photo-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  min-height: 520px;
}

.location-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      transparent 60%
    );
}

.location-photo-card img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.location-overlay {
  position: absolute;
  right: 30px;
  bottom: 30px;
  left: 30px;
  z-index: 1;

  text-align: left;
}

.location-overlay h3 {
  margin-bottom: 10px;
}

@media (max-width: 800px) {
  .location-photo-card {
    min-height: 420px;
  }

  .location-overlay {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }
}

.main-nav {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: #bbb;
  text-decoration: none;
  font-size: 15px;

  transition: color 0.2s;
}

.main-nav a:hover {
  color: #e0a84a;
}

.header-button {
  margin-left: 8px;
}

#services,
#gallery,
#contact {
  scroll-margin-top: 72px;
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }
}

.site-footer {
  padding: 35px 0;

  background-color: #0c0c0c;
  border-top: 1px solid #292929;
}

.footer-container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-logo {
  color: #e0a84a;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 2px;
}

.footer-container p {
  margin: 0;

  color: #777;
  text-align: center;
  font-size: 13px;
}

.back-to-top {
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
}

.back-to-top:hover {
  color: #e0a84a;
}

@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

.hero h1 span {
  display: block;
  color: #e0a84a;
}

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

.hero-secondary-button {
  display: inline-block;
  padding: 13px 22px;

  color: #bbb;
  text-decoration: none;
  font-weight: bold;

  border-bottom: 1px solid #555;

  transition:
    color 0.2s,
    border-color 0.2s;
}

.hero-secondary-button:hover {
  color: white;
  border-color: #e0a84a;
}

.hero-stats {
  margin-top: 45px;
  padding-top: 24px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;

  border-top: 1px solid #303030;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-stats strong {
  color: white;
  font-size: 22px;
}

.hero-stats span {
  color: #777;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 3;

  padding: 16px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  background-color: rgba(10, 10, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.hero-badge span {
  color: #e0a84a;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge strong {
  font-size: 14px;
}

@media (max-width: 800px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-button,
  .hero-secondary-button {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    margin-top: 35px;
  }

  .hero-stats strong {
    font-size: 19px;
  }

  .hero-stats span {
    font-size: 9px;
  }

  .hero-badge {
    right: 12px;
    bottom: 12px;
    left: 12px;

    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Поправки за мобилната резервация */

#date-input,
#name-input,
#phone-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 16px;
}

@media (max-width: 600px) {
  #date-step > button,
  #time-step > button,
  #contact-step > button {
    display: block;
    width: 100%;
    margin: 12px 0 0;
  }
}

/* Поправка за полето за дата в iPhone Safari */

#date-step {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

#date-input {
  -webkit-appearance: none;
  appearance: none;

  display: block;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  box-sizing: border-box !important;
}