.header {
  padding: clamp(30px, 6vw, 90px) clamp(60px, 7vw, 160px) clamp(30px, 6vw, 60px);
  margin-top: clamp(24px, 3vw, 72px);
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 1.2vw, 28px);
}
.header-line {
  width: clamp(4px, .35vw, 8px);
  height: clamp(48px, 6vw, 130px);
  background: var(--bark);
  border-radius: 3px;
  flex-shrink: 0;
}
.header h1 {
  font-size: clamp(2rem, 3vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--black);
  margin-top: clamp(30px, .7vw, 60px);
}
.header p {
  margin-top: clamp(6px, .7vw, 12px);
  font-size: clamp(12px, 0.9vw, 24px);
  color: var(--stone);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ser {
  padding: 0 clamp(20px, 3vw, 72px) clamp(60px, 5vw, 120px);
  gap: clamp(10px, 3vw, 60px);
  display: flex;
  flex-direction: column;
  max-width: 2400px;
  margin: 0 auto;
}
.row {
  display: grid;
  overflow: hidden;
  border-radius: clamp(14px, 1.2vw, 24px);
  box-shadow: 0 2px 20px rgba(53,60,63,0.07);
  transition: box-shadow 0.3s, transform 0.3s;
}
.row:hover {
  box-shadow: 0 8px 40px rgba(53,60,63,0.13);
  transform: translateY(-2px);
}
.row-1 {
  grid-template-columns: 4fr 2fr;
  min-height: clamp(260px, 18vw, 420px);
}
.row-2 {
  grid-template-columns: 2fr 3fr;
  min-height: clamp(240px, 16vw, 360px);
}
.row-3 {
  grid-template-columns: 3fr 3fr;
  min-height: clamp(280px, 20vw, 460px);
}
.row-4 {
  grid-template-columns: 2fr 4fr;
  min-height: clamp(240px, 16vw, 360px);
}
.row-2 .photo { order: 2; }
.row-2 .desc  { order: 1; }
.row-4 .photo { order: 2; }
.row-4 .desc  { order: 1; }
.photo {
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease, filter 0.4s ease;
   filter: brightness(0.9) saturate(0.85);
}
.row:hover .photo img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}
.photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.row:hover .photo::after { transform: scaleX(1); }
.desc {
  background: var(--sand);
  padding: clamp(28px, 3vw, 60px) clamp(24px, 2.8vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.desc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 22px, rgba(53,60,63,0.018) 22px, rgba(53,60,63,0.018) 23px);
  pointer-events: none;
}
.desc::after {
  content: attr(data-num);
  position: absolute;
  font-size: clamp(6rem, 9vw, 12rem);
  bottom: clamp(-10px, -1vw, -24px);
  right: 20px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: rgba(53,60,63,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.service-num {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(13px, 1vw, 30px);
  margin-bottom: clamp(12px, 2vw, 40px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-num::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--bark);
}
.desc h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(19px, 2vw, 80px);
  margin-bottom: clamp(14px, 2vw, 60px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--black);
}
.desc-text {
  color: var(--stone);
  font-size: clamp(16px, 1.2vw, 34px);
  line-height: 1.75;
  padding-left: clamp(12px, 1vw, 18px);
  min-height: clamp(70px, 6vw, 110px);
  border-left: 3px solid var(--bark);
}
.desc-cta {
  margin-top: clamp(20px, 2vw, 36px);
  font-size: clamp(16px, 1.2vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s, gap 0.3s;
}
.desc-cta::after { content: '→'; }
.row:hover .desc-cta {
  color: var(--bark);
  gap: 16px;
}
.bottom-bar {
  margin: 0 clamp(20px, 3vw, 72px);
  padding: clamp(20px, 2vw, 40px) 0;
  font-size: clamp(18px, 1vw, 40px);
  border-top: 1px solid rgba(53,60,63,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--stone);
}
.bottom-bar strong { color: var(--bark); }
.bottom-bar strong:hover { color: var(--black); }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(53, 60, 63, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  max-width: clamp(600px, 80vw, 1600px);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: translateY(24px);
  transition: transform .35s ease;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: clamp(16px, 1vw, 30px);
  right: clamp(16px, 1vw, 30px);
  background: transparent;
  border: none;
  color: var(--stone);
  cursor: none !important;
  z-index: 10;
  padding: clamp(8px, 1vw, 24px);
  transition: color .3s;
}
.modal-close svg {
  width: clamp(24px, 2vw, 80px);
  height: clamp(24px, 2vw, 80px);
}
.modal-close:hover { color: var(--bark); }
.modal-image-wrap { overflow: hidden; }
.modal-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: clamp(500px, 30vw, 800px);
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}
.modal-body {
  padding: clamp(32px, 3vw, 56px) clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.modal-label {
  font-size: clamp(12px, 1vw, 24px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bark);
  display: block;
  margin-bottom: clamp(30px, 5vw, 50px);
}
.modal-title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 48px);
  font-weight: 400;
  color: var(--earth);
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: clamp(10px, 1vw, 20px);
  padding-bottom: clamp(10px, 1vw, 20px);
  border-bottom: 1px solid var(--sand);
}
.modal-text {
  font-size: clamp(13px, 1.2vw, 40px);
  font-weight: 300;
  color: var(--stone);
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
  flex: 1;
}
.modal-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--earth);
  color: var(--earth);
  font-family: var(--sans);
  font-size: clamp(12px, 0.9vw, 20px);
  padding: clamp(12px, 1.2vw, 20px) clamp(24px, 2vw, 40px);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, color .3s, border-color .3s;
}
.modal-btn:hover {
  background: var(--bark);
  border-color: var(--bark);
  color: var(--white);
}
@media (min-width:601px) and (max-width:1000px) {
  .header { padding: clamp(20px, 5vw, 50px) clamp(20px, 5vw, 50px) 24px; }
  .ser { padding: 0 20px 60px; }
  .row-1, .row-2, .row-3, .row-4 {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .photo {
    order: 1 !important;
    min-height: 240px;
  }
  .desc {
    order: 2 !important;
    padding: 32px 28px;
  }
  .bottom-bar {
    margin: 0 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .header { padding: 20px 20px 24px; }
  .header h1 {
    font-size: 1.8rem;
    margin-top: clamp(30px, 10vw, 60px);
  }
  .ser { padding: 0 20px 60px; }
  .row-1, .row-2, .row-3, .row-4 {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .photo {
    order: 1 !important;
    min-height: 240px;
  }
  .desc {
    order: 2 !important;
    padding: 32px 28px;
  }
  .bottom-bar {
    margin: 0 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .modal { grid-template-columns: 1fr; }
  .modal-image-wrap img {
    height: clamp(180px, 40vw, 260px);
    min-height: unset;
  }
  .modal-body { padding: clamp(20px, 5vw, 32px) clamp(16px, 4vw, 24px); }
  .modal-label {
    font-size: clamp(9px, 2.5vw, 12px);
    letter-spacing: 0.22em;
    margin-bottom: clamp(16px, 4vw, 24px);
  }
  .modal-title {
    font-size: clamp(15px, 4vw, 20px);
    margin-bottom: clamp(6px, 2vw, 12px);
    padding-bottom: clamp(6px, 2vw, 12px);
  }
  .modal-text {
    font-size: clamp(12px, 3.4vw, 15px);
    line-height: 1.6;
    margin-bottom: clamp(16px, 4vw, 22px);
  }
  .modal-btn {
    font-size: clamp(10px, 2.8vw, 13px);
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 20px);
    letter-spacing: 0.18em;
  }
  .modal-close {
    top: clamp(10px, 3vw, 16px);
    right: clamp(10px, 3vw, 16px);
    padding: clamp(6px, 2vw, 10px);
  }
  .modal-close svg {
    width: clamp(16px, 5vw, 22px);
    height: clamp(16px, 5vw, 22px);
  }
}
