:root {
  --ink: #101c38;
  --muted: #46536b;
  --blue: #0759d6;
  --blue2: #0a66e8;
  --line: #dce5ef;
  --pale: #f7faff;
  --mint: #53d6c0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  height: 84px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 max(4.8vw, 24px);
  gap: 40px;
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  font-size: 37px;
  font-weight: 850;
  letter-spacing: 0.4px;
}

.brand-mark {
  width: 51px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-mark i {
  display: block;
  width: 13px;
  height: 35px;
  border-radius: 8px;
  transform: skew(-34deg);
  background: linear-gradient(180deg, #55d8d0, #0670e5);
}

.brand-mark i + i {
  background: linear-gradient(180deg, #66e2c8, #39bce0);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.3vw, 72px);
  flex: 1;
  font-size: 20px;
  font-weight: 600;
}

.nav a,
.nav button {
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 10px 0;
}

.nav a:hover,
.nav button:hover {
  color: var(--blue);
}

.nav-services {
  position: relative;
}

.nav-services button {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(45deg);
  margin-top: -5px;
}

.service-menu {
  display: none;
  position: absolute;
  top: 42px;
  left: -16px;
  min-width: 245px;
  padding: 9px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px #12335619;
  border-radius: 14px;
}

.service-menu.open {
  display: grid;
}

.service-menu a {
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
}

.service-menu a:hover {
  background: #f0f6ff;
}

.top-cta,
.primary {
  background: var(--blue);
  color: white !important;
  border: 0;
  border-radius: 13px;
  padding: 15px 27px;
  font-weight: 700;
  box-shadow: 0 8px 18px #0759d626;
  cursor: pointer;
}

.top-cta {
  font-size: 18px;
  white-space: nowrap;
}

.top-cta:hover,
.primary:hover {
  background: #064fbd;
}

.hero {
  max-width: 1668px;
  margin: 0 auto;
  padding: 72px 30px 22px;
  min-height: 595px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  background: #e6efff;
  color: var(--blue);
  border-radius: 24px;
  padding: 9px 25px;
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: clamp(42px, 3.7vw, 66px);
  line-height: 1.08;
  letter-spacing: -2.1px;
  margin: 0 0 24px;
  max-width: 830px;
  font-weight: 820;
}

.hero p {
  color: #3c4963;
  font-size: clamp(20px, 1.55vw, 27px);
  line-height: 1.43;
  margin: 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 44px;
}

.hero-actions a,
.hero-actions button {
  font-size: 20px;
  padding: 17px 29px;
  border-radius: 12px;
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondary {
  background: white;
  border: 1.5px solid #3d4c69;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.secondary:hover {
  background: #f6f9ff;
}

/* Планшет и бирюзовые формы уже объединены в одном файле reference.png.
   Старые декоративные слои здесь отключены, картинка показывается целиком. */
.showcase {
  position: relative;
  height: 532px;
  min-width: 0;
  isolation: isolate;
}

.showcase::before,
.showcase::after {
  content: none;
  display: none;
}

.screen-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.screen-crop::after {
  content: none;
  display: none;
}

.screen-crop img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.services {
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 30px 55px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-height: 166px;
  border: 1px solid #d6e1ed;
  background: linear-gradient(135deg, #fff, #fbfdff);
  border-radius: 17px;
  padding: 24px 23px;
  display: grid;
  grid-template-columns: 92px 1fr 38px;
  gap: 20px;
  align-items: center;
  box-shadow: 0 1px 0 #e4ebf2;
  transition: 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #153e6712;
  border-color: #bcd0e5;
}

.service-icon {
  width: 92px;
  height: 92px;
  border-radius: 23px;
  display: grid;
  place-items: center;
  background: #e0f0ff;
  color: #0758c7;
}

.service-card:nth-child(even) .service-icon {
  background: #d8f8f1;
  color: #008d7b;
}

.service-icon svg {
  width: 48px;
  height: 48px;
}

.service-content h2 {
  font-size: 27px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  font-weight: 800;
}

.service-content p {
  font-size: 17px;
  line-height: 1.4;
  color: #35425b;
  margin: 0;
}

.service-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #edf3f9;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #263b5a;
}

.more {
  max-width: 1660px;
  margin: 0 auto;
  padding: 60px 30px 84px;
  border-top: 1px solid #edf1f6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.more h2 {
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 0 0 14px;
}

.more p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.included {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.included span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  color: #35425b;
  background: #fff;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 5vw;
  color: #59667c;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.modal {
  position: fixed;
  inset: 0;
  background: #0b17358c;
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 50;
}

.modal.open {
  display: grid;
}

.dialog {
  background: white;
  border-radius: 20px;
  padding: 32px;
  width: min(100%, 520px);
  box-shadow: 0 25px 80px #09173544;
  position: relative;
}

.dialog h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.dialog p {
  color: var(--muted);
  margin: 0 0 22px;
}

.close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: #f0f4f9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 21px;
  cursor: pointer;
}

.form {
  display: grid;
  gap: 13px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  padding: 13px;
  color: var(--ink);
  background: white;
}

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

.form .primary {
  width: 100%;
  padding: 14px;
}

.thanks {
  display: none;
  background: #e8f8f2;
  padding: 14px;
  border-radius: 10px;
  color: #076a4d;
}

.mobile-toggle {
  display: none;
}

.admin-link {
  position: fixed;
  bottom: 12px;
  right: 14px;
  color: #68778c;
  font-size: 12px;
  opacity: 0.35;
}

.admin-link:hover {
  opacity: 1;
}

@media (max-width: 1050px) {
  .topbar {
    gap: 18px;
  }

  .brand {
    min-width: auto;
    font-size: 30px;
  }

  .nav {
    gap: 22px;
  }

  .hero {
    padding-top: 52px;
    min-height: 520px;
  }

  .showcase {
    height: 445px;
  }

  .hero h1 {
    font-size: 49px;
  }

  .service-card {
    grid-template-columns: 74px 1fr 34px;
    gap: 14px;
    padding: 20px;
  }

  .service-icon {
    width: 74px;
    height: 74px;
  }

  .service-content h2 {
    font-size: 22px;
  }

  .service-content p {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 72px;
    padding: 0 18px;
    justify-content: space-between;
  }

  .brand {
    font-size: 27px;
  }

  .brand-mark {
    transform: scale(0.86);
    transform-origin: left center;
    width: 43px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav.mobile-open {
    display: flex;
  }

  .nav a,
  .nav button {
    padding: 13px 6px;
    text-align: left;
  }

  .nav-services button {
    width: 100%;
  }

  .service-menu {
    position: static;
    box-shadow: none;
    margin-bottom: 8px;
  }

  .top-cta {
    padding: 11px 15px;
    font-size: 14px;
    border-radius: 10px;
    margin-left: auto;
    margin-right: 10px;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    font-size: 22px;
    color: var(--ink);
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 43px 22px 10px;
    gap: 0;
    min-height: auto;
  }

  .hero-copy {
    padding: 0;
  }

  .eyebrow {
    font-size: 14px;
    padding: 8px 15px;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 52px);
    letter-spacing: -1.3px;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-actions {
    gap: 11px;
    margin-top: 24px;
  }

  .hero-actions a,
  .hero-actions button {
    font-size: 16px;
    min-height: 54px;
    padding: 13px 16px;
    flex: 1;
  }

  .showcase {
    height: clamp(250px, 70vw, 390px);
    margin: 10px -18px -5px;
  }

  .services {
    grid-template-columns: 1fr;
    padding: 0 18px 42px;
    gap: 12px;
  }

  .service-card {
    min-height: 128px;
    grid-template-columns: 66px 1fr 30px;
    gap: 14px;
    padding: 17px;
  }

  .service-icon {
    width: 66px;
    height: 66px;
    border-radius: 18px;
  }

  .service-icon svg {
    width: 37px;
    height: 37px;
  }

  .service-content h2 {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .service-content p {
    font-size: 15px;
  }

  .service-arrow {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .more {
    padding: 42px 22px 55px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .more h2 {
    font-size: 31px;
  }

  .more p {
    font-size: 16px;
  }

  .footer {
    padding: 20px;
    flex-direction: column;
    font-size: 14px;
  }

  .admin-link {
    bottom: 5px;
    right: 8px;
  }
}

.language-switches {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: #8994a6;
}

.language-switches a {
  color: #627089;
}

.language-switches a.active {
  color: #0759d6;
}

.nav-services {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-services .nav-main {
  padding-right: 4px;
}

.nav-services > button {
  border: 0;
  background: none;
  padding: 10px 7px;
  cursor: pointer;
  color: var(--ink);
}

.service-menu {
  z-index: 22;
}

.service-menu a {
  white-space: nowrap;
}

.nav-services:hover .service-menu {
  display: grid;
}

.page-hero {
  max-width: 1480px;
  margin: 0 auto;
  padding: 65px 30px 34px;
}

.page-hero .eyebrow {
  margin-bottom: 17px;
}

.page-hero h1 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 17px;
}

.page-hero p {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 850px;
  margin: 0;
}

.page-content {
  max-width: 1480px;
  margin: 0 auto;
  padding: 5px 30px 80px;
}

.service-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
  background: linear-gradient(145deg, #fff, #f9fbff);
}

.detail-card h2 {
  font-size: 27px;
  margin: 0 0 10px;
}

.detail-card p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 18px;
}

.detail-card ul {
  margin: 0;
  padding-left: 23px;
  display: grid;
  gap: 9px;
  color: #33425c;
}

.detail-card li {
  padding-left: 2px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: white;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  background: #eef3f8;
}

.project-copy {
  padding: 19px;
}

.project-copy h2 {
  font-size: 22px;
  margin: 0 0 7px;
}

.project-meta {
  font-size: 14px;
  color: #69768b;
  margin-bottom: 11px;
}

.project-copy p {
  font-size: 16px;
  line-height: 1.5;
  color: #45536a;
  margin: 0;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.about-layout h2 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 14px;
}

.about-layout p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 14px;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-points span {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 14px;
  color: #39475e;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.contact-info,
.contact-form-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: white;
}

.contact-info h2,
.contact-form-panel h2 {
  font-size: 24px;
  margin: 0 0 12px;
}

.contact-info p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-info a {
  color: var(--blue);
  font-weight: 650;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 15px;
  font-weight: 650;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  min-height: 135px;
  resize: vertical;
}

.contact-form .primary {
  font-size: 16px;
}

.contact-alert {
  padding: 13px 15px;
  border-radius: 10px;
  margin: 0 0 16px;
}

.contact-alert.success {
  background: #eaf8f1;
  color: #086847;
}

.contact-alert.error {
  background: #fff0f0;
  color: #a02e2e;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.small-label {
  font-size: 13px;
  color: #66738a;
}

.footer {
  align-items: center;
  flex-wrap: wrap;
}

.footer .admin-link {
  position: static;
  opacity: 0.6;
  color: #59667c;
  font-size: 14px;
}

@media (max-width: 900px) {
  .language-switches {
    font-size: 13px;
  }

  .nav {
    gap: 16px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-layout {
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .language-switches {
    margin-left: auto;
    margin-right: 5px;
  }

  .topbar .top-cta {
    margin: 0 7px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav.mobile-open .nav-services {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .nav.mobile-open .nav-services .service-menu {
    grid-column: 1 / -1;
  }

  .nav-services .nav-main {
    padding: 13px 6px;
  }

  .nav-services > button {
    padding: 12px;
  }

  .page-hero {
    padding: 42px 22px 25px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .page-hero p {
    font-size: 17px;
  }

  .page-content {
    padding: 0 18px 55px;
  }

  .service-details,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .detail-card {
    padding: 20px;
  }

  .detail-card h2 {
    font-size: 23px;
  }

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

  .contact-info,
  .contact-form-panel {
    padding: 20px;
  }

  .footer .admin-link {
    position: static;
    opacity: 0.6;
  }
}

.project-placeholder {
  width: 100%;
  aspect-ratio: 1.45;
  background:
    radial-gradient(ellipse at 70% 25%, #b9f1ed 0 17%, transparent 38%),
    linear-gradient(140deg, #e9f2ff, #f7fbff 55%, #dff8f3);
}
/* Футер внизу окна на коротких страницах */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.footer {
  margin-top: auto;
  flex-shrink: 0;
}

/* Скрыть ссылки «Связаться с нами» и «Администратор» только в футере */
.footer a[href*="contact"],
.footer a[href*="kontakt"],
.footer .admin-link {
  display: none !important;
}