/* --------------------------
   Локальное подключение шрифтов
   Положите файлы в ./fonts/
   Имена файлов: Montserrat-600.woff2, Montserrat-700.woff2,
                 Roboto-400.woff2, Roboto-500.woff2
   -------------------------- */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./assets/fonts/Montserrat-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./assets/fonts/Montserrat-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./assets/fonts/Roboto-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./assets/fonts/Roboto-500.woff2') format('woff2');
}

/* Цвета / переменные */
:root {
    --bg: #ffffff;
    --text: #333333;
    --primary: #007BFF;
    --primary-dark: #0056b3;
    --vk: #4a76a8;
    --accent-call: #ff6a00;
    --accent-call-dark: #e65c00;
}

/* Общие стили */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
}

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    margin: 0;
}

/* Удобные интерактивные элементы */
a {
    color: inherit;
    outline: none;
}
<<<<<<< HEAD
=======

a:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
    border-radius: 6px;
}
>>>>>>> 2a9920a198279894171ab124c958c619cdbed4b5

a:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
    border-radius: 6px;
}
h1 {
  font-size: 2rem; /* или нужный тебе размер */
  line-height: 1.2;
}
section h1 {
  font-size: 2rem; /* можно подкорректировать */
  line-height: 1.2;
}
/* Header */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Логотип */
header .logo {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 6px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

/* Навигация */
header nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

/* Явно кликабельные ссылки в шапке */
header nav a,
header nav a.nav-link {
    text-decoration: none;
    color: var(--text);
    font-size: 0.98rem;
    padding: 7px 10px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s, transform 0.12s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Hover + focus подсказка */
header nav a:hover,
header nav a:focus,
header nav a.nav-link:hover,
header nav a.nav-link:focus {
    background: rgba(0, 123, 255, 0.06);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Кнопка вызова (броская) — уменьшил тень, чтобы не было размытия */
.btn.phone-btn {
    flex: 1 1 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: var(--accent-call);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: none;
    /* убрали размывающую тень */
    transition: background 0.18s, transform 0.12s;
}

/* Desktop: кнопка справа */
@media(min-width:600px) {
    header .logo {
        flex: 1 1 auto;
        text-align: left;
        margin-bottom: 0;
    }

    header nav {
        justify-content: center;
        margin-bottom: 0;
    }

    .btn.phone-btn {
        flex: 0 0 auto;
        margin-bottom: 0;
        text-align: right;
    }
}

.btn.phone-btn:hover,
.btn.phone-btn:focus {
    background: var(--accent-call-dark);
    transform: translateY(-1px);
}

/* Иконка трубки */
.phone-btn .icon {
    display: inline-block;
    font-size: 1.05rem;
    transition: transform 0.28s;
}

/* при клике трубка дергается */
@keyframes shake-phone {
    0% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(-20deg);
    }

    40% {
        transform: rotate(20deg);
    }

    60% {
        transform: rotate(-15deg);
    }

    80% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0);
    }
}

.phone-btn:active .icon {
    animation: shake-phone 0.6s ease;
}

/* Общая кнопка стиль (см. уменьшенные тени) */
.btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 22px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 400;
    transition: background 0.18s, transform 0.12s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover,
