:root {
  --blue: #1457d9;
  --blue-dark: #0f2f70;
  --ink: #101828;
  --text: #475467;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f8fafc;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; font-weight: 700; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; color: var(--ink); background: var(--white); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; font-weight: 800; cursor: pointer; }

.hero { padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow, .section-label { margin-bottom: 18px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 760px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.065em; font-weight: 900; }
.hero-text { max-width: 620px; margin-top: 26px; color: var(--text); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 14px; padding: 12px 20px; font-weight: 800; transition: .2s ease; }
.button-primary { background: var(--blue); color: var(--white); box-shadow: 0 12px 28px rgba(20,87,217,.18); }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.button:hover, .project-card:hover, .case-card:hover { transform: translateY(-2px); }
.hero-visual { position: relative; min-height: 500px; border-radius: 32px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,24,40,.34), transparent 55%); pointer-events: none; }
.floating-card { position: absolute; z-index: 2; right: 34px; bottom: 36px; width: 230px; border-radius: 20px; padding: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 22px 45px rgba(16,24,40,.14); }
.floating-card strong { display: block; color: var(--blue); font-size: 34px; line-height: 1; letter-spacing: -.05em; }
.floating-card span { display: block; margin-top: 8px; color: var(--text); font-size: 14px; font-weight: 700; }

section { padding: 78px 0; }
.section-soft { background: var(--soft); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.06; letter-spacing: -.055em; font-weight: 900; }
.section-heading p { margin-top: 16px; color: var(--text); font-size: 17px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card, .case-card { display: flex; min-height: 100%; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 10px 30px rgba(16,24,40,.04); transition: .2s ease; }
.project-card:hover, .case-card:hover { box-shadow: var(--shadow); }
.project-image { min-height: 220px; display: flex; align-items: center; justify-content: center; background: #f9fafb; border-bottom: 1px solid var(--line); overflow: hidden; }
.project-image img, .case-image img { width: 100%; height: 260px; object-fit: cover; transition: .25s ease; }
.project-card:hover .project-image img, .case-card:hover .case-image img { transform: scale(1.035); }
.project-content, .case-content { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.tag { width: fit-content; border-radius: 999px; background: #eef4ff; padding: 6px 11px; color: var(--blue); font-size: 12px; font-weight: 800; }
h3 { margin-top: 15px; font-size: 23px; line-height: 1.15; letter-spacing: -.035em; font-weight: 900; }
.project-content p, .case-content p { margin-top: 12px; color: var(--text); font-size: 15px; }
.card-link { margin-top: auto; padding-top: 24px; color: var(--blue); font-size: 15px; font-weight: 800; }
.card-link::after { content: " →"; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 26px; }
.service-card span { display: inline-flex; margin-bottom: 18px; color: var(--blue); font-weight: 900; }
.service-card h3 { margin-top: 0; font-size: 21px; }
.service-card p { margin-top: 12px; color: var(--text); font-size: 15px; }
.approach { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; align-items: start; }
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: 20px; }
.step-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--blue); color: var(--white); font-weight: 900; }
.step h3 { margin-top: 0; font-size: 19px; }
.step p { margin-top: 6px; color: var(--text); font-size: 15px; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; margin: 0 auto; justify-content: center; }
.skill { border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 9px 14px; color: var(--text); font-size: 14px; font-weight: 700; }
.contact-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; border-radius: 28px; background: var(--blue-dark); color: var(--white); padding: 42px; }
.contact-card h2 { color: var(--white); }
.contact-card p { max-width: 660px; margin-top: 14px; color: #dbe7ff; font-size: 17px; }
.contact-form { display: grid; gap: 14px; border-radius: 22px; background: var(--white); padding: 24px; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--ink); font-size: 14px; font-weight: 800; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 13px 14px; color: var(--ink); font: inherit; outline: none; transition: .2s ease; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,87,217,.10); }
.form-note { color: var(--muted); font-size: 13px; }
.form-submit { width: fit-content; border: 0; cursor: pointer; background: var(--blue); color: var(--white); }
.form-status { display: none; border-radius: 16px; padding: 14px 16px; font-size: 14px; font-weight: 700; }
.form-success:not(:empty) { display: block; background: #ecfdf3; color: #027a48; }
.form-error:not(:empty), .field-error:not(:empty) { display: block; color: #b42318; }
.field-error { min-height: 0; font-size: 13px; font-weight: 700; }
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"], .form-field select[aria-invalid="true"] { border-color: #f04438; box-shadow: 0 0 0 4px rgba(240,68,56,.10); }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); text-align: center; font-size: 14px; }

.case-hero { padding: 78px 0 40px; }
.case-hero .hero-text { max-width: 760px; }
.breadcrumb { color: var(--muted); font-size: 14px; font-weight: 700; margin-bottom: 24px; }
.breadcrumb a { color: var(--blue); }
.case-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: start; }
.case-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 26px; box-shadow: 0 10px 30px rgba(16,24,40,.04); }
.case-panel ul { margin-top: 14px; padding-left: 20px; color: var(--text); }
.case-panel li + li { margin-top: 8px; }
.case-list { display: grid; gap: 18px; }
.case-card { display: grid; grid-template-columns: .85fr 1.15fr; }
.case-image { overflow: hidden; background: #f9fafb; }
.case-image img { height: 100%; min-height: 260px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .approach, .contact-card, .case-layout { grid-template-columns: 1fr; }
  .project-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual, .hero-visual img { min-height: 430px; }
  .case-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav { min-height: 62px; }
  .menu-toggle { display: inline-flex; }
  .nav-links { position: absolute; left: 14px; right: 14px; top: 68px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px; }
  .hero { padding: 56px 0 48px; }
  .hero-visual, .hero-visual img { min-height: 360px; }
  .floating-card { left: 20px; right: 20px; bottom: 20px; width: auto; }
  section { padding: 58px 0; }
  .project-grid, .services-grid, .form-row { grid-template-columns: 1fr; }
  .project-image { min-height: 190px; }
  .contact-card { padding: 28px; }
  .contact-form { padding: 20px; }
}
