﻿/* ============================================================
   БАЗОВЫЕ СБРОСЫ И ПЕРЕМЕННЫЕ
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --color-primary: #2ecc71;
    --color-accent: #f39c12;
    --color-blue: #2980b9;
    --color-dark: #2c3e50;
    --color-text: #333;
    --color-white: #fff;
    --font-main: 'Play', Arial, sans-serif;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background: #ecf0f1;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-blue);
}

a:hover {
    color: var(--color-dark);
}

ul {
    list-style: none;
}

/* ============================================================
   ИКОНКИ (встроенный шрифт)
   ============================================================ */
@font-face {
    font-family: 'icons';
    src: url('icons.woff2') format('woff2'),
         url('icons.woff') format('woff'),
         url('icons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
    font-family: 'icons';
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    width: 1em;
    text-align: center;
    font-size: 1.2em;
}

.icon-location:before { content: '\e07a'; }
.icon-phone:before { content: '\e065'; }
.icon-menu:before { content: '\f0c9'; }

/* ============================================================
   ШРИФТ PLAY (локальный)
   ============================================================ */
@font-face {
    font-family: 'Play';
    src: local('Play'), local('Play Regular'),
         url('play-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Play';
    src: local('Play Bold'), url('play-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   ШАПКА (HEADER)
   ============================================================ */
.header {
    background: linear-gradient(135deg, #3cd3ad 0%, #4cb8c4 100%);
}

.header__top {
    background: rgba(0, 0, 0, 0.75);
    padding: 0.5rem 0;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header__logo a {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ccc;
    transition: color 0.3s ease;
}
.header__logo a:hover { color: #fff; }

.header__city {
    color: #ccc;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.header__city .icon-location:before {
    color: var(--color-accent);
}

.header__phone-btn {
    font-size: 1.4rem;
    color: #ccc;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.header__phone-btn:hover { color: #fff; }
.header__phone-btn .icon-phone:before { color: var(--color-accent); }

/* ----- БАННЕР В ШАПКЕ ----- */
.banner {
    padding: 3rem 0;
}
.banner__inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.banner__content {
    flex: 1 1 55%;
}
.banner__title {
    font-size: 3.6rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.banner__desc {
    font-size: 1.8rem;
    line-height: 1.6;
}
.banner__image {
    flex: 0 1 35%;
}

/* ----- БЫСТРАЯ НАВИГАЦИЯ ----- */
.quick-nav {
    background: #ecf0f1 url('bg-head-bar.png') repeat;
    border-bottom: 1px dashed #bbb;
    padding: 1.5rem 0;
}
.quick-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.quick-nav__menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.5rem;
}
.quick-nav__menu li {
    position: relative;
    padding-left: 1.8rem;
}
.quick-nav__menu li:before {
    content: '\2713';
    font-family: 'icons';
    position: absolute;
    left: 0;
    top: 0;
    color: #16a085;
    font-size: 1.2rem;
}
.quick-nav__menu a {
    font-size: 1.4rem;
    border-bottom: 1px dotted var(--color-blue);
    transition: all 0.2s ease;
}
.quick-nav__menu a:hover {
    border-color: transparent;
    color: var(--color-dark);
}

.quick-nav__phone {
    text-align: center;
}
.quick-nav__phone .phone-link {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--color-dark);
    display: block;
    white-space: nowrap;
}
.quick-nav__phone small {
    font-size: 1.1rem;
    color: #777;
    text-transform: lowercase;
    display: block;
}
.quick-nav__phone small:before { content: 'Работаем '; }
.quick-nav__phone small:first-letter { text-transform: uppercase; }

/* ============================================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================================ */
.main {
    background: #fff;
    padding: 2rem 0 4rem;
}

.section-header {
    text-align: center;
    padding: 2rem 0 1rem;
}
.section-header h2 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}
.section-header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.6rem;
    color: #555;
}

/* ----- ТАБЛИЦЫ ЦЕН ----- */
.prices {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 1rem 0 3rem;
}

.price-table {
    width: 100%;
    background: #fafafa;
    border-collapse: collapse;
    font-size: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.price-table caption {
    background: #4cbb9d;
    font-weight: bold;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
}
.price-table th,
.price-table td {
    border: 1px solid #ccc;
    padding: 0.8rem 1rem;
    text-align: left;
}
.price-table th {
    background: #dfdfdf;
    font-weight: bold;
}
.price-table td:last-child {
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}
.price-table td:last-child:before {
    content: 'от ';
    font-weight: normal;
    color: #888;
}
.price-table tr:nth-child(even) { background: #f0f0f0; }
.price-table tr:hover { background: #fff; }

.pl-type { width: 70%; }
.pl-price { width: 30%; }

.price-disclaimer {
    font-size: 1.4rem;
    color: #888;
    padding: 1.5rem 0;
    border-top: 1px dashed #ccc;
    margin-top: 1rem;
}

/* ============================================================
   ПОДВАЛ (FOOTER)
   ============================================================ */
.footer {
    background: #111 url('bg-footer.png') repeat;
    color: #ecf0f1;
}
.footer__inner {
    padding: 3rem 1.5rem;
}
.footer__contacts h2 {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.footer__contacts dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 1.5rem;
    font-size: 1.6rem;
}
.footer__contacts dt {
    font-weight: bold;
    color: #fff;
}
.footer__contacts dd a {
    color: #cee8ff;
    border-bottom: 1px solid rgba(206, 232, 255, 0.3);
    transition: all 0.2s ease;
}
.footer__contacts dd a:hover {
    color: #fff;
    border-color: #fff;
}

.footer__copyright {
    background: #111 url('bg-subfooter.png') repeat;
    border-top: 1px solid #000;
    padding: 1rem 0;
    font-size: 1.3rem;
    color: #aaa;
    text-align: center;
}

/* ============================================================
   ПЛАВАЮЩАЯ КНОПКА ЗВОНКА (МОБИЛЬНАЯ)
   ============================================================ */
#call-now {
    display: none;
    position: fixed;
    width: 6.5rem;
    height: 6.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    border-radius: 50%;
    background: #4fd863 url('call.png') no-repeat center;
    background-size: 4.2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.2s ease;
}
#call-now:hover {
    transform: scale(1.05);
}

/* ============================================================
   АДАПТИВНОСТЬ (RESPONSIVE)
   ============================================================ */

/* --- Планшеты и мелкие десктопы --- */
@media (max-width: 890px) {
    .banner__title { font-size: 2.8rem; }
    .banner__desc { font-size: 1.5rem; }
    .quick-nav__menu ul { gap: 0.2rem 1rem; }
    .quick-nav__menu a { font-size: 1.2rem; }
    .quick-nav__phone .phone-link { font-size: 2rem; }
}

/* --- Мобильные устройства --- */
@media (max-width: 768px) {
    .header__nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    .header__logo a { font-size: 1.4rem; }
    .header__city { font-size: 1.3rem; }
    .header__phone-btn { font-size: 1.2rem; }

    .banner__inner {
        flex-direction: column;
        text-align: center;
    }
    .banner__title {
        font-size: 2.4rem;
    }
    .banner__desc {
        font-size: 1.4rem;
    }
    .banner__image {
        flex: 0 1 auto;
        max-width: 250px;
        margin: 0 auto;
    }

    .quick-nav__inner {
        flex-direction: column;
        align-items: stretch;
    }
    .quick-nav__menu ul {
        justify-content: center;
    }
    .quick-nav__phone .phone-link {
        font-size: 1.8rem;
    }
    .quick-nav__phone small {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2.4rem;
    }

    .price-table {
        font-size: 1.3rem;
    }
    .price-table caption {
        font-size: 1.5rem;
    }
    .price-table th,
    .price-table td {
        padding: 0.5rem 0.7rem;
    }

    .footer__contacts h2 { font-size: 2.2rem; }
    .footer__contacts dl {
        font-size: 1.4rem;
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
    .footer__contacts dt { margin-top: 0.5rem; }
    .footer__contacts dt:first-child { margin-top: 0; }
    .footer__contacts dd { margin-left: 1.5rem; }

    #call-now {
        display: block;
        width: 5.5rem;
        height: 5.5rem;
        background-size: 3.5rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* --- Очень маленькие экраны --- */
@media (max-width: 480px) {
    .banner__title { font-size: 2rem; }
    .banner__desc { font-size: 1.2rem; }
    .quick-nav__menu ul {
        flex-direction: column;
        align-items: center;
    }
    .quick-nav__menu li:before { display: none; }
    .quick-nav__menu li { padding-left: 0; }

    .price-table {
        font-size: 1.1rem;
    }
    .price-table caption {
        font-size: 1.3rem;
        padding: 0.5rem 0;
    }
    .price-table th,
    .price-table td {
        padding: 0.4rem 0.5rem;
    }
    .price-table td:last-child {
        white-space: normal;
    }

    .footer__copyright {
        font-size: 1rem;
    }

    #call-now {
        width: 5rem;
        height: 5rem;
        background-size: 3rem;
    }
}

/* ============================================================
   УТИЛИТЫ ДЛЯ КНОПОК (если понадобятся)
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    background: var(--color-blue);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn:hover {
    background: #1a6b9e;
}
.btn-primary {
    background: #f39c12;
}
.btn-primary:hover {
    background: #d68910;
}
.btn-green {
    background: #27ae60;
}
.btn-green:hover {
    background: #1e8449;
}