:root {
      --blue-dark: #00325c;
      --blue-main: #0058a9;
      --blue-light: #e3f1ff;
      --blue-bg-top: #ffffff;
      --blue-bg-bottom: #cfe6ff;
      --text-main: #00233b;
      --text-muted: #5b6574;
      --card-grey: #d0d6de;
      --card-blue: #d8eaff;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #f4f7fb;
      color: var(--text-main);
    }

    .contact-page {
      min-height: 100vh;
      background: linear-gradient(to bottom, var(--blue-bg-top), var(--blue-bg-bottom) 260px, #ffffff 260px);
      border-radius: 20px;
      padding: 40px 32px 56px;
      display: flex;
      justify-content: center;
    }

    .contact-inner {
      width: 100%;
      max-width: 1200px;
    }

    .contact-header {
      text-align: center;
      margin-bottom: 120px;
    }

    .contact-header h1 {
      font-size: 36px;
      font-weight: 800;
      margin-bottom: 32px;
      color: var(--blue-dark);
    }

    .contact-header p {
      max-width: 720px;
      margin: 0 auto;
      font-size: 15px;
      line-height: 1.6;
      color: var(--text-muted);
    }

    /* TOP GRID: form + image */
    .contact-top {
      display: grid;
      grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
      gap: 32px;
      margin-bottom: 32px;
    }

    .contact-form {
      background: transparent;
    }

    .field-row {
      display: flex;
      gap: 16px;
      margin-bottom: 12px;
    }

    .field-row.single {
      flex-direction: column;
      gap: 0;
    }

    .field {
      flex: 1;
    }

    label {
      display: block;
      font-size: 15px;
      font-weight: 500;
      margin-bottom: 4px;
      color: #343a43;
    }

    input[type="text"],
    input[type="email"],
    textarea {
      width: 100%;
      border-radius: 6px;
      border: none;
      background: var(--blue-light);
      padding: 12px 16px;
      font-size: 14px;
      outline: none;
      transition: box-shadow 0.15s ease, transform 0.12s ease;
    }

    textarea {
      border-radius: 16px;
      min-height: 140px;
      resize: vertical;
      padding-top: 12px;
    }

    input:focus,
    textarea:focus {
      box-shadow: 0 0 0 2px rgba(0, 88, 169, 0.35);
      transform: translateY(-1px);
    }

    .contact-image {
      background-image: url(/images/Начало/AF1QipOQFpLaH4HPJeumit4El4Ao50ul.png);
      background-size: cover;
      background-position: center;
      border-radius: 16px;
      min-height: 220px;
    }

    .contact-submit {
      margin-top: 16px;
    }

    .btn-submit {
      border: none;
      border-radius: 999px;
      padding: 10px 32px;
      font-size: 15px;
      font-weight: 600;
      color: #ffffff;
      background: linear-gradient(135deg, #004b82, #0072c6);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 22px rgba(0, 75, 130, 0.35);
      transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
      position: relative;
      overflow: hidden;
    }

    .btn-submit:hover {
      transform: translateY(-1px);
      box-shadow: 0 14px 28px rgba(0, 75, 130, 0.45);
      filter: brightness(1.03);
    }

    .btn-submit:active {
      transform: translateY(0);
      box-shadow: 0 6px 14px rgba(0, 75, 130, 0.3);
      filter: brightness(0.97);
    }

    /* ripple for fun */
    .btn-submit span.ripple {
      position: absolute;
      border-radius: 50%;
      transform: scale(0);
      animation: ripple 500ms linear;
      background-color: rgba(255, 255, 255, 0.7);
    }

    @keyframes ripple {
      to {
        transform: scale(4);
        opacity: 0;
      }
    }

    /* CONTACT CARDS */
    .contact-info {
      display: flex;
      gap: 24px;
      margin-bottom: 28px;
      flex-wrap: wrap;
    }

    .contact-card {
      flex: 1;
      min-width: 250px;
      border-radius: 18px;
      padding: 18px 20px;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .contact-card:nth-child(1) {
      background: var(--card-grey);
    }
    .contact-card:nth-child(2),
    .contact-card:nth-child(3) {
      background: var(--card-blue);
    }

    .contact-icon {
      font-size: 26px;
      line-height: 1;
      margin-top: 2px;
    }

    .contact-card-content {
      text-align: left;
    }

    .contact-card-title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 4px;
      color: #1c2128;
    }

    .contact-card-text {
      font-size: 14px;
      line-height: 1.6;
      color: #343a43;
    }

    /* MAP */
    .contact-map-wrapper {
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    }

    .contact-map-wrapper iframe {
      display: block;
      width: 100%;
      height: 440px;
      border: 0;
    }

    /* Validation message */
    .form-message {
      margin-top: 12px;
      font-size: 14px;
      display: none;
    }
    .form-message.success {
      color: #0b7a30;
    }
    .form-message.error {
      color: #b3261e;
    }

    .field-error {
      box-shadow: 0 0 0 2px rgba(179, 38, 30, 0.5) !important;
    }

    /* RESPONSIVE */
    @media (max-width: 960px) {
      .contact-page {
        padding: 32px 16px 40px;
      }
      .contact-top {
        grid-template-columns: minmax(0, 1fr);
      }
      .contact-image {
        min-height: 200px;
      }
    }

    @media (max-width: 640px) {
      .contact-header h1 {
        font-size: 28px;
      }
      .contact-info {
        flex-direction: column;
      }
      .contact-card {
        max-width: 100%;
      }
    }