* { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
    font-family: 'AnkaCoder';
    src: url('/fonts/AnkaCoder-r.ttf') format('truetype');
}

body {
    background: #fdd7d7;
    font-family: 'AnkaCoder';
    color: #e9abac;
}

header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 14px 28px;
    border-bottom: 3px solid #e9abac;
}

.brand { display: flex; align-items: center; gap: 14px; }

.logo_header {
    height: 60px;
    width: auto;
    transform-origin: center;
    transition: transform 0.45s ease;
}
.brand:hover .logo_header { transform: rotate(360deg); }

.brand_name { font-size: 25px; line-height: 1; margin: 0; color: #e79092; }

.nav {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-left: 60px;
}

.nav a {
    text-decoration: none;
    font-size: 22px;
    color: #e9abac;
    padding: 8px 12px;
    border-radius: 12px;
    transition: 0.2s ease;
}
.nav a:hover { background: rgba(233, 171, 172, 0.18); transform: translateY(-1px); }

.contact a {
    text-decoration: none;
    font-size: 20px;
    color: #e9abac;
    padding: 8px 12px;
    border-radius: 12px;
    border: 2px solid rgba(233, 171, 172, 0.45);
    transition: 0.2s ease;
}
.contact a:hover { background: rgba(233, 171, 172, 0.12); }

.main_text { text-align: center; margin-bottom: 26px; }

.main_text h1 { font-size: 44px; color: #e79092; margin-bottom: 12px; }
.main_text p { font-size: 20px; line-height: 1.35; margin: 6px 0; }

.branch_page { max-width: 1100px; margin: 0 auto; }

.branch_grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
    align-items: start;
}

.branch_block {
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(233, 171, 172, 0.45);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.branch_block h3 { font-size: 22px; color: #e79092; margin-bottom: 12px; }

.branch_cover {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.branch_list { margin-top: 12px; padding-left: 18px; line-height: 1.5; }
.branch_list li { margin: 6px 0; }

.branch_actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.branch_btn {
    display: inline-block;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 14px;
    border: 2px solid rgba(231, 144, 146, 0.75);
    background: rgba(231, 144, 146, 0.18);
    color: #e79092;
    font-size: 16px;
    transition: 0.2s ease;
}

.branch_btn:hover { transform: translateY(-2px); background: rgba(231, 144, 146, 0.26); }

.branch_btn.ghost {
    background: transparent;
    border-color: rgba(233, 171, 172, 0.55);
}

.footer {
    margin-top: 80px;
    background: rgba(233, 171, 172, 0.25);
    border-top: 3px solid rgba(233, 171, 172, 0.45);
}

.footer_inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

.footer_brand { display: flex; flex-direction: column; gap: 12px; }
.footer_logo { width: 55px; }
.footer_name { font-size: 26px; color: #e79092; }
.footer_desc { font-size: 16px; opacity: 0.9; line-height: 1.4; }

.footer_nav h4, .footer_contacts h4 {
    font-size: 18px;
    margin-bottom: 14px;
    color: #e79092;
}

.footer_nav, .footer_contacts { display: flex; flex-direction: column; gap: 10px; }

.footer_nav a, .footer_contacts a {
    text-decoration: none;
    color: #e9abac;
    font-size: 16px;
    transition: 0.2s ease;
}

.footer_nav a:hover, .footer_contacts a:hover { transform: translateX(4px); opacity: 0.8; }

.footer_bottom {
    text-align: center;
    padding: 14px 20px;
    font-size: 14px;
    opacity: 0.75;
    border-top: 1px solid rgba(233, 171, 172, 0.35);
}


@media (max-width: 900px) {
    header { grid-template-columns: 1fr; justify-items: center; text-align: center; }

    .brand_name {
        display: none;
    }

    nav {
        margin-right: 60px;
    }

    .branch_grid { grid-template-columns: 1fr; }
    .branch_cover { height: 260px; }
    .main_text h1 { font-size: 34px; }

    .footer_inner { grid-template-columns: 1fr; text-align: center; }
    .footer_brand { align-items: center; }
    .footer_nav a:hover, .footer_contacts a:hover { transform: none; }
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 70px;
}


.branch_gogol {
    text-align: center;
    margin-bottom: 22px;
}

.branch_gogol h1 {
    font-size: 44px;
    color: #e79092;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 20px;
    line-height: 1.35;
    opacity: 0.95;
}


.chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.chip {
    border: 2px solid rgba(233, 171, 172, 0.45);
    background: rgba(255, 255, 255, 0.28);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    color: #e79092;
}


.box {
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(233, 171, 172, 0.45);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.box h3 {
    font-size: 28px;
    color: #e79092;
    margin-bottom: 12px;
}

.text {
    font-size: 18px;
    line-height: 1.45;
    opacity: 0.92;
}

.muted {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.85;
}


.branch_grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
    margin-top: 18px;
    align-items: stretch;
}

.branch_grid > .box{
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cover {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.caption {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.85;
    padding: 10px 12px;
    border-radius: 16px;
    border: 2px solid rgba(233, 171, 172, 0.35);
    background: rgba(255, 255, 255, 0.22);
}


.info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.info_row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 2px solid rgba(233, 171, 172, 0.35);
    background: rgba(255, 255, 255, 0.25);
}

.label {
    font-size: 13px;
    opacity: 0.9;
}

.value {
    font-size: 13px;
    color: #e79092;
    text-align: right;
    opacity: 0.95;
}


.actions,
.map_actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 14px;
    border: 2px solid rgba(231, 144, 146, 0.75);
    background: rgba(231, 144, 146, 0.18);
    color: #e79092;
    font-size: 15px;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(231, 144, 146, 0.26);
}

.btn.ghost {
    background: transparent;
    border-color: rgba(233, 171, 172, 0.55);
}

.small_note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 2px dashed rgba(233, 171, 172, 0.45);
    background: rgba(255, 255, 255, 0.18);
    font-size: 14px;
    opacity: 0.92;
}


.two_cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.list {
    margin-top: 12px;
    padding-left: 18px;
    line-height: 1.55;
}

.list li {
    margin: 6px 0;
}


.gallery {
    margin-top: 18px;
}

.gallery_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.ph {
    height: 220px;
    border-radius: 18px;
    border: 2px solid rgba(233, 171, 172, 0.35);
    background: rgba(255, 255, 255, 0.22);
    display: grid;
    place-items: center;
    color: #e79092;
    font-size: 14px;
    opacity: 0.9;
    overflow: hidden;
    padding: 0;
}

.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 65%;
    display: block;
}

.tiny {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.4;
}

.actions{
    margin-top: auto; /* прижимает блок кнопок вниз */
}
.small_note{
    margin-top: 12px;
}


@media (max-width: 900px) {
    .page { padding: 36px 16px 60px; }
    .hero h1 { font-size: 34px; }

    .branch_grid { grid-template-columns: 1fr; }
    .cover { height: 260px; }

    .two_cols { grid-template-columns: 1fr; }
    .gallery_grid { grid-template-columns: 1fr; }
}


.map_wrap {
    margin-top: 14px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(233, 171, 172, 0.45);
    background: rgba(255, 255, 255, 0.22);
}

.map_wrap iframe {
    width: 100%;
    height: 380px;
    display: block;
    border: none;
}

@media (max-width: 900px) {
    .map_wrap iframe {
        height: 240px;
    }

    .ph { height: 240px; }
}
