* { box-sizing: border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  color:#1f2a37;
  background:#ffffff;
  line-height:1.55;
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

/* ===== Header ===== */
.header{
  background:#dff0ff;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.header-row{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-logo{
  width:44px;
  height:44px;
}
.brand-title{
  font-weight:700;
  color:#1f77c9;
  line-height:1.05;
  font-size:20px;
}
.nav a{
  color:#1f2a37;
  text-decoration:none;
  font-size:16px;
  margin-left:22px;
}
.nav a:hover{ text-decoration:underline; }

/* ===== HERO (fixed layout) ===== */
.hero{
  position: relative;
  background-image: url("../img/ui/pavel-bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  padding: 90px 0 140px;
  overflow: hidden;
}

.hero-grid{
  display: grid;
  grid-template-columns: 620px 1fr; /* <- фиксируем левую колонку как в PSD */
  align-items: start;
  gap: 0;
}

.hero-left{
  padding-top: 10px;
}

.hero h1{
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 18px;
  color: #0f3b69;
}

.hero p{
  margin: 0 0 14px;
  color: #244a73;
  font-size: 16px;
  max-width: 560px;
}

.hero-btn{
  margin-top: 18px;
  display: inline-block;
}

/* ===== Mobile ===== */
@media (max-width: 900px){
  .hero{
    padding: 60px 0 80px;
    background-position: 75% bottom; /* Павел не давит на текст */
  }
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .hero h1{
    font-size: 38px;
  }
}
/* ===== Icons ===== */
.icons-title{
  margin-top:26px;
  font-size:18px;
  color:#4b5563;
}
.icons-grid{
  margin-top:24px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:22px 80px;
  max-width:980px;
}
.icon-item{
  display:flex;
  align-items:center;
  gap:18px;
  font-size:18px;
  color:#4b5563;
}
.icon-item img{
  width:64px;
  height:64px;
}

/* ===== Footer ===== */
.footer{
  background:#eef7ff;
  border-top:1px solid rgba(0,0,0,.06);
  margin-top: 80px;
}
.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 0;
}
.footer-item{
  display:flex;
  align-items:center;
  gap:10px;
  color:#335a86;
  font-size:16px;
}
.footer-item img{
  width:22px;
  height:22px;
}

/* ===== Mobile ===== */
@media (max-width: 900px){
  .nav{ display:none; }
  .hero-grid{ grid-template-columns:1fr; min-height:auto; }
  .hero h1{ font-size:38px; }
  .hero-photo img{ max-width:420px; margin:0 auto; }
  h2{ font-size:32px; }
  .icons-grid{ grid-template-columns:1fr; gap:16px; }
  .footer-row{ flex-direction:column; align-items:flex-start; }
}

.hero .btn{
  display:inline-block;
  text-decoration:none;
  color:#fff;
}

.hero a{
  text-decoration:none;
}

.hero{
  padding-top: 110px;
}

/* Force hero button */
.hero-btn{
  display:inline-block !important;
  padding:14px 22px !important;
  border-radius:10px !important;
  background:#2f5f9e !important;
  color:#ffffff !important;
  text-decoration:none !important;
  font-weight:600 !important;
  line-height:1 !important;
  box-shadow:0 10px 24px rgba(47,95,158,.25) !important;
}
.hero-btn:hover{
  filter:brightness(0.95);
}

.footer-copy{
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  padding: 12px 0 20px;
}

.footer-link{
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.footer-link:hover{
  background: rgba(47,95,158,.08);
  border-radius: 10px;
}

/* ===== HOW ===== */
.how{
  padding-top: 40px;
}

.how-lead{
  max-width: 900px;
  font-size: 18px;
  color: #4b5563;
  margin: 0 0 28px;
}

.how-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.how-card{
  background: #f7fbff;
  border: 1px solid rgba(15,59,105,.10);
  border-radius: 16px;
  padding: 22px 22px 20px;
}

.how-num{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(47,95,158,.12);
  color: #0f3b69;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.how-title{
  font-size: 18px;
  font-weight: 800;
  color: #0f3b69;
  margin-bottom: 10px;
}

.how-text{
  font-size: 16px;
  color: #244a73;
}

.how-cta{
  margin-top: 26px;
  padding: 18px 18px;
  background: #eef7ff;
  border: 1px solid rgba(15,59,105,.10);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.how-cta-text{
  color: #244a73;
  font-size: 16px;
  max-width: 780px;
}

/* Mobile */
@media (max-width: 900px){
  .how-grid{
    grid-template-columns: 1fr;
  }
  .how-cta{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== CASES ===== */
.cases-lead{
  max-width: 900px;
  font-size: 18px;
  color: #4b5563;
  margin: 0 0 26px;
}

.cases-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card{
  background: #ffffff;
  border: 1px solid rgba(15,59,105,.10);
  border-radius: 16px;
  padding: 20px 18px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.case-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.case-tag{
  display: inline-block;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47,95,158,.12);
  color: #0f3b69;
  font-weight: 600;
}

.case-time{
  font-size: 13px;
  color: #6b7280;
}

.case-row{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(15,59,105,.08);
}

.case-row:first-of-type{
  border-top: none;
}

.case-label{
  font-weight: 700;
  color: #0f3b69;
  font-size: 14px;
}

.case-text{
  color: #244a73;
  font-size: 14.5px;
}

.case-note{
  margin-top: 12px;
  font-size: 12.5px;
  color: #6b7280;
}

/* CTA under cases */
.cases-cta{
  margin-top: 26px;
  padding: 18px;
  background: #eef7ff;
  border: 1px solid rgba(15,59,105,.10);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cases-cta-text{
  color: #244a73;
  font-size: 16px;
  max-width: 780px;
}

/* Responsive */
@media (max-width: 900px){
  .cases-grid{
    grid-template-columns: 1fr;
  }
  .case-row{
    grid-template-columns: 78px 1fr;
  }
  .cases-cta{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== ICON CARDS ===== */
.icon-cards{
  margin-top: 22px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  width: 100%;
  max-width: 1100px;   /* ← как у основного контента */
}

.icon-card{
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 16px 18px;
  min-height: 84px;

  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid rgba(15,59,105,.10);
}

.icon-card img{
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.icon-card-text{
  font-size: 16px;
  color: #244a73;
  font-weight: 600;
}

/* чтобы 5 карточек смотрелись ровно */
.icon-card:nth-child(4),
.icon-card:nth-child(5){
  grid-column: span 1;
}

/* Responsive */
@media (max-width: 900px){
  .icon-cards{
    grid-template-columns: 1fr;
  }
  .icon-card{
    padding: 14px 14px;
  }
}

/* ===== REVIEWS ===== */
.reviews-lead{
  max-width: 900px;
  font-size: 18px;
  color: #4b5563;
  margin: 0 0 26px;
}

.reviews-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
}

.review-card{
  background: #ffffff;
  border: 1px solid rgba(15,59,105,.10);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-text{
  font-size: 15.5px;
  line-height: 1.6;
  color: #244a73;
}

.review-author{
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,59,105,.08);

  display: flex;
  gap: 10px;
  align-items: center;
}

.review-name{
  font-weight: 700;
  color: #0f3b69;
}

.review-meta{
  font-size: 13px;
  color: #6b7280;
}

.reviews-note{
  margin-top: 18px;
  font-size: 13px;
  color: #6b7280;
  max-width: 900px;
}

/* Responsive */
@media (max-width: 900px){
  .reviews-grid{
    grid-template-columns: 1fr;
  }
}

/* ===== REVIEWS (cards + modal) ===== */
.reviews-lead{
  max-width: 900px;
  font-size: 18px;
  color: #4b5563;
  margin: 0 0 26px;
}

.reviews-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
}

.review-card{
  background: #ffffff;
  border: 1px solid rgba(15,59,105,.10);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.review-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.07);
}

.review-head{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.review-photo{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 56px;
  border: 1px solid rgba(15,59,105,.15);
  background: #eef7ff;
}

.review-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-title{
  font-weight: 800;
  color: #0f3b69;
  margin-bottom: 8px;
  font-size: 16px;
}

.review-snippet{
  color: #244a73;
  font-size: 14.5px;
  line-height: 1.55;
}

.review-foot{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,59,105,.08);
  color: #0f3b69;
  font-weight: 700;
  font-size: 14px;
}

.reviews-note{
  margin-top: 18px;
  font-size: 13px;
  color: #6b7280;
  max-width: 900px;
}

/* ===== Modal ===== */
.review-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.review-modal.is-open{
  display: block;
}

.review-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.review-modal__dialog{
  position: relative;
  width: min(860px, calc(100% - 32px));
  margin: 6vh auto 0;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15,59,105,.12);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  padding: 18px 18px 16px;
}

.review-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15,59,105,.12);
  background: #f7fbff;
  cursor: pointer;
  font-size: 16px;
}

.review-modal__top{
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 40px;
}

.review-modal__photo{
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(15,59,105,.15);
  background: #eef7ff;
  flex: 0 0 72px;
}

.review-modal__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-modal__name{
  font-weight: 900;
  color: #0f3b69;
  font-size: 18px;
  margin-bottom: 4px;
}

.review-modal__hint{
  color: #6b7280;
  font-size: 13px;
}

.review-modal__text{
  margin-top: 14px;
  color: #244a73;
  font-size: 15.5px;
  line-height: 1.7;
  white-space: pre-line;
}

/* Responsive */
@media (max-width: 900px){
  .reviews-grid{ grid-template-columns: 1fr; }
  .review-modal__dialog{ margin-top: 3vh; }
}

.review-read{
  margin-top: 10px;
  font-size: 13px;
  color: #2f5f9e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: .75;
}

.review-read::after{
  content: "→";
  font-size: 14px;
  transition: transform .15s ease;
}

.review-card:hover .review-read{
  opacity: 1;
}

.review-card:hover .review-read::after{
  transform: translateX(3px);
}

.review-card:focus{
  outline: 2px solid rgba(47,95,158,.35);
  outline-offset: 2px;
}

/* убираем подчеркивание у бренд-ссылок */
.brand,
.brand:visited,
.brand:hover,
.brand:active {
  text-decoration: none;
  color: inherit;
}

.brand *{
  text-decoration: none !important;
}

.nav a.active{
  color: #2a7de1;
  font-weight: 700;
}