:root {
  --navy: #183153;
  --navy-dark: #09233f;
  --sage: #8fa99a;
  --gold: #d6b36a;
  --cream: #fafaf8;
  --soft: #f4f0e8;
  --text: #243247;
  --muted: #667085;
  --white: #ffffff;
  --line: #e7e2d8;
  --shadow: 0 20px 50px rgba(24, 49, 83, 0.14);
}

* { box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  line-height: 1.6;
}

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

img { 
  max-width: 100%; display: block; 
}

.container { 
  width: min(1180px, calc(100% - 40px)); 
  margin: 0 auto; 
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, var(--navy-dark), var(--navy));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(9, 35, 63, 0.22);
}
.nav-wrap { 
  min-height: 78px; 
  display: flex; 
  align-items: center; 
  gap: 28px; 
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  min-width: 230px; 
}

.brand-mark {
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -2px;
}

.brand strong { 
  display: block; 
  text-transform: uppercase; 
  letter-spacing: .08em; 
  font-family: "Playfair Display", serif; 
}

.brand small { 
  display: block; 
  font-size: 9px; 
  color: rgba(255,255,255,.72); 
  text-transform: uppercase; 
  letter-spacing: .12em; 
}

.main-nav { 
  display: flex; 
  align-items: center; 
  gap: 22px; 
  margin-left: auto; 
  font-size: 14px; 
  font-weight: 600; 
}
.main-nav a { 
  opacity: .92; 
}

.main-nav a:hover { 
  color: var(--gold); 
}

.mobile-menu { 
  display: none; 
  background: none; 
  border: 0; 
  color: white; 
  font-size: 28px; 
  margin-left: auto; 
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 0;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow); 
}

.btn-primary { 
  background: var(--navy); 
  color: white; 
}

.btn-gold { 
  background: var(--gold); 
  color: var(--navy-dark); 
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gold);
}

.btn-calc {
  align-items: center;
}

.btn-outline { 
  border-color: var(--gold); 
  color: var(--navy); 
  background: white; 
}

.hero { 
  background: linear-gradient(100deg, #fff 0%, #fff 56%, #f1ece3 100%); 
  overflow: hidden; 
}

.hero-grid { 
  min-height: 650px; 
  display: grid; 
  grid-template-columns: 0.95fr 1.05fr; 
  align-items: center; 
  gap: 70px; 
}

.hero-content {
  padding: 40px 0;
}

.hero-text { 
  color: #183153; 
  font-size: 18px; 
  max-width: 560px; 
  margin: 24px 0 30px; 
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-visual img {
  width: 440px;
  height: 500px;
  object-fit: cover;
  object-position: center center;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  right: 350px;
  bottom: 230px;
  width:205px;
  padding:32px 28px;
  background: linear-gradient(145deg, var(--navy-dark), var(--navy));
  color: white;
  box-shadow: var(--shadow);
  z-index: 2;
}

.hero-card div + div {
  margin-top: 24px;
}

.hero-card strong {
  display: block;
  color: var(--gold);
  font-size:18px;
  line-height: 1.1;
}

.hero-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--navy);
  max-width: 640px;
}

.section { 
  padding: 56px 0; 
}

.soft-bg { 
  background: var(--white); 
}

.section-heading { 
  text-align: center; 
  max-width: 760px; 
  margin: 0 auto 44px; 
}

.section-heading p:not(.eyebrow) { 
  color: var(--muted); 
  font-size: 17px; 
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.trust-strip{
    display:flex;
    gap:40px;
    align-items:flex-start;
    margin-top:24px; /* было около 40-50 */
    flex-wrap:wrap;
}

.trust-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:8px;
}

.trust-item span{
    font-size:13px;
    color:#667085;
    font-weight:500;
    line-height:1.3;
}

.trust-item img{
    height:32px;
    width:auto;
    object-fit:contain;
}

.connective-logo{
    height:26px;
}

.feature-grid { 
  display: grid; 
  gap: 20px; 
}

.feature-grid.four { 
  grid-template-columns: repeat(4, 1fr); 
}

.feature-grid.three { 
  grid-template-columns: repeat(3, 1fr); 
}

.feature-card, .case-card {
  padding:40px 32px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  text-align: center;
  min-height: 230px;
}

.feature-card{
    transition:all .25s ease;
}

.feature-card h3{
    min-height:70px;
}

.feature-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(24,49,83,.08);
}

.feature-icon{
    width:48px;
    height:48px;
    margin:0 auto 24px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.feature-icon img{
    width:56px;
    height:56px;
    object-fit:contain;
}

.feature-card p, .case-card p { 
  color: var(--muted); 
  margin-bottom: 0; 
}

.service-grid, .calculator-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 1px solid var(--line);
  background: white;
}

