:root {
  color-scheme: light;
  --paper: #f3f4f6;
  --white: #fff;
  --ink: #121720;
  --muted: #515966;
  --line: #d8dce4;
  --blue: #1949eb;
  --blue-dark: #153cc2;
  --night: #111723;
  --radius: 16px;
  font: 16px/1.55 "Inter", "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
p { color: var(--muted); }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 5.5vw, 6rem); font-weight: 760; }
h2 { font-size: clamp(2.25rem, 4.1vw, 4.35rem); font-weight: 750; }
h3 { font-size: clamp(1.25rem, 2.45vw, 2rem); }
:focus-visible { outline: 3px solid #6787ff; outline-offset: 4px; }
section[id], footer[id] { scroll-margin-top: 18px; }
.wrap { width: min(1352px, calc(100% - 9vw)); margin-inline: auto; }
.skip { position: fixed; z-index: 9; top: 12px; left: 12px; padding: 10px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.head-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 8px; text-decoration: none; font-size: 17px; font-weight: 850; letter-spacing: -.045em; }
.brand span { color: var(--blue); margin-left: -5px; }
.head-inner nav { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 42px); }
.head-inner nav a { color: #303946; font-size: 14px; font-weight: 650; text-decoration: none; }
.head-inner nav a:hover, .text-link:hover, .footer-bottom > a:last-child:hover { color: var(--blue); }

.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; width: fit-content;
  border: 1px solid transparent; border-radius: 8px; padding: 14px 19px;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.3;
  text-decoration: none; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s;
}
.button span { font-size: 17px; line-height: 1; }
.button.small { padding: 10px 14px; font-size: 14px; }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover { background: var(--blue-dark); }
.button.dark { background: var(--ink); color: white; }
.button.dark:hover { background: #313949; }
.button.light { background: white; color: var(--ink); }
.button.light:hover { background: #dee7ff; }
.button.outline { color: var(--ink); border-color: #b8c0ce; background: transparent; }
.button.outline:hover { border-color: var(--blue); color: var(--blue); }
.text-link { text-decoration: none; font-size: 15px; font-weight: 700; }
.text-link span { margin-left: 4px; }

.hero { padding-top: clamp(25px, 4.2vw, 66px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(25px, 4vw, 68px); align-items: center; }
.hero-text { padding-block: 21px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #394352; font-size: .72rem; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; line-height: 1.35; }
.dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; flex: 0 0 7px; }
.hero-text h1 { margin-top: 21px; }
.hero-text em { color: var(--blue); font-style: normal; }
.hero-lead { margin-top: 21px; max-width: 37ch; font-size: clamp(1.01rem, 1.65vw, 1.26rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 23px; margin-top: 30px; }
.hero-photo { position: relative; height: clamp(360px, 37vw, 550px); overflow: hidden; border-radius: var(--radius); background: #171c24; }
.hero-photo img { height: 100%; width: 100%; object-fit: cover; object-position: 52% center; }
.hero-photo figcaption { position: absolute; bottom: 16px; left: 16px; display: flex; align-items: center; gap: 8px; background: #121722eb; border: 1px solid #ffffff35; border-radius: 7px; padding: 7px 10px; color: #fff; font-size: 12px; }
.hero-photo .dot { background: #829dff; }
.hero-facts { margin-top: clamp(24px, 3vw, 42px); display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.hero-facts > div { padding: 17px clamp(13px, 2.8vw, 36px); }
.hero-facts > div:first-child { padding-left: 0; }
.hero-facts > div + div { border-left: 1px solid var(--line); }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font-size: clamp(1.12rem, 2.2vw, 1.65rem); line-height: 1.15; letter-spacing: -.04em; }
.hero-facts span { color: var(--muted); font-size: clamp(.75rem, 1.5vw, .92rem); margin-top: 3px; }

.section { padding-block: clamp(53px, 7vw, 105px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(24px, 3.4vw, 42px); }
.section-heading h2, .about-grid h2, .faq-grid h2, .footer-top h2 { margin-top: 12px; }
.section-heading > p { max-width: 48ch; }
.technology-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tech-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 38px); display: flex; flex-direction: column; align-items: start; }
.tech-tag, .chips li { width: fit-content; font-size: .78rem; font-weight: 700; border-radius: 5px; padding: 3px 8px; }
.tech-tag { color: #1439b4; background: #e8eeff; }
.tech-card h3 { margin: 16px 0 10px; }
.tech-card > p { max-width: 53ch; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 17px 0 20px; padding: 0; list-style: none; }
.chips li { background: #eff1f5; color: #384150; }
.tech-card .tech-note { margin-top: auto; padding-top: 11px; font-size: .82rem; }
.tech-note a { text-underline-offset: 2px; }
.section-action { margin-top: 22px; }
.with-note { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.with-note small { color: var(--muted); }

.estimate-section { background: #e7ecf5; }
.estimate-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 15px; }
.estimate-fields, .estimate-result { border-radius: var(--radius); padding: clamp(20px, 3.3vw, 43px); }
.estimate-fields { background: white; border: 1px solid #d4dce9; }
.fields { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
label { display: block; font-size: 14px; font-weight: 700; }
input, select, textarea { display: block; width: 100%; min-width: 0; margin-top: 6px; padding: 10px; border: 1px solid #bbc3d0; border-radius: 7px; background: #fafbfd; color: var(--ink); font: inherit; font-size: 16px; }
.form-note { margin-top: 15px; font-size: .82rem; }
.estimate-result { background: #214ce1; color: white; display: flex; flex-direction: column; align-items: start; justify-content: center; }
.estimate-result .eyebrow, .estimate-result p { color: #fff; }
.estimate-result .dot { background: #c7d4ff; }
.estimate-result output { display: block; margin: 14px 0 10px; font-size: clamp(1.42rem, 3.28vw, 3.5rem); font-weight: 750; line-height: 1.12; letter-spacing: -.06em; overflow-wrap: anywhere; }
.estimate-result > p:not(.eyebrow) { max-width: 38ch; }
.estimate-result .button { margin-top: 22px; }

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.case-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.case-card > div { padding: clamp(17px, 2.1vw, 29px); }
.case-card h3 { font-size: clamp(1.24rem, 2.1vw, 1.8rem); }
.case-card p { margin-top: 9px; }

.about-section { background: var(--night); color: white; }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 36px 11%; align-items: center; }
.about-grid p:not(.eyebrow), .process dd { color: #c3cbd8; }
.about-grid .eyebrow { color: #b6c9ff; }
.about-grid .dot { background: #8ba6ff; }
.about-grid h2 + p { margin-top: 17px; max-width: 43ch; }
.about-grid .button { margin-top: 23px; }
.process { counter-reset: steps; }
.process > div { counter-increment: steps; position: relative; padding: 17px 0 17px 42px; border-top: 1px solid #414a59; }
.process > div:last-child { border-bottom: 1px solid #414a59; }
.process > div::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: 19px; color: #a4b9ff; font-weight: 700; font-variant-numeric: tabular-nums; }
.process dt { font-size: clamp(1.1rem, 2.1vw, 1.47rem); font-weight: 700; line-height: 1.2; }
.process dd { margin-top: 6px; }

.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.2fr); gap: 30px 8%; }
.faq-grid h2 + p { margin-top: 16px; }
.faq-grid .button { margin-top: 20px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; cursor: pointer; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 1.35rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 16px; max-width: 64ch; }

.site-footer { padding-block: 38px 27px; border-top: 1px solid var(--line); background: #e7ecf5; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px 30px; align-items: center; }
.footer-top h2 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); }
.footer-top h2 + p { margin-top: 10px; }
.footer-bottom { border-top: 1px solid #c8d0df; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 27px; padding-top: 21px; color: #394352; font-size: .85rem; }
.footer-bottom > a:last-child { font-weight: 700; text-decoration: none; }
.contact-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.contact-links > * { border: 1px solid #bcc7da; border-radius: 6px; padding: 5px 8px; font: inherit; font-size: .81rem; color: #343f51; }
.contact-links a:hover { color: var(--blue); border-color: var(--blue); }
.contact-links [aria-disabled] { color: var(--muted); }
.contact-note { font-size: .78rem; margin-top: 7px; }
.floating { position: fixed; z-index: 2; right: clamp(10px, 2.3vw, 31px); bottom: clamp(10px, 2.3vw, 31px); }
.floating .button { box-shadow: 0 5px 20px #101d4f40; padding: 11px 14px; }

dialog { border: 1px solid var(--line); border-radius: var(--radius); width: min(490px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: clamp(16px, 4vw, 28px); color: var(--ink); background: white; }
dialog::backdrop { background: #101727b0; }
.dialog-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
dialog h2 { font-size: clamp(1.65rem, 5vw, 2.15rem); }
.close { border: 0; border-radius: 7px; background: #eff1f5; color: var(--ink); width: 36px; height: 36px; cursor: pointer; font-size: 24px; }
.close:hover { background: #dee7ff; }
.message-box { margin-top: 15px; }
.message-box textarea { resize: vertical; }
.message-box .button { margin-top: 8px; }
#copy-status { font-size: .82rem; }

@media (max-width: 900px) {
  .wrap { width: min(1352px, calc(100% - 44px)); }
  .head-inner nav { gap: 16px; }
  .hero-grid { gap: 24px; }
  .hero-photo { height: clamp(310px, 43vw, 400px); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .head-inner { min-height: 65px; gap: 11px; }
  .head-inner nav { display: none; }
  .hero { padding-top: 13px; }
  .hero-grid, .section-heading, .technology-grid, .estimate-grid, .case-grid, .about-grid, .faq-grid, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .section-heading { gap: 11px; }
  .hero-text { padding-bottom: 0; }
  .hero-text h1 { font-size: clamp(2.55rem, 10vw, 4.35rem); margin-top: 15px; }
  .hero-lead { margin-top: 13px; }
  .actions { margin-top: 20px; }
  .hero-photo { height: clamp(260px, 69vw, 415px); }
  .case-card img { aspect-ratio: 16/10; }
  .site-footer { padding-bottom: 68px; }
}
@media (max-width: 370px) {
  .hero-facts > div { padding-inline: 8px; }
  .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
