/* === KONTAKTY PAGE === */
:root {
  --primary: #1b5e30;
  --primary-dark: #134523;
  --primary-light: #eaf5ec;
  --accent: #2ecc71;
  --white: #ffffff;
  --bg-warm: #f2f7f3;
  --text: #1a2a1c;
  --text-secondary: #4a5b4d;
  --border: #dcebe0;
  --shadow-sm: 0 4px 10px rgba(20,70,30,0.06);
  --shadow-md: 0 12px 28px rgba(20,70,30,0.1);
  --shadow-lg: 0 20px 40px rgba(20,70,30,0.12);
  --radius: 20px;
  --radius-lg: 28px;
  --transition: all 0.25s ease;
}

/* Хлебные крошки */
.breadcrumbs {
  background: linear-gradient(160deg, #f2faf5 0%, #eaf4ee 100%);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs .section-wrap {
  padding: 1rem 2rem;
  font-size: 0.9rem;
}
.breadcrumbs a { color: var(--primary); font-weight: 500; }
.breadcrumbs a:hover { color: var(--primary-dark); }
.breadcrumbs span { color: var(--text-secondary); }

.section-wrap { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  line-height: 1.2;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

/* Герой */
.page-hero {
  background: linear-gradient(160deg, #edf7f0 0%, #d7ecdd 40%, #c4e3cf 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .section-wrap {
  padding: 4rem 2rem;
}
.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  font-family: 'Unbounded', sans-serif;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* Контакты + форма */
.contacts-section {
  background: linear-gradient(160deg, #f2faf5 0%, #eaf4ee 100%);
}
.contacts-section .section-wrap {
  padding: 5rem 2rem;
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Левая колонка */
.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}
.contact-item a {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}
.contact-item p {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* Форма */
.form-card {
  background: linear-gradient(180deg, #f9fdfa 0%, #f2f7f3 100%);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}
.form-sub {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.8rem;
}

.field {
  margin-bottom: 1.2rem;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Golos Text', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  background: white;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,94,48,0.06);
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}

/* Ошибки */
.field.error input,
.field.error select,
.field.error textarea {
  border-color: #c0392b;
}
.error {
  color: #c0392b;
  font-size: 0.75rem;
  margin-top: 0.3rem;
  display: none;
}
.field.error .error {
  display: block;
}

/* ===== ЧЕКБОКС С ГАЛОЧКОЙ (ВЫРОВНЕНО ПО ТЕКСТУ) ===== */
.checkbox-field {
  margin-top: 0.3rem;
  margin-bottom: 1.2rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  position: relative;
  line-height: 1.4;
}

/* Полностью скрываем нативный чекбокс */
.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Кастомная галочка */
.checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #b0c4b5;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
  background: white;
  box-sizing: border-box;
  vertical-align: middle;
  margin-top: -1px;
}

/* При наведении */
.checkbox-label:hover .checkmark {
  border-color: var(--primary);
  background: #f9fdfa;
}

/* Когда чекбокс отмечен */
.checkbox-label input:checked ~ .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

/* Галочка внутри */
.checkbox-label input:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.checkbox-label a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.contacts-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 350px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: #e9ecef;
}

.map-wrapper iframe {
    display: block;
}

/* Кнопка */
.btn-submit {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, var(--primary), #1a6b33);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Golos Text', sans-serif;
  transition: var(--transition);
  margin-top: 0.5rem;
}
.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Успех */
.success-msg {
  display: none;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 1.2rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  margin-top: 1.5rem;
  border: 1px solid var(--accent);
}

/* Карта */
.map-section {
  background: #f4faf6;
  
}
.map-section .section-wrap {
  padding: 3rem 2rem 5rem;
}
.map-placeholder {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-secondary);
}
.map-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.map-placeholder p { font-weight: 600; color: var(--text); }
.map-placeholder span { font-size: 0.8rem; opacity: 0.6; }

/* CTA */
.cta-section { padding: 2rem 2rem 5rem; }
.cta-banner {
  max-width: 1100px; margin: 0 auto;
  background: linear-gradient(135deg, #1b5e30 0%, #236b38 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: white;
}
.cta-content { flex: 1 1 300px; }
.cta-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.07em; opacity: 0.85;
  margin-bottom: 0.5rem;
}
.cta-title { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; }
.cta-sub { opacity: 0.85; }
.btn-white {
  background: white; color: var(--primary-dark);
  padding: 0.9rem 2.2rem; border-radius: 50px;
  font-weight: 600; text-decoration: none; transition: var(--transition);
}
.btn-white:hover { background: #eaf5ec; transform: translateY(-2px); }
/* === КАРТА === */
.map-section {
    background: linear-gradient(160deg, #f2faf5 0%, #eaf4ee 100%);
    padding: 5rem 0;
}

.map-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.map-section__subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.contacts-map {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.map-wrapper:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 500px;
    border-radius: 20px;
}

/* Карточки с информацией */
/* === КАРТА (АЛЬТЕРНАТИВНЫЙ ДИЗАЙН) === */
.map-section {
    background: linear-gradient(160deg, #f8fbf9 0%, #eef5f0 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.map-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(27,94,48,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.map-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
    margin-left: 1%;
}

/* Левая часть */
.map-content {
    position: relative;
    z-index: 1;
}

.map-content .section-title {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.map-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Контакты */
.map-contacts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.map-contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.map-contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(27,94,48,0.08);
    border: 1px solid var(--border);
}

.map-contact-item div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.map-contact-label {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.map-contact-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Кнопка открыть в Яндекс */
.map-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: white;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.map-open-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27,94,48,0.2);
}

/* Правая часть — карта */
.map-visual {
    position: relative;
}

.map-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(27,94,48,0.15);
    border: 3px solid white;
    transition: all 0.3s ease;
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(27,94,48,0.2);
}

.map-card iframe {
    display: block;
    filter: grayscale(15%);
}

/* Декоративный пин */
.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 8px rgba(27,94,48,0.2), 0 0 0 16px rgba(27,94,48,0.1);
    pointer-events: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(27,94,48,0.3), 0 0 0 0 rgba(27,94,48,0.15);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(27,94,48,0), 0 0 0 30px rgba(27,94,48,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(27,94,48,0), 0 0 0 0 rgba(27,94,48,0);
    }
}

/* Адаптив */
@media (max-width: 900px) {
    .map-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .map-content .section-title {
        font-size: 1.8rem;
    }
    
    .map-card iframe {
        height: 350px;
    }
    
    .map-pin {
        display: none;
    }
}

@media (max-width: 600px) {
    .map-section {
        padding: 3rem 0;
    }
    
    .map-card {
        border-radius: 16px;
    }
    
    .map-card iframe {
        height: 280px;
    }
}

@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 2.2rem; }
  .section-title::after { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .page-hero .section-wrap { padding: 2.5rem 1rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .contacts-section .section-wrap { padding: 3rem 1rem; }
  .form-card { padding: 1.8rem 1.2rem; }
  .cta-banner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
}