.btn:focus {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Hero — убрал waterPulse и крупные фильтры */
.hero {
    position: relative;
    overflow: hidden;
    height: 80vh;
    min-height: 420px;
    background: linear-gradient(120deg, #007BFF 0%, #00CFFF 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 28px 20px;
}

/* Заголовок в hero */
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 14px;
    animation: fadeIn 0.9s ease;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
    line-height: 1.05;
}

.hero p {
    font-size: 1.05rem;
    margin: 0 0 18px 0;
    max-width: 760px;
    animation: fadeIn 1.4s ease;
    opacity: 0.95;
}

/* VK-button (hero) — убрал пульсацию и оставил лёгкий hover */
.vk-btn {
    background: var(--vk);
    color: #fff;
    margin-top: 12px;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s;
}

.vk-btn:hover,
.vk-btn:focus {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.vk-btn .icon {
    margin-right: 8px;
    display: inline-block;
}

/* Water animation (капли) — оставил только капли, сделал их крупнее и более «каплевидными» */
.water-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.water-animation .drop {
    position: absolute;
    width: 14px;
    height: 22px;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95) 0 28%, rgba(255, 255, 255, 0.55) 29%, rgba(255, 255, 255, 0.12) 60%), rgba(255, 255, 255, 0.32);
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    transform: rotate(8deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    animation: dropFall 2.4s infinite cubic-bezier(.2, .8, .2, 1);
}

/* более реалистичное расположение и задержки */
.water-animation .drop:nth-child(1) {
    left: 8%;
    animation-delay: 0s;
    top: -10px;
}

.water-animation .drop:nth-child(2) {
    left: 24%;
    animation-delay: 0.6s;
    top: -20px;
}

.water-animation .drop:nth-child(3) {
    left: 42%;
    animation-delay: 1.1s;
    top: -15px;
}

.water-animation .drop:nth-child(4) {
    left: 64%;
    animation-delay: 1.6s;
    top: -5px;
}

.water-animation .drop:nth-child(5) {
    left: 86%;
    animation-delay: 2.0s;
    top: -18px;
}

@keyframes dropFall {
    0% {
        transform: translateY(-10px) rotate(8deg) scale(0.95);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        transform: translateY(85vh) rotate(12deg) scale(1);
        opacity: 0.9;
    }

    100% {
        transform: translateY(100vh) rotate(18deg) scale(0.98);
        opacity: 0;
    }
}

/* Services */
.services {
    padding: 60px 20px;
    background: #f6f8fb;
    text-align: center;
}

.services h2 {
    font-size: 1.9rem;
    margin-bottom: 30px;
    color: #0b2340;
}

/* Сетка карточек */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* максимум 3 карточки */
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Адаптив: меньше колонок на узких экранах */
@media (max-width: 900px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}

/* Карточки (умеренные тени, без размытия) */
.card {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(11, 35, 64, 0.06);
    transition: transform 0.22s, box-shadow 0.22s;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(11, 35, 64, 0.08);
}

.card .card-image {
    width: 100%;
    aspect-ratio: 16/9; /* вместо фиксированного height */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Списки внутри карточек (убраны точки) */
.card ul,
.card ol {
    list-style: none;
    /* убрали точки */
    padding-left: 18px;
    /* оставили отступ для читабельности */
    margin: 8px 0 0 0;
    color: #1f2b3a;
    font-weight: 500;
    line-height: 1.5;
}

/* Специальный стиль для списка "счётчики" в две колонки на десктопе */
.water-meter-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.water-meter-card ul li {
    background: rgba(0, 123, 255, 0.04);
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #073763;
}

/* Для карточек с обычным текстом (p) */
.card p {
    margin: 6px 0;
    color: #243447;
    font-weight: 500;
}

/* About section */
.about {
    padding: 60px 20px;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    color: #213045;
}

/* Footer */
footer {
    background: var(--primary);
    color: #fff;
    padding: 34px 20px;
}

footer .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

footer h3 {
    margin-bottom: 10px;
}

.vk-link>img {
    width: 28px;
    height: 28px;
    display: inline-block;
}

/* iframe карты */
iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
}

/* Базовые анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Мобильные правки */
@media (max-width: 600px) {
    header {
        padding: 10px 14px;
        gap: 8px;
    }

    header .logo {
        font-size: 1.05rem;
        text-align: center;
    }

    header nav {
        width: 100%;
        justify-content: center;
        gap: 6px;
    }

    header nav a {
        padding: 8px 10px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .btn.phone-btn {
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
    }

    .hero {
        height: 60vh;
        padding: 20px;
        min-height: 360px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 0.98rem;
        padding: 0 8px;
    }

    .service-cards {
        grid-template-columns: 1fr;
        padding: 6px;
    }

    .card {
        min-height: unset;
    }

    .water-meter-card ul {
        grid-template-columns: 1fr;
    }
}

/* Desktop tweaks */
@media (min-width: 900px) {
    .hero h1 {
        font-size: 3.1rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .card {
        min-height: 260px;
    }
}

/* Accessibility: keyboard focus visible for interactive nav and buttons */
header a:focus,
.btn:focus {
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
    transform: translateY(-1px);
}