/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --accent: #0EA5E9;
  --dark: #0F172A;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --white: #FFFFFF;

  --font: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1160px;
  --container-pad: 1.5rem;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.08), 0 8px 10px rgba(0,0,0,.04);

  --radius-sm: .25rem;
  --radius:    .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ===== RESET ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
fieldset { border: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 { line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 580px;
  line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: .9375rem;
  font-weight: 600;
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 0 4px rgba(37,99,235,.25);
  transform: translateY(-1px);
}

.btn--outline {
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.12);
}

.btn--ghost {
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.header--light,
.header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav__logo img { height: 34px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: .25rem 0;
  position: relative;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav__link:hover,
.nav__link.active { color: var(--primary); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }

.nav__cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: .5rem 1.375rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .9375rem;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.nav__cta::after { display: none !important; }
.nav__cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Transparent header state (over dark hero) */
.header:not(.header--light):not(.scrolled) .nav__link { color: rgba(255,255,255,.8); }
.header:not(.header--light):not(.scrolled) .nav__link:hover { color: var(--white); }
.header:not(.header--light):not(.scrolled) .nav__link::after { background: var(--white); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--gray-700);
}
.header:not(.header--light):not(.scrolled) .nav__hamburger { color: var(--white); }
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 2rem var(--container-pad);
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-800);
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  display: block;
}
.nav__mobile-cta {
  margin-top: 1.5rem;
  text-align: center;
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #0F172A 0%, #1E3A8A 55%, #1E40AF 100%);
}

/* Decorative glows */
.hero__bg::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.25) 0%, transparent 70%);
  right: -150px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero__bg::after {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.2) 0%, transparent 70%);
  right: 180px; top: 5%;
  pointer-events: none;
}

/* Decorative grid dots */
.hero__dots {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, 40vw);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .12;
  background-image: radial-gradient(circle, rgba(255,255,255,.8) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding-top: 68px;
}

.hero__label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.125rem, 5.5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -.03em;
}

.hero__sub {
  font-size: clamp(.9375rem, 1.8vw, 1.0625rem);
  color: rgba(255,255,255,.68);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
  color: rgba(255,255,255,.4);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0; transform: scaleY(.5) translateY(-8px); }
  50%      { opacity: 1; transform: scaleY(1)  translateY(0); }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(140deg, #0F172A, #1E3A8A);
  padding: calc(68px + 4.5rem) var(--container-pad) 4.5rem;
  text-align: center;
}
.page-hero__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: .5rem;
}
.page-hero__sub {
  font-size: .9375rem;
  color: rgba(255,255,255,.55);
}

/* ===== SECTION COMMON ===== */
.section { padding: 5.5rem 0; }
.section__header { text-align: center; margin-bottom: 3.5rem; }
.section__header .section-sub { margin: 0 auto; }

/* ===== SERVICES ===== */
.services { background: var(--gray-50); }

.services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.375rem;
  justify-content: center;
}

.service-card {
  flex: 1 1 300px;
  max-width: 345px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.service-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 26px; height: 26px; }

