:root {
    --bg: #1e1e1e;
    --card: #2b2b2b;
    --text: #e0e0e0;
    --accent: #00c896;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

header {
    background-color: var(--card);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px var(--shadow);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header h3, header h5 {
    margin: 0.2rem 0;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 70px;
    height: 70px;
    border-radius: 20%;
    background-color: var(--accent);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.icon-button:hover {
    transform: scale(1.1);
    background-color: #00a87a;
}

.icon-button span {
    font-size: 11px;
    margin-top: 4px;
}

.icon-button.call {
    background-color: #28a745;
}

.icon-button.call:hover {
    background-color: #218838;
}

.icon-button.map {
    background-color: #007bff;
}

.icon-button.map:hover {
    background-color: #0056b3;
}

.container{
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}



.section {
  flex: 1 1 45%;
  max-width: 500px;
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

/* Третья карточка на новую строку, но с той же шириной */
.section:nth-child(3) {
  flex-basis: 45%;
  max-width: 450px;
  /* Чтобы переносилась */
  margin-left: auto;
  margin-right: auto;
  /* Принудительный перенос */
  order: 3;
}

.section:nth-child(1) { animation-delay: 0.2s; }
.section:nth-child(2) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    margin-top: 0;
    color: var(--accent);
}

.section ul {
    padding-left: 1.2rem;
    margin: 0;
}

.section ul li {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin: 0.4rem 0;
    display: inline-block;
}

.contact-info a:hover {
    transform: translateX(4px);
}

.contact-info i {
    margin-right: 8px;
}

.brand-name {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

.request-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    justify-content: center;
}

.request-button:hover {
    background-color: #00a87a;
}

.request-button i {
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 800px) {
    header h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 1rem;
        width: 95vw;
        margin: 0 autoж
    }

    .container{
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content:center;
        flex-direction: column;
        align-content: center;
    }
}

.link-ref {
    color: grey;
}

/* Стили для формы обратной связи (уменьшена по высоте, фон светлый, цвета темнее) */
.contact-form {
  max-width: 500px;
  margin: 30px auto;
  padding: 10px 15px; /* уменьшенный padding */
  border: 1px solid #555; /* темнее рамка */
  border-radius: 8px;
  background: #2b2b2b; /* очень светлый фон для формы */
  color: white; /* темнее цвет текста */
  font-family: 'Roboto', sans-serif;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 12px; /* чуть меньше отступ */
  font-size: 1.4rem; /* чуть меньше заголовок */
  color: #111;
}

.contact-form label {
  display: block;
  margin: 8px 0 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 5px 8px; /* уменьшенный padding */
  border: 1px solid #555;
  border-radius: 4px;
  font-size: 0.9rem; /* уменьшенный шрифт */
  box-sizing: border-box;
  color: #222;
  background-color: #fff;
  resize: vertical;
  height: 30px; /* уменьшенная высота для input */
}

.contact-form textarea {
  height: 60px; /* примерно в 2 раза ниже обычного */
  padding-top: 6px;
}

.contact-form button,
.btn-more button {
  margin-top: 12px;
  padding: 8px 12px; /* уменьшенный padding */
  background-color: green; /* темнее зеленый */
  border: none;
  color: white;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-more[disabled="disabled"]{
  background-color: grey;
  opacity: 0.3;
}

.btn-more {
  display: inline-block;
  background-color: green;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.btn-more:hover {
  background-color: #4d5b69;
}

.contact-form button:hover {
  background-color: #002a50;
}


.services {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: #333;
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;       /* Отступ между иконкой и текстом */
  padding: 1rem;     /* Внутренний отступ для удобства */
}

.service-card .icon {
  flex-shrink: 0;    /* Иконка не сжимается */
  font-size: 7.5rem; /* Большой размер на десктопе */
  width: 100px;      /* Фиксированная ширина для иконки */
  text-align: center;
  margin-right: 1rem; /* Отступ справа, чтобы текст не заходил */
}

.service-card .description {
  flex: 1;           /* Описание занимает оставшееся место */
}

@media (max-width: 767px) {
  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .service-card {
    display: flex;
    flex-direction: column;       /* иконка сверху, текст снизу */
    align-items: center;
    text-align: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 100%;
    flex-wrap: wrap;              /* разрешает перенос */
  }

  .service-card .icon {
    font-size: 3rem;
    color: #007bff;               /* Приятный синий */
    width: 60px;
    margin-right: 0;              /* отменяем отступ справа */
    margin-bottom: 0.5rem;        /* отступ снизу для отступа от заголовка */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .service-card h3,
  .service-card p {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    word-break: break-word;
  }

  .service-card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}



@media (min-width: 750px) {
  .container {
    max-width: 1200px; /* увеличить контейнер для ширины блоков */
    flex-direction: column;
    align-items: center;
  }

  .section, .contact-form {
    max-width: 800px; /* увеличить ширину блока примерно в 2 раза */
    width: 100%;
  }
}

@media (min-width: 750px) {
  .services-grid {
    display: flex;
    flex-direction: column; /* столбец */
    gap: 2rem; /* увеличить отступы */
    width: 100%;
    max-width: 800px; /* увеличить ширину */
  }

  .service-card {
    width: 100%;
    max-width: 800px; /* карточки стали шире */
    font-size: 1.1rem; /* увеличить текст, если надо */
    padding: 2rem;
  }

  .service-card .icon {
    font-size: 9rem; /* увеличить иконки */
    width: 130px;
    margin-right: 1.5rem;
  }
}
