:root {
	--bg: #191918;
	--text: #ffffff;
	--muted: #bdbdbd;
	--accent: #90caf9; 
	--logo-margin-left: 40px;
}

@font-face {
	font-family: 'Nexar';
	src: local('Nexar'), url('../assets/fonts/nexar-font.ttf') format('truetype');
	font-style: normal;
	font-weight: 100 900;
}

html, body {
	height: 100%;
	margin: 0;
}

body {
	background-color: var(--bg);
	color: var(--text);
	font-family: 'Nexar', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.5;
	font-weight: 400;
    overflow-x: hidden; /* убираем горизонтальный скролл */
	max-width: var(--screen-width); /* ограничение ширины под макет */
    margin: 0 auto; /* центрируем весь сайт */
}

a { color: var(--accent); }

h1,h2,h3,h4,h5,h6,
strong,b {
	font-weight: 400;
}

button, input, textarea, select {
	font-family: inherit;
	font-weight: 400;
}

.muted { color: var(--muted); }


.site-header {
	padding: 2rem 0;
}

/* make header layout horizontal: logo left, button pushed to right with ~50px from edge */
.site-header .container, .title-container {
	display: flex;
	align-items: center;
	gap: 1rem;
	/* preserve left spacing (was 5rem before), and set right spacing to ~50px */
	padding-left: 5rem;
	padding-right: 50px;
}

.logo-link { display: inline-block; }
.logo {
	height: 40px; /* default logo height */
	margin-left: var(--logo-margin-left);
	display: block;
}

.support-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	margin-right: 4rem;
	background: var(--bg);
	color: var(--text);
	padding: 0.7rem 0.9rem;
	text-decoration: none;
	transition: background 200ms ease;
	font-family: 'Nexar';
	font-weight: 400;
	font-size: 10px;
	cursor: pointer;

}

.support-label { font-weight: 400; }
.support-btn:focus {
	outline: 2px solid rgba(144,202,249,0.18);
	outline-offset: 2px;
}
.title-label {
    font-size:14px;
}
.title-container {
	padding-left: 7.5rem;

}
.icon-wrap { position: relative; width: 13px; height: 13px; display: inline-block; }
.icon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 180ms ease; }
.icon-active { opacity: 0; }
.many-info, .general {
	font-size: 12px;
}
.general {
    position: relative;
    display: inline-block;
}

