/* ========================================
   FRAME HOUSE - Style Sheet
   Industrial Modern / SE構法の家づくり
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F0F0F0;
  --bg-dark: #E4E4E4;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --wood: #C4956A;
  --wood-light: #D4A57A;
  --wood-dark: #A07550;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-300: #D0D0D0;
  --gray-400: #999999;
  --gray-500: #666666;
  --gray-600: #444444;
  --gray-700: #2A2A2A;
  --font: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--wood);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 56px;
  max-width: 600px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gray-700);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-full {
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 1rem;
}

/* --- Sample Banner --- */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 10000;
  letter-spacing: 0.05em;
}

.sample-banner a {
  color: var(--wood-light);
  text-decoration: underline;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 32px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}

.header.scrolled {
  top: 32px;
  background: rgba(240, 240, 240, 0.95);
  backdrop-filter: blur(10px);
  padding: 0 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.logo-main {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--white);
  transition: var(--transition);
}

.logo-sub {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.header.scrolled .logo-main {
  color: var(--black);
}

.header.scrolled .logo-sub {
  color: var(--gray-500);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  position: relative;
  transition: var(--transition);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--wood);
  transition: var(--transition);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.header.scrolled .nav-desktop a {
  color: var(--gray-600);
}

.header.scrolled .nav-desktop a:hover {
  color: var(--black);
}

.nav-cta {
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.5);
}

.nav-cta:hover {
  background: var(--white);
  color: var(--black) !important;
  border-color: var(--white);
}

.header.scrolled .nav-cta {
  border-color: var(--black);
}

.header.scrolled .nav-cta:hover {
  background: var(--black);
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.header.scrolled .hamburger span {
  background: var(--black);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--white);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--white);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.97);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-inner {
  text-align: center;
}

.mobile-nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 40px;
}

.mobile-nav-logo span {
  font-weight: 500;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-left: 6px;
  letter-spacing: 0.2em;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.mobile-nav-links a {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s ease;
}

.mobile-nav.active .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.active .mobile-nav-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-links a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active .mobile-nav-links a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.active .mobile-nav-links a:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav.active .mobile-nav-links a:nth-child(7) { transition-delay: 0.4s; }

.mobile-nav-phone {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wood);
  letter-spacing: 0.08em;
}

.mobile-nav-hours {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.visible .hero-bg img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.75) 0%,
    rgba(10, 10, 10, 0.4) 50%,
    rgba(10, 10, 10, 0.6) 100%
  );
  z-index: 1;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
}

.gl-v1 { left: 8%; top: 0; width: 1px; height: 100%; }
.gl-v2 { left: 50%; top: 0; width: 1px; height: 100%; }
.gl-v3 { right: 8%; top: 0; width: 1px; height: 100%; }
.gl-h1 { top: 65%; left: 0; width: 100%; height: 1px; }

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 80px;
}

.hero-lead {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--wood-light);
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 2;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 48px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.about-portrait {
  position: sticky;
  top: 120px;
}

.portrait-svg {
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--gray-300);
}

.portrait-caption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portrait-title {
  font-size: 0.75rem;
  color: var(--gray-500);
  letter-spacing: 0.1em;
}

.portrait-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.about-heading {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 32px;
}

.about-body p {
  margin-bottom: 16px;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-signature {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-300);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-signature span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.about-signature strong {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* --- SE Method --- */
.se-method {
  background: var(--white);
}

.se-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 72px;
}

.se-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  padding: 32px;
  border: 1px solid var(--gray-200);
}

.se-svg {
  width: 100%;
  max-width: 500px;
}

.se-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.se-feature {
  padding-left: 56px;
  position: relative;
}

.se-feature-num {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--wood);
  letter-spacing: 0.05em;
}

.se-feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.se-feature p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* Comparison Table */
.se-comparison {
  background: var(--gray-100);
  padding: 40px;
  border: 1px solid var(--gray-200);
}

.se-comparison-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.se-comparison-table {
  width: 100%;
}

.se-comp-header,
.se-comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.se-comp-header {
  border-bottom: 2px solid var(--black);
  padding-bottom: 12px;
  margin-bottom: 0;
}

.se-comp-header .se-comp-item {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.se-comp-row {
  border-bottom: 1px solid var(--gray-300);
}

.se-comp-item {
  padding: 14px 8px;
  font-size: 0.88rem;
  color: var(--gray-500);
}

.se-comp-row .se-comp-item:first-child {
  font-weight: 600;
  color: var(--black);
}

.se-comp-highlight {
  color: var(--black) !important;
  font-weight: 600 !important;
  background: rgba(196, 149, 106, 0.08);
}

/* --- Works --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.works-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}

.works-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.works-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.works-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.works-card:hover .works-card-img img {
  transform: scale(1.05);
}

.works-card-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--black);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 12px;
}

.works-card-body {
  padding: 24px;
}

.works-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.works-card-spec {
  font-size: 0.78rem;
  color: var(--wood);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.works-card-body p:last-child {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* --- Numbers --- */
.numbers {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.numbers .section-label {
  color: var(--wood);
}

.numbers .section-title {
  color: var(--white);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.number-card {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.number-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--wood);
}

.number-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--white);
}

.number-unit {
  font-size: 0.5em;
  font-weight: 500;
  margin-left: 2px;
}

.number-label {
  font-size: 0.82rem;
  color: var(--gray-400);
  letter-spacing: 0.08em;
}

/* --- Process --- */
.process-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.process-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gray-300);
}

.process-step {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.process-step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  padding-top: 12px;
}

.process-step-content p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* --- FAQ --- */
.faq {
  background: var(--white);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  gap: 16px;
  transition: var(--transition);
  line-height: 1.6;
}

.faq-question:hover {
  color: var(--wood-dark);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.9;
  padding-left: 0;
}

/* --- Company --- */
.company-table {
  max-width: 780px;
  margin: 48px auto 0;
}

.company-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--gray-200);
}

.company-th {
  padding: 18px 16px 18px 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.03em;
}

.company-td {
  padding: 18px 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* --- Contact --- */
.contact {
  background: var(--gray-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  margin-top: 48px;
}

.contact-info-block {
  margin-bottom: 32px;
}

.contact-info-block:last-child {
  margin-bottom: 0;
}

.contact-info-block h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.contact-info-block p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.8;
}

.contact-phone {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-of-type {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.required {
  font-size: 0.7rem;
  color: var(--wood);
  margin-left: 4px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  background: var(--gray-100);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--wood);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.footer-logo span {
  font-weight: 500;
  font-size: 0.75rem;
  margin-left: 6px;
  letter-spacing: 0.2em;
  color: var(--gray-400);
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--gray-400);
  letter-spacing: 0.03em;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.footer-credit a {
  color: var(--wood);
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .se-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-portrait {
    position: static;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .portrait-svg {
    max-width: 120px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .contact-form {
    padding: 24px;
  }

  .se-comparison {
    padding: 24px;
    overflow-x: auto;
  }

  .company-row {
    grid-template-columns: 110px 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-scroll {
    display: none;
  }

  .hero-content {
    padding-top: 100px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .number-card {
    padding: 24px 12px;
  }

  .se-comp-item {
    padding: 10px 4px;
    font-size: 0.78rem;
  }

  .process-step {
    gap: 20px;
  }

  .process-step-num {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .process-line {
    left: 20px;
  }
}
