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

body {
  background: #0F1115;
  font-family: 'Manrope', sans-serif;
  color: #A0A6AD;
  padding: 0 128px 48px;
}

/* ── HEADER ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 32px;
}

.logo { height: 72px; display: block; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }

.burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 32px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ── OVERLAY MENU ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
  cursor: pointer;
}

nav {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 80px 32px 32px;
  background: #0F1115;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.menu-back {
  display: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 16px;
}


#nav-open:checked ~ .overlay { opacity: 1; pointer-events: all; }
#nav-open:checked ~ .overlay nav { transform: translateX(0); }

/* ── NAV CARDS ── */
.nc {
  flex: 1;
  border: 2px solid #D4A373;
  border-radius: 6px;
  background: var(--bg) center / cover no-repeat;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  transition: background .3s ease;
}

.nc span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  transition: transform .3s ease;
}

.nc small {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  color: #A0A6AD;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 2;
}

.nc:hover::before { background: rgba(0,0,0,.8); }
.nc:hover span { transform: scale(.85); }
.nc:hover small { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── HEADING ── */
h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid #fff;
  margin-bottom: 32px;
  display: inline-block;
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card.full { grid-column: 1 / 2; }

/* ── CARD ── */
.card {
  border: 2px solid #D4A373;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: #161a20;
  transition: transform .3s ease;
}

.card h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  padding: 18px 16px 12px;
  line-height: 1.4;
  transition: transform .3s ease;
  position: relative;
  z-index: 1;
}

.card img {
  width: 100%;
  display: block;
  object-fit: cover;
  flex: 1;
  min-height: 180px;
  transition: filter .3s ease;
}

.card small {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  color: #A0A6AD;
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 3;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  transition: background .3s ease;
  z-index: 2;
  pointer-events: none;
}

.card:hover::before { background: rgba(0,0,0,.8); }
.card:hover { transform: scale(.98); }
.card:hover h3 { transform: scale(.9); }
.card:hover small { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── FOOTER ── */
footer { margin-top: 32px; }

hr { width: 1140px; max-width: 100%; margin: 0 auto 32px; border: none; border-top: 1px solid #A0A6AD; }

.foot { display: flex; align-items: center; justify-content: space-between; }
.foot > img { height: 80px; }

.socials { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.socials strong { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .05em; }

.icons { display: flex; gap: 20px; align-items: center; }
.icons a { display: flex; opacity: .85; transition: opacity .2s; }
.icons a:hover { opacity: 1; }

.phone { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.phone strong { font-size: 24px; font-weight: 700; }

.phone-n {
  text-decoration: none;
  color: #FFFFFF;
  transition: 0.3s;
}

.phone-n:hover {
  color: #A0A6AD;
}

/* ── TABLET ── */
@media (max-width: 1024px) {
  body { padding: 0 48px 40px; }
  h1 { font-size: 40px; }
  nav { width: 300px; }
  hr { width: 100%; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  body { padding: 0 32px 32px; }

  h1 { font-size: 32px; }

  nav { width: 100%; padding: 80px 24px 32px; }

  .grid { grid-template-columns: 1fr; }
  .card.full { grid-column: 1; }

  .card h3 { font-size: 16px; padding: 14px 12px 10px; }
  .card img { min-height: 140px; }
  .card small { font-size: 16px; bottom: 20px; }

  .card::before { background: rgba(0,0,0,.2); }
  .card:hover::before { background: rgba(0,0,0,.2); }
  .card:hover { transform: none; }
  .card:hover h3 { transform: none; }
  .card:active { transform: scale(.97); }

  hr { width: 100%; margin-bottom: 20px; }
  .foot { flex-wrap: wrap; }
  .foot > img { height: 56px; order: 1; }
  .phone { order: 2; }
  .phone strong { font-size: 16px; }
  .socials { order: 3; width: 100%; margin-top: 20px; }
  .socials strong { font-size: 16px; }
}

@media (max-width: 768px) {
  .menu-back {
    display: block;
  }
}

@media (max-width: 480px) {
  body { padding: 0 20px 24px; }
  h1 { font-size: 26px; }
  .icons { gap: 14px; }
}
