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

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

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

main { display: flex; gap: 100px; }

article { flex: 0 0 60%; }

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

.block {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #2a2d33;
}

.block.no-line { border-bottom: none; padding-bottom: 0; }

h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: #A0A6AD;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s;
}

.row:hover { color: #fff; }

.row svg { flex-shrink: 0; margin-top: 2px; }

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

aside { flex: 1; display: flex; flex-direction: column; gap: 32px; padding-top: 112px; }

.card {
  flex: 1;
  min-height: 180px;
  border: 2px solid #D4A373;
  border-radius: 8px;
  background: var(--bg) center / cover no-repeat;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.card span {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: .04em;
  position: relative;
  z-index: 1;
  transition: transform .3s ease;
}

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

.card:hover::before { background: rgba(0,0,0,.8); }
.card:hover span { transform: scale(.8); }
.card:hover small { opacity: 1; }

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; }

.phone { display: flex; align-items: center; gap: 12px; color: #fff; }
.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: 24px 48px 40px; }
  main { gap: 48px; }
  h1 { font-size: 40px; }
  h2 { font-size: 24px; }
  .row { font-size: 18px; }
  .card span { font-size: 40px; }
  hr { width: 100%; }
}

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

  main { flex-direction: column; gap: 0; }

  .logo { height: 60px; margin-bottom: 24px; }

  h1 { font-size: 32px; margin-bottom: 28px; }

  h2 { font-size: 22px; }

  .row { font-size: 16px; }

  aside { flex-direction: column; gap: 24px; padding-top: 32px; }

  .card { min-height: 160px; flex: none; }
  .card::before { background: rgba(0,0,0,0.3); }
  .card span { font-size: 32px; }
  .card:hover::before { background: rgba(0,0,0,0.3); }
  .card:hover span { transform: none; }
  .card:active { transform: scale(.97); }

  hr { width: 100%; margin-bottom: 20px; }

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

/* ── SMALL MOBILE ── */
@media (max-width: 480px) {
  body { padding: 20px 20px 28px; }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  .card span { font-size: 28px; }
  .phone strong { font-size: 16px; }
  .icons { gap: 14px; }
}
