/* Импорт шрифта */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
  --font-base: 'Montserrat', sans-serif;
  --color-primary: #0d6efd;
  --color-primary-dark: #0056b3;
  --color-surface: #ffffff;
  --color-shadow: rgba(30,41,59,0.1);
  --color-shadow-light: rgba(0,0,0,0.05);
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 4.5rem; /* Увеличенное значение */
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
}

/* Сброс */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-base);
  background: #f5f6f7;
  color: #23272f;
  scroll-behavior: smooth;
}

/* Header & nav */
header { background: var(--color-surface); box-shadow: 0 2px 8px var(--color-shadow); position: sticky; top: 0; z-index: 100; }
nav { width: 100%; padding: 0 var(--space-md); display: flex; justify-content: center; }
.nav-toggle {
  color: #23272f;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3em 0.7em;
  transition: color 0.2s;
}
.nav-toggle:focus {
  outline: 2px solid #0d6efd;
}
#main-nav { display: flex; gap: var(--space-lg); list-style: none; }
#main-nav li a { color: var(--color-primary); font-weight: 600; text-decoration: none; transition: color .2s; }
#main-nav li a:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* Floating nav-toggle on mobile */
@media (max-width: 900px) {
  .nav-toggle { display: block; position: absolute; right: var(--space-md); top: var(--space-md); }
  #main-nav { display: none; flex-direction: column; background: var(--color-surface); position: absolute; top: 3rem; right: 0; left: 0; padding: var(--space-md) 0; box-shadow: 0 2px 12px var(--color-shadow-light); }
  #main-nav.open { display: flex; }
}

/* Скрывать кнопку меню на экранах шире 900px */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

