:root {
  --bg: #f8f7f5;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #191919;
  --muted: #666666;
  --border: rgba(25, 25, 25, 0.08);
  --accent: #b31312;
  --accent-soft: rgba(179, 19, 18, 0.08);
  --shadow: 0 14px 40px rgba(25, 25, 25, 0.08);
  --radius: 24px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(179, 19, 18, 0.06), transparent 28%),
    linear-gradient(180deg, #fcfbf9 0%, var(--bg) 100%);
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

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

.section {
  padding: 56px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px 0 0;
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 18px;
}

.lang-toggle,
.toggle-works {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-toggle:hover,
.toggle-works:hover,
.button:hover,
.work-card:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 88px 0 44px;
}

.hero-inner {
  padding: 40px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-role {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--muted);
}

.hero-copy {
  margin: 24px 0 10px;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.hero-description {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(179, 19, 18, 0.2);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.contact-card h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.profile-card,
.contact-card,
.service-card,
.work-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-card,
.contact-card {
  padding: 28px;
}

.profile-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.profile-card p + p {
  margin-top: 14px;
}

.services-grid,
.works-grid {
  display: grid;
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 24px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.works-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.works-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
  min-height: 100%;
  transition: 0.2s ease;
}

.work-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  background: #ece8e4;
  box-shadow: inset 0 0 0 1px rgba(25, 25, 25, 0.05);
}

.work-content h3 {
  margin: 10px 0 10px;
  font-size: 1.25rem;
}

.work-content p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  padding-bottom: 80px;
}

.contact-card {
  text-align: center;
}

.contact-mail {
  display: inline-block;
  margin-top: 14px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--accent);
}

@media (min-width: 769px) {
  .toggle-works {
    display: none;
  }
}

@media (max-width: 900px) {
  .services-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 42px 0;
  }

  .header-inner {
    padding: 12px 14px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-inner {
    padding: 28px 22px;
  }

  .works-heading {
    align-items: center;
  }

  .works-grid .mobile-collapsed {
    display: none;
  }

  .works-grid.is-expanded .mobile-collapsed {
    display: flex;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