.service-card:nth-child(1) .service-card__icon { background: #EFF6FF; color: #3B82F6; }
.service-card:nth-child(2) .service-card__icon { background: #F5F3FF; color: #8B5CF6; }
.service-card:nth-child(3) .service-card__icon { background: #ECFEFF; color: #06B6D4; }
.service-card:nth-child(4) .service-card__icon { background: #ECFDF5; color: #10B981; }
.service-card:nth-child(5) .service-card__icon { background: #FFFBEB; color: #F59E0B; }

.service-card__catch {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
  letter-spacing: .02em;
}
.service-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .75rem;
  line-height: 1.4;
}
.service-card__desc {
  font-size: .9375rem;
  color: var(--gray-600);
  line-height: 1.75;
}
.service-card__desc a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: text-decoration-color .2s var(--ease);
}
.service-card__desc a:hover {
  text-decoration-color: var(--primary);
}

/* ===== WORKS (homepage teaser) ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.work-card__thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.work-card__thumb svg { width: 48px; height: 48px; opacity: .6; color: var(--white); }

.work-card__body { padding: 1.25rem 1.375rem 1.5rem; }

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: .75rem;
}
.work-card__tag {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--primary);
  background: var(--primary-light);
  padding: .2rem .625rem;
  border-radius: var(--radius-full);
}

.work-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .375rem;
  line-height: 1.45;
}
.work-card__desc {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.works__cta { text-align: center; }

/* Thumb gradients */
.thumb--blue   { background: linear-gradient(135deg, #1E40AF, #3B82F6); }
.thumb--purple { background: linear-gradient(135deg, #5B21B6, #8B5CF6); }
.thumb--cyan   { background: linear-gradient(135deg, #0E7490, #06B6D4); }
.thumb--green  { background: linear-gradient(135deg, #065F46, #10B981); }
.thumb--amber  { background: linear-gradient(135deg, #92400E, #F59E0B); }
.thumb--rose   { background: linear-gradient(135deg, #9F1239, #F43F5E); }
.thumb--indigo { background: linear-gradient(135deg, #312E81, #6366F1); }
/* B2B専用カラー（スレート） */
.thumb--b2b    { background: linear-gradient(135deg, #1E293B, #475569); }

/* ===== COMPANY TEASER ===== */
.about { background: var(--gray-50); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
.about__fact {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.about__fact-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: .25rem;
}
.about__fact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
}

.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__visual-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1E3A8A, #2563EB);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about__visual-box::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.08);
  right: -80px; bottom: -80px;
}
.about__visual-box::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 30px solid rgba(255,255,255,.06);
  left: -50px; top: -50px;
}
.about__visual-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.about__visual-logo img { filter: brightness(0) invert(1); max-height: 60px; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(140deg, #0F172A, #1E3A8A);
  padding: 5rem 0;
  text-align: center;
}
.cta-section__title {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-section__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 2.25rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo img {
  height: 32px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer__tagline { font-size: .875rem; line-height: 1.75; }

.footer__heading {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: .625rem; }
.footer__link {
  font-size: .9375rem;
  color: rgba(255,255,255,.65);
  transition: color .15s var(--ease);
}
.footer__link:hover { color: var(--white); }

.footer__info { font-size: .9375rem; line-height: 1.9; }
.footer__bottom {
  text-align: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.3);
}

/* ===== WORKS PAGE ===== */
.works-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: .5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 600;
  border: 2px solid var(--gray-300);
  color: var(--gray-600);
  background: var(--white);
  transition: all .2s var(--ease);
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.works-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.work-card--hidden { display: none; }

/* ===== COMPANY PAGE ===== */
.company-section { background: var(--white); }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: .9375rem;
  text-align: left;
  vertical-align: top;
}
.company-table th {
  width: 200px;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  background: var(--gray-50);
}
.company-table td { color: var(--gray-700); }
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.access-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
}
.access-box__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .75rem;
}
.access-box__text {
  font-size: .9375rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ===== MAP ===== */
.map-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  position: relative;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
}
.map-wrap__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--gray-500);
  padding: .625rem 1rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  transition: color .15s var(--ease);
  width: 100%;
}
.map-wrap__link::before {
  content: '↗';
  font-size: .75rem;
}
.map-wrap__link:hover { color: var(--primary); }

@media (max-width: 768px) {
  .map-wrap iframe { height: 280px; }
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.client-tag {
  font-size: .875rem;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: .4rem 1rem;
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.contact-info__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__label {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: .04em;
  margin-bottom: .25rem;
}
.contact-info__text {
  font-size: .9375rem;
  color: var(--gray-800);
  line-height: 1.7;
}

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.375rem;
}
.form-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: .5rem;
}
.form-required {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--white);
  background: #EF4444;
  padding: .1rem .45rem;
  border-radius: var(--radius-sm);
  letter-spacing: .04em;
}
.form-optional {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-200);
  padding: .1rem .45rem;
  border-radius: var(--radius-sm);
}
.form-hint {
  font-size: .8125rem;
  color: var(--gray-500);
  margin-top: .375rem;
}

.form-control {
  width: 100%;
  padding: .6875rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .9375rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-control.error { border-color: #EF4444; }
.form-control::placeholder { color: var(--gray-400); }

textarea.form-control { resize: vertical; min-height: 160px; }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  font-size: .8125rem;
  color: #EF4444;
  margin-top: .375rem;
  display: none;
}
.form-error.show { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit { margin-top: 2rem; text-align: center; }
.form-submit .btn { min-width: 200px; padding: .875rem 2.5rem; font-size: 1rem; justify-content: center; }

.form-success {
  text-align: center;
  padding: 3rem 2rem;
  display: none;
}
.form-success.show { display: block; }
.form-success__icon {
  width: 72px; height: 72px;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.form-success__icon svg { width: 36px; height: 36px; }
.form-success__title { font-size: 1.375rem; color: var(--gray-900); margin-bottom: .75rem; }
.form-success__text { color: var(--gray-600); line-height: 1.8; margin-bottom: 1.75rem; }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.fade-in:nth-child(2) { transition-delay: .08s; }
.fade-in:nth-child(3) { transition-delay: .16s; }
.fade-in:nth-child(4) { transition-delay: .24s; }
.fade-in:nth-child(5) { transition-delay: .32s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .works-grid,
  .works-page-grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual { display: none; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__title { font-size: clamp(1.875rem, 8vw, 2.75rem); }
  .hero__dots { display: none; }

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

  .company-table { display: block; }
  .company-table thead { display: none; }
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td { display: block; width: 100%; }
  .company-table th { background: none; font-size: .75rem; color: var(--gray-500); padding-bottom: .25rem; border-bottom: none; }
  .company-table td { padding-top: 0; }

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

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.75rem; }

  .section { padding: 4rem 0; }

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

@media (max-width: 480px) {
  :root { --container-pad: 1rem; }
  .btn { padding: .6875rem 1.375rem; font-size: .9rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}