/* Hero */
.hero-block {
  width: 100%;
  background: #eaf3fb;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  padding: 2.5rem 1rem 2rem 1rem;
}
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 0.5rem;
  }
  .hero-logo-side,
  .hero-about-side {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .header-logo {
    max-width: 120px;
    padding: 0.7rem;
  }
  .hero-main-text {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  .about-card-hero {
    max-width: 100%;
    padding: 1.2rem 1rem 1rem 1rem;
    text-align: center;
    font-size: 1rem;
  }
}
@media (max-width: 500px) {
  .hero-main-text h1,
  .header-logo {
    max-width: 95vw;
  }
  .about-card-hero {
    font-size: 0.98rem;
  }
}
.hero-logo-side {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 340px;
  max-width: 420px;
  gap: 2rem;
}
.header-logo {
  width: 100%;
  max-width: 420px; /* Совпадает с max-width заголовка */
  aspect-ratio: 1 / 1; /* Квадрат всегда */
  background: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  margin: 0 auto;
}
.header-logo img {
  max-width: 80%;
  max-height: 80%;
  display: block;
  margin: -24px 0 0 0; /* поднимет логотип выше центра */
}
@media (max-width: 900px) {
  .header-logo {
    max-width: 180px;
    padding: 0.7rem;
  }
  .header-logo img {
    max-width: 120px;
  }
}

/* Hero content */
.hero-content-side {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 3rem 2rem 2rem 2rem;
  background: transparent;
}
@media (max-width: 900px) {
  .hero-content-side {
    width: 100%;
    padding: 1.5rem 1rem 1.5rem 1rem;
    align-items: center;
  }
}
.about-card-hero {
  background: var(--color-surface, #fff);
  color: var(--color-text, #23272f);
  border-radius: var(--radius-lg, 1.2rem);
  box-shadow: 0 2px 12px var(--color-shadow, rgba(30,41,59,0.07));
  padding: 2.2rem 2rem 1.7rem 2rem;
  font-size: 1.08rem;
  line-height: 1.6;
  text-align: left;
  width: 100%;
  max-width: 420px;
  font-weight: 500;
}
.about-card-hero strong {
  font-weight: 700;
}
.about-card-hero h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
}
@media (max-width: 500px) {
  .about-card-hero {
    font-size: 0.98rem;
  }
}
@media (max-width: 350px) {
  .about-card-hero {
    font-size: 0.92rem;
    padding: 1rem 0.5rem;
  }
}
.hero-main-text {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}
.hero-main-text h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #23272f;
  margin-bottom: 1.1rem;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  text-align: center;
  width: 100%;
  max-width: 420px; /* или другое ограничение */
  margin: 0 auto 1.1rem auto;
}
.hero-claim strong {
  color: #007bff;
  font-size: 1.08rem;
  font-weight: 600;
  display: block;
  margin-top: 0.5rem;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
}

/* Section spacing */
section { margin-bottom: var(--space-xl); }
section:last-of-type { margin-bottom: 0; }

/* Problems grid */
/* Проблемы: плитки по 2 на строку, последняя на всю ширину */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.problems-grid .item {
  background: var(--color-surface, #fff);
  border-radius: var(--radius-md, 1rem);
  padding: var(--space-lg);
  box-shadow: 0 .125rem .75rem var(--color-shadow-light, rgba(0,0,0,0.06));
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.problems-grid .item-wide {
  grid-column: 1 / -1;
}

.problem-solution strong {
  color: #0d6efd;
  font-weight: 700;
}

@media (max-width: 700px) {
  .problems-grid {
    grid-template-columns: 1fr;
  }
  .problems-grid .item-wide {
    grid-column: auto;
  }
}

/* Problems title row */
.problems-title-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.problems-title-row h2 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: #23272f;
  line-height: 1.2;
}

.problems-title-icon {
  height: 5.2em; /* Было 2.6em, стало в 2 раза больше */
  width: auto;
  min-width: 96px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* For-whom */
.for-whom {
  background: #f5f8fa;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(13,110,253,0.06);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.for-whom h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.for-whom-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.for-whom-list li {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 8px rgba(13,110,253,0.04);
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  color: #23272f;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}
.for-whom-list li:hover {
  box-shadow: 0 4px 16px rgba(13,110,253,0.10);
}

.for-whom-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.for-whom-top-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2rem;
}

.for-whom-top-icon img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(13,110,253,0.08);
  background: #fff;
}

@media (max-width: 700px) {
  .for-whom-top-icon img {
    width: 80px;
    height: 80px;
  }
}

/* Pricing */
.tariffs-title-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.tariffs-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #23272f; /* Черный цвет */
  line-height: 1.2;
}

.tariffs-title-icon {
  height: 8.8em; /* 4 раза больше стандартного 2.2em */
  width: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.tariff {
  background: #fff;
  border-radius: 1.2rem;
  border: 2.5px solid #0d6efd;
  box-shadow: 0 1px 8px rgba(13,110,253,0.04);
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 170px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.tariff:hover {
  box-shadow: 0 4px 16px rgba(13,110,253,0.10);
  border-color: #0056b3;
}
.tariff h3 {
  color: #0d6efd;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.tariff p {
  color: #23272f;
  font-size: 1.05rem;
  margin: 0;
}

/* Cases */
.case {
  background: #fff;
  border-left: 4px solid #0d6efd;
  border-radius: 1rem;
  box-shadow: 0 1px 8px rgba(13,110,253,0.07);
  padding: 1.5rem 1.25rem 1.25rem 1.5rem;
  color: #23272f;
  font-size: 1.08rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.case:hover {
  box-shadow: 0 4px 16px rgba(13,110,253,0.13);
  border-color: #84c0ff;
}
.case h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  color: #0d6efd;
  font-weight: 700;
}
.case ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.case ul li {
  padding-left: 1.1em;
  position: relative;
}
.case ul li::before {
  content: "•";
  color: #0d6efd;
  position: absolute;
  left: 0;
  font-size: 1.2em;
  top: 0;
}
.case-note {
  color: #6c757d;
  font-size: 0.98em;
  margin-top: 0.3em;
}

/* FAQ */
.faq {
  background: #f8fafc;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(13,110,253,0.06);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.faq h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.faq ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq li {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 8px rgba(13,110,253,0.04);
  padding: 1.1rem 1.25rem;
  font-size: 1.08rem;
  color: #23272f;
  transition: box-shadow 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 70px;
}
.faq li:hover {
  box-shadow: 0 4px 16px rgba(13,110,253,0.10);
}
.faq li strong {
  color: #0d6efd;
  font-weight: 700;
  min-width: 120px;
  display: inline-block;
}

.faq-title-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.faq-title-icon {
  height: 4em;   /* 4 раза больше стандартного размера строки */
  width: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

@media (max-width: 700px) {
  .faq ul {
    grid-template-columns: 1fr;
  }
  .faq-title-icon {
    height: 2em;
    max-height: 40px;
  }
  .faq-title-row {
    gap: 0.7rem;
    margin-bottom: 1.2rem;
  }
}

/* Contacts */
.contacts form { display: flex; flex-direction: column; gap: var(--space-md); max-width: 500px; margin: 0 auto var(--space-xl); }
.contacts input, .contacts textarea {
  padding: var(--space-sm); border: 1px solid #ccc; border-radius: var(--radius-md);
}
.contacts button {
  padding: var(--space-md); background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius-md); cursor: pointer;
}
.contacts button:hover { background: var(--color-primary-dark); }

.contacts.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contacts.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 1.5rem;
}

.contacts-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 400px;
  width: 100%;
  margin: 0 auto 1.5rem auto;
  align-items: center;
}

.contacts-form input,
.contacts-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid #b6d4fe;
  border-radius: 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color 0.2s;
}
.contacts-form input:focus,
.contacts-form textarea:focus {
  border-color: #0d6efd;
  outline: none;
}

