html {
  scroll-behavior: smooth; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background-color: #312450; }

p {
  letter-spacing: 0.35px; }

a {
  text-decoration: none;
  color: inherit; }

li {
  list-style: none; }

.msg {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 0.5rem; }

.err {
  border: 1px solid #ff0000 !important; }

.red {
  color: #d40303 !important;
  margin-bottom: 0 !important; }

.active {
  color: #fff !important;
  transition: color 0.2s ease; }
  .active:hover {
    color: #fff !important; }

.btn {
  cursor: pointer;
  font-size: 0.6rem;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  background: transparent;
  color: #fff;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 1.1rem 2.1rem;
  transition: border 0.2s ease, background 0.2s ease; }
  .btn:focus {
    outline: none; }
  .btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.65);
    opacity: 1;
    transition: all 0.2s ease; }

#sidebar {
  position: fixed;
  width: 100%;
  background: #373f51;
  z-index: 2; }
  #sidebar nav ul {
    display: flex;
    align-items: center;
    justify-content: center; }
    #sidebar nav ul li {
      margin: 0 0 0 2rem !important; }
      #sidebar nav ul li:hover a::after {
        background: rgba(255, 255, 255, 0.7);
        transition: background 0.5s ease; }
      #sidebar nav ul li:first-child {
        margin: 0; }
      #sidebar nav ul li a {
        position: relative;
        color: rgba(255, 255, 255, 0.35);
        display: block;
        font-size: 0.6em;
        font-weight: bold;
        letter-spacing: 0.25em;
        text-transform: uppercase;
        padding: 2.3em 0;
        opacity: 0;
        transform: translateY(-15px); }
        #sidebar nav ul li a.show {
          opacity: 1;
          transform: translateY(0);
          transition: opacity 0.5s ease, transform 0.5s ease; }
        #sidebar nav ul li a::after {
          position: absolute;
          content: '';
          bottom: 0;
          left: 0;
          height: 0.1rem;
          width: 100%;
          background: linear-gradient(to right, #5e42a6, #b74e91);
          transition: background 0.5s ease;
          border-radius: 5px; }
        #sidebar nav ul li a.active::after {
          background: #fff;
          transition: background 0.5s ea; }

#esileht {
  position: relative;
  height: 100vh;
  padding: 4rem 4rem 2rem 4rem;
  background: rgba(0, 0, 0, 0.35); }
  #esileht::after {
    background: url("../images/bg.jpg") no-repeat center center/cover;
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; }
  #esileht .inner {
    margin-top: 100px;
    opacity: 0;
    transform: translateY(15px); }
    #esileht .inner.show {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.5s ease, transform 0.5s ease; }
    #esileht .inner h1 {
      font-size: 2.9rem;
      font-weight: bold;
      line-height: 1.5;
      margin-bottom: 0.8rem;
      letter-spacing: 1px; }
    #esileht .inner h2 {
      font-size: 1.3rem;
      color: rgba(255, 255, 255, 0.7);
      margin-bottom: 2.4rem;
      line-height: 1.75;
      letter-spacing: 1px;
      font-weight: normal; }

#section-paadivalik {
  position: relative; }
  #section-paadivalik #paadivalik {
    position: absolute;
    top: -3rem;
    visibility: hidden; }
  #section-paadivalik section {
    display: flex; }
    #section-paadivalik section img {
      width: 100%;
      max-width: 475px;
      height: 265px;
      object-fit: cover; }
    #section-paadivalik section .content {
      background: linear-gradient(180deg, #373f51, #41495c);
      width: 100%;
      padding: 2.5rem 3rem 1rem 4rem; }
      #section-paadivalik section .content .inner h2 {
        font-size: 1.8rem;
        margin-bottom: 0.9rem; }
      #section-paadivalik section .content .inner p {
        line-height: 1.5;
        margin-bottom: 2rem;
        color: rgba(255, 255, 255, 0.7); }
      #section-paadivalik section .content .inner .price {
        margin-bottom: 0.5rem; }

#paadirent .inner {
  padding: 4rem 4rem 2rem;
  background: #373f51; }
  #paadirent .inner h2 {
    font-size: 1.8rem;
    margin-bottom: 0.9rem; }
  #paadirent .inner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7; }
  #paadirent .inner .features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    margin-bottom: 3rem; }
    #paadirent .inner .features section {
      position: relative;
      border: 1px solid rgba(255, 255, 255, 0.15);
      padding: 3.5rem 3rem 1rem 7rem; }
      #paadirent .inner .features section .icon {
        position: absolute;
        content: '';
        top: 3.1rem;
        left: 3.5rem;
        width: 2.3rem;
        height: 2.3rem;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #fff;
        color: #ee8434;
        border-radius: 100%;
        font-size: 1.1rem; }
      #paadirent .inner .features section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.65rem; }
      #paadirent .inner .features section p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 1rem;
        line-height: 1.6; }

