:root {
  --text: #111111;
  --copy: #333333;
  --blue: #0d99ff;
  --dark: #333333;
  --container: 1124px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #fff; font-family: Montserrat, Arial, sans-serif; font-size: 16px; font-weight: 400; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.site-header { height: 105px; background: #fff; }
.header-inner { height: 100%; display: flex; align-items: flex-start; padding-top: 29px; }
.brand { display: flex; flex-direction: column; flex: 1 1 auto; }
.brand-name { font-size: 33px; line-height: 1.14; font-weight: 400; letter-spacing: -.055em; }
.brand-caption { margin-top: 7px; color: #222; font-size: 14px; line-height: 1.3; }
.main-nav { display: flex; gap: 78px; padding-top: 8px; margin-right: 95px; font-size: 17px; }
.main-nav a:hover, .footer-content a:hover { color: var(--blue); }
.header-phone { padding-top: 5px; font-size: 19px; font-weight: 700; white-space: nowrap; }
.menu-toggle { display: none; }
.hero { min-height: 585px; }
.hero-grid { min-height: 585px; display: grid; grid-template-columns: minmax(0, 690px) 280px; justify-content: space-between; align-items: start; padding-top: 98px; }
.hero-copy { padding-top: 0; }
h1, h2, h3, p, figure { margin-top: 0; }
.hero h1 { max-width: 690px; margin-bottom: 35px; font-size: 40px; line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.hero-copy p { max-width: 690px; margin-bottom: 41px; color: #333; font-size: 20px; line-height: 1.55; }
.hero-profile { width: 280px; margin: 0; }
.hero-profile img { display: block; width: 280px; height: 373px; object-fit: cover; object-position: center; border-radius: 16px; }
.hero-profile figcaption { margin-top: 13px; font-size: 17px; line-height: 1.4; white-space: nowrap; }
.button { display: inline-flex; min-height: 60px; align-items: center; justify-content: center; border: 0; border-radius: 16px; padding: 0 36px; font-weight: 600; transition: filter .15s ease, transform .15s ease; }
.button:hover { filter: brightness(.94); transform: translateY(-1px); }
.button-blue { color: #fff; background: var(--blue); }
.button-dark { color: #fff; background: var(--dark); }
.button-black { color: #fff; background: #000; }
.hero-button { width: 325px; height: 92px; font-size: 26px; }
.services { min-height: 597px; padding-top: 34px; }
.services-intro { max-width: 660px; }
.services h2 { max-width: 660px; margin-bottom: 22px; font-size: 30px; line-height: 1.55; font-weight: 700; letter-spacing: -.025em; }
.services-intro p { max-width: 660px; margin-bottom: 38px; font-size: 18px; line-height: 1.6; color: var(--copy); }
.process-title { margin-bottom: 26px; font-size: 26px; line-height: 1.35; font-weight: 700; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.process-step { text-align: center; }
.process-step span { display: block; color: var(--blue); font-size: 40px; line-height: 1.2; font-weight: 700; }
.process-step p { max-width: 250px; margin: 17px auto 0; font-size: 18px; line-height: 1.55; color: var(--copy); }
.cases { min-height: 1161px; padding: 75px 0 64px; }
.cases h2 { margin: 0 0 75px -18px; font-size: 40px; line-height: 1.2; font-weight: 400; letter-spacing: -.04em; }
.case-list { width: min(960px, 100%); margin-inline: auto; }
.case-row { display: grid; grid-template-columns: 1fr 460px; align-items: center; gap: 50px; min-height: 260px; margin-bottom: 35px; }
.case-row:last-child { margin-bottom: 0; }
.case-copy h3 { margin-bottom: 20px; font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.case-copy p { margin-bottom: 0; color: #555; font-size: 17px; line-height: 1.65; }
.case-copy .button { width: 244px; height: 60px; margin-top: 29px; font-size: 16px; }
.case-image { display: block; width: 460px; height: auto; max-height: 270px; object-fit: cover; }
.tools { min-height: 300px; padding: 62px 0 56px; }
.tools h2 { margin: 0 0 31px; font-size: 30px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.tools-copy p { margin: 0 0 8px; color: var(--copy); font-size: 18px; line-height: 1.55; }
.contact { min-height: 597px; padding: 78px 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: center; gap: 80px; }
.contact-copy h2 { max-width: 650px; margin-bottom: 16px; font-size: 30px; line-height: 1.42; font-weight: 700; letter-spacing: -.025em; }
.contact-lead { max-width: 610px; margin-bottom: 36px; color: var(--copy); font-size: 20px; line-height: 1.55; }
.contact-photo { width: 330px; height: 440px; display: block; object-fit: cover; object-position: center; border-radius: 16px; }
.lead-form { width: 300px; }
.lead-form label, .modal-form label { display: block; margin: 0 0 6px; font-size: 15px; line-height: 1.4; }
.lead-form input, .modal-form input { width: 100%; height: 50px; margin: 0 0 13px; padding: 0 20px; color: #111; background: #fff; border: 1px solid #777; border-radius: 16px; outline: none; font-size: 16px; }
.lead-form input:focus, .modal-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(13,153,255,.15); }
.lead-form input::placeholder, .modal-form input::placeholder { color: #999; opacity: 1; }
.lead-form .button { width: 100%; min-height: 50px; margin-top: 2px; border-radius: 16px; font-size: 14px; }
.form-note { margin: 16px 0 0; color: #333; font-size: 12px; line-height: 1.5; }
.form-note a, .modal-note a { color: #5a9dcc; }
.site-footer { min-height: 300px; padding: 54px 0; color: #eee; background: #333; }
.footer-content { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer-brand { margin-bottom: 1px; color: #fff; font-size: 29px; line-height: 1.2; font-weight: 700; }
.footer-content a:not(.footer-brand), .footer-content p { margin: 0; color: #dedede; font-size: 16px; line-height: 1.5; }
.modal { width: min(560px, calc(100% - 32px)); max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 38px 44px 34px; border: 0; color: #111; background: #fff; text-align: center; }
.modal::backdrop { background: rgba(0,0,0,.6); }
.modal h2 { margin: 0 0 8px; font-size: 36px; line-height: 1.28; font-weight: 600; letter-spacing: -.025em; }
.modal-subtitle { margin: 0 0 28px; color: #555; font-size: 16px; line-height: 1.5; }
.modal-form { text-align: left; }
.modal-form input { height: 60px; margin-bottom: 24px; border-radius: 5px; }
.modal-form .button { width: 100%; height: 60px; margin-top: 0; border-radius: 5px; font-size: 16px; }
.modal-note { margin: 20px 0 0; color: #555; font-size: 13px; line-height: 1.5; }
.modal-close { position: fixed; top: 13px; right: 20px; z-index: 2; width: 36px; height: 36px; padding: 0; color: #fff; background: transparent; border: 0; font-size: 40px; font-weight: 200; line-height: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .main-nav { gap: 28px; margin-right: 34px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 28px; }
  .hero-profile, .hero-profile img { width: 260px; }
  .hero-profile img { height: 347px; }
  .hero h1 { font-size: 36px; }
  .hero-copy p { font-size: 18px; }
  .hero-button { width: 280px; height: 76px; font-size: 22px; }
  .case-row { grid-template-columns: minmax(0,1fr) minmax(280px, 44%); gap: 32px; }
  .case-image { width: 100%; }
  .contact-grid { gap: 42px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .site-header { height: auto; min-height: 88px; }
  .header-inner { min-height: 88px; align-items: flex-start; padding-top: 18px; position: relative; }
  .brand-name { font-size: 29px; }
  .brand-caption { font-size: 12px; }
  .header-phone { display: none; }
  .menu-toggle { width: 42px; height: 42px; display: flex; flex-direction: column; justify-content: center; gap: 6px; margin-top: 2px; padding: 8px; border: 0; background: none; }
  .menu-toggle span { width: 26px; height: 2px; background: #111; }
  .main-nav { position: absolute; z-index: 5; top: 74px; right: 0; display: none; min-width: 190px; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .hero, .hero-grid { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; padding-bottom: 54px; }
  .hero h1 { margin-bottom: 22px; font-size: 34px; line-height: 1.12; }
  .hero-copy p { margin-bottom: 26px; font-size: 17px; line-height: 1.55; }
  .hero-button { width: 100%; height: 64px; font-size: 19px; }
  .hero-profile { width: min(100%, 330px); margin: 0 auto; }
  .hero-profile img { width: 100%; height: auto; aspect-ratio: 3 / 4; }
  .hero-profile figcaption { font-size: 15px; }
  .services { min-height: 0; padding: 40px 0 60px; }
  .services h2 { margin-bottom: 18px; font-size: 25px; line-height: 1.4; }
  .services-intro p { margin-bottom: 32px; font-size: 16px; }
  .process-title { margin-bottom: 22px; font-size: 22px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .process-step span { font-size: 34px; }
  .process-step p { margin-top: 10px; font-size: 15px; line-height: 1.45; }
  .cases { min-height: 0; padding: 50px 0 55px; }
  .cases h2 { margin: 0 0 36px; font-size: 34px; }
  .case-row { grid-template-columns: 1fr; gap: 22px; min-height: 0; margin-bottom: 54px; }
  .case-row:nth-child(2) .case-image { order: 2; }
  .case-copy h3 { margin-bottom: 14px; font-size: 23px; }
  .case-copy p { font-size: 15px; }
  .case-copy .button { width: 100%; margin-top: 20px; }
  .case-image { width: 100%; }
  .tools { min-height: 0; padding: 48px 0 54px; }
  .tools h2 { margin-bottom: 22px; font-size: 25px; }
  .tools-copy p { font-size: 16px; }
  .contact { min-height: 0; padding: 50px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-copy h2 { font-size: 25px; }
  .contact-copy h2 br { display: none; }
  .contact-lead { margin-bottom: 26px; font-size: 17px; }
  .lead-form { width: 100%; }
  .contact-photo { width: min(100%,330px); height: auto; aspect-ratio: 3/4; margin-inline: auto; }
  .site-footer { min-height: 0; padding: 42px 0; }
  .footer-content { gap: 15px; }
  .footer-brand { font-size: 27px; }
  .modal { padding: 34px 22px 28px; }
  .modal h2 { font-size: 28px; }
  .modal-subtitle { font-size: 15px; }
  .modal-close { top: 10px; right: 12px; }
}
