/* Дополнения для новых блоков: FAQ, ссылки в контактах, подвал */

.faq-section {
    background: #fff;
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 2rem;
    color: #000;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #f9faf6;
    border: 1px solid #e7ede2;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: #18250f;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: #6b8e23;
    font-size: 1.3rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin-top: 0.75rem;
    color: #5b6655;
    line-height: 1.7;
}

/* address в контактах: убираем курсив по умолчанию */
address.contact-details {
    font-style: normal;
}

.contact-details a {
    color: #6b8e23;
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.site-footer {
    background: #18250f;
    color: #cfd8c4;
    text-align: center;
    padding: 24px 20px;
    font-size: 0.9rem;
}

/* Другие города */
.cities-section {
    background: #fff;
    padding: 80px 0;
}

.cities-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.city-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 1rem;
    background: #f9faf6;
    border: 1px solid #e7ede2;
    border-radius: 14px;
    color: #18250f;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.city-card:hover,
.city-card:focus-visible {
    border-color: #6b8e23;
    color: #6b8e23;
}

.city-card-other {
    background: #fff;
    border-style: dashed;
}

/* Выпадающий список городов */
.has-dropdown {
    position: relative;
}

.nav-links {
    height: 100%;
    align-items: stretch;
}

.nav-links > li {
    display: flex;
    align-items: center;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    grid-template-columns: repeat(3, max-content);
    gap: 0.1rem 1.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e7ede2;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 110;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    display: grid;
}

.dropdown a {
    display: block;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.dropdown a:hover,
.dropdown a:focus-visible {
    background: #f3f7ec;
}

/* Страницы городов */
a.logo {
    text-decoration: none;
}

.steps-section {
    background: #fff;
    padding: 80px 0;
}

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.steps li {
    counter-increment: step;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    position: relative;
    background: #f9faf6;
    border: 1px solid #e7ede2;
    border-radius: 14px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.1rem;
    top: 1.2rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: #6b8e23;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps h3 {
    font-size: 1.05rem;
    color: #18250f;
}

.steps p {
    margin-top: 0.35rem;
    color: #5b6655;
    font-size: 0.95rem;
}

.city-page .cities-section,
.cities-section + .cities-section {
    padding-top: 0;
}

/* Плавающие кнопки связи */
.float-contacts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 200;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.float-btn svg {
    width: 28px;
    height: 28px;
}

.float-btn:hover,
.float-btn:focus-visible {
    transform: scale(1.08);
}

.float-viber { background: #665cac; }
.float-telegram { background: #3a9ddb; }
.float-phone { background: #1fcf7f; }

@media (max-width: 480px) {
    .float-contacts { right: 12px; bottom: 12px; gap: 10px; }
    .float-btn { width: 48px; height: 48px; }
}

/* Логотип */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    padding: 7px;
    background: #6b8e23;
    border-radius: 10px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.logo-name {
    color: #18250f;
}

.logo-tld {
    color: #6b8e23;
    margin-left: -0.45rem;
}

@media (max-width: 480px) {
    .logo { font-size: 1.25rem; }
    .logo-icon { width: 30px; height: 30px; padding: 6px; }
}

/* SEO-текст на главной */
.seo-text-section {
    background: #fff;
    padding: 80px 0 40px;
}

.seo-text {
    max-width: 820px;
}

.seo-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.seo-text h3 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.25rem;
    color: #18250f;
}

.seo-text p,
.seo-text li {
    color: #3f4a38;
    line-height: 1.75;
}

.seo-text ul,
.seo-text ol {
    margin: 0.5rem 0 0 1.25rem;
}

.seo-text a {
    color: #6b8e23;
    font-weight: 600;
}

/* Ссылки на города в подвале */
.footer-cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.25rem;
    max-width: 1000px;
    margin: 0 auto 1.25rem;
}

.footer-cities a {
    color: #cfd8c4;
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-cities a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Ссылки в карточках и подвале (сайт ремонта) */
.card-link {
    color: #4f772b;
    font-weight: 600;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.product-card .product-footer:empty {
    display: none;
}

.footer-sister {
    margin-top: 0.5rem;
}

.site-footer a {
    color: #e3ecd6;
    text-decoration: underline;
}

.faq-item a,
.seo-text a {
    color: #4f772b;
    font-weight: 600;
}

/* Пять карточек ремонта в один ряд на широких экранах */
.repair-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
