* {
 margin: 0;
 padding: 0;
}
body,
html {
 font-family: sans-serif;
 height: 100%;
 box-sizing: border-box;
}
body {
 display: flex;
 flex-direction: column;
 min-height: 100vh;
}

.contact-page-container {
 padding-top: 40px;
 padding-bottom: 80px;
}

/* Сетка верхнего блока */
.contact-top-grid {
 display: grid;
 grid-template-columns: 1fr 1.2fr;
 gap: 50px;
 margin-bottom: 60px;
}

/* Заголовки секций */
.section-title-wrap {
 display: flex;
 align-items: center;
 gap: 20px;
 margin-bottom: 30px;
}

.section-title {
 font-family: "Lora", serif;
 font-size: 32px;
 color: #3a1c4f;
 margin: 0;
 white-space: nowrap;
}

.title-line {
 flex-grow: 1;
 height: 1px;
 background-color: #c4b5a3;
}

/* --- СПИСОК КОНТАКТОВ --- */
.contact-list {
 display: flex;
 flex-direction: column;
 gap: 20px;
}

.contact-row {
 display: flex;
 align-items: center;
 gap: 20px;
 text-decoration: none;
 padding: 10px 0;
 transition: opacity 0.3s;
}

.contact-row:hover {
 opacity: 0.7;
}

.contact-icon-wrap {
 width: 50px;
 height: 50px;
 background-color: #3a1c4f;
 color: #fff;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 20px;
 font-weight: bold;
 flex-shrink: 0;
}

.contact-text {
 display: flex;
 flex-direction: column;
 flex-grow: 1;
}

.contact-name {
 font-family: "Lora", serif;
 font-size: 18px;
 color: #3a1c4f;
 font-weight: 600;
 margin-bottom: 2px;
}

.contact-desc {
 font-family: "Lora", serif;
 font-size: 14px;
 color: #7a6b5d;
}

.contact-arrow {
 font-size: 24px;
 color: #3a1c4f;
}

/* --- КАРТА --- */
.map-container {
 width: 100%;
 height: 350px;
 border-radius: 12px;
 overflow: hidden;
 border: 2px solid #c4b5a3;
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- ФОРМА --- */
.contact-form-section {
 margin-top: 40px;
}

.form-subtitle {
 font-family: "Lora", serif;
 font-size: 16px;
 color: #7a6b5d;
 margin-bottom: 30px;
 line-height: 1.5;
}
.btn-event-primary {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 20px;
 width: 100%;
 max-width: 400px;
 background: rgba(94, 45, 121, 0.9);
 color: #fff;
 font-size: 18px;
 font-weight: 500;
 padding: 16px 30px;
 border-radius: 6px;
 border: 2px solid #3a1c4f;
 box-shadow: inset 0 0 0 2px #f4ebd8;
 text-decoration: none;
 transition: background 0.3s;
 font-family: "Lora", serif;
}
.btn-event-primary:disabled {
 opacity: 0.8;
}
.form-grid-2 {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 20px;
 margin-bottom: 20px;
}

/* Поля ввода */
.form-input-wrap {
 margin-bottom: 0;
 position: relative;
}

.auth-input-wrap {
 display: flex;
 align-items: center;
 background: #f4ede0;
 border: 1px solid #c2b29c;
 border-radius: 6px;
 height: 50px;
 padding: 0 15px;
 transition: border-color 0.2s;
}

.auth-input-wrap:focus-within {
 border-color: #7c49ad;
}

.auth-input-wrap.textarea-wrap {
 height: auto;
 align-items: flex-start;
 padding: 15px;
}

.auth-icon {
 width: 20px;
 height: 20px;
 margin-right: 15px;
 flex-shrink: 0;
 opacity: 0.7;
}

.auth-input-wrap input,
.auth-input-wrap textarea {
 width: 100%;
 height: 100%;
 background: transparent;
 border: none;
 padding: 0;
 font-size: 15px;
 color: #3a1c4f;
 font-family: "Lora", serif;
 outline: none;
}

.auth-input-wrap input::placeholder,
.auth-input-wrap textarea::placeholder {
 color: #998f80;
}

.auth-input-wrap textarea {
 resize: vertical;
 min-height: 100px;
}

.full-width {
 margin-bottom: 20px;
}

/* Капча и кнопка */
.form-bottom-actions {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 margin-top: 20px;
}

#captcha-container {
 flex-shrink: 0;
}

.form-button.auth-button {
 display: flex;
 align-items: center;
 justify-content: center;
 background-color: #5e2d79;
 color: #fff;
 font-size: 16px;
 font-weight: 500;
 padding: 15px 30px;
 border-radius: 6px;
 border: none;
 cursor: pointer;
 transition: background 0.3s;
 font-family: "Lora", serif;
 min-width: 250px;
}

.form-button.auth-button:hover {
 background-color: #4a1f63;
}

/* Ошибки */
.errorWindow {
 display: none;
 color: #a82c2c;
 font-size: 12px;
 margin-top: 5px;
}

.errorWindow.active {
 display: block;
}

.messages-container {
 margin-bottom: 25px;
 width: 100%;
}

.alert-success,
.alert-error,
.alert-warning {
 padding: 15px 20px;
 border-radius: 8px;
 font-family: "Lora", serif;
 font-size: 15px;
 line-height: 1.4;
 display: flex;
 align-items: center;
 gap: 10px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.alert-success {
 background-color: #f0fdf4;
 border: 1px solid #bbf7d0;
 color: #166534;
}

.alert-error {
 background-color: #fef2f2;
 border: 1px solid #fecaca;
 color: #991b1b;
}

.alert-warning {
 background-color: #fffbeb;
 border: 1px solid #fde68a;
 color: #92400e;
}

@media (max-width: 900px) {
 .contact-top-grid {
  grid-template-columns: 1fr;
 }
 .form-grid-2 {
  grid-template-columns: 1fr;
 }
 .form-bottom-actions {
  flex-direction: column;
  align-items: flex-start;
 }
 .form-button.auth-button {
  width: 100%;
 }
}
