/* ===== Общие настройки ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: Inter, sans-serif;
    margin: 2rem 8rem;
    padding: 0;
    background: #f8f8fa;
    color: #6f6f6f;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

h1 {
    color: #000;
    font-size: 2rem;
}

.features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #2e7d32;
    font-weight: bold;
}

.site-logo {
    margin: 0;
    font-size: 1.5rem;
    font-weight: normal;
}

.site-logo a {
    text-decoration: none;
    color: #D61E20;
}

nav {
    position: relative;
}

nav ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul.menu li {
    display: inline-block;
    margin-left: 1.5rem;
}

nav ul.menu li a {
    text-decoration: none;
    color: #000;
}

nav ul.menu li a:hover {
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

.consult-form .privacy-link {
    color: #777;
    text-decoration: underline;
    font-size: 0.9rem;
}

.consult-form .privacy-link:hover {
    color: #1A4D8F;
}

/* ===== Верхний блок ===== */
.top {
    margin: 4rem 0;
}

.top p {
    font-size: 1.5rem;
}

/* ===== Блоки "Для частных лиц / Для бизнеса" ===== */
.top-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin: 0 auto;
}

.block {
    flex: 1 1 calc(50% - 2rem);
    max-width: calc(50% - 2rem);
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.block h2 {
    position: relative;
}

.block h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 56px;
    height: 2px;
    background: #1A4D8F;
}

.block-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

.block-text {
    flex: 1;
    text-align: center;
}

.block-text p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: #4a4a4a;
}

.block-image {
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.block-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.block button {
    display: block;
    padding: 0.75rem 1.5rem;
    width: 100%;
    background: #1A4D8F;
    color: #fff;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 1rem;
    margin: 2rem auto;
    font-weight: 500;
    letter-spacing: 0.02em;

    /* Плавный переход для transform и box-shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Анимация при наведении */
.block button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.position-1 {
    margin: 4rem 0;
}

.position-1 p {
    font-size: 1.5rem;
}


/* ===== Преимущества ===== */
.advantages {
    margin: 4rem 0;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #000;
}

.advantages-list {
    list-style: none; /* убираем стандартные маркеры */
    padding: 0;

    margin: 0 auto;
}

.advantages-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.5;
    color: #4a4a4a;
}

/* маркер слева */
.advantages-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0.25rem; /* выравнивание по вертикали */
    color: #1A4D8F;
    font-weight: bold;
}

/* ===== Как это работает ===== */
.how-it-works {
    margin: 4rem 0;
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 4rem;
    color: #000;
}

.how-it-works .steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.how-it-works .step {
    flex: 1 1 250px;
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works .step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.how-it-works .step-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1A4D8F;
    margin-bottom: 1rem;
}

.how-it-works .step-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #000;
}

.how-it-works .step-text p {
    margin: 0;
    color: #4a4a4a;
    line-height: 1.5;
}

.trust {
    margin: 4rem 0;
}

.trust h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #000;
}

.trust-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.trust-content-value {
    flex: 1 1 250px;
    font-size: 1.5rem;
}


footer {
    text-align: center;
    margin: 4rem 0;
}

