* {
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');

html {
  scroll-behavior: smooth; /* Плавная прокрутка */
}


body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  background: #fff;
  color: #222;
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ---------- HEADER ---------- */
header {
  text-align: center;
  /*background: #f6f6f6;
  padding: 40px 20px;*/
  background-image: url('images/911_12.png');
  background-size: cover;        /* масштабируем изображение под размер блока */
  background-position: center;   /* центрируем */
  background-repeat: no-repeat;  /* убираем повтор */
  width: 100%;
  min-height: 500px;             /* подгон под нужную высоту */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

header h1 {
  /*color: #b00;*/
  font-size: 45px;  /* 28px */
  margin-bottom: 10px;
  color: #000;
}

header h1 span {
  color: #e41c24;
}

header p {
  font-size: 23px; /* 16px */
  margin-bottom: 20px;
  color: #000;
  font-weight: 300;
}

.btn-primary,
.submit-btn {
  background-color: #e41c24;
  color: #fff;
  border: none;
  padding: 10px 42px;
  font-size: 27px; /* 16px */
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s;
}
.fon {
  background: #f6f6f6;
  border-radius: 9px;
  padding: 0px 20px;
  background: rgba(255, 255, 255, 0.57);
  margin-bottom: 50px;
}

.btn-primary:hover {
  background-color: #c9181f;
}

/* ---------- SETTLEMENTS ---------- */
.settlements {
  text-align: center;
  margin: 0px auto;
}

.settlements h2 {
  /*color: #b00;*/
  font-size: 32px;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #e6e6e6;
  border-radius: 35px;
  padding: 20px 30px;
  text-align: left;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column; /* делает вертикальное выравнивание */
  justify-content: space-between; /* распределяет содержимое по высоте */
  height: 100%; /* чтобы карточки были одинаковой высоты */
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  color: #e41c24;
  font-size: 19px;
  margin-bottom: 10px;
  text-align: center;
}

.card p {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: center;
  font-weight: 300;
}

.card strong {
  display: block;
  font-size: 35px;
  text-align: center;
  color: #e41c24;
}
.card strong span{
  font-size: 30px;
  position: relative;
  top: -1px;
}
.card-content {
  flex-grow: 1; /* контент растягивается */
}

.card-price {
  margin-top: auto; /* прижимает цену вниз */
}
.red-h {
margin-top: -40px;
color: #e41c24;
}

/* ---------- FORM ---------- */
.form-section {
  background: #e6e6e6;
  padding: 60px 20px;
  text-align: center;
}

.form-section h2 {
  color: #e41c24;
  margin-bottom: 30px;
  font-size: 42px;
  max-width: 1196px;
  margin: 0 auto;
}

form {
  max-width: 911px;
  margin: 0 auto;
  text-align: left;
}

label {
  display: block;
  margin: 15px 0 5px;
  font-size: 32px;
  position: relative;
  left: -10px;
  font-weight: 300;
}

input,
select {
  width: 100%;
  width: 100%;
  padding: 21px;
  border-radius: 34px;
  font-size: 20px;
  border: none;
  color: gray;
}


.submit-btn {
  display: block;
  margin: 0 auto;
  margin-top: 20px;
  transition: background 0.2s;
}

.submit-btn:hover {
  background-color: #c9181f;
}
label[for="name"] span,
label[for="phone"] span {
  color: #c9181f;
}


/* Убираем стандартную стрелку */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg fill='black' height='10' width='10' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 10,0 5,6'/></svg>") no-repeat right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

/* Делаем стрелку-треугольник чуть левее */
  select {
    background-position: right 1.5rem center;
    background-position-y: 30px;
}


/* ---------- contact-info ---------- */
.contact-info {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 260px;
  flex-wrap: wrap; /* адаптация под мобильные */
  background: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
}

.info-item a{
  color: #000;
  text-decoration: none;
}

.info-icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.info-text h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.info-text p {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.3;
}

.icon,
.info-icon svg {

width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0; /* светло-серый фон кружка */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px;
  background-repeat: no-repeat;
  background-size: 55%;
  background-position: center;
  transition: background-color 0.3s, transform 0.2s;
  cursor: pointer;
  }

.info-icon svg {
   background-color: #e0e0e0; 
  border-radius: 100%;
  padding: 12px 10px 9px 11px;
}

.phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2A19.86 19.86 0 013 5.18 2 2 0 015 3h3a2 2 0 012 1.72c.12.82.3 1.61.57 2.35a2 2 0 01-.45 2.11L8.09 10.91a16 16 0 006 6l1.73-1.73a2 2 0 012.11-.45c.74.27 1.53.45 2.35.57A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
}

.mail {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 012 2v12a2 2 0 01-2 2H4a2 2 0 01-2-2V6a2 2 0 012-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}


/* ---------- FOOTER ---------- */
.footer {
  background: #1e1c1b;
  color: #fff;
  font-family: Arial, sans-serif;
  position: relative;
}

/* Верхняя часть */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 25px 57px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-left h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.phone-icon {
  width: 18px;
  height: 18px;
  background-color: transparent;
  background-image: url("images/redphone.png");
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
}


.footer-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #c62828;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 50px;
  font-weight: 700;
  transition: 0.3s;
}

