:root {
    --color-gold: rgb(255, 233, 147);
    --color-text:rgb(19, 18, 18);
    --background-color:#eee;
    --color-nav:rgb(192, 192, 192);
    --color-hover: rgb(247, 243, 243);
    --color-grey:  rgb(216, 216, 216);
    --font-family: "Poiret One", sans-serif;
    --font-header: "The Nautigal", cursive;
    --font-weight: 600;
    --font-style: italic;
    --font-size: 20px; 
    --letter-spacing: 1px;
    --white-text: rgb(250, 250, 250);
}
.red-color {
    color: #ec2424;
}

/* Шрифты */
@font-face {
    font-family: "Madelyn Regular";
    src: url(../fonts/madelyn.woff2) format("woff2");
    src: url(../fonts/madelyn.woff) format("woff");
}

/* nautigal */
.the-nautigal-bold {
    font-family: "The Nautigal", cursive;
    font-weight: 700;
    font-style: normal;
}

/* alex */
.alex-brush-regular {
    font-family: "Alex Brush", cursive;
    font-weight: 400;
    font-style: normal;
}

  /* Poiret */
.poiret-one-regular {
    font-family: "Poiret One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Кнопка наверх */
.top {
    display: flex;
    place-self: end;
    position: sticky;
    bottom: 20px;
    right: 2px;
    left: calc(100%);
    margin-top: 40%;
    padding-bottom: 10px;
    text-decoration: none;
    width: 50px;
    height: 50px;
    z-index: 4;
    margin-right: 1%;
}
.top:hover {
    transform: scale(1.1, 1.1);
    transition: 0.1s;
}
.top:focus {
    transform: scale(1.1, 1.1);
    transition: 0.1s;
}
.top:active {
    transform: scale(1.1, 1.1);
    transition: 0.1s;
}
  
body {
    background-image: url("../img/fons/fon-abstract.jpg"); 
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top;
    width: 100%;
}  
.background-mini {
    background-image: url("../img/fons/fon-abstract.jpg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top;
    width: 100%;
} 
.span {
    color: var(--color-hover);
}
/* Хедер */
.header {
    box-sizing: border-box;
    font-family: "The Nautigal", cursive;
    font-weight: 700;
    font-size: 45px;
    width: 100%;
    
/* фиксация хедера */
    position: sticky;
    top: -170px;
    z-index: 5;
}  
a { text-decoration: none;
} 
.header__top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    align-items: center;
    align-content: space-evenly;
    justify-items: center; 
    width: 100%;
    height: 170px;
}
.header__top a {
    text-decoration: none; 
    color: var(--color-text);
}
.header__top-p {
    font-family: "The Nautigal", cursive;
    font-weight: 700; 
    color: var(--color-gold);
    font-size: 124px;
    text-shadow: 2px 2px 2px #222020;
    white-space: nowrap;
    padding: 1%;
    margin: 1% 1% 0 1%;
}
.header__top-name{
    grid-column: 1/3;
    grid-row: 1/4;
    align-items: center;
    justify-content:center;
    margin: 0;
}    
.header__top a:hover {
    transform: scale(1.1, 1.1);
    transition: 0.1s;
}
.header__top a:focus {
    transform: scale(1.1, 1.1);
    transition: 0.1s;
}
.header__top a:active {
    transform: scale(1.1, 1.1);
    transition: 0.1s;
}
.header__social-item {
    grid-column: 3/4;
    grid-row: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2%;
}
.header__social-elem {
    width: 30px;
    height: 30px;
    padding: 5%;
    margin: 5%;
}
.header__social-elem:hover {
    transform: scale(1.2, 1.2);
    transition: 0.5s;
}
.header__social-elem:focus {
    transform: scale(1.2, 1.2);
    transition: 0.5s;
}
.header__social-elem:active {
    transform: scale(1.2, 1.2);
    transition: 0.5s;
}
.header__top-language {
    grid-row: 1/2;
    grid-column: 3/4;
    display: flex;
    padding: 1%;
    margin-left: 40%;
}
.header__top-language-elem {
    font-family: var(--font-family);
    color: var(--color-text);
    letter-spacing: var(--letter-spacing);
    white-space: nowrap;
    font-size: 24px;
    font-weight: 500;
    font-style: normal;
    padding: 6%;
    margin: 6%;
}
.header__top-language-elem:hover {
    transform: scale(1.1, 1.1);
    transition: 0.5s;
    visibility: visible;
}
.header__top-language-elem:focus {
    transform: scale(1.1, 1.1);
    transition: 0.5s;
}
.header__top-language-elem:active {
    transform: scale(1.1, 1.1);
    transition: 0.5s;
}
.header__bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:var(--color-nav);
    height: 60px;
    border-top: 1px solid var(--white-text);
}
.header__bottom-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10%;
    text-align: center;
    letter-spacing: var(--letter-spacing);
    max-width: 100%;
}
.header__bottom-nav-elem {
    margin: 0 4% 0 4%;
    padding-bottom: 1%;
}
.header__bottom-nav a {
    font-family:var(--font-family);
    font-size: 28px;
    font-weight: 600;
    font-style: normal;
    color: var(--color-text);
    white-space: nowrap;
}
.header__bottom-nav a:hover {
    color: var(--color-hover);
}
.header__bottom-nav a:focus {
    color: var(--color-hover);
}
.header__bottom-nav a:active {
        color: var(--color-hover);   
}