.support-btn:hover { background: #2E2E2E; }
.support-btn:hover .icon-active { opacity: 1; }
.support-btn:hover .icon-default { opacity: 0; }
.icon-down { 
	position: relative; 
	width: 18px; 
	height: 18px; 
	display: inline-block; 
}
/* === Блок с заголовком и картинкой === */
.title-container {
	display: flex;
	align-items: flex-start; /* выравниваем по верхнему краю */
	justify-content: flex-start;
	gap: 3rem;
	padding-left: 7.5rem;
	padding-right: 50px;
	margin-top: 3rem;
}

.text-block {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	max-width: 600px;
}

.text-block h1 {
	font-size: 2rem;
	line-height: 1.2;
	margin-top: 0.36rem;
}

.many-info {
	font-size: 0.76rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.general {
	font-size: 0.76rem;
	line-height: 2;
	color: var(--text);
}

.general-img {
	max-width: 1000px;
	margin-left: auto;
	margin-right: 2.9rem;
	height: auto;
	display: grid;
}

  .server-card {
    background-color: #212121;
    width: 755px;
	height: 100%;
	margin-top: 3rem;
	margin-right: 4rem;
  }

  .headerSrv {
    display: flex;
    align-items: center;
	border-right: 3px solid #2E2E2E;
	border-top: 3px solid #2E2E2E;
	border-left: 3px solid #2E2E2E;	
  }

  .iconSrv {
    width: 160px;
    height: 160px;
    background-size: cover;
    background-repeat: no-repeat;
    margin-right: 15px;
    margin: 19px;
  }

  .titleSrv {
    display: flex;
    flex-direction: column;
    justify-content: center;
	margin-bottom: 40px;
  }

  .titleSrv h2 {
    margin: 0;
    font-size: 23px;
    text-transform: uppercase;
  }

  .titleSrv span {
    font-size: 18px;
    color: #ffffff;
  }

  .content {
    background-color: #2E2E2E;
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
	padding-bottom: 60px; 
	line-height: 2;
  }

  .content p {
    margin: 5px 0;
	font-size: 14px;
  }

  .highlight {
    color: #9af76c;
  }

  .link {
    display: inline-block;
	position: absolute;
    background-color: #222;
    padding: 40px;
	padding-left: 60px;
	padding-right: 60px;
  	margin-left: 120px;
	margin-top: -30px;
    color: orange;
    text-decoration: none;
    transition: 0.2s;
	cursor: pointer;
  }

  .linkVid {
	background-color: #222;
    padding: 11px;
    padding-left: 211px;
    padding-right: 197px;
  	color: orange;
  	text-decoration: none;
  	cursor: pointer;
    margin-left: -499px;
    margin-top: 309px;
  	position: absolute;
	
  }

.link2 {
    display: inline-block;
	position: absolute;
    background-color: #222;
    padding: 40px;
	padding-left: 60px;
	padding-right: 60px;
  	margin-left: 135px;
	margin-top: -35px;
	cursor: pointer;
    color: orange;
    text-decoration: none;
    transition: 0.2s;
  }

  .link:hover {
    background-color: #333;
  }
  
  .link2:hover {
    background-color: #333;
  }
.linkVid:hover {
    background-color: #333;
}

  .footerSrv {
    background-color: #ff4040;
    color: white;
    text-align: center;
    padding: 30px 30px 30px;
	width: 400px;
  }

  .footerBlock {
	background-color: #191918;
  }

  .vrp .iconSrv {
    background-image: url('../assets/images/vrp-icon.svg');
  }


.main-image {
    background: var(--bg);
    background-color: var(--bg);
    margin-bottom: 15px;
}

.mainImage {
    background: var(--bg);
    background-color: var(--bg);
	width: var(--screen-width);
}

@media (max-width: 1080px) {
	.mainImage {
		width: var(--screen-width);
	}
	
}

.reimagined .iconSrv {
  background-image: url('../assets/images/rem-icon.svg'); /* тот же логотип, можно заменить */
}

.reimagined .highlight {
  color: #b083ff;
}

.server-list {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
}
.servers {
	display: flex;
}
@media (max-width: 600px) {
	:root { --logo-margin-left: 12px; }
	/*.logo { height: 32px; }*/
}

@media (max-width: 360px) {
	:root { --logo-margin-left: 8px; }
	.logo { height: 28px; }
}

.select-server-title {
  width: 100%;
  display: flex;
  margin-top: 3rem;
  flex-direction: column;
  align-content: center;
  align-items: center;
}

.site-footer  {
    margin-top: 15px;
    position: static;/* регулируй под фактическую высоту .mainImage */
}

.site-footer .support-btn {
	background-color: #212121;
}
.site-footer .support-btn:hover {
	background-color: #2E2E2E;
}


.site-footer .logo-link {
	margin-right: 20px;
}

.footer-dep {
  background-color: #282828;
  width: 100%;
  height: 40px;
}

.footer-labels {
	text-decoration: none;
	color: #414141;
	font-size: 8px;
}
.content iframe {
    margin-left: 115px;
}
.size-date {
	color: white;
}

.labels {
	margin-right: 5rem;
	margin-top: 15px;
	display: flex;
	text-align: center;
	flex-direction: row;
	gap: 35px;
}
.server-sec-btn {
	position: absolute;
	margin-top: 168px;
  	margin-left: 482px;
	width: 65px;
	height: 65px;
	border: 3px solid #2E2E2E;
	background-color: #212121;
	cursor: pointer;

}
.site-footer .support-btn {
    background-color: #191918;
}
.server-btn.active,
.server-sec-btn.active,
.mod-one.active,
.mod-two.active {
    border-color: #ffffff; /* белая при активной */
}

.server-btn:hover,.server-sec-btn:hover {
    background-color: #2E2E2E;
}
.info-icon {
	width: 55px;
  	height: 55px;
  	margin-left: 5px;
	margin-top: 5px;
}
.server-btn {
	position: absolute;
	margin-top: 168px;
  	margin-left: 410px;
  	width: 65px;
  	height: 65px;
 	border: 3px solid #2E2E2E;
 	background-color: #212121;
	cursor: pointer;

}

.video-container {
  position: relative;
  width: 500px;
  height: 303px;
  margin-bottom: 10px;
}

.vpnHernya,.vpnHernyaM{
    opacity: 0.3;
    font-size: 9px;
}

.video-warning {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #212121;
  color: white;
  text-align: center;
  border: 2px solid #F19952;
  border-radius: 8px;
  z-index: 1;
}

.video-warning p {
  margin: 5px 0;
  font-size: 16px;
}

.video-container iframe {
  position: relative;
  z-index: 2;
}

/* ===== ПЛАНШЕТЫ (768px - 1024px) ===== */
@media (max-width: 1024px) {
    .site-header .container, 
    .title-container {
        padding-left: 3rem;
        padding-right: 30px;
    }
    
    .title-container {
        padding-left: 4rem;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .text-block h1 {
        font-size: 1.7rem;
    }
    
    .general-img {
        max-width: 400px;
        margin-right: 1rem;
    }
    
    .server-card {
        width: 680px;
        margin-right: 2rem;
    }
    
    /* Кнопки в строку справа снизу */
    .headerSrv {
        position: relative;
        padding-bottom: 70px;
    }
    
    .server-btn,
    .server-sec-btn {
        position: absolute;
        bottom: 15px;
        width: 60px;
        height: 60px;
        margin: 0 !important;
    }
    
    .server-btn {
        right: 85px;
        margin-left: 0 !important;
    }
    
    .server-sec-btn {
        right: 15px;
        margin-left: 0 !important;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
    }
    
    .link {
        margin-left: 118px;
        padding: 30px 40px;
    }
.content iframe {
    margin: 0;
}
    .link2 {
        margin-left: 125px;
        padding: 30px 40px;
    }
    
    .linkVid {
        margin-left: 10px;
        margin-top: 170px;
        padding: 30px 40px;
    }
    
    /* FIX для main-image */
    .main-image {
        position: relative;
        z-index: 1;
    }
    
    .server-list {
        position: relative;
        z-index: 2;
    }
    
    .site-footer {
        margin-top: 40rem;
        position: relative;
        z-index: 3;
    }
    
    .mainImage {
        top: -27rem;
        width: 100%;
    }
    
}

/* ===== БОЛЬШИЕ ТЕЛЕФОНЫ (576px - 767px) ===== */
@media (max-width: 767px) {
    .site-header .container, 
    .title-container {
        padding-left: 2rem;
        padding-right: 20px;
    }
    
    .title-container {
        flex-direction: column;
        padding-left: 2rem;
        gap: 1.5rem;
        text-align: center;
    }
    
    .text-block h1 {
        font-size: 1.5rem;
    }
    
    .general-img {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .servers {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .server-card {
        width: 90%;
        margin-right: 0;
    }
    
    /* Кнопки в строку справа снизу */
    .headerSrv {
        position: relative;
        padding-bottom: 65px;
    }
    .content iframe {
        margin: 0;
        width: 500px;
    }
    .server-btn,
    .server-sec-btn {
        position: absolute;
        bottom: 12px;
        width: 55px;
        height: 55px;
        margin: 0 !important;
    }
    
    .server-btn {
        right: 75px;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
    
    .server-sec-btn {
        right: 12px;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
    }
    
    .link {
        margin-left: 80px;
        margin-top: -25px;
        padding: 25px 35px;
    }
    
    .link2 {
        margin-left: 95px;
        margin-top: -30px;
        padding: 25px 35px;
    }
    
    .linkVid {
        margin-left: 8px;
        margin-top: 150px;
        padding: 25px 35px;
    }
    
    .footerSrv {
        width: 350px;
        padding: 25px;
    }
    
    .site-footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .labels {
        margin-right: 0;
        justify-content: center;
        gap: 25px;
    }
    
    /* FIX для main-image */
    .main-image {
        position: relative;
        z-index: 1;
    }
    
    .server-list {
        position: relative;
        z-index: 2;
        margin-bottom: 2rem;
    }
    
    .site-footer {
        margin-top: 35rem;
        position: relative;
        z-index: 3;
    }
    
    .mainImage {
        top: -27rem;
        width: 100%;
    }
    
}

/* ===== СРЕДНИЕ ТЕЛЕФОНЫ (425px - 575px) ===== */
@media (max-width: 575px) {
    .site-header .container, 
    .title-container {
        padding-left: 1rem;
        padding-right: 15px;
    }
    
    .logo {
        height: 35px;
    }
    
    .support-btn {
        margin-right: 2rem;
        padding: 0.5rem 0.7rem;
    }
    
    .title-container {
        padding-left: 1rem;
        margin-top: 1.5rem;
    }
    
    .text-block h1 {
        font-size: 1.3rem;
    }
    
    .many-info {
        font-size: 0.7rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .general {
        font-size: 0.7rem;
    }
    
    .general-img {
        max-width: 450px;
    }
    
    .server-card {
        width: 95%;
        margin-top: 2rem;
    }
    
    .headerSrv {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        padding-bottom: 60px; /* место для кнопок */
        position: relative;
    }
    
    .iconSrv {
        width: 120px;
        height: 120px;
        margin: 10px auto;
    }
    .content iframe {
        margin: 0;
        width: 370px;
    }
    .titleSrv {
        margin-bottom: 20px;
    }
    
    .titleSrv h2 {
        font-size: 20px;
    }
    
    .titleSrv span {
        font-size: 16px;
    }
    
    /* Кнопки в строку справа снизу */
    .server-btn,
    .server-sec-btn {
        position: absolute;
        bottom: 10px;
        width: 50px;
        height: 50px;
        margin: 0 !important;
    }
    

    
    .server-sec-btn {
        right: 10px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
    }
    
    .link,
    .link2 {
        position: relative;
        margin: 10px auto;
        padding: 20px 30px;
        display: block;
        text-align: center;
    }
    
    .linkVid {
        position: relative;
        margin: 10px auto;
        padding: 20px 30px;
        display: block;
        text-align: center;
    }
    
    .content {
        padding: 15px;
        padding-bottom: 40px;
    }
    
    .content p {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .footerSrv {
        width: 300px;
        padding: 20px;
        font-size: 14px;
    }
    
    /* FIX для main-image */
    .main-image {
        position: relative;
        z-index: 1;
    }
    
    .server-list {
        position: relative;
        z-index: 2;
        margin-bottom: 3rem;
    }
    
    .site-footer {
        margin-top: 30rem;
        position: relative;
        z-index: 3;
    }
    
    .mainImage {
        top: -27rem;
        z-index: 1;
        width: 100%;
    }
    
}

/* ===== МАЛЕНЬКИЕ ТЕЛЕФОНЫ (320px - 424px) ===== */
@media (max-width: 424px) {
    :root {
        --logo-margin-left: 10px;
    }
    
    .site-header .container {
        padding-left: 0.5rem;
        padding-right: 10px;
    }
    
    .logo {
        height: 30px;
    }
    
    .support-btn {
        margin-right: 1rem;
        font-size: 9px;
        padding: 0.4rem 0.6rem;
    }
    
    .title-container {
        padding-left: 0.5rem;
        padding-right: 10px;
        margin-top: 1rem;
    }
    
    .text-block h1 {
        font-size: 1.1rem;
    }
    
    .many-info {
        font-size: 0.65rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .general {
        font-size: 0.65rem;
        line-height: 1.8;
    }
    
    .general-img {
        max-width: 380px;
    }
    
    .server-card {
        width: 100%;
    }
    
    .iconSrv {
        width: 100px;
        height: 100px;
    }
    
    .titleSrv h2 {
        font-size: 18px;
    }
    
    .titleSrv span {
        font-size: 14px;
    }
    
    .content p {
        font-size: 11px;
        line-height: 1.6;
    }
    
    /* Кнопки в строку справа снизу */
    .headerSrv {
        padding-bottom: 55px;
    }
    
    .server-btn,
    .server-sec-btn {
        position: absolute;
        bottom: 8px;
        width: 45px;
        height: 45px;
        margin: 0 !important;
    }
    
    
    .server-btn {
        right: 60px;
    }
    
    .server-sec-btn {
        right: 8px;
    }
    
    .content iframe {
        margin: 0;
        width: 380px;
    }
    .info-icon {
        width: 35px;
        height: 35px;
    }
    
    .link,
    .link2,
    .linkVid {
        padding: 15px 25px;
        font-size: 14px;
    }
    
    .footerSrv {
        width: 250px;
        padding: 15px;
        font-size: 12px;
    }
    
    .labels {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-labels {
        font-size: 7px;
    }
    
    /* FIX для main-image */
    .main-image {
        position: relative;
        z-index: 1;
    }
    
    .server-list {
        position: relative;
        z-index: 2;
        margin-bottom: 4rem;
    }
    
    .site-footer {
        margin-top: 1rem;
        position: relative;
        z-index: 3;
    }
    .site-footer .support-btn {
        margin-right: 116px;
    }
    .mainImage {
        top: -27rem;
        width: 100%;
    }
    .select-server-title {
        margin-top: 2rem;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 319px) ===== */
@media (max-width: 319px) {
    .text-block h1 {
        font-size: 1rem;
    }
    
    .general-img {
        max-width: 180px;
    }
    
    /* Кнопки в строку справа снизу */
    .headerSrv {
        padding-bottom: 50px;
    }
    
    .server-btn,
    .server-sec-btn {
        position: absolute;
        bottom: 5px;
        width: 40px;
        height: 40px;
        margin: 0 !important;
    }
    
    .server-btn {
        right: 60px;
    }
    
    .server-sec-btn {
        right: 5px;
    }
    
    .info-icon {
        width: 30px;
        height: 30px;
    }
    .content iframe {
        width: 300px;
    }
    
    .link,
    .link2,
    .linkVid {
        padding: 12px 20px;
        font-size: 12px;
    }
    
    .footerSrv {
        width: 200px;
        padding: 12px;
        font-size: 11px;
    }
    
    /* FIX для main-image */
    .main-image {
        position: relative;
        z-index: 1;
    }
    
    .server-list {
        position: relative;
        z-index: 2;
        margin-bottom: 5rem;
    }
    
    .site-footer {
        margin-top: 20rem;
        position: relative;
        z-index: 3;
    }
    .mainImage {
        top: -27rem;
        width: 100%;
    }
    
}