.service-icons{
  height: 48px;
  width: 48px;  
  margin:0 auto 24px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.service-card, .calculator-grid button {
  min-height: 132px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  background: white;
  color: var(--navy);
  font-weight: 800;
}
.service-card:last-child, .calculator-grid button:last-child { border-right: 0; }
.service-card:hover, .calculator-grid button:hover { background: var(--soft); }
.service-card span { font-size: 30px; }
.calculator-grid button { border-top: 0; border-bottom: 0; border-left: 0; cursor: pointer; font: inherit; }
.calculator-note { text-align: center; margin-top: 24px; color: var(--muted); }

.split-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 56px; align-items: stretch; }
.timeline { margin-top: 34px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.timeline div { background: white; border: 1px solid var(--line); padding: 22px; }
.timeline span {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  background: var(--gold); color: white; border-radius: 50%; font-weight: 800; margin-bottom: 18px;
}
.timeline strong { display: block; color: var(--navy); margin-bottom: 10px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14px; }
.advocate-card {
  background: linear-gradient(145deg, var(--navy-dark), var(--navy));
  color: white;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.advocate-card h2 { color: white; }
.advocate-card p { color: rgba(255,255,255,.84); }
.signature { color: var(--gold) !important; font-family: "Playfair Display", serif; font-size: 30px; margin-bottom: 0; }

.image-placeholder {
  height: 170px;
  margin: -34px -34px 24px;
  background: linear-gradient(145deg, #dcd6ca, #f8f4ec);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 800;
}
.case-card { text-align: left; }
.case-card a { color: var(--navy); font-weight: 800; }

.cta-band { background: linear-gradient(90deg, var(--navy-dark), var(--navy)); color: white; }
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,.84); }
.cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 56px; align-items: start; }
.contact-list { padding: 0; list-style: none; display: grid; gap: 12px; }
.contact-list a { color: var(--navy); font-weight: 700; }
.contact-form { background: white; border: 1px solid var(--line); padding: 34px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 700; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); padding: 14px 16px; font: inherit; color: var(--text); background: #fff;
}
.form-status { margin: 0; color: var(--sage); font-weight: 800; }

.site-footer { background: var(--navy-dark); color: white; }
.footer-grid { padding: 56px 0; display: grid; grid-template-columns: 1.4fr .7fr .7fr 1.1fr; gap: 38px; }
.footer-grid h4 { color: var(--gold); margin: 0 0 14px; }
.footer-grid a { display: block; color: rgba(255,255,255,.82); margin-bottom: 8px; }
.footer-grid p { color: rgba(255,255,255,.72); font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px; text-align: center; color: rgba(255,255,255,.7); font-size: 13px; }

@media (max-width: 1040px) {
  .main-nav, .nav-cta { display: none; }
  .mobile-menu { display: block; }
  .main-nav.open { display: grid; position: absolute; left: 0; right: 0; top: 78px; background: var(--navy); padding: 22px 40px; gap: 16px; }
  .hero-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid, .calculator-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid.four, .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .hero-grid { min-height: auto; padding: 62px 0; }
  .section { padding: 64px 0; }
  .hero-actions, .cta-grid { display: grid; }
  .feature-grid.four, .feature-grid.three, .timeline, .service-grid, .calculator-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-card, .calculator-grid button { border-right: 0; border-bottom: 1px solid var(--line); }
  .portrait-placeholder { height: 380px; }
  .stats-card { position: static; width: 100%; margin-top: -1px; }
}

.social-links{
    display:flex;
    gap:16px;
    align-items:center;
}

.social-links a{
    width:48px;
    height:48px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(214,179,106,.4);

    color:#183153;

    background:#fff;

    border-radius:50%;

    transition:.3s ease;
}

.social-links a:hover{
    background:#183153;
    color:#D6B36A;
    transform:translateY(-3px);

    box-shadow:0 10px 25px rgba(24,49,83,.15);
}

.social-links i{
    font-size:18px;
}

/* Compact horizontal contact form */
.compact-form {
  padding: 28px;
  gap: 14px;
}

.compact-form .form-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 16px;
}

.compact-form label {
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
  min-height: 44px;
  padding: 10px 14px;
}

.compact-form .message-row {
  align-items: start;
}

.compact-form button {
  margin-left: 126px;
}

@media (max-width: 680px) {
  .compact-form .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .compact-form button {
    margin-left: 0;
  }
}
.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(9,35,63,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.success-modal.active {
  display: flex;
}

.success-modal-content {
  width: 90%;
  max-width: 500px;
  background: #fff;
  padding: 40px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}

.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #d6b36a;
  color: #183153;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}