#kontakt .inner {
  padding: 4rem 4rem 2rem;
  background: #577399; }
  #kontakt .inner h2 {
    font-size: 1.8rem;
    margin-bottom: 0.9rem; }
  #kontakt .inner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7); }
  #kontakt .inner .split {
    display: flex; }
    #kontakt .inner .split section:first-child {
      width: 66.6%;
      border-right: 1px solid rgba(255, 255, 255, 0.15);
      padding-right: 2rem; }
    #kontakt .inner .split section:nth-child(2) {
      width: 33.3%;
      padding-left: 2.5rem; }
    #kontakt .inner .split section form {
      margin-bottom: 2rem; }
      #kontakt .inner .split section form .fields {
        width: 100%;
        display: flex; }
        #kontakt .inner .split section form .fields .field {
          position: relative;
          display: block;
          width: 100%; }
          #kontakt .inner .split section form .fields .field:first-child {
            margin-right: 1.7rem; }
          #kontakt .inner .split section form .fields .field label {
            color: #fff;
            display: block;
            font-size: 1.25rem;
            margin-bottom: 0.6rem;
            font-weight: bold; }
            #kontakt .inner .split section form .fields .field label.error {
              color: red; }
          #kontakt .inner .split section form .fields .field input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 0.65rem 1.1rem;
            color: #fff;
            border-radius: 3px;
            width: 100%;
            margin-bottom: 1.5rem; }
            #kontakt .inner .split section form .fields .field input:focus {
              outline: none; }
      #kontakt .inner .split section form .field {
        position: relative; }
        #kontakt .inner .split section form .field label {
          display: block;
          font-size: 1.25rem;
          margin-bottom: 0.6rem;
          font-weight: bold; }
          #kontakt .inner .split section form .field label.error {
            color: red; }
        #kontakt .inner .split section form .field textarea {
          background: rgba(255, 255, 255, 0.05);
          border: 1px solid rgba(255, 255, 255, 0.15);
          border-radius: 3px;
          color: #fff;
          margin-bottom: 1.5rem;
          line-height: 1.8;
          width: 100%;
          padding-left: 0.8rem; }
          #kontakt .inner .split section form .field textarea:focus {
            outline: none; }
    #kontakt .inner .split section .contact li {
      margin-bottom: 1rem; }
      #kontakt .inner .split section .contact li h3 {
        font-size: 1.25rem;
        margin-bottom: 0.6rem; }
      #kontakt .inner .split section .contact li span {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.9; }
      #kontakt .inner .split section .contact li p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        color: rgba(255, 255, 255, 0.7); }

#footer .inner {
  padding: 4rem 4rem 4rem;
  background: #577399;
  color: rgba(255, 255, 255, 0.7); }
  #footer .inner .menu {
    display: flex; }
    #footer .inner .menu li {
      margin: 0 1rem;
      font-size: 0.8rem; }
      #footer .inner .menu li a {
        transition: color 0.2s ease; }
        #footer .inner .menu li a:hover {
          color: #fff;
          transition: color 0.2s ease; }

@media (min-width: 1500px) {
  #sidebar {
    width: 400px;
    height: 100vh;
    overflow-x: hidden;
    text-align: right; }
    #sidebar nav {
      height: 100%; }
      #sidebar nav ul {
        flex-direction: column;
        height: 100%; }
        #sidebar nav ul li {
          margin: 0 0 0 2rem;
          font-size: 1.6rem; }
          #sidebar nav ul li a {
            width: 250px; }
            #sidebar nav ul li a::after {
              height: 0.2rem; }
  #section-paadivalik #paadivalik {
    top: 0; }
  #esileht,
  #section-paadivalik,
  #paadirent,
  #kontakt,
  #footer {
    margin-left: 400px; } }

@media (max-width: 1100px) {
  #section-paadivalik section {
    flex-direction: column; }
    #section-paadivalik section img {
      width: 100%;
      max-width: 100%;
      height: auto; }
  #paadirent .inner .features {
    grid-template-columns: repeat(1, 1fr); }
  #kontakt .inner .split {
    display: block; }
    #kontakt .inner .split section {
      width: 100%; }
      #kontakt .inner .split section:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
      #kontakt .inner .split section:nth-child(2) {
        padding-left: 0; }
      #kontakt .inner .split section .contact {
        margin-top: 2.5rem; } }

@media (max-width: 800px) {
  #sidebar {
    display: none; }
  #section-paadivalik #paadivalik {
    top: 0; }
  #esileht .inner {
    margin-top: 40px; }
    #esileht .inner h1 {
      font-size: 2.1rem; }
    #esileht .inner h2 {
      font-size: 1.2rem; }
  #section-paadivalik section .content {
    padding: 2rem; }
  #paadirent .inner {
    padding: 2rem; }
  #kontakt .inner {
    padding: 2rem; }
    #kontakt .inner .split section:nth-child(1) {
      width: 100%;
      padding-right: 0; }
    #kontakt .inner .split section:nth-child(2) {
      padding-left: 0;
      width: 100%; }
    #kontakt .inner .split section form .fields {
      display: block; }
  #footer .inner {
    padding: 2rem; } }

@media (max-width: 500px) {
  .btn {
    width: 100%; }
  #paadirent .inner .features section {
    padding: 3rem 2rem 0.5rem 4rem; }
    #paadirent .inner .features section .icon {
      top: 0.9rem;
      left: 0.9rem; } }

@media (max-width: 420px) {
  #esileht {
    padding: 2rem; }
  #paadirent .inner .features section {
    padding: 2rem 1.5rem 0rem 1.5rem; }
    #paadirent .inner .features section .icon {
      display: none; }
  #kontakt .inner p {
    font-size: 0.95rem; }
  #kontakt .inner h2 {
    font-size: 1.5rem; } }

@media (max-height: 500px) {
  #sidebar {
    display: none; } }
