@import url('https://fonts.googleapis.com/css2?family=Inter:wght=400;500;600;700&display=swap');
:root {
    --червоний: #ED1C24;
    --зелений: #00A651;
    --темний: #1A1A1A;
    --світлий: #F9FBFC;
    --білий: #FFFFFF;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}
body {
    background: var(--світлий);
    color: var(--темний);
    line-height: 1.6;
}
.контейнер {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}
.широкий {
    grid-column: span 12;
}
main {
    padding: 40px 0;
}
header, footer {
    background: var(--темний); color: var(--білий);
}
header {
    padding: 20px 0;
    border-bottom: 4px solid var(--червоний);
}
.ряд {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.лого {
    font-size: 24px; font-weight: 700; letter-spacing: 1px;
}
nav {
    position: relative;
}
.меню {
    display: flex; list-style: none;
}
.лінк {
    color: var(--білий);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 600;
    transition: 0.3s;
}
.лінк:hover, .лінк.актив {
    color: var(--зелений);
}
.список {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--темний);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    list-style: none;
    border-top: 3px solid var(--зелений);
    z-index: 100;
}
.список a {
    color: var(--білий);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}
.список a:hover {
    background: var(--зелений);
}
.пункт:hover .список {
    display: block;
}
h1 {
    font-size: 38px; margin-bottom: 20px; font-weight: 700;
}
h2 {
    font-size: 28px; color: var(--червоний); margin-bottom: 20px;
}
h3 {
    font-size: 20px; margin-bottom: 10px;
}
.кнопка {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: 0.3s;
    color: var(--білий);
}
.головна {
    background: var(--червоний);
}
.головна:hover {
    background: transparent; border-color: var(--червоний); color: var(--червоний);
}
.акцент {
    background: var(--зелений);
}
.акцент:hover {
    background: transparent; border-color: var(--зелений); color: var(--зелений);
}
.банер {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1544161513-0179fe746fd5?auto=format&fit=crop&w=1200&h=500&q=80') center/cover;
    color: white;
    padding: 100px 40px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
}
.колонки {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.інфо {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--зелений);
}
.сітка {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}
.картка {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}
.висока {
    height: 260px;
}
.лінія {
    border-bottom: 4px solid var(--зелений);
}
.картка img, .картинка img {
    width: 100%; height: 100%; object-fit: cover;
}
.картинка {
    height: 200px; overflow: hidden;
}
.текст {
    padding: 20px;
}
#підвал {
    padding: 40px 0; margin-top: 60px; font-size: 14px;
}
.автор {
    border-left: 3px solid var(--зелений); padding-left: 20px;
}

@media (max-width: 768px) {
    .контейнер { grid-template-columns: 1fr; gap: 16px; }
    .колонки, .сітка { grid-template-columns: 1fr; }
    .ряд { flex-direction: column; gap: 15px; text-align: center; }
    .меню { flex-direction: column; width: 100%; }
    .банер { padding: 60px 20px; }
    h1 { font-size: 28px; }
}