
/* ============ Base Reset (minimal) ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height: 1.5; color: #111; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; }

/* ============ Design Tokens ============ */
:root {
  --bg-dark: #292929;
  --bg-light: #ffffff;
  --text-dark: #111111;
  --text-light: #ffffff;
  --accent: #f6d855; /* близко к оригинальному жёлтому */
  --muted: #666666;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --container: 1120px;
}

/* ============ Layout ============ */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: var(--bg-dark); color: var(--text-light); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { font-weight: 700; letter-spacing: .2px; }
.nav a { display: inline-block; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: rgba(255,255,255,.08); }

/* Hero */
.hero { background: var(--bg-dark); color: var(--text-light); padding: 80px 0; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.card { background: var(--bg-light); color: var(--text-dark); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card--image { background: center/cover no-repeat; min-height: 420px; }
.hero__content { padding: 32px; }
.kicker { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: 12px; margin-bottom: 10px; }
.h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; line-height: 1.2; }
.lead { font-size: 16px; color: #333; }

/* Section */
.section { padding: 80px 0; }
.section--accent { background: var(--accent); }
.section__title { font-size: clamp(24px, 3vw, 36px); text-align: center; margin: 0 0 12px; }
.section__descr { max-width: 720px; margin: 0 auto 32px; color: #333; text-align: center; }

/* Portfolio grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.12); }
.portfolio-card__image { aspect-ratio: 1 / 1; background: #eee center/cover no-repeat; }
.portfolio-card__body { padding: 16px; }
.portfolio-card__title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.portfolio-card__descr { font-size: 14px; color: #444; }
.portfolio-card__link {
  margin: 12px 16px 16px;
  align-self: center; /* <-- ставит кнопку по центру */
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-dark);
  color: var(--text-light);
}
/* Contact */
.contact { background: var(--bg-dark); color: var(--text-light); }
.contact .section__descr { color: #ddd; }
.contact__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.contact__card { background: #1f1f1f; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact__list li + li { margin-top: 8px; }
.socials { display: flex; gap: 12px; margin-top: 12px; }
.socials a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--accent); }
.socials img, .socials svg { width: 100%; height: 100%; }

/* Footer */
.footer { background: var(--bg-dark); color: #aaa; text-align: center; padding: 24px 0; border-top: 1px solid #333; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid, .contact__wrap { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .section { padding: 56px 0; }
}
