:root {
  --red: #c6364d;
  --red-hover: #0c7e98;
  --teal: #0b97b7;
  --ink: #1f1d2b;
  --muted: #9298a0;
  --paper: #eaedf4;
  --white: #fff;
  --form: #0c7e98;
  --max: 1800px;
  --pad: 50px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PT Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; }

.cap { font-family: "PT Sans Caption", "PT Sans", Arial, sans-serif; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* top nav */
.nav-top { background: #fff; padding: 6px 0; }
.nav-top .wrap {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 10px var(--pad);
}
.nav-top a { font-size: 16px; color: var(--ink); }
.nav-top a:hover, .nav-top a.is-on { color: var(--teal); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  padding: 10px 0;
  transition: box-shadow .35s ease, background .35s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 60px rgba(0,0,0,.1);
  backdrop-filter: blur(10px);
}
.header-row {
  max-width: var(--max); margin: 0 auto;
  padding: 10px var(--pad);
  display: flex; align-items: center; gap: 28px;
}
.logotype { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logotype img {
  width: 56px; height: 56px;
  object-fit: contain; background: transparent;
}
.logotype span {
  font-family: "PT Sans Caption", "PT Sans", sans-serif;
  font-weight: 700; letter-spacing: 3px; font-size: 26px;
}
.descriptor { margin-right: auto; min-width: 0; flex: 1 1 auto; }
.descriptor-header {
  display: inline-block;
  line-height: 1.2;
  padding: 5px 16px 5px 15px;
  font-family: ui-monospace, "PT Sans", monospace;
  font-size: 14px;
  background: #1f1d2b;
  color: #eaedf4;
  border-radius: 10px 10px 10px 0;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .8s ease-in-out, transform .8s ease-in-out;
}
.descriptor-header.fade-out { opacity: 0; transform: translateY(-20px); }
.descriptor-header.fade-in { opacity: 1; transform: translateY(0); }
.phone-block { display: flex; align-items: center; gap: 14px; }
.phone-block a.num {
  font-family: "PT Sans Caption", sans-serif;
  font-weight: 700; font-size: 22px; white-space: nowrap;
}
.btn-call {
  background: var(--red); color: #fff; border: 0; border-radius: 5px;
  padding: 7px 16px; cursor: pointer; font-size: 15px;
  font-family: "PT Sans Caption", sans-serif; transition: .4s;
}
.btn-call:hover, .slide-btn:hover, .btn-dark:hover { background: var(--red-hover); }
.mob-nav-btn {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
}
.mob-nav-btn span {
  display: block; height: 2px; background: var(--ink); margin: 7px 8px; border-radius: 2px;
}

/* hero */
.first-screen { background: var(--paper); margin-bottom: 15px; }
.first-grid {
  max-width: var(--max); margin: 0 auto;
  padding: 40px var(--pad) 70px;
  display: flex; flex-wrap: wrap; gap: 60px; align-items: center;
}
.first-col { flex: 1 1 400px; display: flex; flex-direction: column; gap: 28px; }
.first-col h1 {
  font-family: "PT Sans Caption", sans-serif;
  font-size: 60px; line-height: 1.08; font-weight: 700;
}
.first-col h1 span { color: var(--teal); }
.first-col > p { font-family: "PT Sans Caption", sans-serif; font-size: 22px; line-height: 1.4; }
.note {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: 16px; padding: 10px 16px 10px 10px;
  max-width: 460px;
}
.note img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.note p { font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.slide-btn {
  background: var(--red); color: #fff; border: 0; border-radius: 12px;
  padding: 20px 30px; cursor: pointer;
  font-family: "PT Sans Caption", sans-serif; font-weight: 700; font-size: 16px;
  transition: .4s;
}
.hero-actions a.link { text-decoration: underline; font-size: 16px; }

.directs { display: flex; flex-direction: column; gap: 10px; }
.direct {
  display: flex; align-items: center; gap: 25px;
  background: #fff; border-radius: 15px; padding: 15px; position: relative;
}
.direct img {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; border: 15px solid var(--paper); flex-shrink: 0;
}
.direct h2 { font-family: "PT Sans Caption", sans-serif; font-size: 18px; margin-bottom: 10px; }
.direct .get { color: var(--red); cursor: pointer; font-weight: 700; }
.direct .arrow {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c9cfdb;
}
.direct .arrow::after {
  content: ""; position: absolute; left: 8px; top: 7px;
  width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tags a, .tags span {
  display: inline-block; background: #fff; border-radius: 20px;
  padding: 6px 12px; font-size: 14px; color: var(--ink);
}
.tags a:hover { background: var(--red); color: #fff; }

/* trust */
.mini {
  max-width: var(--max); margin: 0 auto 20px;
  padding: 0 var(--pad);
}
.mini-in {
  display: flex; flex-wrap: wrap; gap: 5px;
  background: #fff; border: 3px solid var(--paper); border-radius: 20px; padding: 5px;
}
.mini-in > div {
  flex: 1 1 240px; background: var(--paper); border-radius: 15px;
  padding: 16px 18px; display: flex; align-items: center; gap: 16px;
  font-family: "PT Sans", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.3;
}
.mini-ico {
  width: 52px; height: 52px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; flex-shrink: 0; font-size: 22px;
}

/* services */
.services { max-width: var(--max); margin: 0 auto; padding: 30px var(--pad) 10px; }
.services-head { max-width: 760px; margin-bottom: 24px; }
.services-head h2 { font-family: "PT Sans Caption", sans-serif; font-size: 42px; }
.services-head p { font-size: 20px; margin-top: 10px; }
.service-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.service {
  flex: 1 1 520px; background: var(--paper); border-radius: 25px; padding: 25px;
}
.service-top { display: flex; align-items: center; gap: 16px; }
.service-top img {
  width: 105px; height: 105px; border-radius: 50%; object-fit: cover; background: #fff;
}
.service-top h3 { font-family: "PT Sans Caption", sans-serif; font-size: 24px; }
.service p { font-size: 19px; padding: 18px 4px 12px; line-height: 1.5; }
.service .tags a, .service .tags span { background: #fff; }

.all-btn {
  display: block; text-align: center; margin: 22px auto 8px;
  background: var(--red); color: #fff; border-radius: 12px;
  padding: 16px 28px; width: fit-content;
  font-family: "PT Sans Caption", sans-serif; font-weight: 700;
}

/* form */
.lead {
  max-width: var(--max); margin: 25px auto 10px;
  padding: 0 var(--pad);
}
.lead-in {
  background: var(--form); color: #fff; border-radius: 25px;
  padding: 35px; display: flex; flex-wrap: wrap; gap: 24px;
}
.lead-note { flex: 1 1 320px; display: flex; flex-direction: column; justify-content: space-evenly; gap: 12px; }
.lead-note h3 { font-family: "PT Sans Caption", sans-serif; font-size: 42px; font-weight: 400; line-height: 1.15; }
.lead-note p, .lead-note li { font-size: 20px; }
.lead-note li { list-style: disc inside; padding: 2px 0; }
.lead-note small { opacity: .9; font-size: 14px; }
.lead-form {
  flex: 1 1 320px; background: #fff; color: var(--ink);
  border-radius: 15px; padding: 36px;
}
.lead-form label { font-size: 13px; display: block; }
.lead-form input, .lead-form textarea {
  width: 100%; margin: 5px 0 14px; padding: 10px;
  border: 1px solid #c9cfdb; border-radius: 5px; background: var(--paper);
}
.lead-form textarea { min-height: 110px; resize: vertical; }
.btn-dark {
  width: 100%; border: 0; border-radius: 30px; padding: 17px;
  background: #28334f; color: #fff; cursor: pointer;
  font-family: "PT Sans Caption", sans-serif; font-weight: 700; font-size: 17px;
  transition: .4s;
}
.form-ok { display: none; color: #0a7a3e; font-weight: 700; margin-top: 10px; }
.form-ok.is-on { display: block; }

/* projects home */
.cases { max-width: var(--max); margin: 40px auto; padding: 0 var(--pad) 20px; }
.cases h2 { font-family: "PT Sans Caption", sans-serif; font-size: 36px; margin-bottom: 18px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.case {
  background: var(--paper); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
}
.case img { height: 190px; width: 100%; object-fit: cover; }
.case-body { padding: 16px 18px 18px; }
.case-body h3 { font-family: "PT Sans Caption", sans-serif; font-size: 18px; margin-bottom: 6px; }
.case-body p { font-size: 15px; color: #3b3948; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chips span { background: #fff; border-radius: 20px; padding: 4px 10px; font-size: 13px; }
.budget { font-weight: 700; margin-top: 8px; }

/* inner */
.page-head {
  background: var(--paper); padding: 48px var(--pad) 36px;
}
.page-head .wrap h1 {
  font-family: "PT Sans Caption", sans-serif; font-size: 44px; max-width: var(--max); margin: 0 auto;
}
.page-head .wrap p {
  max-width: var(--max); margin: 12px auto 0; font-size: 20px;
}
.content { max-width: var(--max); margin: 0 auto; padding: 30px var(--pad) 50px; }
.prose { max-width: 860px; font-size: 18px; }
.prose p, .prose li { margin: 10px 0; }
.prose ul { padding-left: 18px; list-style: disc; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 24px 0;
}
.fact { background: var(--paper); border-radius: 16px; padding: 18px; }
.fact b { display: block; font-size: 28px; font-family: "PT Sans Caption", sans-serif; color: var(--teal); }
.doc-card {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start;
  background: var(--paper); border-radius: 18px; padding: 20px; margin: 16px 0;
}
.doc-card img { width: 280px; max-width: 100%; border-radius: 8px; background: #fff; }
.table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #d6dae3; vertical-align: top; }
.table th { width: 220px; color: #3b3948; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 20px 0; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; }

.map-block img { width: 100%; border-radius: 18px; margin: 18px 0; }

/* footer */
.site-footer { background: var(--paper); margin-top: 30px; padding: 40px 0 20px; }
.foot-grid {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px 40px;
}
.site-footer h3 { font-family: "PT Sans Caption", sans-serif; font-size: 20px; margin-bottom: 12px; }
.foot-services { display: flex; gap: 30px; flex-wrap: wrap; }
.foot-services ul { display: flex; flex-direction: column; gap: 6px; }
.foot-services a:hover { color: var(--teal); }
.foot-contacts a { font-weight: 700; }
.regions { grid-column: 1 / -1; }
.regions-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.regions-list a, .regions-list span { font-size: 15px; color: #3b3948; }
.foot-bottom {
  max-width: var(--max); margin: 28px auto 0; padding: 18px var(--pad) 10px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  border-top: 1px solid #d6dae3; font-size: 14px; color: #3b3948;
}

/* modal */
.modal {
  position: fixed; inset: 0; background: rgba(20,22,30,.55);
  display: none; align-items: center; justify-content: center; z-index: 80; padding: 16px;
}
.modal.is-on { display: flex; }
.modal-box {
  background: #fff; border-radius: 16px; padding: 28px; width: min(440px, 100%);
  position: relative;
}
.modal-box h3 { font-family: "PT Sans Caption", sans-serif; font-size: 24px; margin-bottom: 12px; }
.modal-x {
  position: absolute; right: 14px; top: 10px; border: 0; background: none;
  font-size: 28px; cursor: pointer; line-height: 1;
}

.mob-panel {
  display: none; position: absolute; right: 12px; top: 70px;
  background: var(--red); color: #fff; border-radius: 10px;
  padding: 16px 32px 20px; line-height: 2.4; font-size: 18px;
  box-shadow: 0 26px 31px rgba(0,0,0,.31); z-index: 50;
}
.mob-panel a { color: #fff; display: block; }
.mob-panel.is-on { display: block; }

@media (max-width: 1100px) {
  :root { --pad: 30px; }
  .descriptor { display: none; }
  .first-col h1 { font-size: 48px; }
  .first-col > p { font-size: 20px; }
}
@media (max-width: 875px) {
  :root { --pad: 15px; }
  .nav-top { display: none; }
  .mob-nav-btn { display: block; }
  .logotype span { font-size: 20px; letter-spacing: 2px; }
  .first-grid { padding: 24px 15px 28px; gap: 28px; }
  .first-col h1 { font-size: 36px; }
  .direct img { width: 72px; height: 72px; border-width: 0; }
  .service { flex: 1 1 100%; }
  .service-top img { width: 72px; height: 72px; }
  .lead-in { padding: 22px; }
  .lead-note h3 { font-size: 28px; }
  .lead-form { padding: 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .phone-block { flex-direction: column; align-items: flex-end; gap: 4px; }
  .phone-block a.num { font-size: 18px; }
  .page-head .wrap h1 { font-size: 32px; }
}
@media (max-width: 550px) {
  .btn-call { width: 100%; font-size: 12px; padding: 4px 10px; }
  .header-row { gap: 10px; }
}

picture { display: contents; }
picture source { display: none; }