/* ===== Мобильная версия ===== */
@media (max-width: 850px) {
    body {
    margin: 1rem 2rem;
}
    
    nav ul.menu {
        display: block;
        position: fixed;
        background: #f8f8fa;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
        z-index: 999;
    }

    nav ul.menu.open {
        transform: scaleY(1);
        position: fixed;
        left: 0;
        width: 100vw;
    }

    nav ul.menu li {
        display: block;
        border-bottom: 1px solid #ddd;
        margin: 0;
    }

    nav ul.menu li:last-child {
        border-bottom: none;
    }

    nav ul.menu li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        color: #000;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }
    
    .top-blocks {
        flex-direction: column;
    }
    
    .block {
        flex: 1 1 calc(50% - 2rem);
        max-width: 100%;
    }

    .block-content {
        flex-direction: column;
    }

    .block-text {
        text-align: center;
    }

    .how-it-works .steps {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ===== Средний экран ===== */
@media (min-width: 851px) and (max-width: 1000px) {
    main {
    margin: 2rem 0;
    }

    .block-content {
        flex-direction: column;
    }

    .block-text {
        text-align: center;
    }
}



/* ===== Десктоп ===== */
@media (min-width: 1001px) {
    .top-blocks {
        display: flex;
    }

    .block-content {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .block-text {
        text-align: left;
    }
}

/* ===============================
   Блок выбора ситуации (частные лица)
   =============================== */


.situation-page {
  margin: 4rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin: 3rem auto;
}
  
.situation-left {
    line-height: 1.6;
    width:90%;
}
.situation-left h1 {
    color: #000;
    font-size: 2rem;
}

.situation-left p {
    font-size: 1.05rem;
    font-weight: 500;
}

.category-cards {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  font-family: 'Segoe UI', sans-serif;
}

.category-card {
  border-radius: 0.75rem;
  border: 1px solid #d6dde6;
  background: #ffffff;
}

.category-card.active {
  background: #f7faff;
  box-shadow: 0 0.375rem 1.125rem rgba(26, 77, 143, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
}

.card-header:hover {
  background: #eef4ff;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon {
  font-size: 1.5rem;
}

.title {
  font-weight: 600;
  font-size: 1rem;
}

.arrow {
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

/* 🔑 ВАЖНО: padding фиксированный */
.card-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  transition: max-height 0.35s ease;
}

.category-card.active .card-body {
  padding-bottom: 0.75rem;
}

.situation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5eaf1;
  font-size: 0.9375rem;
}

.situation-item:last-child {
  border-bottom: none;
}

.btn-consult {
  display: inline-block;       
  background: #1a4d8f;
  color: #fff;
  border: none;
  padding: 0.375rem 0.875rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: none;       
  text-align: center;          
  transition: background 0.2s, transform 0.1s; /* плавный переход */
}

.btn-consult:hover {
  background: #163b70;
}

.btn-consult:active {
  transform: translateY(1px); /* слегка «вдавливаем» кнопку */
  background: #122c55;        /* темнее при нажатии */
}

/* Мобильная версия */
@media (max-width: 850px) {
  .situation-page {
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: 1fr;
  }
}


  .card-header {
    padding: 0.875rem 0.875rem;
  }

  .card-body {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }
}

/* ===============================
   Форма (частные лица)
   =============================== */

header.form-header {
    display: block;
    margin: 4rem 0;
}

header.form-header p {
    font-weight: 600;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin: 3rem auto;
}

.form-content {
    line-height: 1.6;
}

.form-content section + section {
    margin-top: 1.5rem;
}

.situation-intro p {
    font-size: 1.05rem;
    font-weight: 500;
}

.situation-details p {
    color: #4a4a4a;
}

.payment-note {
    font-size: 0.9rem;
    color: #666;
}

.form-column {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.consult-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.3rem;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 0.3rem;
}

.form-hint {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.25rem;
}

.form-note {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.25rem;
}

.btn-primary {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #1A4D8F;
    color: #fff;
    border: none;
    border-radius: 0.35rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #163b70;
    transform: translateY(-2px);
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f6f8fb;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.file-remove {
    color: #c00;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.file-remove:hover {
    text-decoration: underline;
}

.file-upload-btn {
    display: inline-block;
    background: #e9eef7;
    color: #1a4d8f;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    border: 1px dashed #1a4d8f;
}

.file-upload-btn:hover {
    background: #dde6f5;
}

@media (max-width: 900px) {
    .form-layout {
        grid-template-columns: 1fr;
    }
}

.form-errors {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #f5c2c7;
    background: #fff5f5;
}

.form-errors li {
    color: #b00020;
    margin-bottom: 5px;
}

/* ===============================
   Оплата (частные лица)
   =============================== */
   
header.payment-header {
    display: block;
    margin: 4rem 0;
}

header.payment-header p {
    font-weight: 600;
}

.payment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin: 3rem auto;
}

.payment-content {
    line-height: 1.6;
}

.payment-content section + section {
    margin-top: 1.5rem;
}

.payment-column img{
    width:80%;
}

/* ===============================
   Антиспам
   =============================== */

.honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ===============================
   Форматирование текста
   =============================== */

.basictext p, li {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
}


.about-intro {
    overflow: hidden;
    margin-bottom: 40px;
}

.about-photo {
    float: right;
    width: 260px;
    margin: 0 0 20px 35px;
    border-radius: 4px;
}


.qualification {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}


.certificate {
    width: 300px;
    height: auto;
    border: 1px solid #ddd;
}


@media (max-width: 700px) {

    .about-photo {
        float: none;
        display: block;
        width: 220px;
        margin: 0 auto 25px;
    }


    .qualification {
        display: block;
    }


    .certificate {
        display: block;
        width: 100%;
        max-width: 350px;
        margin: 25px auto 0;
    }

}

.intro-block {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-photo {
    width: 40%;
    max-width: 250px;
    min-width: 150px;
    border-radius: 8px;
}

.intro-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.services-grid {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.service-block {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.service-block h3 {
    margin-top: 0;
}

.service-block .btn-primary {
    display: inline-block;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .services-grid {
        flex-direction: column;
    }
}

.section-divider {
    margin: 40px 0;
}



