/* ═══════════════════════════════════════════
   CONTACTS SECTION
═══════════════════════════════════════════ */

.contacts {
  background: #f6f8fc;
  padding: 72px 48px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ─── HEADING ─── */
.contacts__heading {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.contacts__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2d63ff;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.contacts__title {
  font-size: 38px;
  font-weight: 800;
  color: #0f1b2d;
  margin: 0 0 14px;
  line-height: 1.15;
}

.contacts__subtitle {
  font-size: 15px;
  line-height: 1.65;
  color: #5f6982;
  margin: 0;
}

/* ─── GRID ─── */
.contacts__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

/* ═══════════════════════════════════════════
   LEFT — info list
═══════════════════════════════════════════ */

.contacts__info {
  display: flex;
  flex-direction: column;
}

.contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
}

.contacts__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8edff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacts__text h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f1b2d;
  margin: 0 0 6px;
}

.contacts__main {
  font-size: 14.5px;
  color: #1a2233;
  margin: 0 0 4px;
  line-height: 1.4;
}

.contacts__sub {
  font-size: 12.5px;
  color: #8a93a6;
  margin: 0;
}

.contacts__divider {
  height: 1px;
  background: #e3e7f0;
}

/* ─── city list inside "Адрес" ─── */
.contacts__city-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacts__city-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14.5px;
  color: #1a2233;
  line-height: 1.4;
}

.contacts__city-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2d63ff;
  flex-shrink: 0;
  display: inline-block;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   RIGHT — form card
═══════════════════════════════════════════ */

.contacts__form-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(20, 40, 90, 0.08);
}

.contacts__form-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f1b2d;
  margin: 0 0 20px;
}

.contacts__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contacts__input,
.contacts__textarea {
  width: 100%;
  border: 1.5px solid #e3e7f0;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-family: inherit;
  color: #1a2233;
  background: #fff;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.contacts__input::placeholder,
.contacts__textarea::placeholder {
  color: #9aa3b5;
}

.contacts__input:focus,
.contacts__textarea:focus {
  outline: none;
  border-color: #2d63ff;
}

.contacts__textarea {
  resize: vertical;
  min-height: 90px;
}

.contacts__submit {
  margin-top: 4px;
  width: 100%;
  padding: 15px;
  background: #2d63ff;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contacts__submit:hover {
  background: #1f4fd6;
  transform: translateY(-1px);
}

/* =========================================================
   LAPTOP
========================================================= */

@media (max-width:1200px){

  .contacts{
    padding:100px 32px 75px;
  }

  .contacts__grid{
    max-width:1050px;
    gap:36px;
  }

  .contacts__form-card{
    padding:30px;
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width:900px){

  .contacts{
    padding:110px 20px 70px;
  }

  .contacts__heading{
    max-width:620px;
    margin-bottom:38px;
  }

  .contacts__title{
    font-size:36px;
  }

  .contacts__subtitle{
    font-size:15px;
  }

  .contacts__grid{
    grid-template-columns:1fr;
    gap:32px;
    max-width:720px;
  }

  .contacts__info{
    order:2;
  }

  .contacts__form-card{
    order:1;
  }

  .contacts__row{
    grid-template-columns:1fr 1fr;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width:576px){

  .contacts{
    padding:90px 16px 55px;
  }

  .contacts__heading{
    margin-bottom:28px;
  }

  .contacts__eyebrow{
    margin-bottom:9px;
    font-size:12px;
    letter-spacing:3px;
    color:#dc9e5b;
  }

  .contacts__title{
    margin-bottom:12px;
    font-size:30px;
    line-height:1.1;
  }

  .contacts__subtitle{
    font-size:14px;
    line-height:1.55;
  }

  .contacts__grid{
    gap:26px;
    width:100%;
  }

  /* Форма первой */

  .contacts__form-card{
    width:100%;
    padding:20px 16px;
    border-radius:18px;
    box-shadow:0 14px 34px rgba(20,40,90,.08);
  }

  .contacts__form-title{
    margin-bottom:16px;
    font-size:20px;
  }

  .contacts__form{
    gap:11px;
  }

  .contacts__row{
    grid-template-columns:1fr;
    gap:11px;
  }

  .contacts__input,
  .contacts__textarea{
    min-height:50px;
    padding:14px;
    border-radius:12px;
    font-size:14px;
  }

  .contacts__textarea{
    min-height:120px;
  }

  .contacts__submit{
    min-height:52px;
    margin-top:2px;
    padding:14px;
    border-radius:13px;
    font-size:14px;
  }

  /* Контактные данные */

  .contacts__info{
    width:100%;
  }

  .contacts__item{
    gap:13px;
    padding:16px 0;
  }

  .contacts__icon{
    width:44px;
    height:44px;
    min-width:44px;
  }

  .contacts__icon svg,
  .contacts__icon img{
    width:21px;
    height:21px;
  }

  .contacts__text{
    min-width:0;
  }

  .contacts__text h4{
    margin-bottom:5px;
    font-size:14px;
  }

  .contacts__main,
  .contacts__city-list li{
    font-size:13px;
    overflow-wrap:anywhere;
  }

  .contacts__sub{
    font-size:11.5px;
    line-height:1.4;
  }

  .contacts__city-list{
    gap:5px;
  }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width:390px){

  .contacts{
    padding:85px 14px 45px;
  }

  .contacts__title{
    font-size:27px;
  }

  .contacts__subtitle{
    font-size:13px;
  }

  .contacts__form-card{
    padding:18px 14px;
  }

  .contacts__form-title{
    font-size:18px;
  }

  .contacts__input,
  .contacts__textarea{
    padding:13px;
    font-size:13px;
  }

  .contacts__item{
    gap:11px;
  }

  .contacts__icon{
    width:40px;
    height:40px;
    min-width:40px;
  }

  .contacts__main,
  .contacts__city-list li{
    font-size:12.5px;
  }
}