/* для маленькой навигации */
.header__bottom-small {
    display: none;
    flex-direction: column;
}
.header__bottom-nav-top-small {
    display: flex;
    background-color:var(--color-nav);
    height: 40px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    letter-spacing: var(--letter-spacing);
    max-width: 100%;
}
.header__bottom-nav-bottom-small{
    display: flex;
    background-color:var(--color-grey);
    height: 40px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    letter-spacing: var(--letter-spacing);
    max-width: 100%;
    border-top: 1px solid var(--white-text);
}
.header__bottom-nav-top-small a {
    font-family:var(--font-family);
    font-size: 24px;
    font-weight: 600;
    font-style: normal;
    color: var(--color-text);
    white-space: nowrap;
    padding: 5px;
    margin: 5px;
}
.header__bottom-nav-top-small a:hover {
    color: var(--color-hover);
}
.header__bottom-nav-top-small a:focus {
    color: var(--color-hover);
}
.header__bottom-nav-top-small a:active {
        color: var(--color-hover);   
}
.header__bottom-nav-bottom-small a {
    font-family:var(--font-family);
    font-size: 24px;
    font-weight: 600;
    font-style: normal;
    color: var(--color-text);
    white-space: nowrap;
    padding: 10px;
    margin: 10px;
}
.header__bottom-nav-bottom-small a:hover {
    color: var(--color-hover);
}
.header__bottom-nav-bottom-small a:focus {
    color: var(--color-hover);
}
.header__bottom-nav-bottom-small a:active {
    color: var(--color-hover);   
}

/* Основной раздел */
.middle {
    display: flex;
    position: relative;
    background-color: var(--background-color);
}
.middle__container {
    display: flex;
    flex-direction: column;
    width: 100%; 
    margin: 20px;
}
.middle__wrapper {
    display: flex; 
    justify-content: space-evenly;
    align-items: end;
    flex-wrap: wrap;
    width: 100%;
}
h1 {
    font-family: "Poiret One", sans-serif;
    font-size: 28px;
    font-weight: 700;
    font-style: normal;
    color: var(--color-text);
    white-space: wrap;
    letter-spacing: 2px;
    margin-bottom: 0px;
    margin-left: 3%;
}

/* Картины */
.middle__painting {
    display: flex;
    justify-content: center;
    width: calc(25% - 30px);
    box-sizing: border-box; 
    justify-self: center;
    text-align: center;
    position: relative;
    overflow: hidden; 
    z-index: 4;
}
.middle__painting-img{
    margin-top: 20%;
    width: 85%;
    height: auto;
    box-shadow: 7px 7px 7px rgb(95, 95, 95);
}
.middle__painting:hover .middle__painting-img {
    transform: scale(1.05, 1.05);
    transition: 0.3s;
}
.middle__painting-title {
    font-family: var(--font-family);
    color: var(--color-text);
    font-size: 26px;
    font-weight: 700;
    padding: 5% 0 2% 0;
    margin: 0px;
}
.middle__painting-text {
    text-align: left;
    padding: 0 0 0 10%;
    margin: 0;
    font-family: var(--font-family);
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}

/* Футер    */
.footer {
    box-sizing: border-box;
    background-color:var(--color-grey);
    font-family: var(--font-family);
    color: var(--color-text);
    height: 100%;
    width: 100%;
    border-top: solid 1px;
    border-color: var(--color-text);
}
.footer__container {
    display: grid;
    grid-template-columns: 3fr 1fr 3fr;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}
