:root {
    --accent: #1e88e5;
    --dark: #222;
    --muted: #666;
    --bg: #f7f9fc;
    --card: #fff;
    --radius: 10px;
    --max-width: 1100px;
    font-family: Inter, Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--dark);
    -webkit-font-smoothing: antialiased
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 9px
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px
}

.logo .mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), #7b1fa2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700
}

.logo .mark img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

nav a {
    margin-left: 18px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600
}

.hero {
    display: flex;
    gap: 28px;
    align-items: center;
    padding: 28px;
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.08), transparent);
    border-radius: var(--radius)
}

.hero-left {
    flex: 1
}

.h-title {
    font-size: 28px;
    margin: 0 0 12px
}

.h-sub {
    color: var(--muted);
    margin: 0 0 18px
}

.cta-row {
    display: flex;
    gap: 12px;
    align-items: center
}

.btn {
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 700
}

.btn.secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid rgba(30, 136, 229, 0.12)
}

.specs {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap
}

.spec {
    background: var(--card);
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(20, 20, 40, 0.04);
    font-size: 14px
}

.hero-right {
    width: 360px;
    background: linear-gradient(135deg, #fff, #f3fbff);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(16, 40, 80, 0.06)
}

.preview {
    height: 220px;
    background: linear-gradient(135deg, #eef7ff, #fff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 700
}

.preview img {
    border-radius: 8px;
    max-height: 100%;
    max-width: 100%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 22px
}

.card {
    background: var(--card);
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 30, 60, 0.04)
}

.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px
}

.card h4 {
    margin: 10px 0 6px;
    font-size: 16px
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.card .price {
    margin-top: 10px;
    font-weight: 700;
    color: var(--accent)
}

.features {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap
}

.feature {
    flex: 1;
    min-width: 180px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    padding: 14px;
    border-radius: 10px
}

footer {
    margin-top: 36px;
    padding: 18px 0;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center
}

form.order {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px
}

input,
select,
textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e6eef8;
    background: #fff
}

.row {
    display: flex;
    gap: 10px
}

.row .col {
    flex: 1
}

.gallery {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px
}

.thumb {
    flex: 1;
    min-width: 80px;
    padding: 8px;
    border: 2px solid #e6eef8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    text-align: center
}

.thumb:hover {
    border-color: var(--accent);
    background: #f0f8ff;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    padding: 28px 20px;
    border-radius: 12px;
    margin-top: 28px;
    color: #0c2538;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.9fr 1fr;
    gap: 20px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto 18px;
}

.footer-logo {
    width: 120px;
    display: block;
    margin-bottom: 10px;
}

.footer-desc {
    margin: 0 0 12px;
    color: #234;
    line-height: 1.35;
}

.footer-social a {
    margin-right: 8px;
    color: #0c2538;
    opacity: 0.85;
    text-decoration: none;
    display: inline-block;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-col h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.footer-contacts a,
.footer-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.9;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-newsletter input[type="email"] {
    padding: 8px 10px;
    border: 1px solid #d6e6f6;
    border-radius: 6px;
    width: calc(100% - 110px);
    margin-right: 8px;
    vertical-align: middle;
}

.footer-newsletter .btn.small {
    padding: 8px 10px;
    font-size: 13px;
    display: inline-block;
    vertical-align: middle;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--muted, #536878);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 12px;

    /* новое: позволяем элементам переноситься и корректно выравниваться на узких экранах */
    flex-wrap: wrap;
}

/* чтобы копирайт не «ломался» на две строки при узком месте */
.footer-bottom>div:first-child {
    white-space: nowrap;
}

/* выравнивание и отступы для ссылок */
.footer-bottom .small-links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* мелкие стили для ссылок */
.footer-bottom .small-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.9;
}

.footer-bottom .small-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* адаптация для очень узких экранов: центруем блоки */
@media (max-width: 480px) {
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom>div:first-child {
        white-space: normal;
    }
}

/* Улучшенная адаптация футера */
.footer-inner {
    width: 100%;
    box-sizing: border-box;
}

/* все колонки растягиваем по ширине */
.footer-col {
    width: 100%;
}

/* мобильный планшет и ниже: 1 колонка */
@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 18px;
        padding: 0 12px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-logo {
        width: 110px;
        max-width: 35%;
    }

    /* подписка — вертикальная, поля на всю ширину */
    .footer-newsletter form {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .footer-newsletter input[type="email"] {
        width: 100%;
        margin: 0;
    }

    .footer-newsletter .btn.small {
        width: 100%;
    }

    /* соцсети в строку с отступом */
    .footer-social {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-top: 6px;
    }

    /* мелкие отступы внутри колонок */
    .footer-col h4 {
        margin-top: 6px;
    }
}

/* очень маленькие экраны — центруем содержимое и переносим footer-bottom в столбик */
@media (max-width: 420px) {
    .footer-inner {
        padding: 0 10px;
    }

    .footer-brand,
    .footer-contacts,
    .footer-links,
    .footer-newsletter {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding-top: 14px;
    }

    .footer-bottom>div:first-child {
        white-space: normal;
    }

    .footer-bottom .small-links {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* улучшения для планшетов (между 600 и 900) — две колонки */
@media (min-width: 601px) and (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 0 16px;
    }

    .footer-newsletter input[type="email"] {
        width: calc(100% - 110px);
    }

    .footer-newsletter .btn.small {
        width: 100px;
    }
}











/* Leibly page */

@media (max-width: 800px) {
    .hero {
        flex-direction: column;
        align-items: stretch
    }

    .hero-right {
        width: 100%
    }
}



.tittle-text {
    color: #333;
}

:root {
    --bg: #f7f8fa;
    --card: #fff;
    --accent: #0b66c3;
    --muted: #666;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 0;
    background: var(--bg);
    color: #111;
}

.container {
    max-width: 980px;
    margin: 28px auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

h1 {
    margin: 0 0 6px;
    font-size: 24px;
}

.contacts {
    font-size: 14px;
    color: var(--muted);
}

.card {
    background: var(--card);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(20, 30, 40, 0.05);
    margin-top: 16px;
}

.controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

input[type="search"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.accordion {
    margin-top: 8px;
}

.item {
    border-bottom: 1px solid #eef2f5;
}

.item button {
    width: 100%;
    text-align: left;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: 0;
    font-size: 16px;
    cursor: pointer;
}

.item button:focus {
    outline: 2px solid rgba(11, 102, 195, 0.15);
}

.item .content {
    padding: 0 14px 18px;
    display: none;
    font-size: 15px;
    color: #222;
    line-height: 1.5;
}

.item.open .content {
    display: block;
}

.highlight mark {
    background: yellow;
    padding: 0;
}

footer {
    font-size: 13px;
    color: var(--muted);
    margin-top: 18px;
    text-align: center;
}

@media (max-width:640px) {
    h1 {
        font-size: 20px
    }
    .card {
        padding: 12px;
        display: block;
    }       
    
}