Files
labs/labWeb/kt_3/styles.css
2026-05-02 20:27:02 +05:00

376 lines
5.0 KiB
CSS

:root {
--bg: #f6f7fb;
--card: #ffffff;
--text: #222;
--muted: #667085;
--accent: #3b82f6;
--accent-dark: #1d4ed8;
--border: #e5e7eb;
--shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Arial, sans-serif;
color: var(--text);
background: var(--bg);
min-height: 100vh;
display: flex;
flex-direction: column;
}
main {
flex: 1;
}
a {
color: inherit;
text-decoration: none;
}
.container {
width: min(1100px, 92%);
margin: 0 auto;
}
.site-header {
background: #0f172a;
color: #fff;
position: sticky;
top: 0;
z-index: 30;
}
.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 64px;
}
.logo {
font-weight: 700;
letter-spacing: 0.5px;
}
.burger {
display: none;
border: 0;
background: transparent;
color: #fff;
font-size: 26px;
cursor: pointer;
}
.site-nav ul {
list-style: none;
display: flex;
gap: 18px;
padding: 0;
margin: 0;
}
.site-nav a {
color: #fff;
opacity: 0.9;
}
.site-nav a:hover,
.site-nav a.active {
opacity: 1;
text-decoration: underline;
}
.hero {
margin-top: 20px;
background: linear-gradient(120deg, #dbeafe, #f0f9ff);
border: 1px solid var(--border);
border-radius: 14px;
padding: 26px;
}
.hero h1 {
margin-top: 0;
}
.grid-home {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 18px;
margin: 20px 0 30px;
}
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 16px;
box-shadow: var(--shadow);
}
.slider {
overflow: hidden;
border-radius: 10px;
position: relative;
min-height: 240px;
}
.slide {
display: none;
}
.slide.active {
display: block;
}
.slide img {
width: 100%;
height: 240px;
object-fit: cover;
display: block;
}
.slide-caption {
position: absolute;
left: 8px;
right: 8px;
bottom: 8px;
background: rgba(0, 0, 0, 0.6);
color: #fff;
padding: 8px;
border-radius: 8px;
}
.btn {
background: var(--accent);
color: #fff;
border: none;
border-radius: 8px;
padding: 9px 14px;
cursor: pointer;
}
.btn:hover {
background: var(--accent-dark);
}
.news-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 14px;
margin: 20px 0;
}
.news-item {
background: #fff;
border-radius: 10px;
border: 1px solid var(--border);
overflow: hidden;
box-shadow: var(--shadow);
}
.news-item img {
width: 100%;
height: 160px;
object-fit: cover;
}
.news-item-content {
padding: 12px;
}
.cards-flex {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin: 20px 0;
}
.tour-card {
display: flex;
flex-direction: column;
width: calc(25% - 11px);
background: #fff;
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
}
.tour-card img {
width: 100%;
height: 140px;
object-fit: cover;
}
.tour-card-body {
padding: 10px;
}
table {
width: 100%;
border-collapse: collapse;
background: #fff;
}
th,
td {
border: 1px solid var(--border);
padding: 10px;
text-align: left;
}
th {
background: #e2e8f0;
}
form {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
label {
display: block;
font-size: 14px;
color: var(--muted);
margin-bottom: 4px;
}
input,
select,
textarea {
width: 100%;
border: 1px solid var(--border);
border-radius: 7px;
padding: 8px;
}
textarea {
min-height: 90px;
resize: vertical;
}
.form-full {
grid-column: 1 / -1;
}
.result {
margin-top: 16px;
background: #fff;
border: 1px dashed #94a3b8;
border-radius: 10px;
padding: 12px;
}
.map-wrap iframe {
width: 100%;
border: 0;
border-radius: 10px;
min-height: 300px;
}
.modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.65);
z-index: 100;
align-items: center;
justify-content: center;
padding: 16px;
}
.modal-overlay.open {
display: flex;
}
.modal {
width: min(720px, 100%);
background: #fff;
border-radius: 12px;
padding: 18px;
}
.modal-head {
display: flex;
justify-content: space-between;
align-items: center;
}
.close-btn {
border: 0;
background: #e2e8f0;
border-radius: 6px;
padding: 6px 10px;
cursor: pointer;
}
.site-footer {
margin-top: 30px;
background: #0f172a;
color: #fff;
padding: 14px 0;
text-align: center;
}
@media (max-width: 960px) {
.news-grid {
grid-template-columns: repeat(2, 1fr);
}
.tour-card {
width: calc(33.333% - 10px);
}
}
@media (max-width: 760px) {
.burger {
display: block;
}
.site-nav {
display: none;
position: absolute;
top: 64px;
left: 0;
right: 0;
background: #0f172a;
border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.site-nav.open {
display: block;
}
.site-nav ul {
flex-direction: column;
padding: 12px;
}
.grid-home {
grid-template-columns: 1fr;
}
.news-grid {
grid-template-columns: 1fr;
}
.tour-card {
width: calc(50% - 7px);
}
form {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.tour-card {
width: 100%;
}
}