.footer__social {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

/* Соцсети */
.footer__social-item {
    grid-column: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.footer__social-elem {
    padding: 15px;
}
.footer__social-elem:hover {
    transform: scale(1.3, 1.3);
    transition: 0.1s;
}
.footer__social-elem:focus {
    transform: scale(1.3, 1.3);
    transition: 0.1s;
}
.footer__social-elem:active {
    transform: scale(1.3, 1.3);
    transition: 0.1s;
}
.footer__social-tel-elem {
    padding: 15;
} 
.footer__social-tel a {
    font-family: "Alex Brush", cursive;
    font-weight: 600;
    font-size: 28px;
    font-style: normal;
    color: var(--color-text);
    white-space: nowrap;
    letter-spacing: 0.1px;
}
.footer__social-tel-elem:hover {
    transform: scale(1.1, 1.1);
    transition: 0.1s;
}
.footer__social-tel-elem:focus {
    transform: scale(1.1, 1.1);
    transition: 0.1s;
}
.footer__social-tel-elem:active {
    transform: scale(1.1, 1.1);
    transition: 0.1s;
}
.footer__logo {
    grid-column: 3;
    display: flex;
    justify-content: end;
    padding: 15px;
}
.footer__logo a:hover {
    transform: scale(1.05, 1.05);
}
.footer__logo a:focus {
    transform: scale(1.05, 1.05);
}
.footer__logo a:active {
    transform: scale(1.05, 1.05);
}
.footer__notice {
    grid-column: 1/4;
    text-align: center;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    color: rgb(214, 8, 8);
    margin-bottom: 1%;
}

/* О художнике */
.middle__container-artist {
    display: flex;
    flex-direction: column;
    padding: 5px;
    margin: 5px; 
}
.about__quote {
    display: flex;
    justify-content: end;
    font-family: var(--font-family);
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    max-width: 100%;
    text-align: right;
    letter-spacing: var(--letter-spacing);
    padding-right: 10px;
}
.about__info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
}
.about__info-foto {
    padding: 20px 10px 10px 10px ;
   
}
.about__info-foto img {
    border: solid 2px;
    border-color:  var(--color-footer);
}
.about__info-text {
    font-family: var(--font-family);
    font-size: 22px;
    font-weight: var(--font-weight);
    font-style: italic;
    text-align: justify;
    letter-spacing: var(--letter-spacing);
    padding-right: 10px; 
    padding-left: 10px;
}

/* order */
.middle__order-title {
    font-family: var(--font-family);
    color: var(--color-text);
    font-size: 26px;
    font-weight: 700;
    padding: 1%; 
    margin: 2% 5% 0% 5%;
}
.middle__order-text {
    text-align: left;
    padding: 0% 0% 0% 10%;
    margin: 0%;
    font-family: var(--font-family);
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
    position: relative;
    line-height: 1.5;
}
.middle__order-price {
    font-family: var(--font-family);
    color: var(--color-text);
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 0%;
    margin: 2% 0% 0% 10%;
}
.middle__order-cost {
    text-align: left;
    padding: 1% 10%;
    margin: 0;
    font-family: var(--font-family);
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
    position: relative;
    line-height: 1.5;
}

/* picturies */
.middle__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
}
.middle__content-slider {
    grid-column: 1;
}
.middle__content-item  {
    grid-column: 2;
    margin: 0px 20px ;
}
.middle__content-item h2 {
    margin-top: 0;
    margin-bottom: 0;
}

/* Слайдер */
.slider{
	width: 640px; 
	position: relative;
	padding-top: 320px;  
	margin-top: auto;
    margin-left: auto;
    margin-right: 100%;
}
.slider>img{
	position: absolute;
    top: 0;
    left: 100%;
    right: 100%;
	transition: all 0.5s;
    justify-self: center;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.75);
}
.slider input[name='slide_switch'] {
	display: none;
}
.slider label {
	margin: 18px 0px 0px 18px;
	border: 3px solid #999;
	float: left;
	cursor: pointer;
	transition: all 0.5s;
	opacity: 0.6;
}
.slider label img{
	display: block;
}
.slider input[name='slide_switch']:checked+label {
	border-color: #666;
	opacity: 1;
}
.slider input[name='slide_switch'] ~ img {
	opacity: 0;
	transform: scale(1.1);
}
.slider input[name='slide_switch']:checked+label+img {
	opacity: 1;
	transform: scale(1);
}