@font-face{font-family:F1;font-display:auto;src:url(/fonts/Formula1-Regular.woff2)
format("woff2"),url(/fonts/Formula1-Regular.woff)
format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:F1;font-display:auto;src:url(/fonts/Formula1-Italic.woff2)
format("woff2"),url(/fonts/Formula1-Italic.woff)
format("woff");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:F1Bold;font-display:auto;src:url(/fonts/Formula1-Bold.woff2)
format("woff2"),url(/fonts/Formula1-Bold.woff)
format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:F1Black;font-display:auto;src:url(/fonts/F1-Black.woff2)
format("woff2"),url(/fonts/F1-Black.woff)
format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:F1Wide;font-display:auto;src:url(/fonts/Formula1-Wide.woff2)
format("woff2"),url(/fonts/Formula1-Wide.woff)
format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Statistic;font-display:auto;src:url(/fonts/Statistic-Regular.woff2)
format("woff2"),url(/fonts/Statistic-Regular.woff)
format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:F1YEAR;font-display:auto;src:url(/fonts/F1YEARRegular.woff)
format("woff"),url(/fonts/F1YEARRegular.woff)
format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face {font-family: 'Titillium Web'; font-weight: 400; src: local('Titillium Web'), local('TitilliumWeb-Regular'), url(https://fonts.gstatic.com/s/titilliumweb/v9/NaPDcZTIAOhVxoMyOr9n_E7ffMfgYyW1bbB6V5u8Ww.woff2) format('woff2');}


:root {
  --color-f1-red: #e10600;
  --color-f1-gray: #9a9a9a;}

body {font-family: F1Bold; margin: 0;}
a {text-decoration: none;}
img:hover {transform: scale(1.2);}
.m_width {max-width: 80vw; margin: 0 auto; padding: 0 20px; }
.m_height {min-height: calc(100vh - 30px - 60px - 90px - 130px);}
.m_sticky {position: sticky; top: 0; z-index: 10;}
 
button.zamena_temy {width: 7vw; height: 1.5vw; border-radius: 5px; border: solid 1px #fff; background: #e10600; color: #fff; font-family: F1; font-size: 0.6vw;}
.top1 {
	color: var(--color-f1-gray);
	height: 35px;
	display: flex;
	justify-content: space-between;
	background-color: #fff;}
	
.fia {filter: invert(100%);	opacity: 0.45; height: 18px;}

.m_line {
	width: 1px;
	height: 100%;
	background: #000;
	opacity: 0.45;}

.navigation {
	display: flex;
	align-items: center;
	padding: 5px 0;
	column-gap: 15px;}
	
.season_title {font-size: 15px;}

.season_list {
	display: flex;
	align-items: flex-end;
	align-self: end;
	column-gap: 16px;}

.season_item {
	font-family: F1YEAR;
	color: #9a9a9a;
	height: 10px;}

/*Випадаючий список років */
.dropdown {position: relative; display: inline-block;}

.dropdown-btn {background-color: #fff;
      color: #9a9a9a;
      text-align: left;
      font-size: 1vw;
      margin-left: -0.8vw;
      margin-bottom: -0.1vw;
      border: none;
      cursor: pointer;}

.dropdown-content {font-family: F1YEAR; font-size: 0.9vw; text-align: center;
    display: none;
    position: absolute;
    background-color: #fff;
    width: 5vw;
    height: 16vw;
    overflow-y: auto;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 11;}

.dropdown-content a {
      color: #9a9a9a;
      padding: 8px 12px;
      text-decoration: none;
      display: block;}

.dropdown-content a:hover {background-color: #ddd;}

.register {color: #e10600; padding: 0.5vw 3.9vw; border: solid 1px #dcdcdc;
	border-radius: 0.5vw;}
.register a:hover {color: #e10600;}
	
.f1tv {height: 15px;  opacity: 0.8;}
.f1 {height: 15px;}

/*червона полоса*/
.top2 {
	background-color: var(--color-f1-red);
	box-shadow: 0 5px 10px .2px rgba(0,0,0,0.5);}

.menu_wrapper { 
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 70px;}

.mylogo {width: 130px; transition: opacity 0.3s; font-size: 10px; color: #dcdcdc;}
.mylogo:hover {opacity: 0.8;}

.menu {height: 100%;}

.menu_item {
	display: inline-flex;
	align-items: center;
	font-size: 15px;
	height: 100%;
	color: #fff;
	padding: 0 1vw;
	transition: background-color 0.3s;}
.menu_item:hover {background-color: #000;}



/* А Н О Н С */
.anons_wrapper {height: 110px; background-color: #000;}

.anons {
	height: 100%;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-content: center;}
.anons a {color: #fff;}

.map_wrapper {
	display: block;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.3s;}

.map_wrapper:hover {opacity: 0.8;}

.anons_text {
	color: #fff;
	line-height: 15px;
	font-size: 16px;
	margin-bottom: 5px;}

.trasa_wrapper {
	display: flex;
	align-items: center;
	column-gap: 10px;}

.trasa {
	height: 65px;
	border-top: solid 2px #38383f;
	border-right: solid 2px #38383f;
	border-top-right-radius: 10px;}

.trasa_name_wrapper {
	height: 65px;
	display: flex;
	align-items: center;
	border-top: solid 2px #38383f;
	border-right: solid 2px #38383f;
	border-top-right-radius: 10px;
	column-gap: 10px;
	padding-right: 10px;}

.trasa_name {height: 15px; font-size: 25px;}

.racest {
	color: #fff;
	display: flex;
	height: 100%;
	justify-content: center;
	align-items: center;
	font-size: 25px;}
	
.god {font-family: F1YEAR;}

	
/* К О Н Т Е Н Т */

.content { 
	float: left;
	margin-left: 8vw;
	margin-top: 1vw;
	width: 60.85vw;}
	
.container {
	display: flex;
	padding: 20px 0;}
	
.cont_news { 
	display: grid;
	/* Якщо треба збільшити кількість елементів в новостній стрічці зміни 4 на іншу кількість */
	grid-template-columns: repeat(4, 1fr);
	font-family: F1Bold;
	gap: 14px;
	max-width: 1200px;
	margin: 0 auto;}

.top_news {box-sizing: border-box;
	grid-area: 1 / 1 / 3 / 3;
	border-top: solid 7px var(--color-f1-red);
	border-right: solid 7px var(--color-f1-red);
	border-bottom: solid 7px var(--color-f1-red);
	border-radius: 10px;}

.news {box-sizing: border-box;
	border-bottom: solid 1px var(--color-f1-gray);
	border-right: solid 1px var(--color-f1-gray);
	border-left: solid 1px var(--color-f1-gray);
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;}

.top_news,
.news {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	width: 100%;
	height: 100%;}

.tnews {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	height: 100%;
	width: 100%;}

.top_news .tnews{
	justify-content: center;
	flex-direction: column-reverse;}

.top_news .tnews p{
	line-height: 25px;
	font-size: 20px;
	font-weight: 700;
	justify-content: center;
	flex-direction: column-reverse;
}

a:hover.tnews p{color: var(--color-f1-red);}

.img_news {
	flex-shrink: 0;
	height: 70%;
	width: 100%;
	object-fit: cover;}

.text_news {
	padding: 7px 10px;
	text-align: center;
	max-width: 90%;}

.text_news p{
	color: #000;
	line-height: 18px;
	font-size: 14px;
	font-family: F1;
	display: -webkit-box;
	-webkit-line-clamp: 4; /* number of lines to show */
	line-clamp: 4; 
	-webkit-box-orient: vertical;
	overflow: hidden;}

.news_data {
	font-family: Statistic;
	color: #fff;
	background: var(--color-f1-gray);
	position: absolute;
	bottom: -1px;
	right: 0;
	line-height: 7px;
	font-size: 6px;
	padding: 2px 5px;}
.news_text .news_data {font-size: 7px}
.top_news .news_data {background: var(--color-f1-red); bottom: -2px;}

.news_cont {
	font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
	float: left;
	width: 46vw;
	min-width: 560px;
	text-align: center;
	margin-top: 1vw;
	margin-left: 4vw;}

h1 {font-family: F1Bold;
	line-height: 22px;
	font-size: 19px;
	margin: 18px 0;}
	
.news_blok {
	width: 45vw;
	border-top: solid 0.5vw var(--color-f1-red);
	border-right: solid 0.5vw var(--color-f1-red);
	border-top-right-radius: 0.8vw;
	border-top-left-radius: 0.8vw;}

.news_img {width: 100%;	height: 100%;}

.news_text {
	position: relative;
	text-indent: 1.5vw;
	text-align: justify;
	width: 43vw;
	line-height: 18px;
	font-size: 15px;
	border-bottom: solid 0.5vw var(--color-f1-gray);
	border-right: solid 0.5vw var(--color-f1-gray);
	border-bottom-right-radius: 0.8vw;
	border-bottom-left-radius: 0.8vw;
	padding: 10px 1vw 10px 1vw;
	margin-bottom: 1vw;
}

.news_text p {text-align: justify; padding-top: 8px;}

/* ЛЕВАЯ ПАНЕЛЬ */	

.leftpanel{
	float: left;
	width: 18.7vw;
	height: 100%;
	FONT-SIZE: 0.8vw;
	BACKGROUND: #000;
	border: solid 0px #000;
	border-radius: 0.7vw;
	padding-top: 0.4vw;
	padding-bottom:0.3vw;
	margin-top: 1vw;
	margin-left: 0.7vw;
	color: #fff;
	text-align: center;}
.leftpanel .spisokresult{
	display: flex;
    align-items: center;
	height: 1.7vw;
	BACKGROUND: #fff;
	border: solid 1px #fff;
	border-radius: 0.5vw;
	color: #000;
	margin:0 1px 1px 1px;
	text-align: left;
	font-family:F1Bold;
	FONT-SIZE: 0.7vw;}
.leftpanel .driver {display: flex;
    align-items: center;
	FONT-SIZE: 0.6vw;
	margin-left: 0.5vw;}
.leftpanel .drface {width: 1.65vw; margin-right: 0; text-align: center;}
.leftpanel .drface2 {width: 1.65vw; margin-right: 0; text-align: center; transform: scaleX(-1);}
.leftpanel .logoteam {width: 1.6vw; margin-right: 0.2vw; text-align: center;}
.leftpanel .drname {width: 5.4vw; text-align: center; font-family:F1Bold;}
.leftpanel .drnambr {width: 1.4vw; margin-left: 0.2vw; text-align: center;}
.leftpanel .drslem {width: 2vw; text-align: center;}
.leftpanel .result {width: 0vw; font-family: 'Statistic', sans-serif; FONT-SIZE: 0.4vw;  line-height: 0.7vw; font-stretch: condensed; text-align: center;}
.leftpanel .point {width: 1.5vw; margin: 0;} 
.leftpanel .img_gp {height: 0.7vw;}

.leftpanel .dr_spisokresult{
	display: flex;
    align-items: center;
	height: 1.81vw;
	BACKGROUND: #fff;
	border: solid 1px #fff;
	border-radius: 0.5vw;
	color: #000;
	margin:0 1px 1px 1px;
	text-align: left;
	font-family:F1Bold;
	FONT-SIZE: 0.7vw;}
	
/* навигация гонок*/
.navi_map {
	background-color: #000;
	height: 2.8vw;
	padding-top: 0.2vw;
	display: flex;
	text-align: center;
	gap: 0.35vw;
}

.navi_block {
	flex-shrink: 0;
	text-align: center;
	font-family: F1;
	border-top: solid 1px #38383f;
	border-right: solid 1px #38383f;
	border-radius: 7px;
	width: 3.72vw;
	padding: 0;
    font-size: 0.5vw; line-height: 0.6vw;
}

.navi_block a {
	text-decoration: none;
	color: #fff;
	opacity: 58%;
	}

.navi_block a:hover {color: #fff; opacity: 100%;}

.navi_name {font-size: 0.4vw;}

.navi_fl {
	height: 1vw;
	margin-bottom: 0.1vw;
	border-radius: 5px;
	border: solid 1px #38383f;}
	
/* П О Д В А Л */
.footer_map {
	background-color: #38383f;
	overflow-x: auto;
	height: 140px;
	padding: 10px;
	display: flex;
	text-align: center;
	gap: 5px;
	margin-top: 10px;}

.foot_block {
	flex-shrink: 0;
	text-align: center;
	font-family: F1;
	border-top: solid 1px var(--color-f1-gray);
	border-right: solid 1px var(--color-f1-gray);
	border-top-right-radius: 7px;
	width: 74px;
	padding: 10px 5px 5px;}

.foot_block a {
	text-decoration: none;
	color: #fff;
	opacity: 60%;
	font-size: 10px;
	line-height: 10px;}

.foot_block a:hover {color: #fff; opacity: 100%;}

.foot_name {font-size: 8px;}

.foot_fl {
	height: 18px;
	margin-bottom: 5px;
	border-radius: 5px;
	border: solid 1px #38383f;}

.foot_trasa {height: 45px;}




.footer_bottom {
	background-color: #000;
	color: #fff;
	font-family: 'Titillium Web', sans-serif;
	padding: 10px 0 50px;}

.footer_menu {
	display: flex;
	column-gap: 30px;
	justify-content: center;
	padding: 10px;
	text-align: center;
	font-size: 12px;
	font-family: F1Bold;}

.footer_menu a:hover {opacity: 0.7;}

.footerspis {height: 8px; color: #fff;}

.footer_line {
	width: 85%;
	margin: 0 auto;
}

.logo_par,
.logo_par_fia {height: 15px;}

.foot_prava {margin: 2px 0;}

.foot_prava,
.foot_mprava {
	color: var(--color-f1-gray);
	line-height: 10px;
	font-size: 10px;}

.foot_mprava {text-align: center;}

.vhid {width: 100%; margin-top: 10vw; text-align: center;}
input {width: 10vw; height: 1.6vw; margin-bottom: 1vw; border-radius: 5px; border: solid 1px #38383f;}
button.pass {width: 14.6vw; height: 2vw; margin-bottom: 5px; border-radius: 5px; border: solid 1px #e10600; background: #e10600; color: #fff; font-family: F1Bold; font-size: 1.1vw;}
.hi {font-size: 0.7vw; font-family: F1; margin-right: 1vw;}

/* кнопка устан */
.f1ua-install-btn {display: inline-block;
    margin: 0.5vw 0;
    padding: 0.5vw 2vw;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    border-radius: 1vw;
    font-size: 0.8vw;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.3);}

.f1ua-install-btn:hover {transform: translateY(-1px); box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);}
.f1ua-install-btn:active {transform: translateY(0);}

/* Стили для iOS подсказки */
.ios-install-prompt {
    background: linear-gradient(135deg, #007AFF, #0056CC);
    color: white;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    animation: slideIn 0.3s ease-out;
}

.ios-prompt-content {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 12px;
    position: relative;
}

.ios-icon {font-size: 24px;flex-shrink: 0;}
.ios-text {flex: 1; font-size: 14px; line-height: 1.4;}
.ios-text strong {font-size: 16px;}

.ios-share-icon {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.ios-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ios-close-btn:hover {background: rgba(255,255,255,0.3);}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 1023px) {
	.m_width {max-width: 95vw;}
	.cont_news {
		grid-template-columns: repeat(3, 1fr);
		margin: 0 22px;}
	.mylogo {width: 120px;}
	.menu_item{padding: 0 14px;	font-size: 9px;}
	.news_cont {width: 88vw; margin: 15px;}
	.news_blok {width: 68vw;}
	.news_text {width: 66vw;}
	.leftpanel {margin: 2vw 2vw 0 0;}
	.leftpanel .nn {font-size: 0.8vw;} 
	.leftpanel .point {font-size: 0.8vw;} 
	.navi_map {height: 2.8vw; padding: 0.1vw 0; gap: 0.35vw;}
    .navi_block {border-radius: 4px; width: 3.71vw; padding: 0; font-size: 0.6vw; line-height: 0.6vw;}
    .navi_name {font-size: 0.47vw;}
    .navi_fl {height: 1.2vw; border-radius: 3px;}
    .dropdown-btn {font-size: 2vw; margin-left: -1.3vw; margin-bottom: -0.1vw;}
    .dropdown-content {font-size: 1.3vw; width: 8vw; height: 18vw;}
}

@media (max-width: 765px) {
	.m_width {max-width: 98vw; padding: 0 2.3vw;}
	.top1 {height: 18px;}
	
	.vhid {font-size: 3vw;}
	input {width: 26vw; height: 3vw; font-size: 2vw; border-radius: 4px;}
    button.pass {width: 20vw; height: 3.2vw;font-size: 2vw;}
    
	.season_title {font-size: 6px; padding: 2px 0;}
    .season_item {height: 2px; font-size: 7px; padding: 0; margin:0;}
	.navigation {column-gap: 2px; padding: 2px 0;}
	
    .hi {font-size: 0.9vw;}
    button.zamena_temy {width: 7vw; height: 2.8vw; border-radius: 3px; font-size: 0.9vw;}

	.dropdown-btn {font-size: 2vw; margin-left: -2.5vw; margin-bottom: -0.1vw;}
    .dropdown-content {font-size: 1.8vw; width: 11vw; height: 37vw;}

	.fia{height: 10px;}
	.f1tv {height: 5px;}
	.f1 {height: 5px;}
	.menu_wrapper {height: 30px;}
	.mylogo {width: 44px;}
	.menu_item{padding: 0 5px; font-size: 6px;	}
	.img_menu {	height: 6px;}

	.anons_wrapper {height: 60px;}
	.trasa_name_wrapper,
	.trasa {height: 30px;}
	.trasa_name {height: 5px; font-size: 12px;}
	.racest {font-size: 16px;}

	.anons {grid-template-columns: 0 auto 1fr;	}
	.anons_text {line-height: 10px;	font-size: 8px;}

	.navi_map {height: 3.3vw; padding: 0.1vw 0; gap: 0.16vw;}
    .navi_block {border-radius: 2px; width: 3.82vw; padding: 0; font-size: 0.7vw; line-height: 0.65vw;}
    .navi_name {font-size: 0.55vw;}
    .navi_fl {height: 1.3vw; border-radius: 2px;}
    
	.top_news .tnews p {font-size: 14px; line-height: 17px;}
	.news .tnews p {font-size: 9px; line-height: 11px;}

	.cont_news {grid-template-columns: repeat(2, 1fr); margin: 0 12px;}

	.leftpanel {display: none;}
	.news_cont {min-width: 320px; margin: 15px auto;}
	.news_blok {width: 86vw;}
	.news_text {width: 84vw; line-height: 15px; font-size: 12px;}
.news_text .news_data, .news_data {font-size: 0.8vw; line-height: 1.1vw; padding: 1px 2px;}
	h1 {line-height: 16px; font-size: 13px;}

	.footer_menu {font-size: 7px; column-gap: 11px; padding: 10px 5px;}
	.foot_prava {text-align: center;}
	
    .f1ua-install-btn {width: 100%; font-size: 2.5vw; border-radius: 4vw;}
    .ios-prompt-content {padding: 12px; gap: 10px;}
    .ios-text {font-size: 13px;}
    .ios-text strong {font-size: 15px;}
}