mospoly-helper/site/css/style.css
2025-05-19 16:03:23 +03:00

533 lines
10 KiB
CSS

/* Основные стили для сайта EasyAccess */
:root {
/* Основная цветовая палитра */
--primary-color: #2563eb;
--primary-dark: #1d4ed8;
--primary-light: #3b82f6;
--secondary-color: #e6ecfa;
--accent-color: #059669;
/* Нейтральные цвета */
--text-primary: #111827;
--text-secondary: #4b5563;
--text-tertiary: #6b7280;
--bg-color: #ffffff;
--bg-secondary: #f3f4f6;
--bg-tertiary: #e5e7eb;
/* Структурные переменные */
--container-max-width: 1200px;
--container-padding: 1.5rem;
--border-radius-sm: 0.25rem;
--border-radius-md: 0.5rem;
--border-radius-lg: 1rem;
/* Типографика */
--font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
--font-family-heading: 'Manrope', var(--font-family-base);
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
/* Анимации */
--transition-fast: 150ms ease;
--transition-normal: 250ms ease;
--transition-slow: 350ms ease;
/* Тени */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
/* Базовые стили */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/Inter-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/Inter-Medium.woff2') format('woff2');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/Inter-Bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Manrope';
src: url('../fonts/Manrope-Bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Manrope';
src: url('../fonts/Manrope-SemiBold.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
}
html {
font-size: 16px;
scroll-behavior: smooth;
}
body {
font-family: var(--font-family-base);
font-weight: var(--font-weight-normal);
line-height: 1.5;
color: var(--text-primary);
background-color: var(--bg-color);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
img {
max-width: 100%;
height: auto;
display: block;
}
a {
color: var(--primary-color);
text-decoration: none;
transition: color var(--transition-fast);
}
a:hover {
color: var(--primary-dark);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-family-heading);
font-weight: var(--font-weight-bold);
line-height: 1.2;
margin-bottom: 1rem;
color: var(--text-primary);
}
h1 {
font-size: 3rem;
margin-bottom: 1.5rem;
}
h2 {
font-size: 2.25rem;
margin-bottom: 1.25rem;
}
h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
}
p {
margin-bottom: 1rem;
}
ul, ol {
padding-left: 1.5rem;
margin-bottom: 1rem;
}
/* Utility Classes */
.container {
width: 100%;
max-width: var(--container-max-width);
padding-left: var(--container-padding);
padding-right: var(--container-padding);
margin-left: auto;
margin-right: auto;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.75rem 1.5rem;
border-radius: var(--border-radius-md);
font-weight: var(--font-weight-medium);
font-size: 1rem;
transition: all var(--transition-normal);
cursor: pointer;
text-align: center;
text-decoration: none;
}
.btn.primary {
background-color: var(--primary-color);
color: white;
border: 2px solid var(--primary-color);
}
.btn.primary:hover {
background-color: var(--primary-dark);
border-color: var(--primary-dark);
}
.btn.secondary {
background-color: transparent;
color: var(--primary-color);
border: 2px solid var(--primary-color);
}
.btn.secondary:hover {
background-color: var(--secondary-color);
}
.read-more {
display: inline-flex;
align-items: center;
font-weight: var(--font-weight-medium);
color: var(--primary-color);
transition: all var(--transition-fast);
}
.read-more:hover {
color: var(--primary-dark);
text-decoration: underline;
}
.highlight {
color: var(--primary-color);
}
/* Header Styles */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
z-index: 1000;
box-shadow: var(--shadow-sm);
transition: all var(--transition-normal);
}
header.scrolled {
box-shadow: var(--shadow-md);
}
.main-nav {
display: flex;
justify-content: space-between;
align-items: center;
height: 80px;
}
.logo {
display: flex;
}
.logo a {
display: flex;
align-items: center;
color: var(--text-primary);
font-weight: var(--font-weight-bold);
font-size: 1.25rem;
}
.logo img {
height: 36px;
width: auto;
margin-right: 0.75rem;
}
.nav-links {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}
.nav-links li:not(:last-child) {
margin-right: 1.5rem;
}
.nav-links a {
display: block;
padding: 0.5rem 0;
color: var(--text-secondary);
position: relative;
}
.nav-links a:hover {
color: var(--primary-color);
}
.nav-links a.active {
color: var(--primary-color);
font-weight: var(--font-weight-medium);
}
.nav-links a.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background-color: var(--primary-color);
border-radius: 1px;
}
.mobile-menu-toggle {
display: none;
flex-direction: column;
justify-content: space-between;
width: 24px;
height: 18px;
background: none;
border: none;
cursor: pointer;
}
.mobile-menu-toggle span {
width: 100%;
height: 2px;
background-color: var(--text-primary);
border-radius: 1px;
transition: all var(--transition-fast);
}
/* Main Content Sections */
main {
margin-top: 80px; /* Компенсация фиксированного хедера */
}
section {
padding: 5rem 0;
}
section:nth-child(even) {
background-color: var(--bg-secondary);
}
/* Page Hero - общие стили для заголовков страниц */
.page-hero {
padding: 8rem 0 4rem;
background: linear-gradient(135deg, var(--secondary-color) 0%, #f0f7ff 100%);
text-align: center;
position: relative;
overflow: hidden;
}
.page-hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('../images/pattern.svg');
background-size: cover;
opacity: 0.1;
z-index: 1;
}
.page-hero .container {
position: relative;
z-index: 2;
}
.page-subtitle {
font-size: 1.25rem;
color: var(--text-secondary);
max-width: 700px;
margin: 0 auto;
}
/* Footer Styles */
footer {
background-color: var(--text-primary);
color: white;
padding: 4rem 0 2rem;
}
.footer-content {
display: flex;
justify-content: space-between;
margin-bottom: 3rem;
}
.footer-logo {
display: flex;
align-items: center;
margin-bottom: 1rem;
}
.footer-logo img {
height: 36px;
width: auto;
margin-right: 0.75rem;
border-radius: 10px;
}
.footer-logo span {
font-size: 1.25rem;
font-weight: var(--font-weight-bold);
color: white;
}
.footer-links {
display: flex;
}
.footer-nav {
margin-left: 3rem;
}
.footer-nav h4 {
color: white;
margin-bottom: 1rem;
font-size: 1rem;
}
.footer-nav ul {
list-style: none;
padding: 0;
margin: 0;
}
.footer-nav li:not(:last-child) {
margin-bottom: 0.5rem;
}
.footer-nav a {
color: rgba(255, 255, 255, 0.7);
transition: color var(--transition-fast);
}
.footer-nav a:hover {
color: white;
}
.footer-bottom {
padding-top: 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
text-align: center;
color: rgba(255, 255, 255, 0.6);
font-size: 0.875rem;
}
/* Responsive Design */
@media (max-width: 1024px) {
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
}
@media (max-width: 768px) {
h1 {
font-size: 2.25rem;
}
h2 {
font-size: 1.75rem;
}
.mobile-menu-toggle {
display: flex;
}
.nav-links {
position: fixed;
top: 80px;
left: 0;
width: 100%;
flex-direction: column;
background-color: white;
box-shadow: var(--shadow-md);
padding: 1rem 0;
transform: translateY(-100%);
opacity: 0;
visibility: hidden;
transition: all var(--transition-normal);
}
.nav-links.active {
transform: translateY(0);
opacity: 1;
visibility: visible;
}
.nav-links li {
width: 100%;
margin: 0 !important;
}
.nav-links a {
padding: 1rem 1.5rem;
}
.footer-content {
flex-direction: column;
}
.footer-links {
margin-top: 2rem;
}
.footer-nav {
margin-left: 0;
margin-right: 2rem;
}
}
@media (max-width: 576px) {
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.5rem;
}
section {
padding: 3rem 0;
}
.footer-links {
flex-direction: column;
}
.footer-nav {
margin-right: 0;
margin-bottom: 2rem;
}
}