:root {
--bg-main: #f8f8f8;
--bg-surface: #fff;
--bg-header: rgba(255, 255, 255, 0.8);
--text-main: #3e3d3d;
--text-muted: #272727;
--accent: #00e5ff;
--accent-gradient: linear-gradient(135deg, #00e5ff 0%, #0066ff 100%);
--border: rgba(255, 255, 255, 0.05);
--radius-lg: 24px;
--radius-md: 16px;
--radius-sm: 12px;
--max-width: 1230px;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
/*	Отладка границ верстки */
/*	outline: 1px solid magenta !important; */
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {
scrollbar-width: none;
-ms-overflow-style: none;
scroll-behavior: smooth;
background-color: var(--bg-main);
max-width: 100%;
overflow-x: clip;
}
html::-webkit-scrollbar {
display: none;
}

body {
font-family: 'Inter', sans-serif;
color: var(--text-main);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}

/* Общие контейнеры */
section, footer {
width: 100%;
max-width: var(--max-width);
margin: 0 auto;
padding: 100px 24px;
}

/* Премиальная шапка с эффектом размытия заднего плана */
header {
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
background: var(--bg-header);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 9999;
flex-wrap: nowrap;
overflow-x: clip;
}

/* Навигация */
.logo a {
font-size: 22px;
font-weight: 800;
color: var(--text-main);
text-decoration: none;
letter-spacing: -0.5px;
background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-left: 25px;
}

nav a {
color: var(--text-muted);
text-decoration: none;
font-size: 14px;
font-weight: 500;
margin-right: 32px;
transition: var(--transition);
}

nav a:hover {
color: var(--accent);
}

.header-contacts .phone {
font-weight: 600;
color: var(--text-main);
text-decoration: none;
font-size: 14px;
border: 1px solid var(--accent);
padding: 10px 24px;
border-radius: 100px;
box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
transition: var(--transition);
}

.header-contacts .phone:hover {
background: var(--accent-gradient);
box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
border-color: transparent;
}

/* Главный экран (Hero Section) */
.hero {
text-align: center;
padding: 240px 24px;
position: relative;
background-size: cover;      /* Картинка автоматически масштабируется под размеры экрана без искажений */
background-position: center;  /* Центрирует фоновое изображение */
background-repeat: no-repeat; /* Запрещает размножение картинки сеткой */
max-width: none;

}

/* Декоративное неоновое свечение на заднем плане */
.hero::before {
content: '';
top: 40%; left: 50%; transform: translate(-50%, -50%);
width: 500px; height: 500px;
background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, rgba(0,0,0,0) 70%);
z-index: -1;
pointer-events: none;
}

.hero h1 {
font-size: 40px;
line-height: 1.15;
letter-spacing: -2px;
margin-bottom: 24px;
}

.hero p {
font-size: 20px;
color: var(--text-muted);
max-width: 720px;
margin: 0 auto 48px auto;
font-weight: 300;
}

/* Трендовый бейдж над заголовком */
.badge {
display: inline-block;
background: rgba(0, 229, 255, 0.08);
border: 1px solid rgba(0, 229, 255, 0.2);
color: var(--accent);
padding: 6px 16px;
border-radius: 100px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.5px;
text-transform: uppercase;
margin-bottom: 28px;
}

/* Неоновые кнопки */
.cta-btn {
display: inline-block;
color: #545454;
padding: 16px 40px;
text-decoration: none;
font-size: 15px;
font-weight: 700;
border-radius: 6px;
border: 1px solid #757575;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 1px;
transition: var(--transition);
}

.cta-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(64, 64, 64, 0.5);
filter: brightness(1.1);
}

/* Заголовки разделов */
section h2 {
font-size: 38px;
font-weight: 700;
text-align: center;
margin-bottom: 30px;
letter-spacing: -1px;
}

section h3 {
font-size: 34px;
font-weight: 700;
text-align: center;
margin-bottom: 30px;
letter-spacing: -1px;
}

h4 {
text-align: center;
margin-bottom: 18px;
font-size: 20px;
}

h2 {
font-size: 38px;
font-weight: 700;
text-align: center;
margin-bottom: 30px;
letter-spacing: -1px;
}

/* Сетка преимуществ */
.features-grid {
display: grid;
grid-template-columns: 1fr !important;;
gap: 24px;
}

@media (min-width: 750px) {
.features-grid {
grid-template-columns: repeat(3, 1fr) !important;;
}
}

@media (min-width: 1024px) {
.features-grid {
grid-template-columns: repeat(3, 1fr) !important;;
}
}

.features-grid article {
background: var(--bg-surface);
padding: 40px;
border-radius: var(--radius-md);
border: 1px solid var(--border);
transition: var(--transition);
position: relative;
}
/*
.features-grid article:hover {
border-color: rgba(0, 229, 255, 0.25);
transform: translateY(-4px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}
*/
.features-grid .tech-tag {
font-size: 11px;
color: var(--accent);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 16px;
display: block;
}

.features-grid h3 {
font-size: 22px;
font-weight: 600;
margin-bottom: 12px;
letter-spacing: -0.5px;
}

