:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1d2f4d;
  --muted: #5f6f8a;
  --primary: #224a78;
  --primary-2: #2f5f96;
  --accent: #f28a1e;
  --line: #dce4ef;
  --pay-client: #2a9d8f;
  --shadow: 0 10px 25px rgba(28, 61, 106, 0.12);
}

* {
  box-sizing: border-box;
}





html {
  scroll-behavior: smooth;
}




body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

.site-link {
  color: var(--primary);
  font-weight: 700;
}

.site-link:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.logo {
  max-height: 62px;
  width: auto;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--primary);
  font-weight: 600;
}

.nav a.active,
.nav a:hover {
  background: #e8eef7;
}

.hero {
  padding: 48px 0 24px;
}

.hero-card {
  background: linear-gradient(140deg, #ffffff 0%, #eef3fb 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 42px);
  text-align: center;
}

.hero-title-image {
  display: block;
  width: min(760px, 100%);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.hero-copy {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: left;
}

.hero-copy .section-text + .section-text {
  margin-top: 14px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.ads-banner-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: left;
}

.ads-banner {
  display: block;
  width: auto;
  max-width: min(640px, 100%);
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  vertical-align: middle;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  box-shadow: 0 6px 14px rgba(34, 74, 120, 0.16);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #2a568a 0%, #224a78 100%);
  border-color: #1f436d;
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(180deg, #f3f7fd 0%, #e7effa 100%);
  border-color: #ccdaed;
  color: var(--primary);
}

.btn-main-site__text {
  display: inline;
  white-space: normal;
}

.btn-main-site__accent {
  color: #e31e24;
  font-weight: inherit;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(34, 74, 120, 0.22);
  filter: saturate(1.03);
}

.section {
  padding: 16px 0 36px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--primary);
}

.section-text {
  margin: 0;
  color: var(--muted);
}

.phone-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow);
}

.phone-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin-inline: auto;
}

/* ===== СЕРВИСЫ ОПЛАТЫ ===== */

.pay-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pay-item {
  --pay-item-bg-top: color-mix(in srgb, #ffffff 96%, var(--primary) 4%);
  --pay-item-bg-bottom: color-mix(in srgb, #f4f8ff 96%, var(--primary) 4%);
  min-height: 86px;
  background: linear-gradient(180deg, var(--pay-item-bg-top) 0%, var(--pay-item-bg-bottom) 100%);
  border: 2px solid var(--pay-client);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 12px rgba(34, 74, 120, 0.10);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.pay-item:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #e9f2fc 0%, #d3e6f7 100%);
  border-color: var(--primary);
  box-shadow:
    0 0 0 1px #e31e24,
    0 10px 18px rgba(34, 74, 120, 0.18);
}

.pay-item:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 0 0 1px #e31e24,
    0 4px 10px rgba(34, 74, 120, 0.14),
    inset 0 2px 5px rgba(34, 74, 120, 0.12);
}

.pay-item-name {
  display: block;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
  color: var(--primary);
}

.pay-item-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.memo-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.memo-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.memo-layout > .card {
  display: flex;
  flex-direction: column;
}

.memo-card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

#consultation.card {
  display: flex;
  flex-direction: column;
}

#consultation .section-title {
  margin-bottom: 10px;
}

#consultation .section-text + .section-text {
  margin-top: 4px;
}

#consultation > .section-text:last-of-type {
  margin-bottom: 14px;
}

#consultation #callback-form.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

#consultation .textarea {
  min-height: 140px;
  resize: vertical;
}

#consultation .memo-form-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

#consultation .memo-form-footer .form-hint {
  margin: 0;
}

#consultation .memo-form-footer .btn-primary {
  width: 100%;
  margin: 0;
}

#consultation #form-status:empty {
  display: none;
}

#consultation #form-status:not(:empty) {
  margin: 0;
}

@media (min-width: 961px) {
  .memo-layout > .card {
    height: 100%;
  }

  .memo-layout > .card:first-child .memo-card-footer,
  #consultation .memo-form-footer {
    margin-top: auto;
  }

  #consultation.card {
    height: 100%;
  }

  #consultation #callback-form.form-row {
    flex: 1 1 0;
    min-height: 0;
  }

  #consultation .textarea {
    flex: 1 1 auto;
    min-height: 180px;
  }

  #consultation .memo-form-footer .form-hint {
    min-height: 46px;
    display: flex;
    align-items: flex-end;
  }
}

.form-row {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid #c5d3e7;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  font: inherit;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer {
  margin-top: 34px;
  background: #234a78;
  color: #dce8f9;
  border-top: 1px solid #3b5f8a;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-left > a {
  display: block;
  line-height: 0;
}

.footer-logo {
  max-height: 72px;
  width: auto;
  display: block;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  text-align: right;
  line-height: 1.45;
}

.footer-right > div:last-child {
  margin-top: 10px;
}

.copyright {
  margin: 0;
  font-size: 13px;
  color: #aac1df;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.site-footer .site-link {
  color: #fff;
  font-weight: 700;
}

.site-footer .site-link:hover {
  color: #dce8f9;
  text-decoration: underline;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 1100px) {
  .pay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .phone-showcase,
  .memo-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-right {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .pay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pay-item {
    min-height: 84px;
    padding: 12px;
    border-radius: 13px;
  }

  .pay-item-name {
    font-size: 15px;
  }

  .pay-item-note {
    font-size: 12px;
  }
}

/* ===== АДРЕС В ФОРМЕ ===== */

.address-builder {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address-builder__title {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #1E3450;
  margin-bottom: -4px;
  text-align: left;
}

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

@media (max-width: 640px) {
  .address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .address-grid .input {
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ===== ФОКУС ПОЛЕЙ ===== */

.input:focus,
.textarea:focus,
.address-builder select:focus {
  outline: none;
  border-color: #2f5f96;
  box-shadow: 0 0 0 2px rgba(47, 95, 150, 0.15);
}

.address-builder select {
  appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg fill='%23224a78' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 7.5l4.5 5 4.5-5z'/></svg>") no-repeat right 10px center;
  background-size: 16px;
  padding-right: 36px;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */

.memo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 40, 70, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.memo-modal.active {
  opacity: 1;
  visibility: visible;
}

.memo-modal-content {
  background: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  transform: translateY(20px);
  transition: 0.3s;
}

.memo-modal.active .memo-modal-content {
  transform: translateY(0);
}

.memo-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2b4f7c;
}

.memo-modal-text {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

.memo-ok-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2b4f7c, #3d72b1);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}



.form-hint {
  font-size: 13px;
  color: #6b7a90;
  margin-top: -6px;
  margin-bottom: 10px;
  padding-left: 4px;
}