/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #121212;
  color: white;
}

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

/* HEADER */
header {
  position: relative;
  padding: 0 80px;
  text-align: center;
  min-height: 100svh;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url('../image/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.logo {
  max-width: 240px;
}

.hero-title {
  font-size: 38px;
  margin: 20px 0 10px;
}

.hero-subtitle {
  font-size: 20px;
  color: #ddd;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: #d2a45c;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* BUTTON ANIMATED */
.button {
  position: relative;
  width: 180px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  background: rgba(201,163,93,0.12);
  backdrop-filter: blur(6px);
  transition: 0.5s ease;
}

.button span {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.button svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

.bg-line {
  stroke: rgba(255, 187, 59, 0.25);
  stroke-width: 1;
}

.hl-line {
  stroke: #C9A35D;
  stroke-width: 2;
  stroke-dasharray: 150 480;
  stroke-dashoffset: 150;
  transition: 1s ease;
}

.button:hover {
  background: rgba(201,163,93,0.18);
  box-shadow: 0 10px 30px rgba(201,163,93,0.25);
  transform: translateY(-2px);
}

.button:hover .hl-line {
  stroke-dashoffset: -480;
}

/* SERVICES */
.services {
  width: min(90%, 1400px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.service-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  transition: 0.4s ease;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(201,163,93,0.7), rgba(255,255,255,0));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 0.5;
  box-shadow: 0 0 20px #C9A35D, 0 0 40px #C9A35D, 0 0 60px #C9A35D;
}

.service-card:hover {
  box-shadow: 0 0 15px #C9A35D, 0 0 30px #C9A35D, 0 0 50px #C9A35D;
  transform: translateY(-2px);
}

.icon-service {
  width: 42px;
  height: 42px;
  fill: #d2a45c;
  flex-shrink: 0;
}

/* GALLERY */

.gallery {
  padding: 100px 0;
}

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

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  transition: 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 35px rgba(201,163,93,.25);
}
/* ADVANTAGES */
.dlaczego {
  text-align: center;
  letter-spacing: 2px;
  text-decoration: underline 3px solid #d2a45c;
  text-underline-offset: 10px;
  margin-bottom: 16px;
}

.advantages-grid {
  grid-template-columns: repeat(1, 1fr);
}

.advantages-grid .card {
  perspective: 1000px;
  border-radius: 10px;
  cursor: pointer;
}

.advantages-grid .text-wrapper {
  position: relative;
  width: 100%;
  height: 120px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantages-grid .card:hover .text-wrapper {
  transform: rotateX(180deg);
}

.advantages-grid .text-front,
.advantages-grid .text-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
}

.advantages-grid .text-front {
  background: rgba(255,255,255,0.03);
}

.advantages-grid .text-back {
  background: rgb(210, 164, 92);
  transform: rotateX(180deg);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 колонки */
  gap: 10px; /* расстояние между карточками */
}

.icon-wrap {
  display: flex;
  flex-direction: column; /* иконка сверху, текст снизу */
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.icon-wrap:hover {
  transform: translateY(-5px);
}



/* CONTACT */
.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

form input,
form select,
form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 6px;
  border: none;
}

form button {
  border: none;
  cursor: pointer;
}

.icon-card {
  fill: #d2a45c;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 15px;
}

.icon-adv {
  fill: #d2a45c;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

.icon-wrap {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
}

.contact-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
}

.process-section {
    padding: 100px 50px;
    color: white;
}

.process-section h2 {
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: bold;
}

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

.process-card {
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 40px 30px;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-8px);
    border-color: #d4a24c;
    box-shadow: 0 10px 30px rgba(212,162,76,0.15);
}

.step-number {
    font-size: 60px;
    font-weight: bold;
    color: rgba(212,162,76,0.12);
    position: absolute;
    top: 15px;
    right: 20px;
}

.process-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #d4a24c;
}

.process-card p {
    font-size: 18px;
    color: #ccc;
    line-height: 1.6;
}
@media (max-width:768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .icon-wrap {
    margin: 25px;
  }
  .gallery-grid img {
    height: 220px;
  }

  .services {
    grid-template-columns: repeat(2,1fr);
    bottom: 20px;
    gap: 12px;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .services {
    grid-template-columns: 1fr;
  }
    .icon-wrap {
    margin: 25px;
  }
  .gallery-grid,
  .advantages-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 32px;
  }
}
@media (max-width: 768px) {

  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 30px;
    margin-bottom: 50px;
  }

  .service-card {
    top: 92px;
    padding: 14px 10px;
    font-size: 14px;
    flex-direction: column;
    text-align: center;
    min-height: 110px;
    gap: 8px;
    
  }
    .icon-wrap {
    margin: 25px;
  }
  .icon-service {
    width: 32px;
    height: 32px;
  }

}

@media (min-width: 1200px) {
  .hero-title {
    margin-top: 3%;
    font-size: 64px;
  }

  .logo {
    margin-top: 5%;
  }
  .hero-subtitle {
    font-size: 24px;
  }

  .container {
    max-width: 1400px;
  }

  .gallery-grid img {
    height: 260px;
  }

  .card {
    font-size: 18px;
    padding: 25px;
  }

  .service-card {
    padding: 25px;
    font-size: 18px;
  }

  .icon-service {
    width: 50px;
    height: 50px;
  }

  .button {
    width: 220px;
    height: 70px;
  }

  .button span {
    font-size: 20px;
  }
}

@media (min-width: 1400px) {
  .services {
    gap: 30px;
  }

  .service-card {
    padding: 30px;
  }
}

.contact-modern-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

.contact-modern-card h2 {
  font-size: 32px;
  color: #d4a24c;
  margin-bottom: 30px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-line:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(212,162,76,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.contact-line span {
  display: block;
  color: #999;
  font-size: 14px;
}

.contact-line strong {
  font-size: 18px;
  color: white;
}
@media (max-width: 768px) {

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .advantages-grid .text-wrapper {
    height: 90px;
  }

  .process-section {
    padding: 60px 20px;
  }

  .process-section h2 {
    font-size: 30px;
    margin-bottom: 30px;
    text-align: center;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-card {
    padding: 30px 20px;
  }

  .process-card h3 {
    font-size: 22px;
  }

  .process-card p {
    font-size: 15px;
  }

  .step-number {
    font-size: 42px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  form input,
  form textarea {
    font-size: 16px;
  }

}