.features-grid p {
color: var(--text-muted);
font-size: 14px;
line-height: 1.6;
}

/* Темная интерактивная таблица цен */
.table-container {
background: var(--bg-surface);
border-radius: var(--radius-lg);
border: 1px solid var(--border);
padding: 16px;
overflow-x: auto;
box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.table-wrapper {
overflow-x: auto;
}

table {
width: 95%;
border-collapse: collapse;
text-align: center;
font-size: 15px;
}

th, td {
padding: 20px 24px;
}

th {
font-weight: 700;
color: var(--text-muted);
border-bottom: 1px solid var(--border);
font-size: 13px;
text-transform: uppercase;
letter-spacing: 1px;
}

td {
border-bottom: 1px solid rgba(255, 255, 255, 0.02);
font-weight: 500;
}

tr:last-child td {
border-bottom: none;
}

.new-price {
color: var(--accent);
font-size: 18px;
font-weight: 700;
}


.footer-wrapper {
background-color: #03050a;
border-top: 1px solid var(--border);
font-size: 14px;
color: var(--text-muted);
}
footer {
padding: 80px 24px;
gap: 40px;
}
footer h4 {
color: #ffffff;
font-size: 16px;
font-weight: 700;
margin-bottom: 24px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
footer p {
margin-bottom: 12px;
}
footer a {
color: #ffffff;
text-decoration: none;
transition: var(--transition);
}
footer a:hover {
color: var(--accent);
}
footer .copyright {
grid-column: 1 / -1;
padding-top: 32px;
border-top: 1px solid var(--border);
font-size: 12px;
color: #475569;
line-height: 1.8;
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 768px) {
header { flex-direction: column; gap: 16px; text-align: center; padding: 15px 20px; }
nav a { margin: 0 5px; font-size: 13px; }
.hero h1 { font-size: 38px; }
.hero p { font-size: 16px; }
h2 { font-size: 28px; }
section h2 { font-size: 28px; }
section h3 { font-size: 26px; }
section, footer { padding: 76px 18px; }
.logo { display: none; }
th, td { padding: 16px 10px; }
.features-grid { grid-template-columns: repeat(2, 1fr); }
.centered-img { max-width: 45% !important; }
}

@media (max-width: 600px) {
.hero { padding: 210px 24px; }
}

strong{
font-weight:700;
}

input{
padding: 10px;
box-sizing: border-box; 
border: 1px solid #ccc; 
border-radius: 4px;
width:100%;
height:40px;
background:#f8f8f8;
color:#333;
font-weight:300;
line-height:40px;
font-family: 'Lato', sans-serif;
font-size:14px;
margin-bottom:22px;
}

input:focus{background:#f4f4f4;}

textarea{
width:100%;
height:150px;
border:1px solid #ccc;
line-height:20px;
background:#f8f8f8;
color:#333;
font-weight:300;
padding:12px 0 0 10px;
font-family: 'Lato', sans-serif;
font-size:14px;
margin-bottom:15px;
border-radius: 4px;
}

textarea:focus{background:#f4f4f4;}

.reviews-list {
display: flex;
gap: 15px; /* Отступ между карточками вместо margin-bottom */
justify-content: center; /* Центрирует карточки на странице */
flex-wrap: wrap; /* Если карточки не влезут в экран, они перенесутся на новую строку */
}

.review-item {
background: #fff;
padding: 15px;
border-radius: 8px;
text-align: center;
flex: 1; /* Карточки будут одинаковой ширины */
min-width: 250px; /* Минимальная ширина карточки, чтобы текст не сжимался слишком сильно */
}

.review-form-container {
background: #fff;
padding: 20px;
border-radius: 8px;
margin-top: 30px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}

/* Стили для самого модального окна */
.custom-dialog {
border: none;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0,0,0,0.5);
padding: 24px;
max-width: 400px;
width: 90%; /* Безопасно для экранов мобильных телефонов */
text-align: center;
font-family: sans-serif;
background: #2b2b2b; /* Темный фон под стать сайту */
color: #fff;
position: fixed;
margin: auto; 
top: 0;
right: 0;
bottom: 0;
left: 0;
}

/* Стили заголовка */
.dialog-title {
font-size: 20px;
font-weight: bold;
margin-bottom: 12px;
color: #4da6ff; /* Приятный акцентный цвет */
}

/* Стили основного текста */
.dialog-text {
font-size: 16px;
color: #e0e0e0;
margin-bottom: 20px;
line-height: 1.5;
}

/* Кнопка ОК в стиле формы */
.dialog-ok-btn {
background: #28a745; /* Зеленая кнопка как у формы */
color: white;
border: none;
padding: 10px 30px;
font-size: 16px;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
transition: background 0.2s ease;
}

.dialog-ok-btn:hover {
background: #218838;
}

.custom-dialog::backdrop {
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(5px);
}

button {
background: #28a745;
color: white;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
display: inline-block;
}

button:hover {
background-color: #40c65f;
color: white !important;
}
.centered-img {
display: block;
margin: 0 auto 18px auto;
max-width: 70%;
width: 100%;
height: auto;
}