﻿.section-main {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  padding: 32px 40px 32px 420px;
  border-radius: 0;
  overflow: visible;
  background: none;
  max-width: 1200px;
  margin: 80px auto 0 auto;
  width: calc(100% - 40px);
  position: relative;
}

/* он с border-radius через псевдоэлемент — не обрезает дочерние абсолютные элементы */
.section-main::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #d3d4d4, #E3F2FD);
  z-index: 0;
  pointer-events: none;
}

/* сё внутри поверх псевдоэлемента */
.section-main > * {
  position: relative;
  z-index: 1;
}

/* бёртка зуба — абсолютно, выходит за пределы секции */
.section-main__image-wrapper {
  position: absolute;
  left: -20px;
  bottom: 0;
  top: -60px;
  width: 440px;
  z-index: 2;
  pointer-events: none;
}

.section-main .image-photoroom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.accent-star {
  color: #ff0004;
}

@media (max-width: 900px) {
  .section-main {
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding: 24px 20px;
    width: calc(100% - 20px);
    margin-top: 20px;
  }

  .section-main__image-wrapper {
    display: none;
  }

  .section-main .content {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .section-main .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    margin-top: 0;
  }

  .section-main .input-phone {
    width: 100%;
    height: auto;
    border-radius: 32px;
    border: 1.5px solid #e0e0e0;
    padding: 12px 20px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
  }
  .section-main .input-phone:focus {
    border-color: #2196f3;
    outline: none;
  }

  .section-main .btn-emergency {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #2196f3;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 40px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
  }
  .section-main .btn-emergency:hover:not(:disabled) {
    background: #1976d2;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.35);
  }
  .section-main .btn-emergency:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #9e9e9e;
  }

  .section-main .consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.45;
    max-width: 520px;
    cursor: pointer;
    margin-top: 4px;
    text-align: left;
  }
  .section-main .consent-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 20px;
    margin-bottom: 0;
    vertical-align: middle;
    accent-color: #2196f3;
    cursor: pointer;
  }
  .section-main .consent-row a {
    color: #2196f3;
    text-decoration: none;
  }
  .section-main .consent-row a:hover {
    text-decoration: underline;
  }
}

.section-main .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  max-width: 613px;
}

.section-main .title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 32px;
  color: #080808;
}

.section-main .title .accent {
  color: #e53c40;
}

.section-main .desc {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 18px;
  color: #000;
  margin-bottom: 0;
}

.section-main .form-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.section-main .input-phone {
  width: 100%;
  height: 55px;
  border-radius: 12px;
  border: 1px solid #0001;
  font-family: var(--font-main);
  font-size: 18px;
  padding: 0 16px;
}

.section-main .btn-emergency {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  background: #1e88e5;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.section-main .btn-emergency:hover:not(:disabled) {
  background: #1565c0;
}

.section-main .btn-emergency:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #9e9e9e;
}

.section-main .consent-row {
  font-family: var(--font-main);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.45;
  max-width: 520px;
  cursor: pointer;
}

.section-main .consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #2196f3;
  cursor: pointer;
}

.section-main .consent-row a {
  color: #1e88e5;
  text-decoration: underline;
}

.section-main .consent-row a:hover {
  color: #1565c0;
}