.contacts-checkbox {
  font-size: 0.98rem;
  color: #23272f;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  width: 100%;
}

.contacts-form button {
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 0.9rem;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.contacts-form button:hover {
  background: #0056b3;
}

.contacts-extra {
  margin-top: 1.2rem;
  color: #23272f;
  font-size: 1.05rem;
}
.contacts-extra a {
  color: #0d6efd;
  text-decoration: none;
}
.contacts-extra a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #111; color: #fff; text-align: center; padding: var(--space-md);
}

/* Floating contact icons */
.contact-fabs {
  position: fixed; top: 50%; right: var(--space-md); transform: translateY(-50%);
  display: flex; flex-direction: column; gap: var(--space-md); z-index: 1000;
}
.contact-fabs .fab {
  width: 3rem; height: 3rem; background: var(--color-surface); border-radius: 50%;
  box-shadow: 0 .25rem 1rem rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.contact-fabs .fab:hover { transform: scale(1.1); }
.contact-fabs .fab img { width: 1.5rem; height: 1.5rem; }

.problem-content {
  width: 100%;
}

.problem-content h4 {
  font-size: 1.13rem;
  font-weight: 700;
  color: #23272f;
  margin-bottom: 0.2rem;
  display: inline-block;
}

.problem-content img {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.2rem;
}

@media (max-width: 700px) {
  .problem-content h4 {
    font-size: 1rem;
  }
  .problem-content img {
    width: 26px;
    height: 26px;
  }
}

/* Для размещения иконки справа по высоте плитки */
.problem-content--with-img {
  position: relative;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.problem-side-img {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 76px;
  height: 76px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.problem-content--with-img h4,
.problem-content--with-img .problem-desc,
.problem-content--with-img .problem-solution {
  margin-right: 90px; /* увеличить отступ под большую иконку */
}

.problem-solution strong {
  color: #23272f;
  font-weight: 700;
  font-style: normal;
}

@media (max-width: 700px) {
  .problem-icon svg {
    width: 32px !important;
    height: 32px !important;
  }
  .problem-side-img {
    width: 38px;
    height: 38px;
    right: 0.7rem;
  }
  .problem-content--with-img h4,
  .problem-content--with-img .problem-desc,
  .problem-content--with-img .problem-solution {
    margin-right: 44px;
  }
}

/* Увеличение расстояния между секциями */
.section {
  margin-bottom: 4.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

@media (max-width: 700px) {
  .section {
    margin-bottom: 2.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .hero-inner,
  .for-whom,
  .faq,
  .contacts.section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .tariffs-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .tariffs-title-icon {
    height: 3.5em;
    max-height: 60px;
  }
  .tariff-grid {
    gap: 1.2rem;
  }
}

/* Cases title row */
.cases-title-row {
  font-size: 3em;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.cases-title-icon {
  height: 8em; /* 4 раза больше стандартного размера строки */
  max-height: 160px;
  width: auto;
  object-fit: contain;
  display: block;
}

.cases-list {
  margin-bottom: 3.5rem; /* увеличенный отступ снизу */
}

@media (max-width: 700px) {
  .cases-title-icon {
    height: 3em;
    max-height: 60px;
  }
  .cases-title-row {
    gap: 0.7rem;
    margin-bottom: 1.5rem;
  }
  .cases-list {
    margin-bottom: 2rem;
  }
}

/* Пропорционально увеличенный шрифт для кейсов */
.cases-list .case {
  font-size: 1.35rem;
  line-height: 1.6;
}

.cases-list .case h3 {
  font-size: 1.25em;
  margin-bottom: 0.7em;
}

.cases-list .case ul {
  font-size: 1em;
}

.cases-list .case .case-note {
  font-size: 0.98em;
  margin-top: 0.7em;
}

@media (max-width: 700px) {
  .cases-list .case {
    font-size: 1.05rem;
  }
}

.about-card-hero {
  background: var(--color-surface, #fff);
  color: var(--color-text, #23272f);
  border-radius: var(--radius-lg, 1.2rem);
  box-shadow: 0 2px 12px var(--color-shadow, rgba(30,41,59,0.07));
  padding: 2.2rem 2rem 1.7rem 2rem;
  font-size: 1.08rem;
  line-height: 1.6;
  text-align: left;
  width: 100%;
  max-width: 420px;
  font-weight: 500;
}
.about-card-hero strong {
  font-weight: 700;
}
.about-card-hero h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
}
@media (max-width: 500px) {
  .about-card-hero {
    font-size: 0.98rem;
  }
}
@media (max-width: 350px) {
  .about-card-hero {
    font-size: 0.92rem;
    padding: 1rem 0.5rem;
  }
}

.tariff,
.case,
.for-whom-list li,
.contacts-form button {
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}


