/* Home page styles. */

/* Home layout spacing */
.hero {
    padding: 54px 0 36px;
}

.section {
    padding: 56px 0;
}

.quick-facts {
    padding-top: 0;
    padding-bottom: 12px;
}

.section-head {
    margin-bottom: 24px;
}

.section-head h2 {
    margin-bottom: 8px;
}

.quick-grid,
.steps,
.gallery-grid {
    gap: 16px;
}

.info-grid,
.included-grid,
.location-grid {
    gap: 20px;
}

.cta-box {
    padding: 28px;
}

#prices {
    padding-bottom: 30px;
}

#about {
    padding-top: 34px;
}

#location {
    padding-bottom: 30px;
}

#location + .section {
    padding-top: 28px;
    padding-bottom: 34px;
}

#location + .section + #faq {
    padding-top: 34px;
}

/* Home tariffs */
.tariffs-grid,
.tariff-info-grid,
.faq.faq-grid,
.faq-cta {
    box-sizing: border-box;
    min-width: 0;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tariff-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(17, 32, 51, 0.07);
    box-shadow: var(--shadow);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.tariff-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--tariff-accent, var(--accent));
}

.tariff-card:nth-child(1) {
    --tariff-accent: var(--accent);
}

.tariff-card:nth-child(2) {
    --tariff-accent: #ffb020;
}

.tariff-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--tariff-accent, var(--accent)) 32%, transparent);
    box-shadow: 0 18px 46px rgba(17, 32, 51, 0.12);
}

.tariff-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(17, 32, 51, 0.07);
}

.tariff-card-head h3 {
    margin: 0;
    color: var(--tariff-accent, var(--accent));
    font-size: clamp(1.18rem, 1.8vw, 1.34rem);
    line-height: 1.2;
}

.tariff-card-head span {
    color: var(--muted);
    font-weight: 700;
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.35;
    opacity: 0.9;
}

.tariff-list {
    display: grid;
    gap: 8px;
}

.tariff-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: rgba(244, 253, 254, 0.72);
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.tariff-row:hover,
.tariff-row:focus-within {
    background: #ffffff;
    border-color: color-mix(in srgb, var(--tariff-accent, var(--accent)) 22%, transparent);
    transform: translateX(2px);
}

.tariff-time {
    min-width: 0;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.25;
}

.tariff-price {
    flex: 0 0 auto;
    color: var(--tariff-accent, var(--accent));
    font-size: clamp(1.22rem, 2vw, 1.46rem);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.tariff-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.tariff-info-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f4fdfe 0%, #ffffff 100%);
    border: 1px solid rgba(32, 201, 211, 0.15);
    color: var(--muted);
    font-weight: 650;
    font-size: 0.95rem;
    line-height: 1.45;
    transition:
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.tariff-info-card:hover {
    transform: translateY(-1px);
    border-color: rgba(32, 201, 211, 0.28);
    box-shadow: 0 14px 34px rgba(17, 32, 51, 0.08);
}

/* Home smart safety */
.smart-safety-section {
    background:
        radial-gradient(circle at 10% 0%, rgba(32, 201, 211, 0.10), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f4fbfc 100%);
}

.smart-safety-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.smart-safety-card {
    position: relative;
    min-height: 100%;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(17, 32, 51, 0.07);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(17, 32, 51, 0.07);
    overflow: hidden;
}

.smart-safety-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(32, 201, 211, 0.14), transparent 68%);
    pointer-events: none;
}

.smart-safety-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: rgba(32, 201, 211, 0.12);
    color: var(--primary-dark);
    font-size: 1.35rem;
}

.smart-safety-card h3 {
    position: relative;
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 1.12rem;
    line-height: 1.25;
}

.smart-safety-card p {
    position: relative;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Home FAQ */
.faq-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto 14px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f4fdfe 0%, #ffffff 100%);
    border: 1px solid rgba(32, 201, 211, 0.18);
    box-shadow: var(--shadow);
}

.faq-cta h3 {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: clamp(1.18rem, 1.8vw, 1.34rem);
    line-height: 1.2;
}

.faq-cta p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-weight: 650;
    font-size: 0.98rem;
    line-height: 1.5;
}

.faq-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.faq-cta-actions .btn {
    min-height: 44px;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.faq-cta-actions .btn:hover,
.faq-cta-actions .btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(17, 32, 51, 0.14);
}

.faq-cta-actions .btn:focus-visible,
.faq.faq-grid summary:focus-visible {
    outline: 3px solid rgba(32, 201, 211, 0.28);
    outline-offset: 3px;
}

.faq.faq-grid {
    display: grid;
    width: 100%;
    max-width: 980px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.faq.faq-grid details {
    align-self: start;
    min-width: 0;
    border-radius: 20px;
    border: 1px solid rgba(17, 32, 51, 0.07);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 32, 51, 0.06);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.faq.faq-grid details:hover,
.faq.faq-grid details:focus-within {
    border-color: rgba(32, 201, 211, 0.22);
    box-shadow: 0 16px 38px rgba(17, 32, 51, 0.1);
}

.faq.faq-grid details[open] {
    border-color: rgba(32, 201, 211, 0.28);
}

.faq.faq-grid summary {
    min-height: 0;
    padding: 16px 50px 16px 18px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 850;
    cursor: pointer;
}

.faq.faq-grid details[open] summary {
    padding-bottom: 10px;
    color: var(--accent);
}

.faq.faq-grid .answer {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Home responsive */
@media (max-width: 1100px) {
    .smart-safety-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tariff-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .faq-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .faq-cta-actions {
        width: 100%;
    }

    .faq-cta-actions .btn {
        flex: 1 1 180px;
    }

    .faq.faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero {
        padding: 38px 0 28px;
    }

    .section {
        padding: 42px 0;
    }

    .quick-facts {
        padding-bottom: 10px;
    }

    .section-head {
        margin-bottom: 20px;
    }

    .section-head h2 {
        margin-bottom: 8px;
    }

    .cta-box {
        padding: 22px;
    }

    #prices {
        padding-bottom: 24px;
    }

    #about {
        padding-top: 28px;
    }

    #location {
        padding-bottom: 24px;
    }

    #location + .section {
        padding-top: 24px;
        padding-bottom: 28px;
    }

    #location + .section + #faq {
        padding-top: 30px;
    }

    .tariffs-grid {
        grid-template-columns: 1fr;
    }

    .tariff-card {
        padding: 18px;
    }

    .tariff-card-head {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 12px;
    }

    .tariff-card-head span {
        text-align: left;
    }

    .tariff-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 12px;
    }

    .tariff-row:hover,
    .tariff-row:focus-within {
        transform: none;
    }

    .tariff-price {
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .smart-safety-grid {
        grid-template-columns: 1fr;
    }

    .smart-safety-card {
        padding: 20px;
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 34px 0 24px;
    }

    .section {
        padding: 38px 0;
    }

    .faq-cta {
        padding: 18px;
    }

    .faq-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .faq-cta-actions .btn {
        flex: 0 0 auto;
        width: 100%;
    }

    .faq.faq-grid summary {
        padding: 15px 46px 15px 16px;
        font-size: 0.98rem;
    }

    .faq.faq-grid .answer {
        padding: 0 16px 15px;
    }
}
