.contact {
  background: linear-gradient(180deg, #fbfcfd 0%, #f3f5f8 100%);
}

.contact-full {
  width: calc(100% - 320px);
  margin: 0 auto;
}

.contact-layout {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-box {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.contact-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.form-field {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.15);
}

.contact-phone-row {
  display: grid;
  grid-template-columns: auto 92px auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.phone-mark {
  color: #244772;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-meta {
  border-top: 1px solid #e5e7eb;
  margin-top: 26px;
  padding-top: 24px;
  text-align: center;
}

.form-notice {
  margin: 12px 0 0;
  color: #0f766e;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.form-notice.show {
  opacity: 1;
}

.form-notice.is-error {
  color: #b42318;
}

.contact-submit-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.28);
  background: linear-gradient(135deg, #ff7c45 0%, #ff6b35 55%, #f15a24 100%);
  letter-spacing: 0.04em;
}

.contact-submit-btn:hover {
  box-shadow: 0 16px 30px rgba(255, 107, 53, 0.35);
  background: linear-gradient(135deg, #ff8754 0%, #ff7340 58%, #f76533 100%);
}

.contact-submit-btn:active {
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.28);
}

.contact-submit-btn:disabled {
  cursor: progress;
  opacity: 0.72;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(8px);
}

.contact-modal-dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.contact-modal.is-open .contact-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contact-modal-dialog h2 {
  margin: 0 42px 8px 0;
  color: var(--brand-blue);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.contact-modal-dialog p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.contact-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-modal-close:hover {
  background: var(--brand-orange);
  color: var(--white);
  transform: rotate(90deg);
}

.contact-modal-form .contact-submit-btn {
  margin-top: 2px;
}

.phone-field {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 10px;
}

.phone-field select {
  width: 100%;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 10px;
  background: var(--white);
  color: var(--text-main);
  font: inherit;
}

.phone-field select:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.15);
}

body.modal-open {
  overflow: hidden;
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.contact-links a {
  color: var(--brand-blue);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-links a:hover {
  color: var(--brand-orange);
  transform: translateY(-1px);
}

.social {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.social img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.social a:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.05);
}

.site-footer {
  background: var(--brand-blue);
  color: var(--white);
  padding: 48px 0 28px;
}

.site-footer .social {
  justify-content: flex-start;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px;
}

.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-logo {
  display: block;
  width: 240px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-list a,
.footer-desc {
  color: #d1d5db;
}

.footer-list a {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-list a:hover {
  color: var(--brand-orange);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 24px;
  padding-top: 20px;
  text-align: center;
  color: #d1d5db;
}