.footer-call:hover {
  background: #f2f2f2;
}

/* Соцсети */
.footer-socials {
  display: flex;
  gap: 18px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #333;
  border-radius: 50%;
  transition: 0.3s;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.footer-socials a svg{
  width: 23px;
  height: 23px;
}

.footer-socials a:hover {
  background: #777;
}

/* Нижняя часть */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 0px 40px;
  font-size: 0.9rem;
  flex-wrap: wrap;
  color: #555;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  margin-left: 20px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Кнопка наверх */
.scroll-top {
  position: absolute;
  right: 10px;
  bottom: 54px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.scroll-top:hover {
  transform: translateY(-3px);
}


/* ---------- terms of use page ---------- */
.txt {
  background: #f9f9f9;
  padding: 0;
}
.txt-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}
.txt-container h2 {
  color: #000000;
    font-size: 42px;
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.55;
    font-weight: 700;
}
.txt-container p,
.txt-container span,
.txt-container h3 {
  text-align: left;
  line-height: 1.55;
}

.txt-container p,
.txt-container span {
  font-size: 18px;
  font-weight: 300;
}
.txt-container span {
  color: #000;
    text-align: left;
    display: block;
    font-size: 16px;
    font-style:italic;
}

.txt-container h3 {
  color: #000;
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 0;
}
.txt-container p {
  margin-top: 0;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 1148px){
  .contact-info {
    gap: 120px;
  }
}

@media (max-width: 900px) {
  header h1 {
    font-size: 24px;
  }
  .settlements h2 {
    font-size: 23px;
  }
  .contact-info {
    gap: 70px;
  }
}

@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .info-item {
    width: 220px;
    margin: 0 auto;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-left,
  .footer-socials {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .scroll-top {
    right: 15px;
    bottom: 15px;
  }
  label{
    font-size: 18px;
  }

  input, select{
    padding: 16px;
    font-size: 16px;
  }

  select {
    background-position: right 1.5rem center;
    background-position-y: 22px;
}

  .footer-bottom p {
    margin: 0 auto;
    margin-top: 5px;
  }
  .footer-links {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  header {
    /*padding: 30px 15px;*/
    min-height: 350px;
    padding: 60px 15px;
    background-position: center top; /* чтобы фокус был выше */
  }

  header h1 {
    font-size: 21px;
  }

  header p {
    font-size: 16px;
  }

  .btn-primary,
  .submit-btn {
    padding: 10px 20px;
    font-size: 21px;
  }

  .settlements {
    margin: 40px auto;
    margin-bottom:0px;
  }

  .form-section {
    padding: 40px 15px;
  }

  .form-section h2 {
    font-size: 18px;
  }

  footer .footer-info {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .header {
    min-height: 280px;
    padding: 40px 10px;
  }
}

@media (max-width: 400px){
  .footer-left h3 {
    font-size: 1.1rem;
  }
  .footer-call {
    padding: 5px;
  }
}