:root {
  --bg: #f4f4f4;
  --paper: #ffffff;
  --ink: #313131;
  --muted: #666666;
  --line: #d7d7d7;
  --soft: #ececec;
  --dark: #4a4a4a;
  --dark-2: #3f3f3f;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand img {
  width: 270px;
  height: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.menu a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #303030;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 30, 30, 0.74) 0%, rgba(30, 30, 30, 0.38) 52%, rgba(30, 30, 30, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 64px 0;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.82;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section {
  padding: 54px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(236,236,236,0.9) 100%);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 42px;
}

.section-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 600;
  color: var(--dark-2);
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--dark-2);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 16px;
  font-size: 16px;
  color: #515151;
}

p:last-child {
  margin-bottom: 0;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.practice-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
  min-height: 100%;
}

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

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.contact-card-dark {
  background: var(--dark);
  border-color: var(--dark);
}

.contact-card-dark .section-label,
.contact-card-dark h2,
.contact-card-dark .contact-data {
  color: var(--white);
}

.contact-data {
  font-size: 20px;
  line-height: 1.6;
  color: var(--dark-2);
}

.site-footer {
  padding: 24px 0 36px;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .brand img {
    width: 220px;
  }

  .menu {
    display: none;
  }

  .hero {
    min-height: 350px;
  }

  .hero-content {
    padding: 48px 0;
  }

  .panel,
  .practice-card,
  .contact-card {
    padding: 24px;
  }

  .practice-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 74px;
    padding: 12px 0;
  }

  .brand img {
    width: 200px;
  }

  .hero {
    min-height: 300px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(30,30,30,0.64) 0%, rgba(30,30,30,0.42) 100%);
  }

  .hero-content {
    padding: 34px 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.14;
  }

  .section {
    padding: 34px 0;
  }

  .section-label {
    font-size: 11px;
  }

  h2 {
    font-size: 28px;
    margin-bottom: 14px;
  }

  h3 {
    font-size: 17px;
  }

  p {
    font-size: 15px;
    line-height: 1.65;
  }

  .contact-data {
    font-size: 18px;
    line-height: 1.5;
  }

  .footer-inner {
    flex-direction: column;
  }
}
